人大复印资料处理程序_查询篇

 1<html><head><title>数据库搜索 </title>
 2</head>
 3<body><table align="center" cellpadding="0" cellspacing="0" style="border-style:outset; border-bottom-width:thin; border-left-width:thin;border-right-width:thin;border-top-width:thin; border-color:#fefefe;" width="420">
 4<th bgcolor="726cc5" colspan="2">
 5<!--tr><td colspan=2 bgcolor=726cc5-->
 6<font color="white" face="Arial,Helvetica" size="2">
 7<center>   
 8本程序运行较费时间,需要耐心等待。</center></font></th>
 9<form action="&lt;? $PHP_SELF ?&gt;" enctype="multipart/form-data" method="POST" name="SubmitForm">
10<!--INPUT TYPE= "hidden" NAME = "MAX_FILE_SIZE" VALUE ="2500000"-->
11<input name="UploadAction" type="hidden" value="1"/>
12<input name="table" type="hidden" value="&lt;? echo $table; ?&gt;"/>
13<input name="table" type="hidden" value="artical"/>
14<tr border="1"><td align="center" colspan="2">查询项目   
15<tr><td align="center" colspan="2"><input checked="" name="a_data" type="radio" value="data"/>文章内容   
16<input name="a_data" type="radio" value="title"/>文章标题   
17<input name="a_data" type="radio" value="author"/>文章作者   
18<input name="a_data" type="radio" value="month"/>期刊名   
19<!--input type="radio" name=a_data value="type" >分类号<BR-->
20<tr><td>搜索内容<td><input name="data_search" size="30" type="text" value=""/></td>
21<tr><td>索引文件名<td><input name="index_file" size="30" type="text" value=""/></td>
22<tr><td>索引标题<td><input name="index_title" size="30" type="text" value=""/></td>
23<!--TR><TD>从第<INPUT NAME = "s_id" TYPE = "text" VALUE="1" SIZE = "4"><td>   
24开始的<INPUT NAME = "step" TYPE = "text" VALUE="100" SIZE = "4">条,共有<? echo $r_count ?>条记录。</TD></TR-->
25<tr><td>文章分类</td>
26<td>
27<select name="catalog" size="1" type="int">   
28?<option selected="" value="11">语言理论</option>
29<option value="21">历史学</option>
30<option value="31">中国哲学</option>
31<option value="41">其他</option>   
32?<!--OPTION selected value="11">语言理论</OPTION-->
33</select>
34</td></tr>
35<tr><td align="center" colspan="3">
36<input name="submit" type="submit" value="提交"/>
37<input name="reset" type="reset" value="重置"/></td>
38</tr></td></tr>
39</td></tr></td></tr></td></tr></td></tr></form></table></body>
40</html>
```$title作者:$author "; $count++; //fputs($fp, "$title作者:$author"); // } } } @mysql_free_result($result); mysql_close($link_id); set_time_limit(30); if($index_title==""){ $index_title="学而斋资料"; } $index_title=$index_title."_".$data_search; $html_header="$index_title"; $html_header.="
$index_title
rn"; $dte_created=date('Y-m-d H:i:s'); $html_header.="$index_describe 发现了 $count 条/查询日期:$dte_created
rn"; $html_header.="rn"; $data=$html_header.$index_data; $data.="
"; /*If(strlen($index_file)==0){ header("Content-type: text/html"); echo $data; } else { $in_file="$index_file"; $index_file="\index\".$index_file; $fp=indexfile($index_file,$index_title,$index_describe); fputs($fp, "发现了 $count 条"); fputs($fp, "查询日期:$dte_created
rn"); fputs($fp,"rn"); fputs($fp, $index_data); fputs($fp, "
"); fclose($fp); echo"点这里看新加入的文件索引
"; } */ If(strlen($index_file)!=0){ $in_file="$index_file"; $index_file="\index\".$index_file; } else $in_file="temp.html"; $fp=indexfile($index_file,$index_title,$index_describe); fputs($fp, "发现了 $count 条"); fputs($fp, "查询日期:$dte_created
rn"); fputs($fp,"
rn"); fputs($fp, $index_data); fputs($fp, "
"); fclose($fp); // echo"点这里看新加入的文件索引
"; header("location:$index_url$in_file"); //echo"索引文件为 $index_file"; echo"
返回 "; endif; ?>
```
Published At
Categories with Web编程
Tagged with
comments powered by Disqus