File: /home/barbeatleanalyti/www/m.beatleanalytics.com/application/views/beatleAdmin/industrytype.php
<?php
include('include/header.php');
?>
<script>
</script>
<div class="right_col" role="main">
<div class="">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2 id="title_">Add industry type</h2>
<!--<ul class="nav navbar-right panel_toolbox">
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Settings 1</a>
</li>
<li><a href="#">Settings 2</a>
</li>
</ul>
</li>
<li><a class="close-link"><i class="fa fa-close"></i></a>
</li>
</ul>-->
<div class="clearfix"></div>
</div>
<div class="x_content">
<form class="form-horizontal form-label-left" novalidate name="createForm" method="post" id="createForm" action="" enctype="multipart/form-data" >
<?php
$acn = $this->uri->segment(3);
$typeid = $this->uri->segment(4);
$name = '';
$sVal = 'Add now';
$sVal1 = '';
$acnHdn = '<input type="hidden" name="actionfollow" id="actionfollow" value="adddata">';
if(!empty($acn) && $acn == 'edit' && !empty($typeid) && $typeid != 0 && $typeid != ''){
echo '<script>document.getElementById("title_").innerHTML = "Edit industry type"</script>';
$name = $indtypedata[0]->name;
$sVal = 'Edit now';
$sVal1 = '<a href="'.base_url().'index.php/beatleAdmin/industrytype" type="submit" class="btn btn-info">Add new industry type data</a>';
$acnHdn = '<input type="hidden" name="actionfollow" id="actionfollow" value="editdata">';
}
echo $acnHdn;
?>
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Industry Type*<span class="required"></span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" class="form-control col-md-7 col-xs-12" name="name" placeholder="Industry type name here.. e.g. Restaurant,GYM,SPA ect.." required type="text" value="<?php echo $name; ?>">
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-3">
<input type="submit" class="btn btn-success" value="<?php echo $sVal; ?>"> <?php echo $sVal1; ?>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row" role="main">
<div class="">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2>Industry type list<small></small></h2>
<div class="clearfix"></div>
</div>
<div class="x_content">
<table id="datatable" class="table table-striped table-bordered">
<thead>
<tr>
<th width="80%">Name</th>
<th width="10%">Edit</th>
</tr>
</thead>
<tbody>
<?php
if (empty($all_ind_type_data)){
?>
<tr class="ng-hide">
<td colspan="14"><h1 class="text-center text-muted ng-scope">No Industry</h1><!-- end ngIf: !UsersList.ui.loading --></td>
</tr>
<?php } else {
foreach ($all_ind_type_data as $keyind=>$valind){
?>
<tr>
<td><?php echo $valind->name;?></td>
<td align="center"><a href="<?php echo base_url()?>index.php/beatleAdmin/industrytype/edit/<?php echo $valind->indtypeid;?>"><i class="fa fa-pencil-square-o" style="font-size:30px;" aria-hidden="true"></i></a>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include ('include/footer.php');?>