|
Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /var/www/indolok.id/application/views/admin/solutions/ |
Upload File : |
<div class="row">
<div class="col-sm-12">
<a href="<?= base_url('admin/solutions'); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back to Industry List Page</a><br><br>
<h4><?= empty($solutions->id_solutions) ? 'Add a new industry' : 'Edit industry: '
. $solutions->solution; ?></h4>
<?= $this->session->flashdata('success'); //to display success message ?>
<?= $this->session->flashdata('result'); //to display result message ?>
</div>
</div>
<?= form_open_multipart(); ?>
<div class="row">
<div class="col-sm-3">
<p>Industry Name</p>
</div>
<div class="col-sm-9">
<p>
<?php
$data = array(
'name' => 'solution',
'value' => $solutions->solution,
'class' => 'form-control'
);
echo form_input($data); ?>
<?= form_error('solution'); ?></p>
</div>
</div>
<div class="row" style="display:none">
<div class="col-sm-3">
<p>Category</p>
</div>
<div class="col-sm-9">
<select name="solution_category_id" class="form-control">
<option value="">Choose category</option>
<?php foreach($parent_categories as $parent) : ?>
<option value="<?= $parent->id_solution_categories; ?>"
<?php if ($solutions->solution_category_id == $parent->id_solution_categories): ?>
selected="selected"
<?php endif ?>
><?= ucfirst($parent->category); ?></option>
<?php
$this->db->select('*')->from('solution_categories')->where('parent', $parent->id_solution_categories)->order_by('priority', 'ASC');
$childs = $this->db->get()->result();
?>
<?php foreach ($childs as $child) : ?>
<option value="<?= $child->id_solution_categories; ?>"
<?php if ($solutions->solution_category_id == $child->id_solution_categories): ?>
selected="selected"
<?php endif ?>
>- <?= ucfirst($child->category); ?></option>
<?php endforeach; ?>
<?php endforeach; ?>
</select>
<p><?= form_error('category_id'); ?></p>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<p>Industry Description</p>
</div>
<div class="col-sm-9">
<?php echo form_textarea('description', set_value('description',
$solutions->description, FALSE)); ?>
<?php echo form_error('description'); ?>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<p>Solution Description</p>
</div>
<div class="col-sm-9">
<?php echo form_textarea('description2', set_value('description2',
$solutions->description2, FALSE)); ?>
<?php echo form_error('description2'); ?>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<p>Industry Image banner<br>
<?php if (!empty($solutions->thumbnail)) : ?>
<img style="width:250px; height:auto;" src="<?= base_url() . 'uploads/solution/' . $solutions->thumbnail; ?>" alt="" />
<!-- <i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/categories/delete_thumbnail/' . $solutions->id_solutions; ?>">Delete</a> -->
<?php endif; ?>
</p>
</div>
<div class="col-sm-9">
<p><input type="file" name="thumbnail" size="20" class="btn btn-default btn-file form-control" />
<span style="font-size:12px; font-style: italic;">Image size jpg/png, max 1MB</span>
<span style="color:#F7931E;"><?php echo form_error('thumbnail'); ?></span>
<?php echo $this->session->flashdata('thumbnail_error'); //to display error message ?></p>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<p>Industry Image
<?php if (!empty($solutions->image1)) : ?>
<img style="width:250px; height:auto;" src="<?= base_url() . 'uploads/solution/' . $solutions->image1; ?>" alt="" /><br>
<!-- <i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/categories/delete_image/' . $solutions->id_solutions; ?>">Delete</a> -->
<?php endif; ?>
</p>
</div>
<div class="col-sm-9">
<p><input type="file" name="image1" size="20" class="form-control" /><br>
<span style="font-size:12px; font-style: italic;">Image size must be 1000 x 1000 pixel, png/jpg, max 800KB</span>
<span style="color:#F7931E;"><?php echo form_error('image1'); ?></span></p>
<p><?php echo $this->session->flashdata('error'); //to display error message ?></p>
</div>
</div>
<div class="row" style="display:none">
<div class="col-sm-3">
<p>Industry Image 2
<?php if (!empty($solutions->image2)) : ?>
<img style="width:250px; height:auto;" src="<?= base_url() . 'uploads/solution/' . $solutions->image2; ?>" alt="" /><br>
<!-- <i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/categories/delete_image/' . $solutions->id_solutions; ?>">Delete</a> -->
<?php endif; ?>
</p>
</div>
<div class="col-sm-9">
<p><input type="file" name="image2" size="20" class="form-control" /><br>
<span style="font-size:12px; font-style: italic;">Image size must be 1000 x 1000 pixel, png/jpg, max 800KB</span>
<span style="color:#F7931E;"><?php echo form_error('image2'); ?></span></p>
<p><?php echo $this->session->flashdata('error'); //to display error message ?></p>
</div>
</div>
<div class="row" style="display:none">
<div class="col-sm-3">
<p>Industry Image 3
<?php if (!empty($solutions->image3)) : ?>
<img style="width:250px; height:auto;" src="<?= base_url() . 'uploads/solution/' . $solutions->image3; ?>" alt="" /><br>
<!-- <i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/categories/delete_image/' . $solutions->id_solutions; ?>">Delete</a> -->
<?php endif; ?>
</p>
</div>
<div class="col-sm-9">
<p><input type="file" name="image3" size="20" class="form-control" /><br>
<span style="font-size:12px; font-style: italic;">Image size must be 1000 x 1000 pixel, png/jpg, max 800KB</span>
<span style="color:#F7931E;"><?php echo form_error('image3'); ?></span></p>
<p><?php echo $this->session->flashdata('error'); //to display error message ?></p>
</div>
</div>
<div class="row" style="display:none">
<div class="col-sm-3">
<p>Industry Image 4
<?php if (!empty($solutions->image4)) : ?>
<img style="width:250px; height:auto;" src="<?= base_url() . 'uploads/solution/' . $solutions->image4; ?>" alt="" /><br>
<!-- <i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/solutions/delete_image/' . $solutions->id_solutions; ?>">Delete</a> -->
<?php endif; ?>
</p>
</div>
<div class="col-sm-9">
<p><input type="file" name="image4" size="20" class="form-control" /><br>
<span style="font-size:12px; font-style: italic;">Image size must be 1000 x 1000 pixel, png/jpg, max 800KB</span>
<span style="color:#F7931E;"><?php echo form_error('image4'); ?></span></p>
<p><?php echo $this->session->flashdata('error'); //to display error message ?></p>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<p>Ordering (must be number only)</p>
</div>
<div class="col-sm-9">
<p><?php
$data = array(
'name' => 'priority',
'value' => $solutions->priority,
'class' => 'form-control',
'id' => 'solutionOrdering'
);
echo form_input($data); ?></p>
<p><?= form_error('priority'); ?></p>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<p>Display</p>
</div>
<div class="col-sm-9">
<?php
$options = array(
1 => 'Yes',
0 => 'No'
);
echo form_dropdown('status', $options, $solutions->status, 'class="form-control"');
?>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<p><strong>SEO (Search Engine Optimization)</strong></p>
</div>
<div class="col-sm-9">
</div>
</div>
<div class="row">
<div class="col-sm-3">
<p>Page Meta Description</p>
</div>
<div class="col-sm-9">
<p><?php
$data = array(
'name' => 'meta_description',
'value' => $solutions->meta_description,
'class' => 'form-control'
);
echo form_input($data); ?></p>
<p><?= form_error('meta_description'); ?></p>
</div>
</div>
<div class="row">
<div class="col-sm-3">
</div>
<div class="col-sm-9">
<?= form_submit('submit', 'Update', 'class="btn btn-primary btn-success button-brown"'); ?> <?= anchor('admin/categories', 'cancel'); ?>
</div>
</div>
<?= form_close(); ?>