%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
/** User Controller **/ MetronicApp.controller("User", function($scope, $http, $timeout){ var CR=this; CR.get_cities=function(state_id){ CR.regdata.city_id=''; CR.cities=[]; CR.all_cities.forEach(function(v){ if(v.state_id==state_id){ CR.cities.push(v); } }); } CR.sent_otp=function(){ CR.regdata.lpage=landingPage(); var qs=urlQueryString(); show_loader(); $http({url: API_URL+'front/sent_otp?'+qs, method:'POST', data:CR.regdata}).success( function(res){ if(res.success == 'T'){ CR.encOtpMob = res.encOtpMob; CR.encOtpEmail = res.encOtpEmail; show_alert_msg(res.msg); } else{ show_alert_msg(res.msg, 'E'); } } ); } CR.sent_emailotp=function(){ CR.regdata.lpage=landingPage(); var qs=urlQueryString(); CR.regdata.file_attachments = $('#file_attachments').val(); show_loader(); $http({url: API_URL+'front/sent_emailotp?'+qs, method:'POST', data:CR.regdata}).success( function(res){ if(res.success == 'T'){ CR.encOtpMob = res.encOtpMob; CR.encOtpEmail = res.encOtpEmail; show_alert_msg(res.msg); } else{ show_alert_msg(res.msg, 'E'); } } ); } CR.submit_reg=function(){ CR.regdata.lpage=landingPage(); var qs=urlQueryString(); show_loader(); CR.regdata.encOtpMob=CR.encOtpMob; CR.regdata.encOtpEmail=CR.encOtpEmail; show_loader(); $http({url: API_URL+'front/register?'+qs, method:'POST', data:CR.regdata}).success( function(res){ if(res.success == 'T'){ CR.regdata = {}; hideModal($("#myModal5")); //show_alert_msg(res.key); //location.href="thank_you.php"; //if(res.key!='') { // location.href="https://www.shardahospital.org/Payconfirm?key="+res.key; //} else { location.href="thank_you.php"; //} }else{ show_alert_msg(res.msg, 'E'); } } ); } /* International Query */ CR.submit_intreg=function(){ CR.regdata.lpage=landingPage(); var qs=urlQueryString(); CR.regdata.file_attachments = $('#file_attachments').val(); show_loader(); CR.regdata.encOtpMob=CR.encOtpMob; CR.regdata.encOtpEmail=CR.encOtpEmail; show_loader(); $http({url: API_URL+'front/internationalregister?'+qs, method:'POST', data:CR.regdata}).success( function(res){ if(res.success == 'T'){ CR.regdata = {}; hideModal($("#myModal5")); //show_alert_msg(res.msg); location.href="thank_you.php"; }else{ show_alert_msg(res.msg, 'E'); } } ); } // //enquiry // CR.sent_otp_enquiry=function(){ // // CR.regdata.lpage=landingPage(); // // var qs=urlQueryString(); // show_loader(); // $http({url: API_URL+'front/sent_otp_enquiry?', method:'POST', data:CR.regdata1}).success( // function(res){ // if(res.success == 'T'){ // CR.encOtpMob = res.encOtpMob; // CR.encOtpEmail = res.encOtpEmail; // show_alert_msg(res.msg); // }else{ // show_alert_msg(res.msg, 'E'); // } // } // ); // } // CR.submit_reg_enquiry=function(){ // // CR.regdata.lpage=landingPage(); // // var qs=urlQueryString(); // show_loader(); // CR.regdata1.encOtpMob=CR.encOtpMob; // CR.regdata1.encOtpEmail=CR.encOtpEmail; // show_loader(); // $http({url: API_URL+'front/enquiry?', method:'POST', data:CR.regdata1}).success( // function(res){ // if(res.success == 'T'){ // CR.regdata1 = {}; // hideModal($("#myModal5")); // //show_alert_msg(res.msg); // location.href="thank_you.php"; // }else{ // show_alert_msg(res.msg, 'E'); // } // } // ); // } /** Init */ CR.init=function(){ var lpage=landingPage(); CR.cities=[]; CR.regdata={}; CR.regdata1={}; show_loader(); $http({url: API_URL+'front/init', method:'POST', data:{lpage:lpage}}).success( function(res){ CR.states=res.states; CR.all_cities=res.cities; CR.programs=res.programs; CR.def_prg_id=res.def_prg_id; CR.regdata.program_id=CR.def_prg_id; CR.appointment_times=res.appointment_times; } ); } $(function(){ CR.init(); }); }); //EOF