<?php 
session_start(); //开着身份验证，以
include("./sql/conn.php"); /////写
header("Content-type: text/html; charset=utf-8"); 
$llym = $_SERVER["HTTP_REFERER"];
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>导入试题</title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
</head>

<body>



<div id="head_k">
<div id="head_n" class="yy" >
<?php include("./zj/head.php"); /////写 ?>
</div>
</div>



<div id="all" class="yy">
<?php include("./zj/kg_dh.php"); /////写 ?>

<br />
<p align="center">试题录入</p>
<form action=./run/kg_drtk.php?tjx=tjx method=post style="text-align:center">
<select name="nr" style="width:300px;  " ><option value=""></option>
<?php
$result = mysql_query("SELECT * FROM ".$b_qz."_tk_name ORDER BY id DESC " );/// DESC 
while($row = mysql_fetch_array($result))
{
echo "<option value=".$row['name']." >".$row['name']."</option>";
}
?>
</select>

<select name="tx" style="width:300px;  " >
<option value=""></option>
<option value="单选">单选</option>
<option value="多选">多选</option>
<option value="判断">判断</option>
</select>

<br />
<textarea name="tk" style="width:800px; height:185px; " ></textarea> <br />
<input name="submit" style="width:800px; " type=submit class="inp" onClick=return value=提交导入 confirm('确定！？') /></form>

<br />
　第一行，题库名字”<br /> 
　第二行，每行按“问题,一选,二选,三选,四选,正确”示例进行输入!<br /> 
<br />








<form action=./run/kg_drtk.php?tj=tj method=post style="text-align:center">
<center>
<table align="center" style="text-align:center">
  <tr>
    <td>题库</td>
    <td>题形</td>
    <td>问题</td>
    <td>A</td>
    <td>B</td>
    <td>C</td>
    <td>D</td>
    <td>正确</td>
    <td>-</td>
  </tr>
  <tr>
    <td>
<select name="nr" style="width:88px;  " ><option value=""></option>
<?php
$result = mysql_query("SELECT * FROM ".$b_qz."_tk_name ORDER BY id DESC " );/// DESC 
while($row = mysql_fetch_array($result))
{
echo "<option value=".$row['name']." >".$row['name']."</option>";
}
?>
</select>
</td>
    <td>
<select name="tx" style="width:78px;  " >
<option value=""></option>
<option value="单选">单选</option>
<option value="多选">多选</option>
<option value="判断">判断</option>
</select>
	</td>
	<td><textarea name="a" style='width:78px; height:20px;'></textarea></td>
    <td><textarea name="b" style='width:78px; height:20px;'></textarea></td>
    <td><textarea name="c" style='width:78px; height:20px;'></textarea></td>
    <td><textarea name="d" style='width:78px; height:20px;'></textarea></td>
    <td><textarea name="e" style='width:78px; height:20px;'></textarea></td>
    <td><textarea name="f" style='width:78px; height:20px;'></textarea></td>
    <td><input type=submit value=单条增加  /></td>
  </tr>
</table>
</center>
</form>






</div>




<div id="foot_k">
<div id="foot_n" class="yy" >
<?php include("./zj/foot.php"); /////写 ?>
</div>
</div>




</body>
</html>



<?php include("./sql/close.php"); /////写?>