display warning message instead of info
| | |
| | | $client_group_id = $app->functions->intval($this->dataRecord["client_group_id"]); |
| | | $app->db->query("UPDATE domain SET sys_groupid = $client_group_id, sys_perm_group = 'ru' WHERE domain_id = ".$this->id); |
| | | $lng_text = $app->lng("domain_owner_changed"); |
| | | $_SESSION['show_info_msg'] = str_replace("{domain}", $this->dataRecord["domain"], $lng_text); |
| | | $_SESSION['show_warning_msg'] = str_replace("{domain}", $this->dataRecord["domain"], $lng_text); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | $app->uses('listform_actions'); |
| | | |
| | | if(isset($_SESSION['show_info_msg'])) { |
| | | $app->tpl->setloop('info', array(array('info_msg' => '<p>'.$_SESSION['show_info_msg'].'</p>'))); |
| | | unset($_SESSION['show_info_msg']); |
| | | if(isset($_SESSION['show_warning_msg'])) { |
| | | $app->tpl->setloop('warning', array(array('warning_msg' => '<p>'.$_SESSION['show_warning_msg'].'</p>'))); |
| | | unset($_SESSION['show_warning_msg']); |
| | | } |
| | | |
| | | $app->listform_actions->SQLOrderBy = 'ORDER BY domain.domain'; |
| | |
| | | |
| | | <div class="pnl_toolsarea"> |
| | | <div> |
| | | <tmpl_if name='info'> |
| | | <div class="systemmonitor-state state-info"> |
| | | <tmpl_if name='warning'> |
| | | <div class="systemmonitor-state state-warning"> |
| | | <div class="status"></div> |
| | | <div class="statusMsg"> |
| | | <tmpl_loop name="info"> |
| | | {tmpl_var name='info_msg'} |
| | | <tmpl_loop name="warning"> |
| | | {tmpl_var name='warning_msg'} |
| | | </tmpl_loop> |
| | | </div> |
| | | </div> |