Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.119.164.231
var $host_url="http://"+window.location.host+"/"+window.location.pathname.split('/')[1]+"/"+window.location.pathname.split('/')[2]+"/"+window.location.pathname.split('/')[3]+"/app.php?a=";
function loadMasters()
{
$is_logged_user=isLoggedIn();
if($is_logged_user==0)
{
loadappstatus();
}
else
{
alert('Please Login');
window.location.href="index.html";
}
}
function isLoggedIn(){
var logedin;
$.ajax({
type: "POST",
async: false,
url: $host_url+"loggedinvalidate",
success: function isLoggedInResponce(responce){
responce = eval('(' + responce + ')');
logedin = responce.error_code;
}
});
return logedin;
}
function logout()
{
$.ajax({
type: "POST",
async: false,
url: $host_url+"logout",
});
window.location.href="index.html";
}
function loadappform(){
$('#loadtab').load('appForm.html');
$.ajax({
type: "POST",
url:$host_url+'getcmsdropdownmenuvalues',
success: function GetCMSDropDownMenuValuesResponce(responce)
{
responce = eval('(' + responce + ')');
var serv_arr = responce.data['serv_type'];
var serv_title = '';
FillDropdownValues(serv_arr,'S2',serv_title);
var category = responce.data['category'];
var cat_title = '';
FillDropdownValues(category,'formcategory',cat_title);
var pay_arr = responce.data['pay_type'];
var pay_title = '';
FillDropdownValues(pay_arr,'S3',pay_title);
}
});
}
function showStudentDetails($responce)
{
$responce = eval('('+$responce+')');
$( "#idModal2" ).empty();
$("#idModal2").append($responce.data['html']);
$('#idModal1').modal();
}
function loadappstatus(){
$('#loadtab').load('appStatus.html');
$.ajax({
type: "POST",
url:$host_url+'getcmsdropdownmenuvalues',
success: function GetCMSDropDownMenuValuesResponce(responce)
{
responce = eval('(' + responce + ')');
var serv_arr = responce.data['serv_type'];
var serv_title = '';
FillDropdownValues(serv_arr,'S4',serv_title);
}
});
}
function FillDropdownValues(arr,ele_name,def_title)
{
document.getElementById(ele_name).options.length=0;
var op = new Option(' Select '+def_title, '#');
op.id='999';
document.getElementById(ele_name).options.add(op);
if(ele_name == 'S4')
{
var op1 = new Option(' All '+def_title, 'all');
op1.id='00';
op1.selected = 'selected';
document.getElementById(ele_name).options.add(op1);
}
jQuery.each(arr, function(k, v)
{
var op = new Option(v['val'], v['int_code']);
op.id=v['int_code'];
document.getElementById(ele_name).options.add(op);
});
}
function loadprintcor(){
$('#loadtab').load('printCor.html');
}
|