index.php

来自「通达网络办公 - Office Anywhere 2008 增强版100%源码(」· PHP 代码 · 共 47 行

PHP
47
字号
<?php

include_once( "inc/auth.php" );
echo "\r\n<html>\r\n<head>\r\n<title>选择模版</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n";
include_once( "inc/menu_button.js" );
echo "<script Language=\"JavaScript\">\r\nvar parent_window =window.opener;\r\n\r\nfunction click_model(ID)\r\n{\r\n  parent_window.TANGER_OCX_AddDocHeader(ID);\r\n  window.close();\r\n}\r\n</script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n";
$I = 0;
if ( $handle = opendir( "../" ) )
{
	while ( FALSE !== ( $file = readdir( $handle ) ) )
	{
		if ( strtolower( substr( $file, -4 ) ) == ".dot" )
		{
			$MODEL_ARRAY[$I++] = substr( $file, 0, -4 );
		}
	}
	closedir( $handle );
}
if ( 0 < sizeof( $MODEL_ARRAY ) )
{
	sort( &$MODEL_ARRAY );
	reset( &$MODEL_ARRAY );
}
$I = 0;
for ( ;	$I < sizeof( $MODEL_ARRAY );	++$I	)
{
	if ( $I == 0 )
	{
		echo "<table class=\"TableBlock\" width=\"100%\" onMouseover=\"borderize_on(event)\" onMouseout=\"borderize_off(event)\" onclick=\"borderize_on1(event)\">\r\n<tr class=\"TableHeader\">\r\n  <td align=\"center\"><b>选择模版</b></td>\r\n</tr>\r\n\r\n";
	}
	echo "\r\n<tr class=\"TableData\">\r\n  <td class=\"menulines\" align=\"center\" onclick=javascript:click_model('";
	echo urlencode( $MODEL_ARRAY[$I] );
	echo "') style=\"cursor:hand\">\r\n  \t";
	echo $MODEL_ARRAY[$I];
	echo "  </td>\r\n</tr>\r\n";
}
if ( $I == 0 )
{
	message( "", "没有定义模版", "blank" );
}
else
{
	echo "</table>";
}
echo "\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?