예제 #1
0
 /**
  * 显示项目信息
  */
 function actionProjects()
 {
     $page = isset($_GET['page']) ? (int) $_GET['page'] : 0;
     FLEA::loadClass('FLEA_Helper_Pager');
     $table =& $this->_modelProjects->getTable();
     $pager =& new FLEA_Helper_Pager($table, $page, 20, null, 'project_id DESC');
     $pk = $table->primaryKey;
     $rowset = $pager->findAll();
     $this->_setBack();
     include APP_DIR . '/ZobProjects.php';
 }
예제 #2
0
 /**
  * 保存帖子
  */
 function actionSave()
 {
     __TRY();
     $this->_modelProjects->saveProject($_POST);
     $ex = __CATCH();
     if (__IS_EXCEPTION($ex)) {
         return $this->_editProject($post, $ex->getMessage());
     }
     js_alert(_T('ui_c_success_post'), '', $this->_url('index'));
 }