?
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/viewsendsms.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>');}); }); </script> <span class="section_content_top"></span> <div class="section_content_inner"> <?php $attributes=array('class'=>'search_form','id'=>'validateform'); echo form_open('sms/addinsms/insertsendsms/viewsendsms/1/',$attributes); ?> <!--[if !IE]>start fieldset<![endif]--> <fieldset> <!--[if !IE]>start forms<![endif]--> <div class="forms"> <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" maxlength="8"/></span> </div>(max 8 characters) </div> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>start row<![endif]--> <div class="row"> <label>Numbers</label> <div class="inputs"> <span class="input_wrapper textarea_wrapper"><textarea name="numbers" rows="3" cols="10" class="required"></textarea></span> </div>(Separated by commas) </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 class="required" 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> <!--[if !IE]>end fieldset<![endif]--> </div> <!--[if !IE]>end forms<![endif]--> <?php echo form_close(); ?> <span class="section_content_bottom"></span>