// JavaScript Document // News-article-sid-11-theme-phpBLANKid.txt sURL = "http://lokal.php-id.org/"; sThemes = "-theme-phpBLANKid.txt"; //http://lokal.php-id.org/site/Topic9-theme-phpBLANKid.txt //index.php?name=News&topic=9 var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1; function coba( psPar1, psPar2) { alert('coba'); yyy=document.getElementById('idLayoutBawah'); yyy.style.left = 0; yyy.style.top = document.body.clientHeight + document.body.scrollTop - 25; //Ext.MessageBox.alert('Status', 'Changes saved successfully.'); //alert( "ini coba: " + psPar1 + "--" + psPar2 + '--' + lsX); } //javascript:Klik('Downloads-index-req-viewdownloaddetails-lid-12') function Download( pID) { lsURL = "Downloads" + sThemes; if ( pID > 0) { lsURL = "Downloads-index-req-viewdownloaddetails-lid-" + pID + sThemes; } ajaxGET('GET', lsURL, 'idMainContent', 'innerHTML', 0); } function WebLink( pID) { lsURL = "Web_Links" + sThemes; ajaxGET('GET', lsURL, 'idMainContent', 'innerHTML', 0); } //javascript:Klik('Web_Links-req-visit-lid-8'); //javascript:Klik('Downloads-req-getit-lid-4'); function Klik( psURL) { liPos = psURL.indexOf( "req-visit-lid-"); if ( liPos != -1 ){ psURL = psURL + '.txt'; var oProfileWindow = window.open( psURL); oProfileWindow.focus(); return; } liPos = psURL.indexOf( "req-getit-lid-"); if ( liPos != -1 ){ psURL = psURL + '.txt'; var oProfileWindow = window.open( psURL); oProfileWindow.focus(); return; } lsURL = psURL + sThemes; ajaxGET('GET', lsURL, 'idMainContent', 'innerHTML', 0); } function _Artikel( psID, psDiv) { lsURL = "index.php?name=News&file=article&sid=" + psID + sThemes; lsURL = "News-article-sid-" + psID + sThemes; //_SetDIV( "idMainContent", lsURL); //AksiCALL( 'idMainContent', 'News', 'article', 'main', 'sid=1'); ajaxGET('GET', lsURL, psDiv, 'innerHTML', psDiv); //DivResize( 'idRight', 1, 1); //DivStatus('idRight','','hide'); //LoadURL( 'idMainContent', 'get', "http://localhost"); //location.href = "#aMainContent"; //return lsHasil; } function Artikel( psVar) { //setInterval( 'flash()', 100); _Artikel( psVar, 'idMainContent'); } function Topik( psVar) { lsURL = "News-topic-" + psVar + sThemes; ajaxGET('GET', lsURL, 'idMainContent', 'innerHTML', 'Top'); } function InfoAccount( psVar) { lsURL = 'user.txt?theme=phpBLANKid'; ajaxGET('GET', lsURL, 'idMainContent', 'innerHTML', 'Top'); } function Administrator( psVar) { lsURL = 'index.php?module=Administration&type=admin&func=adminpanel&theme=phpBLANKid'; ajaxGET('GET', lsURL, 'idMainContent', 'innerHTML'); } function _GetFieldValue( psVar) { lsHasil = document.getElementById( psVar).value; return lsHasil; } // var ar = new Array("a","b","c","d","e"); // pnCallURL( 'idKTP', 'AksiNasional', 'cari', _SetPars( ar)); function _SetPars( psVarArray) { lsHasil = ""; for (var k = psVarArray.length; k > 0; ) { lsField = psVarArray[--k]; // lsValue = document.getElementById( lsField).value; x = MM_findObj( lsField); lsValue = x.value; lsHasil = lsHasil +lsField + '=' + lsValue + '&'; } return lsHasil; } function _SetPar( psVar) { lsVar = document.getElementById( psVar).value; lsHasil = psVar + '=' + lsVar + '&'; return lsHasil; } function _SetDIV( psDIV, psPesan) { //_IsiDIV('idStatus','', psPesan); document.getElementById( psDIV).innerHTML = psPesan; } function _InfoStatus( psPesan) { _SetDIV( 'idStatus', psPesan); } // onMouseOver="_SetStatusBar('wwow');return document.StatusBarAsli" function _SetStatusBar(msgStr) { //v1.0 status=msgStr; document.StatusBarAsli = true; } //------------------------ SKRIP LOADER ---------------- //-- cara pakai // javascript:AksiCALL( 'response', 'Profile', 'Aksi', 'coba', 'var1=isi1') // AksiCALL( 'isiFrontDesk', 'AksiNasional', 'Aksi', 'main', 'idStatus=idSearchStatus'); function AksiCALL( psTujuan, psModul, psType, psNamaFungsi, psPar) { dModStart = new Date() idModKoneksiJelek = 0; //var pars = "module=Users&func=checkuser&" + Form.serialize('newuser'); var pars = "module=" + psModul + "&type="+psType +"&func=" + psNamaFungsi + "&tujuan=" + psTujuan + "&" + psPar; //_InfoStatus( "Load Module "+psType + "." + psNamaFungsi+" ..."); var myAjax = new Ajax.Request( "_ajax.kiossmyaccount", { method: 'post', parameters: pars, onComplete: AksiCALL_response }); } function AksiCALL_response(req) { if(req.status != 200 ) { pnshowajaxerror(req.responseText); return; } var json = pndejsonize(req.responseText); pnupdateauthids( json.authid); _InfoStatus( ""); var lsIdStatus = json.idStatus; var lsHasil = json.hasil; var liJml = json.jml; _SetDIV( json.tujuan, lsHasil); _SetDIV( 'idSearchStatus', ''); dModStop = new Date() iModLoadTime = dModStop.getTime() - dModStart.getTime(); sModLoadTime = 'LoadTime: ' + iModLoadTime+'ms    '; _SetDIV( 'idLoadTime', sModLoadTime); document.getElementById( json.fokus).focus(); } //------------------------ END OF SKRIP LOADER ---------------- function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i