【php开源代码栏目提醒】:网学会员--在 php开源代码编辑为广大网友搜集整理了:addquestion.php绩等信息,祝愿广大网友取得需要的信息,参考学习。
<?php
session_start();
if($_SESSION["admin_nc"]=="")
{
echo "<script>alert('禁止非法登录!');window.location.href='../index.php';</script>";
exit;
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>BCTY365网上社区—后台管理</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body topmargin="0" leftmargin="0" bottommargin="0" class="scrollbar">
<script language="javascript">
function chkinput(form){
if(form.author.value==""){
alert("请输入作者名称!");
form.author.focus();
return(false);
}
if(form.question.value==""){
alert("请输入问题!");
form.question.focus();
return(false);
}
if(form.answer.value==""){
alert("请输入
问题答案!");
form.answer.focus();
return(false);
}
return(true);
}
</script>
<table width="565" border="1" align="center" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#327387">
<form name="form1" method="post" action="savecjwt.php" onSubmit="return chkinput(this)">
<tr>
<td height="25" colspan="3" align="center" class="a5"><?php echo $htgl;?></td>
</tr>
<tr>
<td width="117" height="25" bgcolor="#FFFFFF"><div align="center">作者:</div></td>
<td width="435" height="25" bgcolor="#FFFFFF">
<input type="text" name="author" size="25" class="txt_grey"></td>
</tr>
<tr>
<td height="140" bgcolor="#FFFFFF"><div align="center">问题:</div></td>
<td height="25" bgcolor="#FFFFFF"> <textarea name="question" rows="10" cols="60" class="textarea"></textarea></td>
</tr>
<tr>
<td height="140" bgcolor="#FFFFFF"><div align="center">答案:</div></td>
<td height="25" bgcolor="#FFFFFF"> <textarea name="answer" rows="10" cols="60" class="textarea"></textarea></td>
</tr>
<tr>
<td height="25" colspan="2" bgcolor="#FFFFFF"><div align="center"><input type="submit" value="添加" class="btn_grey"> <input type="reset" value="重写" class="btn_grey"></div></td>
</tr>
</form>
</table>
</body>
</html>