?
Current Path : /home1/savoy/public_html/savoyglobal.net/oscardraft/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/oscardraft/application/views/sms/view_bulk_sms.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $department = $this->mastermodel->getdatas('department', 'department_name'); $class_room = $this->mastermodel->getdatas('class_name', 'class_name_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 SMS</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('sms/loadsmslist/loadsmslist/smslist/1/', $attributes); ?> <div class="content" style="padding: 0;"> <table class="table" > <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 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 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 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>