select_modle.php
来自「本书主要介绍了从基础开始建立Portal的快速应用开发过程(RAD)的方法。通过」· PHP 代码 · 共 47 行
PHP
47 行
<?
$fp=fopen("../list.txt","r");
$i=1;
while ($buffer = fgets($fp, 4096)) {
$array[$i]=trim($buffer);
$i++;
}
$total=$i;
fclose($fp);
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="772" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td bgcolor="#0099FF">
<table width="772" border="0" cellpadding="0" cellspacing="1">
<tr bgcolor="#FFFFFF">
<td width="16%" height="19">序号</td>
<td width="45%" height="19">模版名称</td>
<td width="39%" height="19">选择</td>
</tr>
<?for($i=1;$i<=$total;$i++){?>
<tr bgcolor="#FFFFFF">
<td height="20" width="16%">
<?echo $i;?>
</td>
<td height="20" width="45%"><a href=../template/<?echo rawurlencode($array[$i]).".php";?> > <?echo $array[$i];?>
</a> </td>
<td height="20" width="39%"><a href=select_modle_done.php?column=<?echo $id;?>&id=<?echo $array[$i];?> >
选择
</a></td>
</tr>
<?}?>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?