?
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/add_programms.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>Add 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_upload', $attributes); ?> <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="" ></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="" 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" ></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=""></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=""></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>