| Server IP : 68.178.202.69 / Your IP : 216.73.216.143 Web Server : Apache System : Linux 69.202.178.68.host.secureserver.net 3.10.0-1160.139.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Nov 3 13:30:41 UTC 2025 x86_64 User : ikioworld ( 1005) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/ikioworld/www/application/views/admin/down/ |
Upload File : |
<?php echo $header;?>
<div class="content-wrapper">
<!-- Content Header (document header) -->
<section class="content-header">
<h1>Download</h1>
<ol class="breadcrumb">
<li><a href="<?php echo base_url();?>admin"><i class="fa fa-dashboard"></i>Dashboard</a></li>
<li><a href="<?php echo base_url();?>admin/down">Download List</a></li>
<li class="active">Edit</li>
</ol>
</section>
<!-- Main content -->
<section class="content" id="">
<div class="row">
<!-- left column -->
<div class="col-md-9">
<!-- general form elements -->
<div class="box box-primary ">
<div class="box-header with-border">
<h3 class="box-title">Edit Download</h3>
</div>
<!-- /.box-header -->
<!-- form start -->
<form role="form" id="Form1" method="post" enctype="multipart/form-data" action="" class="pd_custom">
<?php $dataValue = $record->download_category?>
<div class="form-group">
<label for="exampleInputEmail1">Download Category</label>
<select name="download_category" class="form-control" required>
<option <?php echo $dataValue=="catalogs"?"selected='selected'":""; ?> value="catalogs">Catalogs</option>
<option <?php echo $dataValue=="promotion"?"selected='selected'":""; ?> value="promotion">Presentations & Manuals</option>
<option <?php echo $dataValue=="warranty"?"selected='selected'":""; ?> value="warranty">Warranty Documents </option>
<option <?php echo $dataValue=="policy"?"selected='selected'":""; ?> value="policy">Policy and Terms & Conditions</option>
<option <?php echo $dataValue=="ikio_documents"?"selected='selected'":""; ?> value="ikio_documents">Promotional Materials</option>
</select>
</div>
<div class="form-group">
<label for="exampleInputEmail1">Download Name</label>
<input type="text" name="download_name" class="form-control" id="download_name" value="<?php echo isset($record->download_name)?$record->download_name:"";?>" placeholder="Enter Download Name">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Document</label>
<input type="file" name="document" class="form-control">
</div>
<div class="image_preview">
<?php
if(isset($record->document) && file_exists(FCPATH."uploads/document/".$record->document) && $record->document!=''){
echo '<img src="'.base_url().'uploads/document/'.$record->document.'" width="100px">';
}
?>
</div>
<div class="form-group">
<label for="exampleInputEmail1">Document Type</label>
<?php $dataValue = $record->document_type?>
<select name="document_type" class="form-control" required>
<option <?php echo $dataValue=="PDF"?"selected='selected'":""; ?> value="PDF">PDF</option>
<option <?php echo $dataValue=="JPEG"?"selected='selected'":""; ?> value="JPEG">JPEG</option>
<option <?php echo $dataValue=="ZIP"?"selected='selected'":""; ?> value="ZIP">ZIP </option>
</select>
</div>
<div class="form-group">
<label for="exampleInputEmail1">Document Icon</label>
<input type="file" name="download_icon" class="form-control">
</div>
<div class="image_preview">
<?php
if(isset($record->download_icon) && file_exists(FCPATH."uploads/document/".$record->download_icon) && $record->download_icon!=''){
echo '<img src="'.base_url().'uploads/document/'.$record->download_icon.'" width="100px">';
}
?>
</div>
<div class="box-footer">
<button type="submit" name="sbt" class="btn btn-primary">Update</button>
</div>
</div>
<!-- /.box-body -->
</form>
</div>
</div>
</div>
<!-- /.row -->
</section>
<!-- /.content -->
</div>
<?php echo $footer;?>