$obj_users = new Hmgtuser(); $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
<tfoot> <tr> <th><?php _e('Session Name', 'hospital_mgt'); ?> </th> <th><?php _e('Action', 'hospital_mgt'); ?> </th> </tr> </tfoot> <tbody> <?php $session_data = $obj_session->get_all_session(); if (!empty($session_data)) { foreach ($session_data as $retrieved_data) { ?> <tr> <td class="session_name"><?php echo $retrieved_data->session_name; ?> </td> <td class="action"> <a href="?page=hmgt_sessions_settings&tab=addsession&action=edit&session_id=<?php echo $retrieved_data->session_id; ?> " class="btn btn-info"> <?php _e('Edit', 'hospital_mgt');