MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /var/www/html/pathumthani_eoffice/application/bin/agenda_bk/common/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/pathumthani_eoffice/application/bin/agenda_bk/common/javaopenwin.js
<!--
ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
			
ns4 = ((navigator.appName == "Netscape") &&	(parseInt(navigator.appVersion) >= 4 ))

function openwin( urlpage, width, height,newwin) {
        center = 1;                                
        xpos=0; ypos=0;
        if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
                xpos = (screen.width - width) / 2;
                ypos = (screen.height - height) / 2;
        }
        arg = "width=" + width + "," 
        + "height=" + height + "," 
        + "location=0"	// address bar
        + "menubar=0,"
        + "resizable=no,"
        + "scrollbars=no,"
        + "status=0," 
        + "toolbar=0,"
        + "screenx=" + xpos + ","  // Netscape
        + "screeny=" + ypos + ","  // Netscape
        + "left=" + xpos + ","     // IE
        + "top=" + ypos;           // IE

        window.open( urlpage,'newwin',arg );
}
//  แทรก  <script src="inc/javaopenwin.js" type="text/javascript" language="javascript"></script>
//  ไว้ในระหว่าง tag <head> กับ </head> ด้วย 	****** ระวัง**** ตรง src อ้างชื่อ File and path ให้ถูกต้อง
//  ตอนเรียกใช้ใน html ใชECode ดังนีE   ==> <a href ='#' onclick="openwin('detail.php?id=1',300,200)">xxx</a>
//-->
function openwin2( urlpage, width, height,newwin) {
        center = 1;                                
        xpos=0; ypos=0;
        if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
                xpos = (screen.width - width) / 2;
                ypos = (screen.height - height) / 2;
        }
        arg = "width=" + width + "," 
        + "height=" + height + "," 
        + "location=0"	// address bar
        + "menubar=0,"
        + "resizable=yes,"
        + "status=0," 
        + "toolbar=0,"
        + "screenx=" + xpos + ","  // Netscape
        + "screeny=" + ypos + ","  // Netscape
        + "left=" + xpos + ","     // IE
        + "top=" + ypos;           // IE

        window.open( urlpage,'newwin',arg );
}
function openwin3( urlpage, width, height,newwin) {
        center = 1;                                
        xpos=0; ypos=0;
        if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
                xpos = (screen.width - width) / 2;
                ypos = (screen.height - height) / 2;
        }
        arg = "width=" + width + "," 
        + "height=" + height + "," 
        + "location=0"	// address bar
        + "menubar=0,"
        + "resizable=yes,"
        + "scrollbars=yes,"		
        + "status=0," 
        + "toolbar=1,"
        + "screenx=" + xpos + ","  // Netscape
        + "screeny=" + ypos + ","  // Netscape
        + "left=" + xpos + ","     // IE
        + "top=" + ypos;           // IE
//alert ("newwin");
        window.open( urlpage,newwin,arg );
}

Anon7 - 2021