?
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_page.php |
<!-- main content start--> <div id="page-wrapper"> <div class="main-page"> <div class="forms"> <h3 class="title1">Pages</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"> </div> <div class="form-body"> <?php $attributes = array( 'id' => 'page_form', 'role' => 'form', 'method' => 'POST' ); echo form_open_multipart('admin/Admin_controller/update_page', $attributes); ?> <input type="hidden" name="id" value="<?php echo $pages[0]['id']; ?>"/> <div class="form-group"> <div class="row"> <div class="col-md-2"><label for="exampleInputFile">Page Title</label> </div> <div class="col-md-10"><input type="text" name="pagetitle" id="pagetitle" value="<?php echo $pages[0]['page_title']; ?>" ></div> </div> <div class="row"> <div class="col-md-2"><label for="exampleInputPassword1">Description</label></div> <div class="col-md-10"><textarea type="textarea" id="page" class="mceEditor" cols="80" name="description" rows="10" ><?php echo $pages[0]['description']; ?></textarea></div> </div> <div class="row"> <div class="col-md-2"><label for="exampleInputFile">Image</label> </div> <div class="col-md-10"><input type="file" name="image" id="image" onchange=readURL(this) value="" ></div> <img src="<?php echo base_url().'/uploads/'.$pages[0]['page_image'];?>" width="200" height="200" id="imgID"/> </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>