File: /storage/v6964/avoxlive/public_html/application/views/backend/admin/add_advertisment.php
<!-- <div class="row">
<div class="col-sm-12">
<div class="panel panel-info">
<div class="panel-heading">
<div class="pull-right"><a href="#" data-perform="panel-collapse"><i class="fa fa-plus"></i> ADD NEW ADVERTISEMENT</a> <a href="#" data-perform="panel-dismiss"></a> </div>
</div>
<div class="panel-wrapper collapse out" aria-expanded="true">
<div class="panel-body"> -->
<div class="information">
<?php echo form_open(base_url() . 'admin/add_advertisment/add' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));?>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-md-12" for="example-text"><?php echo get_phrase('Add_new_advertisement');?> </label>
<div class="col-sm-12">
<input type="file" name="file_name" class="form-control" required>
</div>
</div>
<div class="form-group">
<button type="submit" class="btn btn-success btn-block btn-rounded btn-sm"><i class="fa fa-book"></i> <?php echo get_phrase('add');?></button>
</div>
</div>
</div>
<?php echo form_close();?>
</div>
<div class="information">
<?php echo form_open(base_url() . 'admin/add_logo/add' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));?>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-md-12" for="example-text"><?php echo get_phrase('Add_exhibition_logo');?> </label>
<div class="col-sm-12">
<input type="file" name="exhibition_logo" class="form-control" required>
</div>
<div class="col-sm-12">
<?php
if ($exhibition_id == $this->session->userdata('exhibition_id'))
{
?>
<?php $select = $this->crud_model->selectlogoAdminInsert();
foreach ($select as $key => $row) {
?>
<div class="top-left-part"><a class="logo" href="#"><b><img src="<?php echo base_url() ."uploads/system_logo/" . $row['exhibition_logo'] ;?>" class="img-fluid" alt="home"/></b><small class="hidden-xs" style="display:inline !important;"><strong>
<?php }?>
<?php }?>
</div>
</div>
</div>
<div class="form-group">
<button type="submit" class="btn btn-success btn-block btn-rounded btn-sm"><i class="fa fa-book"></i> <?php echo get_phrase('add');?></button>
</div>
</div>
</div>
<?php echo form_close();?>
</div>
<!-- </div>
</div>
</div>
</div>
</div> -->
<!----TABLE LISTING ENDS--->
<div class="row">
<div class="col-sm-12">
<div class="panel panel-info">
<div class="panel-body table-responsive">
<?php
// echo get_phrase('abcd');?>
<?php
// echo "Today is " . date("Y/m/d") . "<br>";
// echo "The time is " . date("h:i:sa");?>
<!-- <hr class="sep-2"> -->
<table id="example23" class="display nowrap" cellspacing="0" width="100%">
<thead>
<tr>
<!-- <th><?=get_phrase('uploaded_by')?></th> -->
<th><?=get_phrase('uploaded_image')?></th>
<th><?=get_phrase('action')?></th>
</tr>
</thead>
<tbody>
<?php
$select = $this->advertisment_model->selectAdvertismentAdminInsert();
foreach ($select as $key => $row) : ?>
<tr>
<!-- <td>
<?php
// $user = explode('-', $row['user_id']);
// $user_type = $user[1];
// $user_id = $user[1];
// echo $this->db->get_where($user_type,array($user_type.'_id' => $user_id))->row()->name;
?>
</td> -->
<!-- <td><?=$row['clinic_advertisment_id'];?></td> -->
<!-- <td><?=$row['file_name'];?></td> -->
<?php
$select = $this->crud_model->selectAdvertisementAdmin();
// foreach ($select as $key => $row) {
?>
<td>
<div class=""><a class="" href="#"><b><img src="<?php echo base_url() ."uploads/advertisment_image/" . $row['file_name'] ;?>" class="img-fluid" alt="home"/></b><small class="hidden-xs" style="display:inline !important; width:50%;"><strong>
</td>
<?php
// }?>
<td>
<a href="<?php echo base_url();?>admin/edit_advertisment/<?php echo $row['clinic_advertisment_id'];?>"><button
type="button" class="btn btn-info btn-rounded btn-sm"><i
class="fa fa-edit"></i> replace</button></a>
<a href="#"
onclick="confirm_modal('<?php echo base_url();?>admin/add_advertisment/delete/<?php echo $row['clinic_advertisment_id'];?>');"><button
type="button" class="btn btn-danger btn-rounded btn-sm"><i
class="fa fa-times"></i>delete</button></a>
</td>
</tr>
<?php endforeach;?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="panel panel-info">
<div class="panel-body table-responsive">
<?php
// echo get_phrase('abcd');?>
<?php
// echo "Today is " . date("Y/m/d") . "<br>";
// echo "The time is " . date("h:i:sa");?>
<!-- <hr class="sep-2"> -->
<table id="example23" class="display nowrap" cellspacing="0" width="100%">
<thead>
<tr>
<!-- <th><?=get_phrase('uploaded_by')?></th> -->
<th><?=get_phrase('uploaded_image')?></th>
<th><?=get_phrase('action')?></th>
</tr>
</thead>
<tbody>
<?php
$select = $this->crud_model->selectlogoAdminInsert();
foreach ($select as $key => $row) : ?>
<tr>
<!-- <td>
<?php
// $user = explode('-', $row['user_id']);
// $user_type = $user[1];
// $user_id = $user[1];
// echo $this->db->get_where($user_type,array($user_type.'_id' => $user_id))->row()->name;
?>
</td> -->
<!-- <td><?=$row['clinic_advertisment_id'];?></td> -->
<td><?=$row['exhibition_logo'];?></td>
<td>
<a href="<?php echo base_url();?>admin/edit_logo/<?php echo $row['exhibition_id'];?>"><button
type="button" class="btn btn-info btn-rounded btn-sm"><i
class="fa fa-edit"></i> replace</button></a>
<!-- <a onclick="showAjaxModal('<?php echo base_url();?>modal/popup/changelogo/<?php echo $row['exhibition_logo_id'];?>')" class="btn btn-info btn-rounded btn-xs">change logo<i class="fa fa-edit"></i></a> -->
<!-- <a href="#"
onclick="confirm_modal('<?php echo base_url();?>admin/add_advertisment/delete/<?php echo $row['clinic_advertisment_id'];?>');"><button
type="button" class="btn btn-danger btn-rounded btn-sm"><i
class="fa fa-times"></i>delete</button></a> -->
</td>
</tr>
<?php endforeach;?>
</tbody>
</table>
</div>
</div>
</div>
</div>