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/kokohpondasi.co.id/public_html/application/views/admin/project/ |
Upload File : |
<div class="row"> <div class="col-sm-12"> <a href="<?= base_url('admin/project'); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back to Projects List Page</a><br><br> <h4><?= empty($products->id_products) ? 'Add a new project' : 'Edit Project: ' . $products->title; ?></h4> <?= $this->session->flashdata('success'); //to display success message ?> <?= $this->session->flashdata('result'); //to display result message ?> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <?= form_open_multipart(); ?> <p style="text-align:right;"><?= form_submit('submit', 'Save Project', 'class="btn btn-primary btn-success button-brown"'); ?> <?= anchor('admin/project', 'cancel'); ?></p><br> <input type="hidden" name="id" value="<?= $project->id?>"> <div class="row"> <div class="col-sm-3"> <p>Project Name</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'project_name', 'value' => set_value('project_name', $project->project_name), //product_name is validation repopulate, $products->title is getting value from database (initial state).. 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('project_name'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> Project Type </div> <div class="col-sm-9"> <?php $options = array( 'Residence' => 'Residence', 'Hotel' => 'Hotel', 'Office Building' => 'Office Building', 'Hospital' => 'Hospital', 'Mall/Plaza' => 'Mall/Plaza', 'Apartement' => 'Apartement', 'Sport Center' => 'Sport Center', 'Show Room' => 'Show Room', 'Recreation Center' => 'Recreation Center', 'Boutique' => 'Boutique', 'Church' => 'Church' ); echo form_dropdown('project_type', $options,$project->project_type, 'class="form-control"'); ?> </div> </div> <div class="row"> <div class="col-sm-12"> <h4>Project Status & Ordering</h4> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Display</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <select name="project_status" class="form-control"> <option value="0" <?php echo set_select('project_status', '0'); ?> <?php if($project->project_status == 0) : ?> selected <?php endif; ?> >No</option> <option value="1" <?php echo set_select('project_status', '1'); ?> <?php if($project->project_status == 1) : ?> selected <?php endif; ?> >Yes</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Ordering (must be number only)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'priority', 'value' => $project->priority, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('priority'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Category</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div style="height: 200px; overflow-y: scroll; padding: 20px; border:1px solid #ccc;"> <?php foreach($parent_categories as $category) : ?> - <input style="position:relative; bottom:3px; margin-right: 10px; margin-left:10px;" type="checkbox" name="category_id[]" value="<?= $category->id_categories; ?>" <?= set_checkbox('category_id[]', $category->id_categories); ?> <?php if (isset($chosen_categories)) : ?> <?php //checked item foreach ($chosen_categories as $chosen_category) : ?> <?php if ($chosen_category->id_category == $category->id_categories) : ?> checked <?php endif; ?> <?php endforeach; ?> <?php endif; ?> > <?= ucfirst($category->category); ?> <br> <?php endforeach; ?> </div> <?= form_error('category_product'); ?> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <!-- <p>Short Description</p> --> <p>Description</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <?php echo form_textarea('glass_material', set_value('glass_material', $project->glass_material, FALSE)); ?> <?php echo form_error('glass_material'); ?> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>City</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'city', 'value' => set_value('city', $project->city), 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('city'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" > <div class="col-sm-3"> <p>Year</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'year', 'value' => set_value('year', $project->year), 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('year'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <?= form_submit('submit', 'Save Project', 'class="btn btn-primary btn-success button-brown"'); ?> <?= anchor('admin/project', 'cancel'); ?> </div><!-- end class="col-sm-9" --> </div><!--end row --> <?= form_close(); ?>