diff options
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 = ""; +} + +?> |