PHP Classes

File: application/views/floors/editOldFloor.php

Recommend this page to a friend!
  Classes of Kishor Mali   PHP Hotel Booking System   application/views/floors/editOldFloor.php   Download  
File: application/views/floors/editOldFloor.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Hotel Booking System
Manage the booking of hotel rooms for customers
Author: By
Last change:
Date: 2 months ago
Size: 5,277 bytes
 

Contents

Class file image Download
<?php

$floorId
= '';
$floorName = '';
$floorCode = '';
$floorDescription = '';

if(!empty(
$floorInfo))
{
    foreach (
$floorInfo as $record)
    {
       
$floorId = $record->floorId;
       
$floorName = $record->floorName;
       
$floorCode = $record->floorCode;
       
$floorDescription = $record->floorDescription;
    }
}


?>
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        Floors Management
        <small>Edit Floor</small>
      </h1>
    </section>
   
    <section class="content">
   
        <div class="row">
            <!-- left column -->
            <div class="col-md-8">
              <!-- general form elements -->
               
                <div class="box box-primary">
                    <div class="box-header">
                        <h3 class="box-title">Enter Floors Details</h3>
                    </div><!-- /.box-header -->
                    <!-- form start -->
                   
                    <form role="form" id="addNewFloors" action="<?php echo base_url() ?>updateOldFloor" method="post" role="form">
                        <div class="box-body">
                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label for="floorCode">Floor Code</label>
                                        <input type="text" value="<?php echo $floorCode; ?>" class="form-control" id="floorCode" name="floorCode" maxlength="10">
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label for="floorName">Floor Name</label>
                                        <input type="text" value="<?php echo $floorName; ?>" class="form-control" id="floorName" name="floorName" maxlength="50">
                                        <input type="hidden" value="<?php echo $floorId; ?>" name="floorId" />
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-12">
                                    <div class="form-group">
                                        <label for="floorDescription">Floor Description</label>
                                        <textarea name="floorDescription" id="floorDescription" style="width:100%"><?php echo $floorDescription; ?></textarea>
                                    </div>
                                </div>
                            </div>
                        </div><!-- /.box-body -->
   
                        <div class="box-footer">
                            <input type="submit" class="btn btn-primary" value="Submit" />
                            <input type="reset" class="btn btn-default" value="Reset" />
                        </div>
                    </form>
                </div>
            </div>
            <div class="col-md-4">
                <?php
                    $this
->load->helper('form');
                   
$error = $this->session->flashdata('error');
                    if(
$error)
                    {
               
?>
<div class="alert alert-danger alert-dismissable">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                    <?php echo $this->session->flashdata('error'); ?>
                </div>
                <?php } ?>
<?php
                    $success
= $this->session->flashdata('success');
                    if(
$success)
                    {
               
?>
<div class="alert alert-success alert-dismissable">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                    <?php echo $this->session->flashdata('success'); ?>
</div>
                <?php } ?>

                <div class="row">
                    <div class="col-md-12">
                        <?php echo validation_errors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>'); ?>
</div>
                </div>
            </div>
        </div>
    </section>
   
</div>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
tinymce.init({
    selector: "textarea",
    plugins: [
        "advlist autolink lists link image charmap print preview anchor",
        "searchreplace visualblocks code fullscreen",
        "insertdatetime media table contextmenu paste"
    ],
    toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"
});
</script>