?
Current Path : /home1/savoy/public_html/savoyglobal.net/cocorico/application/views/email/ |
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/cocorico/application/views/email/view_send_email.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $this->load->view('email/emailfunctions'); $department = $this->hrmodel->search_department(); $class_room = $this->mastermodel->search_class_name(); ?> <script type="text/javascript"> function field_check_all() { $(".reportcheck").attr("checked", $("#checkall").attr("checked")=='checked' ? true : false); } function student_check_all() { $(".student").attr("checked", $("#checkall1").attr("checked")=='checked' ? true : false); } function parents_check_all() { $(".parents").attr("checked", $("#checkall2").attr("checked") == 'checked' ? true : false); } function teacher_check_all() { $(".teacher").attr("checked", $("#checkall3").attr("checked") == 'checked' ? true : false); } </script> <!-- BEGIN PAGE LEVEL STYLES --> <link rel="stylesheet" href="<?= base_url(); ?>assets/plugins/data-tables/DT_bootstrap.css" /> <!-- END PAGE LEVEL STYLES --> <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>Select Contacts</div> </div> <div class="portlet-body"> <?php $attributes = array('class' => 'validate', 'id' => 'validateform'); echo form_open('email/loademaillist/loadEmailList/emaillist/1/', $attributes); ?> <table class="table table-striped table-hover table-bordered" > <thead> <tr> <th width="20%"> Parents<br/> <input type="checkbox" name="parent_id" id="parent_id" onchange="showclassdiv('classpar',this)"/> </th> <td> <div id="classpar" style="display: none; min-height: 100px;overflow-x: scroll;overflow-y: no-display;"> <table width="95%" align="center" cellpadding="0" cellspacing="0" > <tr> <th> <input type="checkbox" id="checkall2" name="checkall2" class="parents" onchange="parents_check_all()"/>Select</th> <th>Class Name</th> </tr> <?php foreach ($class_room['results']->result_array() as $row) { ?> <tr> <td style="color: #023a73;" width="25%"> <input type="checkbox" name="parent_class_name_id[]"value="<?= $row['class_name_id'] ?>" checked class="parents" /> </td> <td><?= $row['class_name_code'] ?></td> </tr> <?php } ?> </table> </div> </td> </tr> <tr> <th width="20%"> Teachers<br/> <input type="checkbox" name="teacher_id" id="teacher_id" onchange="showclassdiv('classteach',this)" /> </th> <td> <div id="classteach" style="display: none; min-height: 100px;overflow-x: scroll;overflow-y: no-display;" > <table width="95%" align="center" cellpadding="0" cellspacing="0" > <tr> <th>Select <input type="checkbox" id="checkall3" name="checkall3" class="teacher" onchange="teacher_check_all()"/></th> <th> Class Name </th> </tr> <?php foreach ($class_room['results']->result_array() as $row) { ?> <tr> <td style="color: #023a73;" width="25%"> <input type="checkbox" name="teacher_class_name_id[]"value="<?= $row['class_name_id'] ?>" checked class="teacher" /> </td> <td><?= $row['class_name_code'] ?></td> </tr> <?php } ?> </table> </div> </td> </tr> <tr> <th width="20%"> Non-Teaching Staff<br/> <input type="checkbox" name="staff_id" id="staff_id" onchange="showclassdiv('dept',this)"/> </th> <td> <div id="dept" style="display: none; max-height: 300px;min-height: 100px;overflow-x: scroll;overflow-y: no-display;"> <table width="95%" align="center" cellpadding="0" cellspacing="0" > <tr> <th><input type="checkbox" id="checkall" name="checkall" class="reportcheck" onchange="field_check_all()"/>Select</th> <th>Department</th> </tr> <?php foreach ($department['results']->result_array() as $row) { ?> <tr> <td style="color: #023a73;" width="25%"> <input type="checkbox" name="department_id[]"value="<?= $row['department_id'] ?>" checked class="reportcheck" /> </td> <td><?= $row['department_name'] ?></td> </tr> <?php } ?> </table> </div> </td> </tr> </thead> <tbody> <tr> </tr> <tr> <td colspan="4"> <input type="submit" onclick="addformdata('validateform')" value="Load List" style="width: 100px; margin: 0 auto;"> </td> </tr> </tbody> </table> <?php echo form_close(); ?> </div> </div> </div> </div> <div id="email_list_div"> </div>