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/system_settings.php
<div class="row">

	<div class="col-sm-6">
		<div class="panel panel-info">

			<div class="panel-heading"><i class="fa fa-gear"></i>  <?php echo get_phrase('System Settings');?></div>
			<div class="panel-body table-responsive">

			<h1>
				<?php foreach ($edit_profile as $key => $row): ?>
					<?php
						echo $this->db->get_where('exhibition', array('exhibition_id' => $row['exhibition_id']))->row()->exhibition_name.'<br>';
						echo $row['exhibition_id'];
					?>
					<?php endforeach ?>
				</h1>

				<?php echo form_open(base_url(). 'systemsetting/system_settings/do_update', array('class' => 'form-horizontal form-groups-bordered', 'enctype'=> 'multipart/form-data'));?>

				<div class="form-group">
					<label class="col-md-12" for="example-text"><?php echo get_phrase('System ID');?></label>
					<div class="col-sm-12">
					<?php
						//echo $this->db->get_where('exhibition', array('exhibition_id' => $this->session->userdata('exhibition_id')))->row()->exhibition_name;
						//echo $this->db->get_where('department', array('department_id' => '2'))->row()->name;
						//echo $this->db->get_where('exhibition', array('exhibition_id' => $this->session->userdata('exhibition_id')))->row()->exhibition_name;
						// $this->session->userdata('exhibition_id');
					?>
					<input type="text" class="form-control" name="exhibition_id" readonly value="<?php  echo ($this->db->get_where('settings', array('type' => 'exhibition_id'))->row()->description)?$this->db->get_where('settings', array('type' => 'exhibition_id'))->row()->description:$this->session->userdata('exhibition_id');?>">
					 <!--<input type="text" class="form-control" name="system_name" value="<?php  //echo ($this->db->get_where('settings', array('type' => 'exhibition_id'))->row()->description)?$this->db->get_where('settings', array('type' => 'exhibition_id'))->row()->description:$this->session->userdata('exhibition_id');?>"> -->

					 <!-- <input type="text" class="form-control" name="system_name" value=""> -->

				</div>
				</div>


				<div class="form-group">
					<label class="col-md-12" for="example-text"><?php echo get_phrase('System Name');?></label>
					<div class="col-sm-12">
						<input type="text" class="form-control" name="system_title" value=" <?php echo $this->db->get_where('exhibition', array('exhibition_id' => $this->session->userdata('exhibition_id')))->row()->exhibition_name;?>">
					</div>
				</div>


				<div class="form-group">
					<label class="col-md-12" for="example-text"><?php echo get_phrase('System Address');?></label>
					<div class="col-sm-12">
						<input type="text" class="form-control" name="address" value="<?php echo $this->db->get_where('settings', array('type' => 'address'))->row()->description;?>">
					</div>
				</div>


				<div class="form-group">
					<label class="col-md-12" for="example-text"><?php echo get_phrase('System Phone');?></label>
					<div class="col-sm-12">
						<input type="text" class="form-control" name="phone" value="<?php echo $this->db->get_where('settings', array('type' => 'phone'))->row()->description;?>">
					</div>
				</div>

				<!-- <div class="form-group">
					<label class="col-md-12" for="example-text"><?php echo get_phrase('Paypal Email');?></label>
					<div class="col-sm-12">
						<input type="text" class="form-control" name="paypal_email" value="<?php echo $this->db->get_where('settings', array('type' => 'paypal_email'))->row()->description;?>">
					</div>
				</div>

				<div class="form-group">
					<label class="col-md-12" for="example-text"><?php echo get_phrase('Currency');?></label>
					<div class="col-sm-12">
						<input type="text" class="form-control" name="currency" value="<?php echo $this->db->get_where('settings', array('type' => 'currency'))->row()->description;?>">
					</div>
				</div> -->

				<div class="form-group">
					<label class="col-md-12" for="example-text"><?php echo get_phrase('System Email');?></label>
					<div class="col-sm-12">
						<input type="text" class="form-control" name="system_email" value="<?php echo $this->db->get_where('settings', array('type' => 'system_email'))->row()->description;?>">
					</div>
				</div>

				<!-- <div class="form-group">
					<label class="col-md-12" for="example-text"><?php echo get_phrase('Text Alignment');?></label>
					<div class="col-sm-12">

						<select name="text_align" class="form-control">
							<?php $align =  $this->db->get_where('settings', array('type' => 'text_align'))->row()->description;?>
								<option value="left-to-right" <?php if ($align == 'left-to-right') echo 'selected';?>> Left to right</option>
								<option value="right-to-left" <?php if ($align == 'right-to-left') echo 'selected';?>> Right to left</option>
						</select>
					</div>
				</div> -->

				<!-- <div class="form-group">
                   <label class="col-md-12" for="example-text"><?php echo get_phrase('language'); ?></label>
                    <div class="col-sm-12">
                        <select name="language" class="form-control select2">
                            <?php
                            $fields = $this->db->list_fields('language');
                            foreach ($fields as $key => $field) {
                                if ($field == 'phrase_id' || $field == 'phrase')
                                    continue;

                                $current_default_language = $this->db->get_where('settings', array('type' => 'language'))->row()->description;
                                ?>
                                <option value="<?php echo $field; ?>"
                                        <?php if ($current_default_language == $field) echo 'selected'; ?>> <?php echo $field; ?> </option>
                                        <?php
                                    }
                                    ?>
                        </select>
                    </div>
                </div> -->



				<!-- <div class="form-group">
					<label class="col-md-12" for="example-text"><?php echo get_phrase('Running Session');?></label>
					<div class="col-sm-12">


					<select name="running_session" class="form-control select2" >
                          <?php $running_session = $this->db->get_where('settings', array('type' => 'session'))->row()->description; ?>
                          <option value=""><?php echo get_phrase('select_running_session');?></option>
                          <?php for($i = 0; $i < 10; $i++):?>
                              <option value="<?php echo (2019+$i);?>-<?php echo (2019+$i+1);?>"
                                <?php if($running_session == (2019+$i).'-'.(2019+$i+1)) echo 'selected';?>>
                                  <?php echo (2019+$i);?>-<?php echo (2019+$i+1);?>
                              </option>
                          <?php endfor;?>
                          </select>


					</div>
				</div>



				<div class="form-group">
					<label class="col-md-12" for="example-text"><?php echo get_phrase('System Footer');?></label>
					<div class="col-sm-12">
						<input type="text" class="form-control" name="footer" value="<?php echo $this->db->get_where('settings', array('type' => 'footer'))->row()->description;?>">
					</div>
				</div> -->


				<div class="form-group">
					<button type="submit" class="btn save-button"><i class="fa fa-save"></i>  <?php echo get_phrase('save');?></button>
				</div>



				<?php echo form_close();?>







			</div>

		</div>

	</div>


