コード例 #1
0
 /**
  * Display the selected template with the given data and customization
  * @return void
  */
 public function display()
 {
     $this->assign('__rows', $this->_rows);
     $this->assign('__fields', $this->_fields);
     $this->assign('__links', $this->_links);
     $this->assign('__actions', $this->_actions);
     $this->assign('__classes', $this->_classes);
     $this->assign('__tooltips', $this->_tooltips);
     $this->assign('__prefix', $this->_prefix);
     $this->assign('__row_id', $this->_row_id);
     $this->assign('__filters', $this->_filters);
     $this->assign('__general_actions', $this->_general_actions);
     $this->assign('__order_by', $this->_order_by);
     $this->assign('__selected_order_by', $this->_selected_order_field);
     $this->assign('__selected_order', $this->_selected_order);
     parent::display();
 }
コード例 #2
0
ファイル: edit.php プロジェクト: hackergarage/ThaFrame
<?php

define('TO_ROOT', '../../..');
include TO_ROOT . "/includes/main.inc.php";
include TO_ROOT . "/includes/ajax_server.php";
$Page = new PagePattern('Edit');
$table_name = $_GET['table_name'];
$id = empty($_GET["{$table_name}_id"]) ? 0 : Utils::cleanToDb($_GET["{$table_name}_id"]);
$Row = new RowModel($table_name, (int) $id, $DbConnection);
$Row->load();
$Form = new FormPattern();
$Form->setRow($Row);
$Form->loadConfig("{$table_name}_catalog", false);
$aux = array('label' => t('Table name'), 'type' => 'hidden', 'value' => $table_name);
$Form->insertField('table_name', $aux, "{$table_name}_id", 'before');
$Form->hideField("{$table_name}_id");
$Page->assign('form', $Form->getAsString());
$Page->display();
コード例 #3
0
 /**
  * Display the selected template with the given data and customization
  * @return void
  */
 public function display()
 {
     $this->assign('__mode', $this->_mode);
     $this->assign('__Form', $this->_Form);
     $this->assign('__Detail', $this->_Detail);
     $this->assign('__Table', $this->_Table);
     $this->assign('__general_actions', $this->_general_actions);
     parent::display();
 }