Commit 4824901a authored by Sergio's avatar Sergio
Browse files

display warning message instead of info

parent b91328b2
......@@ -209,7 +209,7 @@ class page_action extends tform_actions {
$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);
}
}
......
......@@ -46,9 +46,9 @@ $app->auth->check_module_permissions('client');
$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';
......
......@@ -5,12 +5,12 @@
<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>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment