?
Current Path : /home1/savoy/public_html/savoyglobal.net/eduplus1/application/views/master/ |
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/public_html/savoyglobal.net/eduplus1/application/views/master/view_nursery.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); foreach ($viewinfo->result() as $row) { $nursery_name = $row->nursery_name; $city = $row->city; $country = $row->country; $address = $row->address; $municipality = $row->municipality; $age_limit = $row->age_limit; $curriculum = $row->curriculum; $contact_no = $row->contact_no; $email = $row->email; $fax = $row->fax; $po_code = $row->po_code; $logo = $row->logo; $nursery_id = $row->nursery_id; $website = $row->website; } ?> <div class="grid_12"> <div class="icons_main"> <div class="icons"> <img src="<?= base_url() ?>assets/images/edit-icon.gif" title="Edit" width="20" height="20" alt="Edit" align = "Nursery" class="clickimage" onclick="editformdata('master','edit_page','<?= $nursery_id; ?>','nursery','nursery_id','edit_nursery')" alt="" /> </div> <div class="icons_caption"> <h4>Nursery Details</h4> </div> </div> <?php $attributes = array('id' => '', 'class' => 'validate'); echo form_open('', $attributes); ?> <div class="grid_6"> <div class="box"> <div class="header main"> Nursery Details <span></span> </div> <div class="content no-padding"> <div class="section _100"> <label id="details">Nursery Name </label> <div> <label id="details"><?= $nursery_name ?> </label> </div> </div> <div class="section _100"> <label id="details"> City </label> <div> <label id="details"> <?= $city ?> </label> </div> </div> <div class="section _100"> <label id="details"> Country </label> <div> <label id="details"> <?= $country ?> </label> </div> </div> <div class="section _100"> <label id="details"> Municipality </label> <div> <label id="details"> <?= $municipality ?> </label> </div> </div> <div class="section _100"> <label>Logo</label> <div> <img src="<?= base_url() ?>assets/logo/<?= $logo; ?>"/> </div> </div> <div class="section _50"> <label id="details"> Address </label> <div> <label id="details"> <?= $address ?> </label> </div> </div> <div class="section _50"> <label id="details"> Age Limit </label> <div> <label id="details"> <?= $age_limit ?> </label> </div> </div> <div class="section _100"> <label id="details"> Curriculum </label> <div> <label id="details"> <?= $curriculum ?> </label> </div> </div> </div> </div> </div> <div class="grid_6"> <div class="box"> <div class="header main"> Contact Details</div> <div class="content no-padding"> <div class="section _100"> <label id="details">Contact Number </label> <div> <label id="details"> <?= $contact_no ?> </label> </div> </div> <div class="section _100"> <label id="details">E Mail</label> <div> <label id="details"> <?= $email ?> </label> </div> </div> <div class="section _100"> <label id="details">Fax</label> <div> <label id="details"> <?= $fax ?> </label> </div> </div> <div class="section _100"> <label id="details">Po Code</label> <div> <label id="details"> <?= $po_code ?> </label> </div> </div> <div class="section _100"> <label id="details">Website</label> <div> <label id="details"> <?= $website ?> </label> </div> </div> </div> </div> </div> </div> <?php echo form_close(); ?> <div class="icons_main"> <div class="icons_caption"> <h4>File Upload</h4> </div> </div> <?php $attributes = array('id' => '', 'class' => 'validate'); echo form_open_multipart('master/submit_nursery_upload/', $attributes); ?> <div class="grid_6"> <div class="box"> <div class="header main"> File Upload</div> <div class="content no-padding"> <div class="section _100"> <label>File Name</label> <div> <input class="required" name="file_name" id="file_name" type="text" /> </div> </div> <div class="section _100"> <label>Choose File</label> <div> <input class="" name="file_location" id="file_location" type="file" /> </div> </div> </div> </div> </div> <div class="grid_6"> <div class="box"> <div class="header main"> File Upload</div> <div class="content no-padding"> <div class="section _100"> <label>Expiry Date</label> <div> <input class="calfocus" name="file_expiry_date" id="file_expiry_date" type="text" /> </div> </div> <div class="section _100"> <label>Remind before</label> <div> <input class="number" value="10" name="file_remind_before" id="file_remind_before" type="text" /> </div> </div> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="content no-padding"> <div class="actions"> <div class="actions-left"> <input type="reset"> <input type="hidden" name="resfunction" value="search_letter"/> </div> <div class="actions-right"> <input type="submit" name="submit" class="clickimage" onclick="return file_check();"/> </div> </div> </div> </div> </div> <?php echo form_close(); ?> <div class="grid_12"> <div class="box"> <div class="header main">Uploaded Files</div> <?php $nursery_files = $this->mastermodel->getdatas('nursery_file'); ?> <table class="table"> <thead> <tr> <th id="sl">Sl No</th> <th>File Name</th> <th>Expiry Date</th> <th>Remind Before</th> <th width="20%">Action</th> </tr> </thead> <tbody> <?php $i = 0; foreach ($nursery_files as $files) { ?> <tr> <td><?= ++$i ?></td> <td><?= $files['file_name'] ?></td> <td><?= $this->mastermodel->convertdatenormalformat($files['file_expiry_date']) ?></td> <td><?= $files['file_remind_before'] ?></td> <td> <div class="elements"> <img src="<?=base_url()?>assets/images/edit-icon.gif" title="Edit" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editformdata('master','edit_page','<?=$files['file_id'];?>','nursery_file','file_id','edit_nursery_file')" alt="" /> </div> <?php if($files['file_location'] != '') { ?> <div class="elements"> <a href="<?=base_url().$files['file_location']?>"><img src="<?=base_url()?>/assets/images/downarrow.png" title="Download" alt="Download" width="20" height="20"></a> </div> <?php } ?> <div class="elements"> <img src="<?=base_url()?>assets/images/delete-icon.png" title="Delete" width="20" height="20" onclick="deletedata('nursery_file',<?=$files['file_id'];?>,'file_id','master','viewinmastersearch','search_nursery','view_nursery','','')" alt="Delete" align = "center"/> </div> </td> </tr> <?php } ?> </tbody> </table> </div> </div>