mirror of
https://github.com/e107inc/e107.git
synced 2025-08-30 09:39:55 +02:00
Work on Media-Manager
This commit is contained in:
@@ -139,27 +139,33 @@ class page_admin extends e_admin_dispatcher
|
||||
|
||||
class page_admin_form_ui extends e_admin_form_ui
|
||||
{
|
||||
/*public function faq_info_parent($curVal,$mode)
|
||||
|
||||
function page_title($curVal,$mode,$parm)
|
||||
{
|
||||
// TODO - catlist combo without current cat ID in write mode, parents only for batch/filter
|
||||
// Get UI instance
|
||||
$controller = $this->getController();
|
||||
switch($mode)
|
||||
// $parm = $this->getController()->getUI()->getDataFields(); //$model->getData();
|
||||
// print_a($parm);
|
||||
$parm = "";
|
||||
if($mode == 'read') // FIXME - Link not working as intended.
|
||||
{
|
||||
case 'read':
|
||||
return e107::getParser()->toHTML($controller->getFaqCategoryTree($curVal), false, 'TITLE');
|
||||
break;
|
||||
|
||||
case 'write':
|
||||
return $this->selectbox('faq_info_parent', $controller->getFaqCategoryTree(), $curVal);
|
||||
break;
|
||||
|
||||
case 'filter':
|
||||
case 'batch':
|
||||
return $controller->getFaqCategoryTree();
|
||||
break;
|
||||
return "<a href='".e_BASE."page.php?".$parm."' >".$curVal."</a>";
|
||||
}
|
||||
}*/
|
||||
|
||||
if($mode == 'write')
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if($mode == 'filter')
|
||||
{
|
||||
return;
|
||||
}
|
||||
if($mode == 'batch')
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -184,7 +190,7 @@ class page_admin_ui extends e_admin_ui
|
||||
protected $fields = array(
|
||||
'checkboxes' => array('title'=> '', 'type' => null, 'width' =>'5%', 'forced'=> TRUE, 'thclass'=>'center', 'class'=>'center'),
|
||||
'page_id' => array('title'=> 'ID', 'width'=>'5%', 'forced'=> TRUE),
|
||||
'page_title' => array('title'=> CUSLAN_1, 'type' => 'text', 'width'=>'auto'),
|
||||
'page_title' => array('title'=> CUSLAN_1, 'type' => 'method', 'width'=>'auto'),
|
||||
'page_theme' => array('title'=> CUSLAN_2, 'type' => 'text', 'width' => 'auto','nolist'=>true),
|
||||
'page_template' => array('title'=> 'Template', 'type' => 'text', 'width' => 'auto'),
|
||||
'page_author' => array('title'=> LAN_AUTHOR, 'type' => 'user', 'width' => 'auto', 'thclass' => 'left'),
|
||||
@@ -785,6 +791,8 @@ class page_admin_ui extends e_admin_ui
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
require_once('auth.php');
|
||||
new page_admin();
|
||||
|
||||
|
Reference in New Issue
Block a user