コード例 #1
0
 public function init()
 {
     parent::init();
     $model = $this->newNotification();
     $modeltask = $this->newTask();
     // Create new field in your users table for store dashboard preference
     // Set table name, user ID field name, user preference field name
     $this->setTableParams('dashboard_page', 'user_id', 'title');
     // set array of portlets
     $this->setPortlets(array(array('id' => 1, 'title' => 'Document', 'content' => 'content here...'), array('id' => 2, 'title' => 'Report', 'content' => 'content here...'), array('id' => 3, 'title' => 'Note', 'content' => 'Notes list'), array('id' => 4, 'title' => 'Department', 'content' => 'content here...'), array('id' => 5, 'title' => 'Reference', 'content' => '*************'), array('id' => 6, 'title' => 'Task', 'content' => $this->renderPartial('/dash/task', array('model' => $model, 'modeltask' => $modeltask), true)), array('id' => 7, 'title' => 'Reminder', 'content' => 'All Reminder is here')));
     //set content BEFORE dashboard
     $this->setContentBefore();
     //set content AFTER dashboard
     //$this->setContentAfter('<br><div align="center"><a href="http://kosiy.blogspot.com/p/donate.html">Donate next release</a></div>');
     // uncomment the following to apply jQuery UI theme
     // from protected/components/assets/themes folder
     //$this->applyTheme('ui-darkness');
     // uncomment the following to change columns count
     //$this->setColumns(4);
     // uncomment the following to enable autosave
     $this->setAutosave(true);
     // uncomment the following to disable dashboard header
     //$this->setShowHeaders(false);
     // uncomment the following to enable context menu and add needed items
     /*
      $this->menu = array(
      		array('label' => 'Index', 'url' => array('index')),
      );
     */
 }
コード例 #2
0
ファイル: DashController.php プロジェクト: FranHurtado/hotels
 public function init()
 {
     parent::init();
     // Create new field in your users table for store dashboard preference
     // Set table name, user ID field name, user preference field name
     $this->setTableParams('dashboard_page', 'user_id', 'title');
     // set array of portlets
     $this->setPortlets(array(array('id' => 1, 'title' => 'Ultimos clientes', 'content' => Customer::model()->Top(4)), array('id' => 2, 'title' => 'Ultimas reservas', 'content' => Book::model()->Top(4)), array('id' => 3, 'title' => 'Puntos cr&iacute;ticos', 'content' => Point::model()->Top(4)), array('id' => 4, 'title' => 'Ultimos boletines', 'content' => Mail::model()->Top(4)), array('id' => 5, 'title' => 'Informes', 'content' => Functions::lastReports()), array('id' => 6, 'title' => 'Ultimas facturas', 'content' => Invoice::model()->Top(4))));
     //set content BEFORE dashboard
     $this->setContentBefore();
     // uncomment the following to apply jQuery UI theme
     // from protected/components/assets/themes folder
     $this->applyTheme('ui-lightness');
     // uncomment the following to change columns count
     //$this->setColumns(4);
     // uncomment the following to enable autosave
     $this->setAutosave(true);
     // uncomment the following to disable dashboard header
     $this->setShowHeaders(false);
     // uncomment the following to enable context menu and add needed items
     /*
     $this->menu = array(
         array('label' => 'Index', 'url' => array('index')),
     );
     */
 }
コード例 #3
0
 public function init()
 {
     parent::init();
     // Create new field in your users table for store dashboard preference
     // Set table name, user ID field name, user preference field name
     $this->setTableParams('dashboard_page', 'user_id', 'title');
     // set array of portlets
     $this->setPortlets(array(array('id' => 1, 'title' => 'COMMODITIES ', 'content' => $this->getNum(1)), array('id' => 2, 'title' => 'CATEGORIES ', 'content' => $this->getNum(2)), array('id' => 3, 'title' => 'SUPPLIERS ', 'content' => $this->getNum(3)), array('id' => 4, 'title' => 'USERS ', 'content' => $this->getNum(4)), array('id' => 5, 'title' => 'ASSETS ', 'content' => $this->getNum(5)), array('id' => 6, 'title' => 'Info ', 'content' => $this->getInfo())));
     //set content AFTER dashboard
     //set content BEFORE dashboard
     $this->setContentBefore('<div align="center" style="font-size:20px;"><b>ASSET MANAGEMENT</b></div><br/>');
     // uncomment the following to apply jQuery UI theme
     // from protected/components/assets/themes folder
     $this->applyTheme('sunny');
     // uncomment the following to change columns count
     $this->setColumns(5);
     // uncomment the following to enable autosave
     $this->setAutosave(true);
     // uncomment the following to disable dashboard header
     //$this->setShowHeaders(false);
     // uncomment the following to enable context menu and add needed items
     /*
             $this->menu = array(
                 array('label' => 'Index', 'url' => array('index')),
             );*/
 }