?
Current Path : /home1/savoy/public_html/savoyglobal.net/eduplus2/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/eduplus2/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; } ?> <script> function delete_file(file_id,row_id) { if (confirm("Are you sure you want to delete the file?")) { $.ajax({ type: "GET", url: "<?= site_url() ?>"+'/master/delete_file/'+file_id, success: function(msg) { if(msg == 1) { alert("File Deleted"); $('#'+row_id) .hide(); } else alert("Permission denied!"); } }); } } </script> <div class="row-fluid"> <div class="span12"> <!-- BEGIN EXAMPLE TABLE PORTLET--> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-cogs"></i>Center Details</div> <div class="tools"> <a href="#" onclick="editformdata('master','edit_page','<?= $nursery_id; ?>','nursery','nursery_id','edit_nursery');" class="edit btn green"><i class="icon-edit"></i>Edit</a> </div> </div> <div class="portlet-body form"> <?php $attributes = array('id' => '', 'class' => 'form-horizontal validate'); echo form_open_multipart('master/submit_nursery_upload/', $attributes); ?> <div class="row-fluid"> <div class="span6"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-cogs"></i>Nursery Details</div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="control-group"> <label class="control-label">Nursery Name :</label> <div class="controls"> <span class="text bold"><?= $nursery_name ?></span> </div> </div> </div> <div class="row-fluid"> <div class="control-group"> <label class="control-label">City :</label> <div class="controls"> <span class="text bold"><?= $city ?></span> </div> </div> </div> <div class="row-fluid"> <div class="control-group"> <label class="control-label">Country :</label> <div class="controls"> <span class="text bold"><?= $country ?></span> </div> </div> </div> <div class="row-fluid"> <div class="control-group"> <label class="control-label">Logo:</label> <div class="controls"> <span class="text bold"> <img src="<?= base_url() ?>assets/logo/<?= $logo; ?>" width="75" height="75"/></span> </div> </div> </div> <div class="row-fluid"> <div class="control-group"> <label class="control-label">Age Limit :</label> <div class="controls"> <span class="text bold"><?= $age_limit ?></span> </div> </div> </div> <div class="row-fluid"> <div class="control-group"> <label class="control-label">Curriculum :</label> <div class="controls"> <span class="text bold"><?= $curriculum ?></span> </div> </div> </div> <div class="row-fluid"> <div class="control-group"> <label class="control-label">Municipality :</label> <div class="controls"> <span class="text bold"><?= $municipality ?></span> </div> </div> </div> </div> </div> </div> <div class="span6"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-cogs"></i>Contact Details</div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="control-group"> <label class="control-label">Contact Number:</label> <div class="controls"> <span class="text bold"><?= $contact_no ?></span> </div> </div> </div> <div class="row-fluid"> <div class="control-group"> <label class="control-label">E Mail :</label> <div class="controls"> <span class="text bold"><?= $email ?></span> </div> </div> </div> <div class="row-fluid"> <div class="control-group"> <label class="control-label">Fax :</label> <div class="controls"> <span class="text bold"><?= $fax ?></span> </div> </div> </div> <div class="row-fluid"> <div class="control-group"> <label class="control-label">Po Code:</label> <div class="controls"> <span class="text bold"><?= $po_code ?></span> </div> </div> </div> <div class="row-fluid"> <div class="control-group"> <label class="control-label">Website :</label> <div class="controls"> <span class="text bold"><?= $website ?></span> </div> </div> </div> <div class="row-fluid"> <div class="control-group"> <label class="control-label">Address :</label> <div class="controls"> <span class="text bold"><?= nl2br($address) ?></span> </div> </div> </div> </div> </div> </div> </div> <h3 class="form-section">File Upload</h3> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">File Name</label> <div class="controls"> <span class="text"><input class="required m-wrap span12" name="file_name" id="file_name" type="text" /></span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Choose File</label> <div class="controls"> <span class="text"><input class="required m-wrap span12" name="file_location" id="file_location" type="file" /></span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">File Expiry Date</label> <div class="controls"> <span class="text"><input name="file_expiry_date" id="file_expiry_date" type="text" class="calfocus m-wrap span12"/></span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Remind Before</label> <div class="controls"> <span class="text"><input name="file_remind_before" id="file_remind_before" type="text" class="number m-wrap span12"/></span> </div> </div> </div> </div> <div class="form-actions"> <button type="submit" onclick="addformdata('validateform')" class="btn blue"><i class="icon-ok"></i> Save</button> </div> <div class="row-fluid portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Uploaded Files</div> </div> <div class="portlet-body form"> <table class="table table-striped table-hover table-bordered" id="sample_3"> <tr> <th>Sl No</th> <th>File Name</th> <th>Download</th> <th>Edit</th> <th>Delete</th> </tr> <?php $i = 1; $nursery_files = $this->mastermodel->getdatas('nursery_file'); foreach ($nursery_files as $row) { ?> <tr id="<?=$i;?>"> <td> <?= $i ?> </td> <td> <?= $row['file_name'] ?> </td> <td> <a href="<?=base_url().$row['file_location']?>">Download</a> </td> <td> <a href="#" onclick="editformdata('master','edit_page','<?=$row['file_id'];?>','nursery_file','file_id','edit_nursery_file')" >Edit</a> </td> <td> <a href="#" onclick="delete_file(<?= $row['file_id'] ?> , '<?=$i;?>')">Delete</a> </td> </tr> <?php $i++; } ?> </table> </div> </div> <?php echo form_close(); ?> </div> </div> </div> </div>