<div class="col-sm-6">
<div class="panel panel-info">
<div class="panel-heading"> <i class="fa fa-list"></i>&nbsp;&nbsp;<?php echo get_phrase('THEME SETTINGS'); ?></div>
<div class="panel-wrapper collapse in" aria-expanded="true">
<div class="panel-body table-responsive">

<?php
//  echo form_open(base_url() . 'systemsetting/system_settings/upload_logo', array('class' => 'form-horizontal form-groups-bordered validate', 'target' => '_top', 'enctype' => 'multipart/form-data'));
        ?>
					<!-- <div class="form-group">
					<label class="col-sm-12"><?php echo get_phrase('browse_image');?>*</label>
					<div class="col-sm-12">
  		  			<input type='file' class="form-control" name="userfile" onChange="readURL(this);" required>
       				<img id="blah" src="<?php echo base_url(); ?>uploads/logo.png" alt="" height="120" width="120"/>
					</div>
					</div>
					<div class="form-group">
					<button class="btn save-button"><i class="fa fa-save"></i>&nbsp;<?php echo get_phrase('Update Logo');?></button>
					</div> -->
				    <?php
					//  echo form_close(); ?>


				<!-- THEME SETTINGS -->
<!-- <div class="panel-heading"> <i class="fa fa-list"></i>&nbsp;&nbsp;<?php echo get_phrase('THEME SETTINGS'); ?></div> -->

				<!-- <hr> -->
				<?php
				echo form_open(base_url() . 'systemsetting/system_settings/themeSettings', array('class' => 'form-horizontal form-groups-bordered validate', 'target' => '_top', 'enctype' => 'multipart/form-data'));
				// echo form_open(base_url() . 'systemsetting/theme_change/update_themee', array('class' => 'form-horizontal form-groups-bordered validate', 'target' => '_top', 'enctype' => 'multipart/form-data'));
        ?>
				<!-- <div class="radio radio-custom">
                  <input type="radio" <?php if($skin = $this->db->get_where('exhibition_settings' , array('exhibition_id' => $this->session->userdata('exhibition_id')))->row()->primary_color == 'blue-dark') echo 'checked';?> name="primary_color" id="radio2" value="blue-dark">
                  <label for="radio2"> Dark Blue </label>
				</div>

				<div class="radio radio-success">
                  <input type="radio" <?php if($skin = $this->db->get_where('exhibition_settings' , array('exhibition_id' => $this->session->userdata('exhibition_id')))->row()->primary_color == 'blue-green')  echo 'checked';?> name="skin_colour" id="radio3" value="green">
                  <label for="radio3"> Green </label>
				</div> -->

				<!-- <div class="radio radio-gray">
                  <input type="radio" <?php if($skin = $this->db->get_where('settings' , array('type'=>'skin_colour'))->row()->description == 'pink_dark') echo 'checked';?> name="skin_colour" id="radio4" value="pink_dark">
                  <label for="radio4"> Dark pink </label>
				</div> -->
				<!-- <div class="radio radio-black">
                  <input type="radio" <?php if($skin = $this->db->get_where('settings' , array('type'=>'skin_colour'))->row()->description == 'black') echo 'checked';?> name="skin_colour" id="radio5" value="black">
                  <label for="radio5"> Black </label>
				</div> -->

				<!-- <div class="radio radio-purple">
                  <input type="radio" <?php if($skin = $this->db->get_where('settings' , array('type'=>'skin_colour'))->row()->description == 'purple') echo 'checked';?> name="skin_colour" id="radio6" value="purple">
                  <label for="radio6"> Purple </label>
				</div> -->

				<!-- <div class="radio radio-info">
                  <input type="radio" <?php if($skin = $this->db->get_where('settings' , array('type'=>'skin_colour'))->row()->description == 'blue') echo 'checked';?> name="skin_colour" id="radio7" value="blue">
                  <label for="radio7"> Blue </label>
				</div> -->


				<div class="form-group">
                 	<label class="col-md-12" for="example-text"><?php echo get_phrase('primary_color');?></label>
                    <div class="col-sm-12">
						<select name="primary_color" class="form-control select2" style="width:100%" required>
                            <option value=""><?php echo get_phrase('select');?></option>
                            <option value="green"><?php echo get_phrase('green');?></option>
                            <option value="blue"><?php echo get_phrase('blue');?></option>
                        </select>
					</div>
				</div>
				<div class="form-group">
						<label class="col-md-12" for="example-text"><?php echo get_phrase('secondary_color');?></label>
						<div class="col-sm-12">
							<select name="secondary_color" class="form-control select2" style="width:100%" required>
								<option value=""><?php echo get_phrase('select');?></option>
								<option value="light-green"><?php echo get_phrase('light-green');?></option>
								<option value="light-blue"><?php echo get_phrase('light-blue');?></option>
							</select>
						</div>
					</div>
		        	<br>
					<div class="form-group">
						<button type="submit" class="btn save-button"><i class="fa fa-plus"></i>&nbsp;<?php echo get_phrase('change_theme');?></button>
					</div>
					<?php echo form_close();?>


				<!-- THEME SECONDARY COLOR SETTINGS -->

				<?php
				// echo form_open(base_url() . 'systemsetting/system_settings/themesecodarySettings', array('class' => 'form-horizontal form-groups-bordered validate', 'target' => '_top', 'enctype' => 'multipart/form-data'));
        ?>
				<!-- <div class="radio radio-custom">
                    <input type="radio" <?php
					if($skin = $this->db->get_where('settings' , array('type'=>'secondary_color'))->row()->description == 'cream') echo 'checked';?> name="secondary_color" id="radio2" value="cream">
                    <label for="radio2"> cream </label>
				</div>
				<div class="radio radio-success">
                    <input type="radio" <?php if($skin = $this->db->get_where('settings' , array('type'=>'secondary_color'))->row()->description == 'green') echo 'checked';?> name="secondary_color" id="radio3" value="green">
                    <label for="radio3"> Green </label>
				</div>
				<div class="radio radio-gray">
                    <input type="radio" <?php if($skin = $this->db->get_where('settings' , array('type'=>'skin_colour'))->row()->description == 'pink') echo 'checked';?> name="secondary_color" id="radio4" value="pink">
                    <label for="radio4"> Pink </label>
				</div>
				<div class="radio radio-black">
                  <input type="radio" <?php if($skin = $this->db->get_where('settings' , array('type'=>'skin_colour'))->row()->description == 'black') echo 'checked';?> name="skin_colour" id="radio5" value="black">
                  <label for="radio5"> Black </label>
				</div>
				<div class="radio radio-purple">
                  <input type="radio" <?php if($skin = $this->db->get_where('settings' , array('type'=>'skin_colour'))->row()->description == 'purple') echo 'checked';?> name="skin_colour" id="radio6" value="purple">
                  <label for="radio6"> Purple </label>
				</div>
				<div class="radio radio-info">
                  <input type="radio" <?php if($skin = $this->db->get_where('settings' , array('type'=>'skin_colour'))->row()->description == 'blue') echo 'checked';?> name="skin_colour" id="radio7" value="blue">
                  <label for="radio7"> Blue </label>
				</div>
		        <br>
                <div class="form-group">
                    <button type="submit" class="btn save-button"><i class="fa fa-plus"></i>&nbsp;<?php echo get_phrase('change_theme');?></button>
                </div> -->

				<?php
				// echo form_close();?>
            </div>
        </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_primary_theme')?></th>
				                            <th><?=get_phrase('uploaded_secondary_theme')?></th>
				                            <th><?=get_phrase('action')?></th>
				                        </tr>
				                    </thead>
				                    <tbody>

				                        <?php
                                        $select = $this->crud_model->selecttheme();
					 		            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['primary_color'];?></td>
				                            <td><?=$row['secondary_color'];?></td>
				                            <td>
				                                <!-- <a href="<?php echo base_url();?>admin/changetheme/<?php echo $row['exhibition_id'];?>"><button
				                                    type="button" class="btn btn-info btn-rounded btn-sm"><i
				                                    class="fa fa-edit"></i> change</button></a> -->
													<a onclick="showAjaxModal('<?php echo base_url();?>modal/popup/changetheme/<?php echo $row['exhibition_id'];?>')" class="btn btn-info btn-rounded btn-xs">change theme <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>