HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
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">&nbsp;
                                <div class="pull-right"><a href="#" data-perform="panel-collapse"><i class="fa fa-plus"></i>&nbsp;&nbsp;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');?>&nbsp;</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>&nbsp;<?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');?>&nbsp;</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>&nbsp;<?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>