📄 index.php
字号:
<?
include_once("inc/auth.php");
?>
<html>
<head>
<title>选择模版</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<? include_once("inc/menu_button.js");?>
<script Language="JavaScript">
var parent_window =window.opener;
function click_model(ID)
{
parent_window.TANGER_OCX_AddDocHeader(ID);
window.close();
}
</script>
</head>
<body class="bodycolor" topmargin="5">
<?
$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(sizeof($MODEL_ARRAY)>0)
{
sort ($MODEL_ARRAY);
reset ($MODEL_ARRAY);
}
for($I=0;$I<sizeof($MODEL_ARRAY);$I++)
{
if($I==0)
{
?>
<table class="TableBlock" width="100%" onMouseover="borderize_on(event)" onMouseout="borderize_off(event)" onclick="borderize_on1(event)">
<tr class="TableHeader">
<td align="center"><b>选择模版</b></td>
</tr>
<?
}
?>
<tr class="TableData">
<td class="menulines" align="center" onclick=javascript:click_model('<?=urlencode($MODEL_ARRAY[$I])?>') style="cursor:hand">
<?=$MODEL_ARRAY[$I]?>
</td>
</tr>
<?
}
if($I==0)
Message("","没有定义模版","blank");
else
echo "</table>";
?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -