?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec_old/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/sec_old/application/views/email/view_send_email.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $department = $this->mastermodel->getdatas('department', 'department_name'); $course = $this->mastermodel->getdatas('course', 'course_id'); ?> <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> <div class="icons_main"> <div class="icons"></div> <div class="icons_caption"> <h4>Send Email</h4> </div> </div> <div id="success-panel" style="text-align: center;padding: 10px;"></div> <div class="clean"></div> <div class="grid_12"> <div class="box"> <div class="header no-icon main">Select Contacts </div> <?php $attributes = array('class' => 'validate', 'id' => 'validateform'); echo form_open('email/loademaillist/loadEmailList/emaillist/1/', $attributes); ?> <div class="content" style="padding: 0;"> <table class="table" > <thead> <tr> <th width="20%"> Students<br/> <input type="checkbox" name="student_id" id="student_id" onchange="showclassdiv('classstud',this)"/> </th> <td> <div id="classstud" style="display: none; height: 300px;overflow-x: scroll;overflow-y: no-display;" > <table width="95%" align="center" cellpadding="0" cellspacing="0" > <tr> <th>Course</th> <th style="text-align: center"><input type="checkbox" id="checkall1" name="checkall1" class="student" onchange="student_check_all()"/>Batch</th> </tr> <?php foreach ($course as $row) { $batch = $this->mastermodel->get_data_dual('batch', $row['course_id'], 'course_id',0,'close','batch_id'); ?> <tr> <td style="color: #023a73;" width="25%"> <input type="checkbox" onchange="showclassdiv('student_batch<?= $row['course_id'] ?>',this)" name="student_course_level[]" value="<?= $row['course_id'] ?>" checked /> <?= $row['course_code'] ?> </td> <td> <input type="hidden" value="<?= count($batch) ?>" name="student_course_level_count_<?= $row['course_id'] ?>"/> <div style="display: block" id="student_batch<?= $row['course_id'] ?>"> <?php foreach ($batch as $list) { ?> <?= $list['batch_no'] ?> <input type="checkbox" name="student_batch_level[<?= $row['course_id'] ?>][]" value="<?= $list['batch_id'] ?>" class="student" checked /> <?php } ?> </div> </td> </tr> <?php } ?> </table> </div> </td> </tr> <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; height: 300px;overflow-x: scroll;overflow-y: no-display;" > <table width="95%" align="center" cellpadding="0" cellspacing="0" > <tr> <th>Course</th> <th><input type="checkbox" id="checkall2" name="checkall2" class="parents" onchange="parents_check_all()"/>Batch</th> </tr> <?php foreach ($course as $row) { $batch = $this->mastermodel->get_data_dual('batch', $row['course_id'], 'course_id',0,'close','batch_id'); ?> <tr> <td style="color: #023a73;" width="25%"> <input type="checkbox" onchange="showclassdiv('parent_batch<?= $row['course_id'] ?>',this)" name="parent_course_level[]" value="<?= $row['course_id'] ?>" checked /> <?= $row['course_code'] ?> </td> <td> <input type="hidden" value="<?= count($batch) ?>" name="parent_course_level_count_<?= $row['course_id'] ?>"/> <div style="display: block" id="parent_batch<?= $row['course_id'] ?>"> <?php foreach ($batch as $list) { ?> <?= $list['batch_no'] ?> <input type="checkbox" name="parent_batch_level[<?= $row['course_id'] ?>][]" value="<?= $list['batch_id'] ?>" checked class="parents" /> <?php } ?> </div> </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; height: 300px;overflow-x: scroll;overflow-y: no-display;" > <table width="95%" align="center" cellpadding="0" cellspacing="0" > <tr> <th>Course</th> <th><input type="checkbox" id="checkall3" name="checkall3" class="teacher" onchange="teacher_check_all()"/>Batch</th> </tr> <?php foreach ($course as $row) { $batch = $this->mastermodel->get_data_dual('batch', $row['course_id'], 'course_id',0,'close','batch_id'); ?> <tr> <td style="color: #023a73;" width="25%"> <input type="checkbox" onchange="showclassdiv('teach_batch<?= $row['course_id'] ?>',this)" name="teach_course_level[]" value="<?= $row['course_id'] ?>" checked /> <?= $row['course_code'] ?> </td> <td> <input type="hidden" value="<?= count($batch) ?>" name="teach_course_level_count_<?= $row['course_id'] ?>"/> <div style="display: block" id="teach_batch<?= $row['course_id'] ?>"> <?php foreach ($batch as $list) { ?> <?= $list['batch_no'] ?> <input type="checkbox" class="teacher" name="teach_batch_level[<?= $row['course_id'] ?>][]" value="<?= $list['batch_id'] ?>" checked /> <?php } ?> </div> </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;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 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> </div> <?php echo form_close(); ?> </div> </div>