Hacked By AnonymousFox

Current Path : C:/AppServ/www/new_msd1/webengine/system/
Upload File :
Current File : C:/AppServ/www/new_msd1/webengine/system/popup_icon_library.php

<? 
include("../lib/session.php"); 
include("../lib/config.php");
include("../lib/connect.php");
include("../lib/function.php");
?>
<html><!-- InstanceBegin template="/Templates/WebEngine-Adminpanel-Popup.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Web Engine : 
<?=$System_Variable_Title?>
</title>
<!-- InstanceEndEditable --> 
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<link href="../css/mystyle.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
  <tr valign="top"> 
    <td width="77%" align="center" valign="top" bgcolor="#FFFFFF"><!-- InstanceBeginEditable name="Programmable Region" -->
<table width="100%" height="100%" border="0" cellpadding="2" cellspacing="0">
        <tr> 
          <td height="20" align="right" valign="top" class="table_footer"> <table border="0" cellspacing="0" cellpadding="2">
              <tr> 
                <td><input name="btClose" type="button" class="button_80" id="btClose" value="Close" onClick="window.close(); "></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td align="center" valign="middle"> 
            <? 
//# Default Value ############################################
$SystemModule_ColumnSize= 15;
$SystemModule_MaxIconSize= 20;  //Pixel
$SystemModule_IconLibraryPath = $System_RelativePath_IconLibrary;
?>
            <table width="98%" height="26" border="0" cellpadding="0" cellspacing="0" class="table_toolbar">
              <form action="?" method="post" name="myToolbarForm" id="myToolbarForm" onSubmit="return false;">
                <tr> 
                  <td width="5" align="left" valign="top"> <img src="../images/bgborder1w.gif" width="5" height="5"></td>
                  <td align="center" valign="middle"><strong>Click to Select Icon.</strong></td>
                  <td width="5" align="right" valign="top"><img src="../images/bgborder2w.gif" width="5" height="5"></td>
                </tr>
              </form>
            </table>
            <table border="0" cellpadding="0" cellspacing="1">
              <tr> 
                <td bgcolor="#FFFFFF"> <table border="0" cellpadding="0" cellspacing="1" class="table_border">
                    <form action="?" method="post" name="myForm" id="myForm">
                      <tr align="center"> 
                        <? for($i=1;$i<=$SystemModule_ColumnSize;$i++) { ?>
                        <td height="22" class="table_header">&nbsp;</td>
                        <? } ?>
                      </tr>
                      <?
// Get Files
$colCount=0;
$handle = opendir($SystemModule_IconLibraryPath); 
while(false!==($file=readdir($handle))) { 
    if ($file!="." && $file!="..") { 
		if(is_file($SystemModule_IconLibraryPath."/".$file)) {
			$size=GetImageSize ($SystemModule_IconLibraryPath . "/". $file); 
			if($size!=NULL) {
				$ImgWidth = $size[0];
				$ImgHeight = $size[1];
				if($ImgWidth<=$SystemModule_MaxIconSize && $ImgHeight<=$SystemModule_MaxIconSize) {
					if($colCount==0) {
						?>
                      <tr> 
                        <?
					}
					if($myClassName=="table_row1") { $myClassName="table_row2"; } else { $myClassName="table_row1"; }
					$colCount++;
					?>
                        <td width="30" height="30" align="center" class="<?=$myClassName?>"><img src="<?=$SystemModule_IconLibraryPath?>/<?=$file?>" onMouseOver="this.style.cursor='hand'" onClick="setImageSelected('<?=$SystemModule_IconLibraryPath . "/". $file?>')"></td>
                        <?
					if($colCount==$SystemModule_ColumnSize) {
						$colCount=0;
						?>
                      </tr>
                      <?
					}
				}
			}
		}
    } 
}
closedir($handle); 

if($colCount<$SystemModule_ColumnSize) {
	for($i=$colCount;$i<$SystemModule_ColumnSize;$i++) {
			if($myClassName=="mytable_row1") { $myClassName="mytable_row2"; } else { $myClassName="mytable_row1"; }
			?>
                    </form>
                    <td width="30" height="30" align="center" class="table_row2">&nbsp;</td>
                    <?
	}
} ?>
                  </table>
                  
                </td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td height="20" align="right" valign="top" class="table_footer"> <table border="0" cellspacing="0" cellpadding="2">
              <tr> 
                <td><input name="btClose" type="button" class="button_80" id="btClose" value="Close" onClick="window.close(); "></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <script language="JavaScript" type="text/JavaScript">
function setImageSelected(myPath) {
	window.opener.document.LibraryIconSample.src = myPath;
	window.opener.document.myForm.inputIconName.value = myPath;
	window.close();
}
	  </script>
      <!-- InstanceEndEditable --></td>
  </tr>
</table>
</body>
<!-- InstanceEnd --></html>
<? 
include("../lib/disconnect.php");
?>

Hacked By AnonymousFox1.0, Coded By AnonymousFox