?
Current Path : /home1/savoy/public_html/savoyglobal.net/eduplus2/application/views/master/ |
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/eduplus2/application/views/master/add_session.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <?php $this->load->view('documentreadyfunctions'); ?> <script> function session_name_checking(session_name) { var name=session_name; $.ajax({ type: "POST", dataType:"json", url: "<?= site_url('master/checksessionname/') ?>/" +name, success: function(msg){ if(msg!=0) { alert("Session Already Added"); $('#session_name').val(''); } } }); } </script> <!-- BEGIN PAGE LEVEL STYLES --> <!-- END PAGE LEVEL STYLES --> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Creating new Session</div> <div class="tools"> <a href="#" onclick="viewdata('master','viewinmastersearch','search_session','view_session','<?= $_SESSION['pagenum']; ?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <!-- BEGIN FORM--> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); echo form_open('master/addinmaster/insert_session/view_session/1', $attributes); ?> <h3 class="form-section"></h3> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Session Name </label> <div class="controls"> <input name="session_name" id="session_name" type="text" class="span12 required" onchange="session_name_checking(this.value)" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Session Start Time</label> <div class="controls"> <select name="session_start_hr" id="session_start_hr" class="span12 required chosen" style="width:70px;"> <option value="">Hr</option> <?php for($i=0;$i<=24;$i++) { ?> <option value="<?= $i; ?>"><?= str_pad($i,2,'0',STR_PAD_LEFT) ?></option> <?php } ?> </select> <select name="session_start_min" id="session_start_min" class="span12 required chosen" style="width:70px;"> <option value="">Min</option> <?php for($i=0;$i<=60;$i++) { ?> <option value="<?= $i; ?>"><?= str_pad($i,2,'0',STR_PAD_LEFT) ?></option> <?php } ?> </select> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Session End Time</label> <div class="controls"> <select name="session_end_hr" id="session_end_hr" class="span12 required chosen" style="width:70px;"> <option value="">Hr</option> <?php for($i=0;$i<=24;$i++) { ?> <option value="<?= $i; ?>"><?= str_pad($i,2,'0',STR_PAD_LEFT) ?></option> <?php } ?> </select> <select name="session_end_min" id="session_end_min" class="required chosen" style="width:70px;"> <option value="">Min</option> <?php for($i=0;$i<=60;$i++) { ?> <option value="<?= $i; ?>"><?= str_pad($i,2,'0',STR_PAD_LEFT) ?></option> <?php } ?> </select> </div> </div> </div> </div> <div class="form-actions"> <input type="hidden" name="tab_name" value="session"/> <input type="hidden" name="resfunction" value="search_session"/> <button type="submit" onclick="addformdata('validateform')" class="btn blue"><i class="icon-ok"></i> Save</button> <button type="button" onclick="viewdata('master','viewinmastersearch','search_session','view_session','<?= $_SESSION['pagenum']; ?>')" class="btn">Cancel</button> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>