0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
ADMIN
/
[
Home
]
File: add_division.php
<?php $MAIN_HEADING="Add Division" ; $SUB_HEADING="" ; require_once "add_division_cntrl.php"; include( "include/adminheader.php"); require_once "../lib/config.php"; ?> <?php include( "include/alert_message.php"); ?> <br> <br> <br> <form action="add_division_cntrl.php" method="post" class="form-horizontal form-label-left" name="form1" id="form1" data-parsley-validate=""> <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Division Name </label> <div class="col-md-6 col-sm-6 col-xs-12"> <input type="text" class="form-control col-md-7 col-xs-12" required name="name" id="name" value="<?php if (isset($name) && $name!=" ") { echo $name; } ?>" /> <ul class="parsley-errors-list filled" id="parsley-id-5"> <li class="parsley-required"> <?php if(isset($error[ 'name'])) { echo $error[ 'name']; }?> </li> </ul> </div> </div> <div class="ln_solid"></div> <div class="form-group"> <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-4"> <button class="btn btn-success" type="submit" name="save" id="save" value="SAVE"><i class="fa fa-plus-circle"></i> Submit</button> </div> </div> </form> </div> </div> </div> <div class="col-md-12 col-sm-12 col-xs-12"> <div class="x_panel"> <div class="x_content"> <div class=""> <table class="table table-striped table-bordered " id="table"> <thead> <tr> <th>Sl No</th> <th>Name</th> <th>Created On</th> </tr> </thead> <tbody> <?php $i=0; if(!empty($BHM)){ foreach ($BHM as $value) { ?> <tr> <td><?php echo ++$i ?></td> <td><?php echo $value["name"] ?></td> <td><?php echo date("m-D-Y" ,strtotime($value["created_on"])) ?></td> </tr> <?php } }else{ echo '<tr class="odd"><td valign="top" colspan="11" class="dataTables_empty">No matching records found</td></tr>'; } ?> </tbody> <tbody> </tbody> </table> </div> </div> </div> </div> <?php include "include/footer.php"; ?>