if (isset($_REQUEST['sesssion_id'])) {
    echo $_REQUEST['sesssion_id'];
}
?>
"  />
            <div class="session_entry">
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="session_id"><?php 
_e('Session Type', 'hospital_mgt');
?>
</label>
                    <div class="col-sm-8">
                        <?php 
$obj_session = new Hmgt_session();
$sessions = $obj_session->get_all_session();
hmgt_render_options($sessions, 'session', $result->session_id);
?>
                        <script type="text/javascript">
                            jQuery('#session_id').on('change',function(){
                                var relativeurl = '<?php 
echo HMS_PLUGIN_URL . '/class/session_duration.php';
?>
' ;
                                var data = {'action':'get_single_session_durations','session_id': jQuery('#session_id').val()};
                                $.get(relativeurl, data, function(callbackdata){
                                    $("#duration_id").html(callbackdata);
                                })
                            });
                        </script>
                    </div>
                </div>
$doctors = $obj_users->get_user_by_type('doctor');
hmgt_render_doctors_options($doctors, 'doctor', $selected);
?>
                            </div>
                            <label class="control-label" id="datepickerfromlabel" for="inputPatient" style="display:none;">
                                From:</label>
                            <input type="text" id="datepickerfrom" style="display:none;" class="form-control" value="2016-01-13 12:00:00">
                            <label class="control-label" id="datepickertolabel" for="inputPatient" style="display:none;">
                                To:</label>
                            <input type="text" id="datepickerto" style="display:none;" class="form-control" value="2016-01-13 12:00:00">
                           <label class="control-label" for="inputPatient">Session Type:</label>
                            <div class="controls">
                                <?php 
$obj_sessions = new Hmgt_session();
$sessions = $obj_sessions->get_all_session();
hmgt_render_options($sessions, 'session', $selected);
?>
                            </div>
                            <input type="text" style="display: none;" readonly id="apptStartTime"/>
                            <input type="text" style="display: none;" readonly id="apptEndTime"/>
                            <input type="text" style="display: none;" readonly id="apptAllDay"/>
                        </div>
                        <div class="control-group">
                            <div class="controls controls-row" id="when" style="margin-top:5px;">
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button class="btn" data-dismiss="modal" aria-hidden="true" onclick="location.reload();">Cancel
                    </button>
).html(callbackdata);
                            })
                            });
                    </script>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="doctor_id"><?php 
    _e('Doctor', 'hospital_mgt');
    ?>
</label>
                <div class="col-sm-8">
                <?php 
    $obj_users = new Hmgtuser();
    $doctors = $obj_users->get_user_by_type('doctor');
    hmgt_render_options($doctors, 'doctor', $result->doctor_id);
    ?>
                </div>
		    </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="duration_id"><?php 
    _e('Duration', 'hospital_mgt');
    ?>
</label>
                <div class="col-sm-8">
                    <select name="duration_id[]" class="form-control validate[required] duration_id" id="duration_id"<?php 
    $result->session_id;
    ?>
>
                        <option value="">Select Session First</option>
                    </select>