<td width="15%" style="background:#98C9E9;" >
<a href="javascript:void(0)" onclick="docQuesSubject()" style="font-family:Arial;font-size:11px;font-weight:bold;color:#444; text-decoration:none;text-align:center;"> Doctor Questionnaire </a> </td>
</tr>
*****************************************************
<s:iterator value="faqListdb">
<option value="<s:property value='medadmfaq_id'/>"><s:property value='faq_name'/></option>
</s:iterator>
*****************************************************
<!-- Get value For Submit Appointment -->
<script>
function submitAppointment(){
alert("Submit Appointment");
// Tab variable
var gadgetPoliceA = document.getElementById('gadgetPolice').value;
//alert("gadgetPoliceA"+gadgetPoliceA);
var nonGadgetPoliceA = document.getElementById('nonGadgetPolice').value;
//alert("nonGadgetPoliceA"+nonGadgetPoliceA);
var nonPoliceA = document.getElementById('nonPolice').value;
//alert("nonPoliceA"+nonPoliceA);
var retiredGadgetPoliceA = document.getElementById('retiredGadgetPolice').value;
//alert("retiredGadgetPoliceA"+retiredGadgetPoliceA);
var retiredNonGadgetPoliceA = document.getElementById('retiredNonGadgetPolice').value;
//alert("retiredNonGadgetPoliceA"+retiredNonGadgetPoliceA);
// Form variable
var police_bp_noA = document.getElementById('police_bp_no').value;
//alert("police_bp_noA"+police_bp_noA);
var reg_noA = document.getElementById('reg_no').value;
alert("reg_noA"+reg_noA);
var police_nameA = document.getElementById('police_name').value;
//alert("police_nameA"+police_nameA);
var self_idA = document.getElementById('self_id').value;
//alert("self_idA"+self_idA);
var pDependentA = document.getElementById('pDependent').value;
//alert("pDependentA"+pDependentA);
var pCodeA= document.getElementById('pCode').value;
//alert("pCodeA"+pCodeA);
var pRankA = document.getElementById('pRank').value;
//alert("pRankA"+pRankA);
var joinDateA = document.getElementById('joinDate').value;
//alert("joinDateA"+joinDateA);
var retiredDateA = document.getElementById('retiredDate').value;
//alert("retiredDateA"+retiredDateA);
// DOB part
var dobA = document.getElementById('dob').value;
//alert("dobA"+dobA);
var yearNA = document.getElementById('yearN').value;
//alert("yearNA"+yearNA);
var monthNA = document.getElementById('monthN').value;
//alert("monthNA"+monthNA);
var dayNA = document.getElementById('dayN').value;
//alert("dayNA"+dayNA);
//Start this portion is use for get Gender radio button value
var radiosA=document.getElementsByName('gender');
//alert("radiosA"+radiosA);
var statusValA;
for (var i = 0, length = radiosA.length; i < length; i++) {
if (radiosA[i].checked) {
statusValA=radiosA[i].value;
//alert("statusValA"+statusValA);
break;
}
}
//End this portion is use for get Gender radio button value
var m3 = document.getElementById('marriedPossion');
var marriedPossionA = m3.options[m3.selectedIndex].value;
//alert("marriedPossionA"+marriedPossionA);
var full_nameA = document.getElementById('full_name').value;
alert("full_nameA"+full_nameA);
var national_idA = document.getElementById('national_id').value;
//alert("national_idA"+national_idA);
var pat_mobileA = document.getElementById('pat_mobile').value;
//alert("pat_mobileA"+pat_mobileA);
var r3 = document.getElementById('blood_group');
var blood_groupA = r3.options[r3.selectedIndex].value;
//alert("blood_groupA"+blood_groupA);
//var patType_idA = document.getElementById('patType_id').innerHTML;
var p3 = document.getElementById('patType_id');
//var patType_idA = p3.options[p3.selectedIndex].text;
var patType_idA = p3.options[p3.selectedIndex].value;
//alert("patType_idA"+patType_idA);
var height_cmA = document.getElementById('height_cm').value;
//alert("height_cmA"+height_cmA);
var weight_kgA = document.getElementById('weight_kg').value;
//alert("weight_kgA"+weight_kgA);
var eye_visionA = document.getElementById('eye_vision').value;
//alert("eye_visionA"+eye_visionA);
// Appointment Part
var dutyDrA = document.getElementById('dutyDr').checked;
//alert("dutyDrA"+dutyDrA);
var d3 = document.getElementById('dept_id');
var dept_idA = d3.options[d3.selectedIndex].value;
//alert("dept_idA"+dept_idA);
var sp3 = document.getElementById('speciality_id');
var speciality_idA = sp3.options[sp3.selectedIndex].value;
alert("speciality_idA"+speciality_idA);
var spDr3 = document.getElementById('sp_dr');
var consultentA = spDr3.options[spDr3.selectedIndex].value;
alert("consultentA"+consultentA);
var m3 = document.getElementById('medicalOfficer_id');
var medicalOfficer_idA = m3.options[m3.selectedIndex].value;
alert("medicalOfficer_idA"+medicalOfficer_idA);
var ch_complainA = document.getElementById('ch_complain').value;
//alert("ch_complainA"+ch_complainA);
var rc3 = document.getElementById('reason_consul');
var reason_consulA = rc3.options[rc3.selectedIndex].value;
//alert("reason_consulA"+reason_consulA);
var docChember_idA = document.getElementById('docChember_id').innerHTML;
//alert("docChember_idA"+docChember_idA);
window.location="appSuccessPageLoad.do?gadgetPoliceA="+gadgetPoliceA+"&nonGadgetPoliceA="+nonGadgetPoliceA+"&nonPoliceA="+nonPoliceA+"&retiredGadgetPoliceA="+retiredGadgetPoliceA+"&retiredNonGadgetPoliceA="+retiredNonGadgetPoliceA+"&police_bp_noA="+police_bp_noA+"®_noA="+reg_noA+"&police_nameA="+police_nameA+"&self_idA="+self_idA+"&pDependentA="+pDependentA+"&pCodeA="+pCodeA+"&pRankA="+pRankA+"&joinDateA="+joinDateA+"&retiredDateA="+retiredDateA+"&dobA="+dobA+"&yearNA="+yearNA+"&monthNA="+monthNA+"&dayNA="+dayNA+"&statusValA="+statusValA+"&marriedPossionA="+marriedPossionA+"&national_idA="+national_idA+"&pat_mobileA="+pat_mobileA+"&blood_groupA="+blood_groupA+"&height_cmA="+height_cmA+"&weight_kgA="+weight_kgA+"&eye_visionA="+eye_visionA+"&dutyDrA="+dutyDrA+"&dept_idA="+dept_idA+"&speciality_idA="+speciality_idA+"&consultentA="+consultentA+"&medicalOfficer_idA="+medicalOfficer_idA+"&ch_complainA="+ch_complainA+"&reason_consulA="+reason_consulA+"&patType_idA="+patType_idA+"&docChember_idA="+docChember_idA;
alert("new Rules 1");
var url = "serialMaintainPageLoad.do?reg_noA="+reg_noA+"&full_nameA="+full_nameA+"&consultentA="+consultentA;
//var url = "serialMaintainPageLoad.do";
alert("new Rules 2");
makeRequestNoImage(url,'patient_serialMaintainDiv');
alert("new Rules 3");
//var url = "roomDrSpecialPageLoad.do";
//var url = "roomDrSpecialPageLoad.do?speciality_idA="+speciality_idA+"&docChember_idA="+docChember_idA+"&consultentA="+consultentA;
var url = "roomDrSpecialPageLoad.do";
alert("new Rules 4");
makeRequestNoImage(url,'roomDrSpecial_div');
alert("new Rules 5");
}
</script>
No comments:
Post a Comment