<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../js/css.css" type="text/css">
<link href="../js/css_z.css" rel="stylesheet" type="text/css">
</head>
<?php include("session.php"); ?>

<script src="../js/onlynum.js"></script> 
<script src="../js/view_images.js"></script>
<script src="../js/process_input_s.js"></script>

<?php include("../conn.php"); ?>

<? 

$read_juan_id=$_GET["juan_id"];
$sql="select  *  from  database_name  where   id=";
$sql=$sql." (select  database_id  from  fenlei   where   id=".$read_juan_id.")";
$rs=$conn->execute($sql);
if (!$rs->EOF)
{

  $read_database_name=$rs->fields["database_name"];
} 

$rs->close;

$sql="select  *  from  fenlei  where   id=".$read_juan_id;
$rs=$conn->execute($sql);
if (!$rs->EOF)
{

  $read_juan_name=$rs->fields["exam_juan_name"];
} 

$rs->close;
$conn->close;


?>


<body>
  
  <table width="90%" height="33"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="33"><div align="center"></div></td>
  </tr>
</table>
  
<table width="90%"  border="1" align="center" cellpadding="0" cellspacing="0" bordercolordark="#FFFFFF" bordercolorlight="#96c2f1" >
  <tr>
    <td height="30" valign="middle" bgcolor="#eff7ff"><div align="center"><font color="#0000FF"><b><? echo $read_juan_name;?></b></font> <font color="#999999"> 试题录入系统 [编号：<? echo ($read_juan_id);?>]</font></div></td>
  </tr>
  <tr>
    <td height="217" valign="top">
	
	<form name="form1" method="post" action="save_sss.php?juan_id=<? echo $read_juan_id;?>">
      <table width="100%"  border="0" cellpadding="0" cellspacing="0" >
        <tr bgcolor="#FFFFFF">
          <td height="28">&nbsp;</td>
          <td>&nbsp;</td>
          <td height="28" colspan="2" bgcolor="#FFFFFF">&nbsp;</td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td width="11%" height="28"><div align="right">题 型</div></td>
          <td width="1%">&nbsp;</td>
          <td height="28" colspan="2" bgcolor="#FFFFFF">
            
         
            <input name="type" type="radio" value="1" checked>
            <font color="#ff0000">单项选择题</font> 
           
            
         
          </td>
          </tr>
        <tr bgcolor="#FFFFFF">
          <td height="163"><div align="right">题 目</div></td>
          <td>&nbsp;</td>
          <td height="163" colspan="2"><textarea name="shiti" cols="80" rows="12" id="shiti"  class="mult_box"></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="28"><div align="right"></div></td>
          <td>&nbsp;</td>
          <td height="28" colspan="2"><iframe src="admin_up_images1.php?database_name=<?php echo urlencode($read_database_name); ?>" width="600" height="25" frameborder="0" scrolling="no"></iframe></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="28"><div align="right">图像：</div></td>
          <td>&nbsp;</td>
          <td height="28" colspan="2"><div align="left"><input name="moviepic" id="moviepic" size=40 maxlength="40" datatype="Require" msg="请填写影片图片" readonly>
          图像最大10MB，支持jpg|bmp|gif|png 图像格式 点击<a href="#" onClick="view_images(document.form1.moviepic.value);">查看</a></div></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="28"><div align="right">选项A：</div></td>
          <td>&nbsp;</td>
          <td height="28" colspan="2"><input name="as" type="text" id="as" size="70" maxlength="50" class="me_input2">
            <span>*选项最长50字符</span> </td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="28"><div align="right">选项B：</div></td>
          <td>&nbsp;</td>
          <td height="28" colspan="2"><input name="bs" type="text" id="bs" size="70" maxlength="50" class="me_input2"></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="28"><div align="right">选项C：</div></td>
          <td>&nbsp;</td>
          <td height="28" colspan="2"><div align="left">
            <input name="cs" type="text" id="cs" size="70" maxlength="50" class="me_input2">
          </div></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="28"><div align="right">选项D：</div></td>
          <td>&nbsp;</td>
          <td height="28" colspan="2"><input name="ds" type="text" id="ds" size="70" maxlength="50" class="me_input2"></td>
          </tr>


		  <tr bgcolor="#FFFFFF">
		    <td height="31"><div align="right"></div></td>
		    <td>&nbsp;</td>
		    <td height="31" colspan="2"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="62%" height="24">&nbsp;</td>
                <td width="38%">
                <input type="button" name="Submit" value="自动选择项填写" onClick="javascript:process_input_s(document.form1.shiti.value)"><div id="displayinfo"></div>
                
                </td>
              </tr>
            </table></td>
	      </tr>
		  <tr bgcolor="#FFFFFF">
		    <td height="30"><div align="right"><span>分 值</span></div></td>
		    <td>&nbsp;</td>
		    <td height="30" colspan="2"><div align="left">
		      <input name="score"  type="text" class="me_input3" id="score" value="1" size="20" maxlength="2" onkeydown= "return onlynum();">
	        <span>* 只能是数字，最多2位</span></div></td>
	      </tr>
		  <tr bgcolor="#FFFFFF">
          <td height="82"><div align="right"><span>答 案</span></div></td>
          <td>&nbsp;</td>
          <td height="82" colspan="2">
		    <table width="64%"  border="0" cellspacing="0" cellpadding="0">
              
               
<? 
    

       $url="save_sss.php?juan_id=".$read_juan_id;
       $url=$url."&shiti_type=".$read_type;

?>
			  <tr>
                <td width="22%" height="22"><input type="radio" name="sele_answer" value="1" onClick="javascript:user_submit('<?   echo $url;?>')">
                  选择项A</td>
                <td width="19%"><input type="radio" name="sele_answer" value="2" onClick="javascript:user_submit('<?   echo $url;?>')">
                  选择项B</td>
                <td width="21%"><input type="radio" name="sele_answer" value="3" onClick="javascript:user_submit('<?   echo $url;?>')">
                  选择项C</td>
                <td width="38%"><input type="radio" name="sele_answer" value="4" onClick="javascript:user_submit('<?   echo $url;?>')">
                  选择项D</td>
              </tr>
			  
			 
			
             
            </table></td>
          </tr>
        <tr bgcolor="#FFFFFF">
          <td height="33"><div align="right"></div></td>
          <td>&nbsp;</td>
          <td width="29%" height="33">
              <div align="left">
                <input type="submit" name="Submit" value="确定上载试题">
              </div></td>
          <td width="59%" height="33">
              <div align="left">
                <input type="reset" name="Submit" value="数据清空">
              </div>
              <div align="left"></div></td>
        </tr>
      </table>
     
    </form></td>
  </tr>
</table>
<table width="80%" height="28"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><div align="center"></div></td>
  </tr>
</table>
  </body>
</html>

