summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/view/master/foot.view.php8
-rw-r--r--app/view/master/topp.view.php17
-rw-r--r--app/view/sysconf/default.view.php2
3 files changed, 27 insertions, 0 deletions
diff --git a/app/view/master/foot.view.php b/app/view/master/foot.view.php
index c295455..6220f89 100644
--- a/app/view/master/foot.view.php
+++ b/app/view/master/foot.view.php
@@ -1,2 +1,10 @@
<script type="text/javascript" src="<?=$mod->ar()?>/assets/js/jquery.min.js"></script>
<script type="text/javascript" src="<?=$mod->ar()?>/assets/js/bootstrap.min.js"></script>
+
+<?php if ($mod->isError() || $mod->isWarning() || $mod->isNotice()) { ?>
+ <script type="text/javascript">
+ $(window).load(function() {
+ $("#noticeModal").modal("show");
+ });
+ </script>
+<?php } ?>
diff --git a/app/view/master/topp.view.php b/app/view/master/topp.view.php
new file mode 100644
index 0000000..eef344e
--- /dev/null
+++ b/app/view/master/topp.view.php
@@ -0,0 +1,17 @@
+<?php if ($mod->isError() || $mod->isWarning() || $mod->isNotice()) { ?>
+ <div id="noticeModal" class="modal fade" tabindex="-1" role="dialog">
+ <div class="modal-dialog modal-lg" role="document">
+ <div class="modal-content">
+ <div class="modal-body">
+ Something happened.
+ </div>
+
+ <div class="modal-footer">
+ <button type="button" class="btn btn-default" data-dismiss="modal">
+ <span class="glyphicon glyphicon-ok"></span> Got it
+ </button>
+ </div>
+ </div>
+ </div>
+ </div>
+<?php } ?>
diff --git a/app/view/sysconf/default.view.php b/app/view/sysconf/default.view.php
index b6b85ac..1ecedd8 100644
--- a/app/view/sysconf/default.view.php
+++ b/app/view/sysconf/default.view.php
@@ -12,6 +12,8 @@
</head>
<body>
+ <?php include "view/master/topp.view.php"; ?>
+
<?php include "view/sysconf/user.modal.view.php"; ?>
<?php include "view/sysconf/group.modal.view.php"; ?>
<?php include "view/sysconf/pad.modal.view.php"; ?>