?
Current Path : /home1/savoy/public_html/savoyglobal.net/simsdemo/school/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/simsdemo/school/application/views/Sms/smslist.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $template_details=$this->mastermodel->getdatas('template');?> <script type="text/javascript"> $(document).ready(function(){ $('#message').keyup(function(){ var limit = $(this).attr('maxlength'); ($(this).val().length < limit) ? $('.charsLeft').html(limit-$(this).val().length) : $(this).val($(this).val().substr(0,limit)) + $('.charsLeft').html('<span style="color:#ff0000;">0</span>');}); $("#preloader").hide(); }); function usetemplate(status) { var template_id=status.value; $.ajax({ type: "POST", url: "<?= site_url('sms/gettemplate') ?>/" +template_id, success: function(msg) { $("textarea#message").val(msg); } }); } </script> <span class="section_content_top"></span> <div class="section_content_inner"> <div id="preloader" ><CENTER><img src="<?=base_url()?>assets/images/sendsms.gif" class="sending sms"/></CENTER></div> <?php $attributes=array('class'=>'search_form','id'=>'validateform','name'=>'validateform'); echo form_open('sms/addinsms/insertbulksms/viewbulksms/1/',$attributes); ?> <fieldset> <!--[if !IE]>start forms<![endif]--> <div class="forms"> <!--[if !IE]>start row<![endif]--> <div class="table_wrapper"> <div class="table_wrapper_inner"> <table cellpadding="0" cellspacing="0" width="120%"> <tbody><tr> <th style="width: 17px;">Sl No.</th> <th>Name</th> <th>Mobile Number</th> <th style="width: 165px;">Type</th> <th style="width: 81px;"> <input checked name="checkall" id="checkall" type="checkbox" onchange="checkasll(this)"/></th> </tr> <?php $slno=0; if ($viewinfo->num_rows() > 0) { foreach ($viewinfo->result() as $row) { $desg=$this->mastermodel->get_data_srow('module',$row->module_id,'module_id'); ?> <tr <?php if($slno%2==0) { ?>class="first" <?php } else { ?> class="second" <?php } ?>> <td><?=++$slno;?></td> <td><?=$row->name;?></td> <td><?=$row->mobile_no;?></td> <td><?=$desg->module_name;?></td> <td> <div class="actions_menu"> <input checked name="<?php echo "check_mobile_".$slno;?>" value="<?=$row->mobile_no;?>" id="check_mobile" type="checkbox"/> </div> </td> </tr> <?php } } ?> <input name="moblen" value="<?=$slno;?>" type="hidden"> </tbody></table> </div> </div> <br/><br/> <!--[if !IE]>start forms<![endif]--> <h3>SMS Information</h3> <!--[if !IE]>start row<![endif]--> <div class="row"> <label>Sender ID</label> <div class="inputs"> <span class="input_wrapper"><input class="text required" maxlength="8" name="sender_id" id="sender_id" type="text" /></span> </div>(max 8 characters) </div> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>start row<![endif]--> <div class="row"> <label>Use Template</label> <div class="inputs"> <span class="input_wrapper select_wrapper"> <select name="template_id" id="template_id" onchange="usetemplate(this)"> <option value="" selected>Select Template</option> <?php foreach ($template_details as $row) { ?> <option value="<?=$row['template_id']?>"><?=$row['template_title']?></option> <?php } ?> </select> </span> </div> </div> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>start row<![endif]--> <div class="row"> <label>Message</label> <div class="inputs"> <div> <textarea name="message" id="message" style="width:500px; height:50px;" maxlength="140"></textarea> </div> <div> <span class="charsLeft" style="float:right; color:#ccc; font-size:22px; text-align:right;">140</span> </div> </div> </div> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>start row<![endif]--> <div class="row"> <label>Options</label> <div class="inputs"> <ul> <li><input class="radio" name="status" id="status" type="radio" value="Sent" onchange="hideclassdiv('schedule',this)" checked />Send Now</li> <li><input class="radio" name="status" id="status" type="radio" value="Saved" onchange="hideclassdiv('schedule',this)" /> Save as Draft</li> <!--li><input class="radio" name="status" id="status" type="radio" value="Scheduled" onchange="showclassdiv('schedule',this)"/> Schedule</li--> </ul> <div id="schedule" style="display:none"> <div align="right"><?php echo createYears(2011, 2020, 'start_year', date("Y")); ?> <?php echo createMonths('start_month', date("m")); ?> <?php echo createDays('start_day', date("d")); ?></div> <div align="right"> <?php echo createHours('start_hour', 4); ?> <?php echo createMinutes('start_minute', 30); ?></div> </div> </div> </div> <!--[if !IE]>end row<![endif]--> </div> <!--[if !IE]>start row<![endif]--> <div class="row"> <div class="inputs"> <span class="button blue_button search_button"><span><span><em>Send</em></span></span><input name="Send" type="submit" onclick="addformdata('validateform')"/></span> <!--span class="button green_button"><span><span>Save</span></span><input name="Save" type="submit" onclick="addformdata('validateform')"/></span> <span class="button gray_button"><span><span>Schedule</span></span><input name="Schedule" type="submit" onclick="addformdata('validateform')"/></span--> </div> </div> <!--[if !IE]>end row<![endif]--> </fieldset> <?php form_close(); ?> </div> <span class="section_content_bottom"></span>