Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
4824901a
Commit
4824901a
authored
Jun 30, 2014
by
Sergio
Browse files
display warning message instead of info
parent
b91328b2
Changes
3
Hide whitespace changes
Inline
Side-by-side
interface/web/client/domain_edit.php
View file @
4824901a
...
...
@@ -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
);
}
}
...
...
interface/web/client/domain_list.php
View file @
4824901a
...
...
@@ -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'
;
...
...
interface/web/client/templates/domain_list.htm
View file @
4824901a
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment