/* Decoded by unphp.net */
?>AccessMn($_POST['mId']);
$sql_aream = "SELECT
m.MenuFn,
m.MenuPd
FROM
web_menu m
WHERE
m.MenuId = $mId";
$rst_m = $ses->Select2Value($sql_aream);
$MenuFn = $rst_m[0][0];
$MenuPd = $rst_m[0][1];
$Path = "modul/";
if ($ses->IsLogin()) {
require "../classes/class.JavaScriptPacker.php";
$dataJS = "
$('#content_head').html('".$MenuPd."');
$(document).ready(function() {
OuterCenterResize();
$('.divControllerCmd').click(function(){
$('.divController').toggle('slow',function(){
response = $('.divControllerCmd').css('background-image');
if (response.indexOf(\"slide-down.png\") > -1) {
$('.divControllerCmd').css('background-image', 'url(\'images/slide-up.png\')');
}else{
$('.divControllerCmd').css('background-image', 'url(\'images/slide-down.png\')');
}
});
});
$('#optSelect_branch').remoteChained('#optSelect_region', 'modul/getOptBr.php');
$('#optSelect_spoint').remoteChained('#optSelect_branch', 'modul/getOptSp.php');
$('#optSelect_salesman').remoteChained('#optSelect_spoint', 'modul/getOptSr.php');
$('#optSelect_channel').remoteChained('#optSelect_salesman', 'modul/getOptCh.php');
$('#optSelect_region').change(function() {
var vRg = $('#optSelect_region').val().split('|');
var vBr = $('#optSelect_branch').val().split('|');
var vSp = $('#optSelect_spoint').val().split('|');
var vSr = $('#optSelect_salesman').val().split('|');
var vCh = $('#optSelect_channel').val().split('|');
placeMarkersXml('modul/getXml.php?rg='+vRg[0],'blue');
});
$('#optSelect_branch').change(function() {
var vRg = $('#optSelect_region').val().split('|');
var vBr = $('#optSelect_branch').val().split('|');
var vSp = $('#optSelect_spoint').val().split('|');
var vSr = $('#optSelect_salesman').val().split('|');
var vCh = $('#optSelect_channel').val().split('|');
if ($('#optSelect_region').val()!='' && $('#optSelect_branch').val()!='') {
placeMarkersXml('modul/getXml.php?rg='+vRg[0]+'&br='+vBr[0],'blue');
}else if ($('#optSelect_region').val()!='') {
placeMarkersXml('modul/getXml.php?rg='+vRg[0],'blue');
}
});
$('#optSelect_spoint').change(function() {
var vRg = $('#optSelect_region').val().split('|');
var vBr = $('#optSelect_branch').val().split('|');
var vSp = $('#optSelect_spoint').val().split('|');
var vSr = $('#optSelect_salesman').val().split('|');
var vCh = $('#optSelect_channel').val().split('|');
if ($('#optSelect_region').val()!='' && $('#optSelect_branch').val()!='' && $('#optSelect_spoint').val()!='') {
placeMarkersXml('modul/getXml.php?rg='+vRg[0]+'&br='+vBr[0]+'&sp='+vSp[0],'blue');
}else if ($('#optSelect_region').val()!='' && $('#optSelect_branch').val()!='') {
placeMarkersXml('modul/getXml.php?rg='+vRg[0]+'&br='+vBr[0],'blue');
}
});
$('#optSelect_salesman').change(function() {
var vRg = $('#optSelect_region').val().split('|');
var vBr = $('#optSelect_branch').val().split('|');
var vSp = $('#optSelect_spoint').val().split('|');
var vSr = $('#optSelect_salesman').val().split('|');
var vCh = $('#optSelect_channel').val().split('|');
if ($('#optSelect_region').val()!='' && $('#optSelect_branch').val()!='' && $('#optSelect_spoint').val()!='' && $('#optSelect_salesman').val()!='') {
placeMarkersXml('modul/getXml.php?rg='+vRg[0]+'&br='+vBr[0]+'&sp='+vSp[0]+'&sr='+vSr[0],'blue');
}else if ($('#optSelect_region').val()!='' && $('#optSelect_branch').val()!='' && $('#optSelect_spoint').val()!='') {
placeMarkersXml('modul/getXml.php?rg='+vRg[0]+'&br='+vBr[0]+'&sp='+vSp[0],'blue');
}
});
$('#optSelect_channel').change(function() {
var vRg = $('#optSelect_region').val().split('|');
var vBr = $('#optSelect_branch').val().split('|');
var vSp = $('#optSelect_spoint').val().split('|');
var vSr = $('#optSelect_salesman').val().split('|');
var vCh = $('#optSelect_channel').val().split('|');
if ($('#optSelect_region').val()!='' && $('#optSelect_branch').val()!='' && $('#optSelect_spoint').val()!='' && $('#optSelect_salesman').val()!='' && $('#optSelect_channel').val()!='') {
placeMarkersXml('modul/getXml.php?rg='+vRg[0]+'&br='+vBr[0]+'&sp='+vSp[0]+'&sr='+vSr[0]+'&ch='+vCh[0],'blue');
}else if ($('#optSelect_region').val()!='' && $('#optSelect_branch').val()!='' && $('#optSelect_spoint').val()!='') {
placeMarkersXml('modul/getXml.php?rg='+vRg[0]+'&br='+vBr[0]+'&sp='+vSp[0]+'&sr='+vSr[0],'blue');
}
});
});
";
$packer = new JavaScriptPacker($dataJS, 'Normal', true, false);
$packed = $packer->pack();
echo "
";
$IdRegion = $ses->getSesVar('sesIdRegion');
$IdBranch = $ses->getSesVar('sesIdBranch');
$IdSPoint = $ses->getSesVar('sesIdSPoint');
$opt_rg = "";
$result = $ses->Select2Value("SELECT DISTINCT
a.REGIONCODE,
a.REGIONNAME
FROM
v_sr_per_branch AS a
WHERE
a.REGIONCODE ".(($IdRegion=="") ? "LIKE '%'" : "IN (".$IdRegion.")"));
for ($r=0; $r".$result[$r][0]." ".$result[$r][1]."";
}
echo "
";
}else{
require "../classes/class.JavaScriptPacker.php";
$dataJS = "
$('#content_head').html('Tracker');
";
$packer = new JavaScriptPacker($dataJS, 'Normal', true, false);
$packed = $packer->pack();
echo "
No Access
";
}
?>