Skip to content

Commit

Permalink
Fixing article...
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanh Nguyen authored and Thanh Nguyen committed Dec 15, 2011
1 parent 26d5195 commit 778423a
Show file tree
Hide file tree
Showing 13 changed files with 2,659 additions and 51 deletions.
30 changes: 26 additions & 4 deletions Entity/Cms/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ class Article
private $title;
/**
* @Gedmo\Translatable
* @ORM\Column(name="sub_title", type="string", length=128, nullable: true)
* @ORM\Column(name="sub_title", type="string", length=128, nullable=true)
*/
private $sub_title;
/**
* @Gedmo\Translatable
* @ORM\Column(name="description", type="text", nullable: true)
* @ORM\Column(name="description", type="text", nullable=true)
*/
private $description;
/**
Expand All @@ -38,7 +38,7 @@ class Article
*/
private $content;
/**
* @ORM\Column(name="author", type="string", length=128, nullable: true)
* @ORM\Column(name="author", type="string", length=128, nullable=true)
*/
private $author;
/**
Expand All @@ -53,7 +53,6 @@ class Article
* @ORM\Column(name="allow_comment", type="boolean", nullable=false)
*/
private $allow_comment;

/**
* @ORM\Column(name="num_comments", type="integer", nullable=true)
*/
Expand All @@ -66,6 +65,25 @@ class Article
* @ORM\Column(name="is_hot", type="boolean", nullable=false)
*/
private $is_hot;
/**
* @ORM\Column(name="show_comments", type="boolean", nullable=false)
*/
private $show_comments;
/**
* @var datetime $created
*
* @Gedmo\Timestampable(on="create")
* @ORM\Column(type="datetime")
*/
private $created;

/**
* @var datetime $updated
*
* @ORM\Column(type="datetime")
* @Gedmo\Timestampable(on="update")
*/
private $updated;

/*
private $author;
Expand All @@ -86,3 +104,7 @@ class Article
*/
}

final class ArticleStatus {
const DRAFT = 0;
const PUBLISHED = 100;
}
1 change: 0 additions & 1 deletion libs/ajaxfilemanager/jscripts/for_fckeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ function getParameterByName(name)

function selectFile(url)
{
console.log(url);
if(url != '' )
{
//window.opener.SetUrl( url ) ;
Expand Down
32 changes: 15 additions & 17 deletions libs/ajaxfilemanager/jscripts/for_form.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
function selectFile(url)
{
window.opener.document.getElementById(elementId).value = url;
window.close() ;


}



function cancelSelectFile()
{
// close popup window
window.close() ;
return false;
}

function selectFile(url)
{
window.opener.document.getElementById(elementId).value = url;
window.close() ;
}



function cancelSelectFile()
{
// close popup window
window.close() ;
return false;
}

Binary file not shown.
3 changes: 2 additions & 1 deletion libs/ajaxfilemanager/session/gc_log.ajax.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
<?php die(); ?>
gc start at 14/Dec/2011 11:25:54
gc start at 15/Dec/2011 20:36:46
session/1a80910770635753bb5c661cce3c5a1b Deleted at 15/Dec/2011 20:36:46
Loading

0 comments on commit 778423a

Please sign in to comment.