public function initParam()
 {
     $param = \fec\helpers\CRequest::param();
     if (empty($param['pageNum'])) {
         $param['pageNum'] = $this->_pageNum;
     }
     if (empty($param['numPerPage'])) {
         $param['numPerPage'] = $this->_numPerPage;
     }
     if (empty($param['orderField'])) {
         $param['orderField'] = $this->_orderField;
     }
     if (empty($param['orderField'])) {
         $param['orderField'] = $this->_paramKey;
     }
     if (empty($param['orderDirection'])) {
         $param['orderDirection'] = $this->_sortDirection;
     }
     $this->_param = $param;
     $this->_currentUrl = CUrl::getCurrentUrlNoParam();
     $this->_currentParamUrl = CUrl::getCurrentUrl();
     $this->_addUrl = $this->_addUrl ? $this->_addUrl : $this->_currentUrl;
     $this->_editUrl = $this->_editUrl ? $this->_editUrl : $this->_currentUrl;
     $this->_deleteUrl = $this->_deleteUrl ? $this->_deleteUrl : $this->_currentUrl;
 }
 public static function saveSystemLog()
 {
     $logConfig = CConfig::param("systemlog");
     //var_dump($logConfig);
     if (!is_array($logConfig) || !isset($logConfig['enable']) || !$logConfig['enable']) {
         return;
     }
     $systemLog = new AdminLog();
     $user = Yii::$app->user->identity;
     if ($user) {
         $url_key = '/' . Yii::$app->controller->module->id . '/' . Yii::$app->controller->id;
         $username = $user['username'];
         $person = $user['person'];
         $currentData = date('Y-m-d H:i:s');
         $url = CUrl::getCurrentUrl();
         $systemLog->account = $username;
         $systemLog->person = $person;
         $systemLog->created_at = $currentData;
         $systemLog->url = $url;
         $systemLog->url_key = $url_key;
         $systemLog->menu = self::getMenuByUrlKey($url_key);
         $systemLog->save();
     }
 }
Beispiel #3
0
echo \fec\helpers\CUrl::getCurrentUrl();
?>
">
	<?php 
echo CRequest::getCsrfInputHtml();
?>
	<?php 
echo $pagerForm;
?>
	
</form>


<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="<?php 
echo \fec\helpers\CUrl::getCurrentUrl();
?>
" method="post">
		<?php 
echo CRequest::getCsrfInputHtml();
?>
		<div class="searchBar">
			<?php 
echo $searchBar;
?>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<?php