/* 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()) { $ACLMN = array('ADD'=> true, 'EDIT'=>true, 'DELETE'=>true, 'PRINT'=>true); if ($ACLMN['EDIT']) { require "../classes/class.JavaScriptPacker.php"; $sql_cek = " SELECT a.KODECABANG, b.SELLINGPOINTNAME, a.CUSTNO, a.DATA01, a.CUSTNAME, a.CUSTADD1, a.CUSTADD2, a.CCITY, a.CCONTACT, a.CPHONE1, a.CFAXNO, a.CTERM, a.CLIMIT, a.FLAGLIMIT, a.TYPEOUT, e.TYPENAME, a.GRUPOUT, c.GROUPNAME, a.GHARGA, d.KET, IF(a.FLAGPAY='K', 'Kredit' , IF(a.FLAGPAY='T', 'Tunai', 'Giro')), a.RPP, a.LSALES, a.LDATETRS, a.LA, a.LG, a.ALA, a.ALG, a.XLA, a.XLG, a.XALA, a.XALG, a.EMAIL, a.DISTRIK FROM fcustmst AS a LEFT JOIN v_mst_region_branch_sellpoint AS b ON a.KODECABANG = b.SELLINGPOINTCODE LEFT JOIN fgrupout AS c ON a.GRUPOUT = c.GROUPOUT LEFT JOIN fgharga AS d ON a.GHARGA = d.GHARGA LEFT JOIN ftypeout AS e ON a.TYPEOUT = e.TYPE WHERE a.KODECABANG = '$KODECB' AND a.CUSTNO = '$KODECUS' "; $rst_cek = $ses->Select2Value($sql_cek); $row_cek = $ses->RowCount; $KODECABANG = $rst_cek[0][0]; $KODECABANGNM = $rst_cek[0][1]; $CUSTNO = $rst_cek[0][2]; $DATA01 = $rst_cek[0][3]; $CUSTNAME = $rst_cek[0][4]; $CUSTADD1 = $rst_cek[0][5]; $CUSTADD2 = $rst_cek[0][6]; $CCITY = $rst_cek[0][7]; $CCONTACT = $rst_cek[0][8]; $CPHONE1 = $rst_cek[0][9]; $CFAXNO = $rst_cek[0][10]; $CTERM = $rst_cek[0][11]; $CLIMIT = $rst_cek[0][12]; $FLAGLIMIT = $rst_cek[0][13]; $TYPEOUT = $rst_cek[0][14]; $TYPENAME = $rst_cek[0][15]; $GRUPOUT = $rst_cek[0][16]; $GROUPNAME = $rst_cek[0][17]; $GHARGA = $rst_cek[0][18]; $KET = $rst_cek[0][19]; $FLAGPAY = $rst_cek[0][20]; $RPP = $rst_cek[0][21]; $LSALES = $rst_cek[0][22]; $LDATETRS = $rst_cek[0][23]; $LA = trim($rst_cek[0][24]); $LG = trim($rst_cek[0][25]); $ALA = $rst_cek[0][26]; $ALG = $rst_cek[0][27]; $XLA = $rst_cek[0][28]; $XLG = $rst_cek[0][29]; $XALA = $rst_cek[0][30]; $XALG = $rst_cek[0][31]; $EMAIL = $rst_cek[0][32]; $DISTRIK = $rst_cek[0][33]; //ROUTE ID $filename1 = '../images/reason/'.$KODECABANG."_".$CUSTNO."_MASTER_"."."."jpg"; $filename2 = './images/reason/'.$KODECABANG."_".$CUSTNO."_MASTER_"."."."jpg"; $CusIMG = (file_exists($filename1)) ? "" : ""; $dataJS = " var la = '".$LA."'; var lg = '".$LG."'; var CUSTNAME = '".$CUSTNAME."'; var CUSTNO = '".$CUSTNO."'; $(document).ready(function () { $('#CustLat').blur(function() { hsl = checkAngka($(this), 20); if (!hsl) { $(this).focus(); } if ($('#CustLat').val()!=\"\" && $('#CustLng').val()!=\"\") { viewGPSLoc($('#maploc_Cust'), $('#CustLat').val(), $('#CustLng').val(), '".$CUSTNO." ".$CUSTNAME."', '', 'CustLat', 'CustLng'); } }); $('#CustLng').blur(function() { hsl = checkAngka($(this), 20); if (!hsl) { $(this).focus(); } if ($('#CustLat').val()!=\"\" && $('#CustLng').val()!=\"\") { viewGPSLoc($('#maploc_Cust'), $('#CustLat').val(), $('#CustLng').val(), '".$CUSTNO." ".$CUSTNAME."', '', 'CustLat', 'CustLng'); } }); if (($('#CustLat').val()!=\"\" && $('#CustLng').val()!=\"\") && ($('#CustLat').val()!=\"0\" && $('#CustLng').val()!=\"0\")) { viewGPSLoc($('#maploc_Cust'), $('#CustLat').val(), $('#CustLng').val(), '".$CUSTNO." ".$CUSTNAME."', '', 'CustLat', 'CustLng'); }else{ var mlat = 0; var mlng = 0; var geocoder = null; geocoder = new google.maps.Geocoder(); geocoder.geocode( { 'address': '$CUSTADD1'+' '+'$CUSTADD2'+', '+'$CCITY'+', '+'INDONESIA'}, function(results, status) { //alert (status); if (status == google.maps.GeocoderStatus.OK) { mlat = results[0].geometry.location.lat(); mlng = results[0].geometry.location.lng(); if (mlat!=0 && mlng!=0) { $('#CustLat').val(mlat); $('#CustLng').val(mlng); viewGPSLoc($('#maploc_Cust'), mlat, mlng, '', '', 'CustLat', 'CustLng'); } } }); } }); "; $packer = new JavaScriptPacker($dataJS, 'Normal', true, false); $packed = $packer->pack(); $sts_focus = ($flg_focus=='Y') ? "" : ""; $output = "
Sel. Point $KODECABANG $KODECABANGNM
Data $DATA01
Customer $CUSTNO $CUSTNAME
Address 1 $CUSTADD1
Address 1 $CUSTADD2
City $CCITY
Contact $CCONTACT
Phone $CPHONE1
Fax $CFAXNO
Term $CTERM
Limit ".number_format($CLIMIT)."
Type Outlet $TYPEOUT $TYPENAME
Group Outlet $GRUPOUT $GROUPNAME
Group Harga $GHARGA $KET
Pay $FLAGPAY
Last Sales $LDATETRS    Value : ".number_format($LSALES)."
RPP ".number_format($RPP)."
Email
Route Id
LA / LG /
$CusIMG
"; }else{ $output = "

No Access "; } echo $output; }else{ require "../classes/class.JavaScriptPacker.php"; $dataJS = " var javascriptnya = 'taruh di sini'; "; $packer = new JavaScriptPacker($dataJS, 'Normal', true, false); $packed = $packer->pack(); echo "

No Access "; } ?>