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




<?php
$result = mysql_query("SELECT * FROM ".$b_qz."_dt where id='".$_GET['id']."' and adm='".$_SESSION['id']."' " );/// DESC 
while($row = mysql_fetch_array($result))
{
$wt=$row['w'];
$da=$row['d'];
}
?>


<?php
$result = mysql_query("SELECT * FROM ".$b_qz."_tk where id='".$wt."' " );/// DESC 
while($row = mysql_fetch_array($result))
{
$a_tx=$row['tx'];
$a_w=$row['tm'];
$a_a=$row['a'];
$a_b=$row['b'];
$a_c=$row['c'];
$a_d=$row['d'];
}


if($_GET['adm']=='dyy')
{
$_SESSION['wdms']='ok';
}


?>







<!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">




<div id="ks_zt">

<div id="ks_left">


<div id="dt_kk" class="yy" >
<form action="./run/ks_ks2.php?tj=tj&id=<?php echo $_GET['id']; ?>" method="post">
<div id="dt_tx">　<a href="./ks_ks.php">返回</a> > <?php echo $a_tx."  ".$_GET['i']."  "; ?></div>

<div id="dt_xkk" class="yy">
<div id='dt_wtt' ><?php echo $a_w; ?></div>


<table>
  <tr>
    <td> </td>
    <td><label for="a_a">A:</label></td>
    <td><label for="a_a"><?php echo $a_a; ?></label></td>
    <td><input name="a" type="checkbox" id="a_a" <?php if(strstr($da,"A")) {echo "checked"; } ?> ></td>
    <td></td>
  </tr>

  <tr>
    <td>&nbsp;</td>
    <td><label for="a_b">B:</label></td>
    <td><label for="a_b"><?php echo $a_b; ?></label></td>
    <td><input id="a_b" name="b" type="checkbox" <?php if(strstr($da,"B")) {echo "checked"; } ?> ></td>
    <td></td>
  </tr>

  <tr>
    <td>&nbsp;</td>
    <td><label for="a_c">C:</label></td>
    <td><label for="a_c"><?php echo $a_c; ?></label></td>
    <td><input id="a_c" name="c" type="checkbox" <?php if(strstr($da,"C")) {echo "checked"; } ?> ></td>
    <td></td>
  </tr>

  <tr>
    <td>&nbsp;</td>
    <td><label for="a_d">D:</label></td>
    <td><label for="a_d"><?php echo $a_d; ?></label></td>
    <td><input id="a_d" name="d" type="checkbox" <?php if(strstr($da,"D")) {echo "checked"; } ?> ></td>
    <td></td>
  </tr>
</table>

<div id='dt_tj' ><input type="submit" value="　确认，进入下一题　" /></div>
</form>

</div>

</div>




</div><!--enc ks_left-->


<div id="ks_right"><?php include("./zj/ks_xx.php"); /////写 ?></div>

</div><!--enc ks_right-->





</div><!--enc all-->




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




</body>
</html>



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