<?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 />

<center>
<table>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
  <tr>
    <td>&nbsp;</td>
<?php
$result = mysql_query("SELECT * FROM ".$b_qz."_zt " );
while($row = mysql_fetch_array($result))
{
?>
    <td><div id="ksdl_<?php echo $row['dl']; ?>" ><?php if($row['dl']=='on'){
	echo "<a href=./run/kg_sz.php?ks_dl=off >现在 允许考生登陆</a>";
	}else{
	echo "<a href=./run/kg_sz.php?ks_dl=on >现在 禁止考生登陆</a>";
	} ?></div></td>
    <td>&nbsp;</td>
    <td><div id="ksdl_<?php echo $row['ks']; ?>" ><?php if($row['ks']=='on'){
	echo "<a href=./run/kg_sz.php?ks_ks=off >现在 允许考生答题</a>";
	}else{
	echo "<a href=./run/kg_sz.php?ks_ks=on >现在 禁止考生答题</a>";
	} ?></div></td>
 <?php }
?>

<form action=./run/kg_sz.php?ks_nr=ks_nr method=post style="text-align:center">
    <td>
<select name="ks_nr" style="width:230px; height:60px; line-height:60px; font-size:24px;" >
<?php
$result = mysql_query("SELECT * FROM ".$b_qz."_zt " );/// DESC 
while($row = mysql_fetch_array($result))
{
echo "<option value=".$row['ksnr']." >".$row['ksnr']."</option>";
}
?>
<option value=""  ></option>
<?php
$result = mysql_query("SELECT * FROM ".$b_qz."_ks_name ORDER BY id DESC " );/// DESC 
while($row = mysql_fetch_array($result))
{
echo "<option value=".$row['name']." >".$row['name']."</option>";
}
?>
</select>
</td>
    <td><input style="width:40px; height:60px;" type=submit class="inp" onClick=return value=修改 confirm('确定！？') /></td>
</form>
   </tr>


  <tr>
    <td>&nbsp;</td>
    <td>
    <td>&nbsp;</td>
    <td></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
</table>

</center>

<br />





<br />

<p align="center">考生须知内容</p>
<center>
<form action=./run/kg_sz.php?gg=gg&id=1 method=post >
<textarea name="gg" style="width:900px; height:85px; " ><?php include("./txt/a1.txt");?></textarea><br />
<input name="submit" style="width:900px; " type=submit class="inp" onClick=return value=修改 confirm('确定！？') /></form>
</center>

<center>
<br />
<p align="center">离座告知内容</p>
<form action=./run/kg_sz.php?gg=gg&id=2 method=post >
<textarea name="gg" style="width:900px; height:85px; " ><?php include("./txt/a2.txt");?></textarea><br />
<input name="submit" style="width:900px; " type=submit class="inp" onClick=return value=修改 confirm('确定！？') /></form>
</center>
<br />


<center>
<br />
<p align="center">FOOT 文字</p>
<form action=./run/kg_sz.php?gg=gg&id=3 method=post >
<textarea name="gg" style="width:900px; height:35px; " ><?php include("./txt/a3.txt");?></textarea><br />
<input name="submit" style="width:900px; " type=submit class="inp" onClick=return value=修改 confirm('确定！？') /></form>
</center>
<br />



<center>
<form action="./run/kg_up.php" enctype="multipart/form-data" method="post" name="up" >
<img src="img/ks_logo.png" width="204" height="27" />
<input name="upfile" type="file" accept="image/png, image/jpeg" />
<input type="submit" value="上传全站LOGO PNG" <?php if (empty($_SESSION['user_1'])){ echo " disabled "; } ?> />
</form>
</center>


<br />


</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"); /////写?>