* @package misc * @version $Id: model.php 4129 2013-01-18 01:58:14Z wwccss $ * @link http://www.zentao.net */ ?> '; } /** * Get table and status. * * @param string $type * * @access public * @return array|false */ public function getTableAndStatus($type = 'check') { if($type != 'check' and $type != 'repair') return false; $tables = array(); $stmt = $this->dao->query("show full tables"); while($table = $stmt->fetch(PDO::FETCH_ASSOC)) { $tableName = $table["Tables_in_{$this->config->db->name}"]; $tableType = strtolower($table['Table_type']); if($tableType == 'base table') { $tableStatus = $this->dao->query("$type table $tableName")->fetch(); $tables[$tableName] = strtolower($tableStatus->Msg_text); } } return $tables; } /** * Get remind. * * @access public * @return string */ public function getRemind() { $remind = ''; if(!empty($this->config->global->showAnnual) and empty($this->config->global->annualShowed)) { $remind = '
' . sprintf($this->lang->misc->annualDesc, helper::createLink('report', 'annualData')) . '
'; $this->loadModel('setting')->setItem("{$this->app->user->account}.common.global.annualShowed", 1); } return $remind; } }