?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/application/views/sms/ |
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/application/views/sms/view_bulk_sms.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $this->load->view('sms/smsfunctions'); $department = $this->hrmodel->search_department(); $course = $this->mastermodel->search_course(); ?> <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' => 'form-horizontal validate', 'id' => 'validateform'); echo form_open('sms/loadsmslist/loadsmslist/smslist/1/', $attributes); ?> <table class="table table-striped table-hover table-bordered" > <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="100%" align="center" cellpadding="0" cellspacing="0" > <tr> <th>Course</th> <th><input type="checkbox" id="checkall1" name="checkall1" class="student" onchange="student_check_all()"/>Batch</th> </tr> <?php foreach ($course['results']->result_array() 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 class="student" type="checkbox" name="student_batch_level[<?= $row['course_id'] ?>][]" value="<?= $list['batch_id'] ?>" 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="100%" 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['results']->result_array() 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" class="parents" name="parent_batch_level[<?= $row['course_id'] ?>][]" value="<?= $list['batch_id'] ?>" checked /> <?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="100%" 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['results']->result_array() 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 class="teacher" type="checkbox" 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="100%" 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 class="reportcheck" type="checkbox" name="department_id[]"value="<?= $row['department_id'] ?>" checked /> </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 style='display:none'> <div id="uploaddiv"></div> </div> <div id="ajax-modal" class="modal hide fade" tabindex="-1"></div> <script> jQuery(document).ready(function() { UIModals.init(); TableManaged.init(); }); </script>