?
Current Path : /home1/savoy/www/savoyeducation.com/application/views/back-end/pages/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/www/savoyeducation.com/application/views/back-end/pages/edit_programs.php |
<!-- main content start--> <div id="page-wrapper"> <div class="main-page"> <div class="forms"> <h3 class="title1">Programs</h3> <?php if ($this->session->flashdata('alert_info')) { ?> <div class="col-md-12 <?= $this->session->flashdata('alert_class') ?>"> <?= $this->session->flashdata('alert_info') ?> </div> <br clear="all"><br> <?php } ?> <div class="form-grids row widget-shadow" data-example-id="basic-forms"> <div class="form-title"> <h4>Edit Programs :</h4> </div> <div class="form-body"> <?php $attributes = array( 'id' => 'programs_form', 'role' => 'form', 'method' => 'POST' ); echo form_open_multipart('admin/Admin_controller/program_update', $attributes); ?> <input type="hidden" name="id" value="<?php echo $programs[0]['id']; ?>"/ <div class="form-group"> <div class="row"> <div class="col-md-2"><label for="exampleInputFile"> Program Title</label> </div> <div class="col-md-10"><input type="text" name="program" id="program" value="<?php echo $programs[0]['program_title'];?>" ></div> </div> <!-- <div class="row"> <div class="col-md-2"><label for="exampleInputFile">Featured_image</label> </div> <div class="col-md-10"><input type="file" name="programimage" id="programimage" onchange=readURL(this) value="" ></div> <img src="<?php echo base_url().'/uploads/programs/'.$programs[0]['featured_image'];?>" width="100" heigt="100" id="imgID"/> </div>--> <div class="row"> <div class="col-md-2"><label for="exampleInputPassword1">Main Description</label></div> <div class="col-md-10"><textarea type="textarea" class="elm3" cols="50" name="description" rows="10" ><?php echo $programs[0]['main_description'];?></textarea></div> </div> <div class="row"> <div class="col-md-2"><label for="exampleInputFile">Title description1</label> </div> <div class="col-md-10"> <input type="text" name="description1" value="<?php echo $programs[0]['short_description1'];?>"></div> </div> <!-- <div class="row"> <div class="col-md-2"><label for="exampleInputFile">Title description2</label> </div> <div class="col-md-10"> <input type="text" name="description2" value="<?php echo $programs[0]['short_description2'];?>"></div> </div>--> <div class="row"> <div class="col-md-3 col-md-offset-3"><input type="submit" name="submit" class="btn btn-default" value="Submit"></div> <?= form_close(); ?> </div> </div> </div> </div> </div> </div> </div> <script> function readURL(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $('#imgID') .attr('src', e.target.result) .width(200); }; reader.readAsDataURL(input.files[0]); } } </script>