Sergio Cambra
2014-06-30 4824901a27fa6f2f3fc14955e3353b8ca58cc781
display warning message instead of info
3 files modified
16 ■■■■ changed files
interface/web/client/domain_edit.php 2 ●●● patch | view | raw | blame | history
interface/web/client/domain_list.php 6 ●●●● patch | view | raw | blame | history
interface/web/client/templates/domain_list.htm 8 ●●●● patch | view | raw | blame | history
interface/web/client/domain_edit.php
@@ -209,7 +209,7 @@
            $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);
        }
    }
interface/web/client/domain_list.php
@@ -46,9 +46,9 @@
$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';
interface/web/client/templates/domain_list.htm
@@ -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>