public function manageAction() { $views = [["name" => '上传管理', "template" => "abfile/manage"]]; $uploads = self::getAllUpload(); $data = array('uploads' => $uploads); parent::addDialog('Action属性', 'abfile/settings'); parent::showTabViews($views, '文件上传管理', $data); }
/** * List all Enum Classes */ public function indexAction() { $views = [["name" => '常量定义', "template" => "abenum/list"]]; $classNames = self::getEnumClasses(); $data = array('classNames' => $classNames); parent::addDialog('Action属性', 'abenum/settings'); parent::showTabViews($views, '常量定义管理', $data); }
private function createCurdFromModel() { $tableNames = $this->tableNames(); $views = [["name" => '新建模块', "template" => "abmodule/new_curd"], ["name" => '预览', 'id' => 'preview', "template" => "abmodule/new_curd_preview"]]; parent::addDialog('下拉框设置', 'abmodule/dialog-select'); parent::addDialog('文本框设置', 'abmodule/dialog-text'); parent::addDialog('时间选择设置', 'abmodule/dialog-datetime'); parent::addDialog('关联ID设置', 'abmodule/dialog-fk'); parent::addDialog('主键ID设置', 'abmodule/dialog-pk'); parent::addDialog('关联ID设置', 'abmodule/dialog-extend'); parent::addDialog('行政区设置', 'abmodule/dialog-region'); parent::addDialog('文件上传设置', 'abmodule/dialog-file'); parent::addDialog('图片上传设置', 'abmodule/dialog-img'); $data = array('table_names' => $tableNames, 'enum_defines' => AbEnumController::getEnumClasses()); // $this->session->set('a', '323'); parent::showTabViews($views, '创建CURD模块', $data); }
/** * @comment 报表创建模块入口 * @page */ public function indexAction() { $tableNames = $this->tableNames(); $data = array('table_names' => $tableNames); $views = [["name" => '新建报表', "template" => "abreport/create"]]; parent::addDialog('下拉框设置', 'abreport/dialog-select'); parent::addDialog('文本框设置', 'abreport/dialog-text'); parent::addDialog('时间选择设置', 'abreport/dialog-datetime'); parent::addDialog('关联ID设置', 'abreport/dialog-fk'); parent::addDialog('主键ID设置', 'abreport/dialog-pk'); parent::addDialog('关联ID设置', 'abreport/dialog-extend'); parent::addDialog('行政区设置', 'abreport/dialog-region'); parent::addDialog('文件上传设置', 'abreport/dialog-file'); parent::addDialog('图片上传设置', 'abreport/dialog-img'); parent::addDialog('添加列', 'abreport/dialog-new-row'); parent::showTabViews($views, '创建报表', $data); }