PHP Classes
elePHPant
Icontem

File: application/views/container.php

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra  >  Attendance Login System  >  application/views/container.php  >  Download  
File: application/views/container.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Attendance Login System
Manage and authenticate company employees users
Author: By
Last change:
Date: 1 year ago
Size: 1,906 bytes
 

 

Contents

Class file image Download
<!--[if lt IE 8]>
        <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
        <![endif]-->

    <?php
       
//for warning -> flash_message
        //for info -> success_message
       
       
$arr = $this->session->flashdata();
        if(!empty(
$arr['flash_message'])){
           
$html = '<div class="container" style="margin-top: 10px;">';
           
$html .= '<div class="alert alert-warning alert-dismissible" role="alert">';
           
$html .= '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>';
           
$html .= $arr['flash_message'];
           
$html .= '</div>';
           
$html .= '</div>';
            echo
$html;
        }else if (!empty(
$arr['success_message'])){
           
$html = '<div class="container" style="margin-top: 10px;">';
           
$html .= '<div class="alert alert-info alert-dismissible" role="alert">';
           
$html .= '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>';
           
$html .= $arr['success_message'];
           
$html .= '</div>';
           
$html .= '</div>';
            echo
$html;
        }else if (!empty(
$arr['danger_message'])){
           
$html = '<div class="container" style="margin-top: 10px;">';
           
$html .= '<div class="alert alert-danger alert-dismissible" role="alert">';
           
$html .= '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>';
           
$html .= $arr['danger_message'];
           
$html .= '</div>';
           
$html .= '</div>';
            echo
$html;
        }
   
?>
<div class="container">
        <div class="row">