mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
small fixes
This commit is contained in:
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_admin/comment.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_admin/comment.php,v $
|
||||||
| $Revision: 1.10 $
|
| $Revision: 1.11 $
|
||||||
| $Date: 2009-11-04 23:49:59 $
|
| $Date: 2009-11-05 00:11:56 $
|
||||||
| $Author: secretr $
|
| $Author: e107coders $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
require_once("../class2.php");
|
require_once("../class2.php");
|
||||||
@@ -39,7 +39,7 @@ class comments_admin extends e_admin_dispatcher
|
|||||||
protected $adminMenu = array(
|
protected $adminMenu = array(
|
||||||
'main/list' => array('caption'=> 'Manage', 'perm' => '0'),
|
'main/list' => array('caption'=> 'Manage', 'perm' => '0'),
|
||||||
// 'main/create' => array('caption'=> LAN_CREATE, 'perm' => '0'),
|
// 'main/create' => array('caption'=> LAN_CREATE, 'perm' => '0'),
|
||||||
'main/options' => array('caption'=> 'Settings', 'perm' => '0'),
|
'main/prefs' => array('caption'=> 'Settings', 'perm' => '0'),
|
||||||
// 'main/custom' => array('caption'=> 'Custom Page', 'perm' => '0')
|
// 'main/custom' => array('caption'=> 'Custom Page', 'perm' => '0')
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -62,7 +62,7 @@ class comments_admin_ui extends e_admin_ui
|
|||||||
|
|
||||||
protected $fields = array(
|
protected $fields = array(
|
||||||
'checkboxes' => array('title'=> '', 'type' => null, 'width' =>'5%', 'forced'=> TRUE, 'thclass'=>'center', 'class'=>'center'),
|
'checkboxes' => array('title'=> '', 'type' => null, 'width' =>'5%', 'forced'=> TRUE, 'thclass'=>'center', 'class'=>'center'),
|
||||||
'comment_id' => array('title'=> ID, 'type' => 'int', 'width' =>'5%', 'forced'=> TRUE, 'primary'=>TRUE),
|
'comment_id' => array('title'=> ID, 'type' => 'int', 'width' =>'5%', 'forced'=> TRUE),
|
||||||
'comment_item_id' => array('title'=> "item id", 'type' => 'text', 'width' => 'auto'),
|
'comment_item_id' => array('title'=> "item id", 'type' => 'text', 'width' => 'auto'),
|
||||||
'comment_subject' => array('title'=> "subject", 'type' => 'text', 'width' => 'auto', 'thclass' => 'left first'), // Display name
|
'comment_subject' => array('title'=> "subject", 'type' => 'text', 'width' => 'auto', 'thclass' => 'left first'), // Display name
|
||||||
'comment_comment' => array('title'=> "comment", 'type' => 'textarea', 'width' => '30%', 'readParms' => 'expand=...&truncate=50'), // Display name
|
'comment_comment' => array('title'=> "comment", 'type' => 'textarea', 'width' => '30%', 'readParms' => 'expand=...&truncate=50'), // Display name
|
||||||
@@ -97,7 +97,7 @@ class comments_admin_form_ui extends e_admin_form_ui
|
|||||||
{
|
{
|
||||||
function comment_type($curVal,$mode) // not really necessary since we can use 'dropdown' - but just an example of a custom function.
|
function comment_type($curVal,$mode) // not really necessary since we can use 'dropdown' - but just an example of a custom function.
|
||||||
{
|
{
|
||||||
if($mode == 'list')
|
if($mode == 'read')
|
||||||
{
|
{
|
||||||
return e107::getComment()->getTable($curVal);
|
return e107::getComment()->getTable($curVal);
|
||||||
return $curVal.' (custom!)';
|
return $curVal.' (custom!)';
|
||||||
@@ -118,7 +118,7 @@ class comments_admin_form_ui extends e_admin_form_ui
|
|||||||
if($mode == 'batch')
|
if($mode == 'batch')
|
||||||
{
|
{
|
||||||
$types = e107::getComment()->known_types;
|
$types = e107::getComment()->known_types;
|
||||||
sort($types);
|
// sort($types);
|
||||||
return $types;
|
return $types;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user