PHP Classes

File: application/views/container.php

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   CodeIgniter ion Auth Login   application/views/container.php   Download  
File: application/views/container.php
Role: Example script
Content type: text/plain
Description: Example script
Class: CodeIgniter ion Auth Login
Manage user records in a database with CodeIgniter
Author: By
Last change:
Date: 7 years 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">