Skip to content

Commit 3069072

Browse files
committed
error display window
1 parent 0f7c02e commit 3069072

28 files changed

+28
-125
lines changed

web/templates/admin/list_backup.html

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,7 @@
1919
</select>
2020
<input type="submit" name="ok" value="" class="submenu-button" style="width: 36px;">
2121
</div>
22-
<?php
23-
if (!empty($_SESSION['backup_msg'])) {
24-
?>
25-
<div>
26-
<script type="text/javascript">
27-
$(function() {
28-
$( "#dialog:ui-dialog" ).dialog( "destroy" );
29-
$( "#dialog-message" ).dialog({
30-
modal: true,
31-
buttons: {
32-
Ok: function() {
33-
$( this ).dialog( "close" );
34-
}
35-
}
36-
});
37-
});
38-
</script>
39-
<div id="dialog-message" title="<?php print __('Backup System') ?>">
40-
<p><?php echo $_SESSION['backup_msg'] ?></p>
41-
</div>
42-
</div>
43-
<?php
44-
unset($_SESSION['backup_msg']);
45-
}
46-
?>
22+
<?php display_error_block(); ?>
4723
</td>
4824
</tr>
4925
</table>

web/templates/admin/list_backup_detail.html

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,7 @@
2020
<input type="hidden" name="backup" value="<?php echo $_GET['backup'] ?>">
2121
<input type="submit" name="ok" value="" class="submenu-button" style="width: 36px;">
2222
</div>
23-
<?php
24-
if (!empty($_SESSION['restore_msg'])) {
25-
?>
26-
<div>
27-
<script type="text/javascript">
28-
$(function() {
29-
$( "#dialog:ui-dialog" ).dialog( "destroy" );
30-
$( "#dialog-message" ).dialog({
31-
modal: true,
32-
buttons: {
33-
Ok: function() {
34-
$( this ).dialog( "close" );
35-
}
36-
}
37-
});
38-
});
39-
</script>
40-
<div id="dialog-message" title="<?php print __('Backup System') ?>">
41-
<p><?php echo $_SESSION['restore_msg'] ?></p>
42-
</div>
43-
</div>
44-
<?php
45-
unset($_SESSION['restore_msg']);
46-
}
47-
?>
23+
<?php display_error_block(); ?>
4824
</td>
4925
</tr>
5026
</table>

web/templates/admin/list_cron.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
</select>
2222
<input type="submit" name="ok" value="" class="submenu-button" style="width: 36px;">
2323
</div>
24+
<?php display_error_block(); ?>
2425
</td>
2526
</tr>
2627
</table>

web/templates/admin/list_db.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
</select>
2222
<input type="submit" name="ok" value="" class="submenu-button" style="width: 36px;">
2323
</div>
24+
<?php display_error_block(); ?>
2425
</td>
2526
</tr>
2627
</table>

web/templates/admin/list_dns.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
</select>
2222
<input type="submit" name="ok" value="" class="submenu-button" style="width: 36px;">
2323
</div>
24+
<?php display_error_block(); ?>
2425
</td>
2526
</tr>
2627
</table>

web/templates/admin/list_dns_rec.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
</select>
2222
<input type="submit" name="ok" value="" class="submenu-button" style="width: 36px;">
2323
</div>
24+
<?php display_error_block(); ?>
2425
</td>
2526
</tr>
2627
</table>

web/templates/admin/list_ip.html

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,7 @@
2020
</select>
2121
<input type="submit" name="ok" value="" class="submenu-button" style="width: 36px;">
2222
</div>
23-
<?php
24-
if (!empty($_SESSION['error_msg'])) {
25-
?>
26-
<div>
27-
<script type="text/javascript">
28-
$(function() {
29-
$( "#dialog:ui-dialog" ).dialog( "destroy" );
30-
$( "#dialog-message" ).dialog({
31-
modal: true,
32-
buttons: {
33-
Ok: function() {
34-
$( this ).dialog( "close" );
35-
}
36-
}
37-
});
38-
});
39-
</script>
40-
<div id="dialog-message" title="Error">
41-
<p><?php echo $_SESSION['error_msg'] ?></p>
42-
</div>
43-
</div>
44-
<?php
45-
unset($_SESSION['error_msg']);
46-
}
47-
?>
23+
<?php display_error_block(); ?>
4824
</td>
4925
</tr>
5026
</table>

web/templates/admin/list_log.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<input type="submit" value="<?php print __('Search');?>" class="submenu-button" style="width: 96px;">
88
</form>
99
</div>
10+
<?php display_error_block(); ?>
1011
</td>
1112
</tr>
1213
</table>

web/templates/admin/list_mail.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
</select>
2222
<input type="submit" name="ok" value="" class="submenu-button" style="width: 36px;">
2323
</div>
24+
<?php display_error_block(); ?>
2425
</td>
2526
</tr>
2627
</table>

web/templates/admin/list_mail_acc.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
</select>
2222
<input type="submit" name="ok" value="" class="submenu-button" style="width: 36px;">
2323
</div>
24+
<?php display_error_block(); ?>
2425
</td>
2526
</tr>
2627
</table>

0 commit comments

Comments
 (0)