diff options
author | Malf Furious <m@lfurio.us> | 2018-07-20 04:37:05 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-07-20 04:37:05 -0400 |
commit | 7349f221c65b4f52c58efff444399b7d0cf368f6 (patch) | |
tree | 74e59c39bce015d4da8c1c2a05ada7c18866d702 /app/model | |
parent | 2085a654e1d4df2cdf636d9a59445d2e42f72143 (diff) | |
download | scrott-7349f221c65b4f52c58efff444399b7d0cf368f6.tar.gz scrott-7349f221c65b4f52c58efff444399b7d0cf368f6.zip |
Add the notice modal
Diffstat (limited to 'app/model')
-rw-r--r-- | app/model/noticemodal.php | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/app/model/noticemodal.php b/app/model/noticemodal.php new file mode 100644 index 0000000..c1e99c3 --- /dev/null +++ b/app/model/noticemodal.php @@ -0,0 +1,40 @@ +<?php + +/* + * SCROTT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * For more information, please refer to UNLICENSE + */ + +require_once "class/globals.php"; + +prep: + +if (isError(ERROR)) +{ + $noticeModalAlertClass = "alert-danger"; + $noticeModalGlyphicon = "glyphicon-remove-sign"; +} +else if (isError(WARNING)) +{ + $noticeModalAlertClass = "alert-warning"; + $noticeModalGlyphicon = "glyphicon-exclamation-sign"; +} +else if (isError(NOTICE)) +{ + $noticeModalAlertClass = "alert-info"; + $noticeModalGlyphicon = "glyphicon-info-sign"; +} +else +{ + $noticeModalAlertClass = ""; + $noticeModalGlyphicon = ""; +} + +?> |