UnknownSec Bypass
403
:
/
var
/
www
/
zenithentcare
/
stmedicosoftware
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
seat_settings.php
<?php include "top1.php";?> <!-- calender --> <link rel="stylesheet" href="fullcalendar/fullcalendar.min.css" /> <script src="fullcalendar/lib/jquery.min.js"></script> <script src="fullcalendar/lib/moment.min.js"></script> <script src="fullcalendar/fullcalendar.min.js"></script> <style> #calendar { width: width: 100%; margin: 0 auto; } .response { height: 60px; } .success { background: #cdf3cd; padding: 10px 60px; border: #c3e6c3 1px solid; display: inline-block; } </style> <!-- /inner_content--> <div class="inner_content"> <!-- /inner_content_w3_agile_info--> <!-- breadcrumbs --> <div class="w3l_agileits_breadcrumbs"> <div class="w3l_agileits_breadcrumbs_inner"> <ul> <li><a href="dashboard.php">Dashboard</a><span>«</span></li> <li>Manage Seat Settings</li> </ul> </div> </div> <!-- //breadcrumbs --> <div class="inner_content_w3_agile_info two_in"> <h2 class="w3_inner_tittle">Seat Settings</h2> <!--/forms--> <div class="forms-main_agileits"> <!--/forms-inner--> <div class="forms-inner"> <!--/set-1--> <div class="set-1_w3ls"> <div class="col-md-4 button_set_one agile_info_shadow graph-form"> <!-- <h3 class="w3_inner_tittle two">Holiday </h3> --> <div class="form-body"> <input type="hidden" class="form-control1" id="hdid" name="hdid"> <div class="form-group"> <label for="textHolidayDescription">Select Department</label> <select class="form-control1" id="department" name="department" onChange="getdoctor('',this.value);" style="font-size: 14px"> </select> </div> <div class="form-group"> <label for="textHolidayDescription">Select Doctor</label> <select class="form-control1" id="doctor" name="doctor" style="font-size: 14px"> </select> </div> <div class="form-group"> <label for="textSelectedDate">Selected Date</label> <input type="text" class="form-control" id="textSelectedDate" name="textSelectedDate" placeholder="Selected Date"> </div> <div class="form-group"> <label for="textTotalSlot">Total Slot</label> <input type="text" class="form-control" id="textTotalSlot" name="textTotalSlot" placeholder="Enter Total Slot"> </div> <button type="submit" class="btn btn-default" id="btnsave" name="btnsave" onclick="alotseattodoctor();">SAVE</button> <button type="submit" class="btn btn-default" id="btnclear1" name="btnclear1">CLEAR</button> </div> </div> <div class="col-md-8 graph-form general agile_info_shadow"> <!-- <h3 class="w3_inner_tittle two">Holiday List </h3> --> <div class="response"></div> <div id='calendar'></div> </div> </div> <div class="clearfix"> </div> </div> <!--//set-1--> </div> <!--//forms-inner--> </div> <!--//forms--> </div> <!-- //inner_content_w3_agile_info--> </div> <!-- //inner_content--> <script type="text/javascript"> $(document).ready(function() { getdepartment(""); var calendar = $('#calendar').fullCalendar({ editable: true, events: "load_doctor_slot.php", displayEventTime: false, eventRender: function (event, element, view) { //alert(event.title); if (event.allDay === 'true') { event.allDay = true; } else { event.allDay = false; } }, selectable: true, selectHelper: true, select: function (start, end, allDay) { alert("yogendra singh"); var today = new Date(); var dd = String(today.getDate()).padStart(2, '0'); var mm = String(today.getMonth() + 1).padStart(2, '0'); //January is 0! var yyyy = today.getFullYear(); today = dd + '-' + mm + '-' + yyyy; var selecteddate= $.fullCalendar.formatDate(start, "D-MM-Y"); alert(selecteddate); var d1=new Date(selecteddate); var d2=new Date(today); if(d1<d2) { alert("you cant allocate seat in back date"); return; } $('#textSelectedDate').val(selecteddate); }, eventClick: function (event) { // alert(event.title); if(event.title=="NA") { alert("Slot is not available for this date"); return; } } }); }); function getdepartment(val) { var identifier = 1; $.ajax({ type: "Post", url: "getalldepartment.php", data: '&identifier=' + identifier, success: function(res) { var data = JSON.parse(res); var sel = $("#department"); sel.empty(); $("#department").append('<option>Select Department</option>'); for (var i = 0; i < data.length; i++) { if (data[i].parcode == val) { sel.append('<option value="' + data[i].parcode + '" selected=true>' + data[i] .parname + '</option>'); } else { sel.append('<option value="' + data[i].parcode + '">' + data[i].parname + '</option>'); } } } }); } function getdoctor(val, sid) { var identifier = 4; $.ajax({ type: "Post", url: "getalldepartment.php", data: '&identifier=' + identifier + '&sid=' + sid, success: function(res) { var data = JSON.parse(res); var sel = $("#doctor"); sel.empty(); for (var i = 0; i < data.length; i++) { if (data[i].parcode == val) { sel.append('<option value="' + data[i].parcode + '" selected=true>' + data[i] .parname + '</option>'); } else { sel.append('<option value="' + data[i].parcode + '">' + data[i].parname + '</option>'); } } } }); } function alotseattodoctor() { var flag = true; var inputField3 = document.getElementById("department"); if (inputField3.value == "Select Department") { flag = false; alert("Please select department."); document.getElementById("department").focus(); return false; } var inputField4 = document.getElementById("doctor"); if (inputField4.value == "Select Consultant Doctor") { flag = false; alert("Please select doctor."); document.getElementById("doctor").focus(); return false; } var inputField1 =document.getElementById("textSelectedDate"); if (inputField1.value == "") { flag = false; alert("Please Select Date."); document.getElementById("textSelectedDate").focus(); return false; } var inputField2 = document.getElementById("textTotalSlot"); if (inputField2.value == "") { flag = false; alert("Please enter total slot."); document.getElementById("textTotalSlot").focus(); return false; } var tslot= document.getElementById("textTotalSlot").value; if(isNaN(tslot)) { alert("please enter numeric value"); document.getElementById("textTotalSlot").focus(); return; } try { if (flag == true) { var depart= document.getElementById("department").value; var doctor= document.getElementById("doctor").value; var totalslot=document.getElementById("textTotalSlot").value; var sdate = document.getElementById("textSelectedDate").value; var color="#000000"; $.ajax({ url: 'doctor_sloat_save.php', data: 'depart=' + depart + '&doctor=' + doctor + '&totalslot=' + totalslot+'&sdate='+sdate, type: "POST", success: function (msg) { if(msg==1) { alert("Added Successfully"); window.location.href='seat_settings.php'; //getdepartment(depart); } else if(msg==2) { alert("You cant allocate seat because holiday set for this date"); window.location.href='seat_settings.php'; } } }); } } catch (Error) { alert(Error); } return; } </script> <?php include "footer.php";?>
Copyright © 2025 - UnknownSec