?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec_old/application/views/student/ |
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_old/application/views/student/smslist.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $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; if(template_id!=""){ $.ajax({ type: "POST", url: "<?= site_url('sms/gettemplate') ?>/" +template_id, success: function(msg) { $("textarea#message").val(msg); } }); } else{ $("textarea#message").val(""); } } </script> <span id="inner_msg"></span> <div class="icons_main"> <div class="icons"> <img src="<?= base_url() ?>assets/images/back.png" title="Add New" class="clickimage" onclick="addformdisplay('view_bulk_sms','sms')" alt="Add New" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4></h4> </div> </div> <div class="clean"></div> <?php $attributes = array('class' => 'validate', 'id' => 'validateform'); echo form_open('sms/addinsms/insertbulksms/view_bulk_sms/1/', $attributes); ?> <div class="grid_12"> <div class="box"> <div class="header main">SMS Setup </div> <div class="content no-padding"> <table id="" class="table"> <thead> <tr> <th style="width: 17px;">Sl No.</th> <th>Name</th> <th>Nationality</th> <th>Gender</th> <th>Batch Code</th> <th>Mobile Number</th> <th style="width: 135px;">Type</th> <th style="width: 70px;"> <input checked name="checkall" id="checkall" type="checkbox" onchange="checkasll(this)"/> </th> </tr> </thead> <tbody> <?php $slno = 0; if ($viewinfo->num_rows() > 0) { foreach ($viewinfo->result() as $row) { ?> <tr <?php if ($slno % 2 == 0) { ?>class="first" <?php } else { ?> class="second" <?php } ?>> <td><?= ++$slno; ?></td> <td><?= $row->name; ?></td> <td><?= $row->nationality; ?></td> <td><?= $row->gender; ?></td> <td><?=$row->batch_no;?></td> <td><?= $row->mobile_no; ?></td> <td><?= $row->type; ?></td> <td> <div class="actions_menu"> <input name="<?php echo "check_mobile_" . $slno; ?>" checked value="<?= $row->mobile_no; ?>" id="check_mobile" type="checkbox"/> </div> </td> </tr> <?php } } ?> <input name="moblen" value="<?= $slno; ?>" type="hidden"> </tbody> </table> </div> <div class="header main">SMS Information</div> <div class="content no-padding"> <div class="section _100"> <label>Sender ID <span style="font-weight: normal;padding: 0 10px;">(max 8 characters)</span> </label> <div class="single_page"> <input class="text required" maxlength="8" name="sender_id" value="Savoy EC" id="sender_id" type="text" style="width: 70%;" /> </div> </div> <div class="section _100"> <label>Use Template</label> <div class="single_page"> <div style="width: 70%;"> <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> </div> </div> </div> <div class="section _100"> <label>Message</label> <div class="single_page"> <textarea name="message" class="required" id="message" style="width:70%; height:80px;" maxlength="140" ></textarea> </div> </div> <div class="section _100"> <label>Options</label> <div class="single_page"> <input class="radio" name="status" checked id="status" type="radio" value="Sent" onchange="hideclassdiv('schedule',this)" checked />Send Now <input class="radio" name="status" id="status" type="radio" value="Saved" onchange="hideclassdiv('schedule',this)" /> Save as Draft </div> </div> </div> <div class="actions"> <input type="hidden" name="resfunction" value="search_bulk_sms"/> <div class="actions-right"> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Send</button> </div> </div> </div> </div> </div> <?php echo form_close(); ?> <span class="section_content_bottom"></span>