?
Current Path : /home1/savoy/public_html/savoyglobal.net/talentquest2013/application/views/admin/ |
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/talentquest2013/application/views/admin/email.php |
<?php $events=$this->mastermodel->get_events(); ?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <?php $this->load->view('admin/header'); ?> <body> <?php $this->load->view('admin/menu'); ?> <div class="container_12"> <script type="text/javascript"> function load_email() { var events = new Array(); for(var i=1;i<=5;i++) { if($("#event_"+i).is(":checked")) { events[i-1]=i; } } $("#contacts_list").load("<?=site_url()?>/admin/load_email_list/"+encodeURIComponent(JSON.stringify(events))); } function load_sms() { var singles=0; var doubles=0; var mixed=0; if($("#singles").is(":checked")) singles=1; if($("#doubles").is(":checked")) doubles=1; if($("#mixed").is(":checked")) mixed=1; $("#contacts_list").load("<?=site_url()?>/admin/load_sms_list/"+singles+"/"+doubles+"/"+mixed); } </script> <!-- Example table --> <div class="module"> <h2><span>Bulk Email / SMS</span></h2> <div class="module-table-body"> <table id="myTable" class="tablesorter"> <tr><td></td> <?php foreach ($events as $list) { ?> <td><?=$list['event_name'];?> <input type="checkbox" id="event_<?=$list['event_id'];?>" id="<?=$list['event_id'];?>"/></td> <?php } ?> </tr> <tr> <td colspan="6" align="center"> <fieldset> <input class="submit-green" type="button" value="Email" name="savemail" onclick="load_email()" /> <!--input class="submit-green" type="button" value="SMS" name="savesms" onclick="load_sms()" /--> </fieldset> </td> </tr> </table> <div id="contacts_list"></div> <div style="clear: both"></div> </div> <!-- End .module-table-body --> </div> <!-- End .module --> <div style="clear:both;"></div> </div> <!-- End .container_12 --> <?php $this->load->view('admin/footer'); ?> </body> </html>