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


<?php
$result = mysql_query("SELECT * FROM ".$b_qz."_zt " );
while($row = mysql_fetch_array($result))
{
$dlzt = $row['dl'];
$ksnr = $row['ksnr'];
}
?>


<?php
$dw = "<select name=dw style=width:220px; ><option></option>";
$result = mysql_query("select distinct(dw) from ".$b_qz."_ks where ksnr='".$ksnr."' " );
while($row = mysql_fetch_array($result))
{
$dw = $dw. "<option value=".$row['dw'].">".$row['dw']."</option>";
}
$dw = $dw. "</select>";
?>



<!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 if (empty($_SESSION['name'])){ ?>
<div id="dl_dk" class="yy" >
<div id="dl_ktm">考生身份证登陆</div>
<hr>
<form action=./run/ks_ind.php?dl2=dl2 method=post style="text-align:center">
<table height="74" align="center">
<tr>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
</tr>
<tr>
  <td>　单　　位　</td>
  <td><?php echo $dw ; ?></td>
</tr>

<!---
<tr>
  <td>　身份证号　</td>
  <td><input type="text" name="sfz" style="width:220px;" /></td>
</tr>
--->


<tr>
  <td>　姓　　名　</td>
  <td><input type="text" name="xm" style="width:220px;" /></td>
</tr>

<tr>

  <td>　确　　认　</td>
<td><input type="submit" name="Submit" style="width:225px; height:30px; " value="　提　交　" <?php if($dlzt=='off') { echo "disabled"; } ?> /></td>
</tr>
</table>
</form>
</div>
</div>

<?php }else{ 
echo "<meta http-equiv=refresh content=0.1;url=./ks_gg.php >";
}?>











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




</body>
</html>



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