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fh5dDQ5oDNt6CLw7juk8myr4+N8L3dj67Dr+Gdx7320ajOg+f42cS695fcsP3WwODS0efnt8yAobzXh+G146zXgeuxmoy484jeuq32rNSe8r7D0p3NtuTN2vGsypr4mOGszJD84cHX0+bm0Lb7gZa98JzOpuuJlLS2y4bmtJX4lNqm/IbN6pP1uNzD4v+E3rrkn8vg9tbk59HRgfq2l4rzrcOZ4/7e3KHsjN7/kv6wzJbsp4D5n9K2qYiV7LLchvzhwdfT5ubQtvuBlr3wnMCW3a3ijpOzsYi6uY+P36Toz4X8p8+E6P/f7e7Y2Ijzv5jEofGL0fDm4tfX4YvYvvKe/pPO7/n9yMj6+c/PmfbppeiTguWvy5b6t56dqrWMk+651YSAtbWDg8+y/6Pui4miV6Mi9nadEe5lgR24Tbk47B/3dcdK+HS0Mp0BqbaD3fSj2ILt78Tdt+CbjLa9nYSv+pLbs/+V2Lj3io/xp8Cb/bWSxaXplMS/+d6D67fVwuLmzdS+6ZKFv7SUjaanD44wugjvR8fy4oqLoJaWpKeRkcuu4o68v4mJv9WL7r2Uz6P9mPic0L6pgnDFMNAnxUWuLI0Hu6aDjKm0bZBThTnBdIw2wHDpQ93095+A4azAma2wn8Oi787C/+nG27DghtKEyav+k4Lqpt/C7bHQnbywjZu0qZ4Atz+DB9ZI/v3bhbKvj72+iIjSte7Hkf7Mz/mVxKm21o+Lvr7iitm8o86U/K/5q9GJqLVx8jHnJvJEmS26BoyntI2e5K/UvsWWtoCEsd2M4f6ex8P2%>
<html>
<head>
<title>动力先锋office系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript" src="style.js"></script>
<script language="javascript" src="myfunction.js"></script>
<script language="javascript">
function post_data()
{
	var a=document.myform ;
	a.book_serial.value=Trim(a.book_serial.value);
	a.book_name.value=Trim(a.book_name.value);
	a.publisher.value=Trim(a.publisher.value);
	a.writer.value=Trim(a.writer.value);
	a.book_price.value=Trim(a.book_price.value);
	a.pages.value=Trim(a.pages.value);
	if(a.book_serial.value=="")
	{
		alert("图书编号不能为空！");
		a.book_serial.focus();
		return ;
	}
	if(a.book_name.value=="")
	{
		alert("图书名称不能为空！");
		a.book_name.focus();
		return ;
	}
	if(a.publisher.value=="")
	{
		alert("出版社名称不能为空！");
		a.publisher.focus();
		return ;
	}
	if(a.writer.value=="")
	{
		alert("作者不能为空！");
		a.writer.focus();
		return ;
	}
	if(a.book_price.value=="")
	{
		alert("图书价格不能为空！");
		a.book_price.focus();
		return;
	}
	//if(!fucCheckNum(a.book_price.value))
	if(!chknbr(a.book_price.value,1,0))
	{
		alert("图书价格只能是数字！");
		a.book_price.focus();
		return;
	}
	if(a.pages.value=="")
	{
		alert("书籍页数不能为空！");
		return;
	}
	if(!fucCheckNum(a.pages.value))
	{
		alert("书籍页数必须是数字！");
		return;
	}
	if(parseInt(a.pages.value)==0)
	{
		alert("书籍页数不能为0！");
		return;
	}
	a.action.value="add_new";
	a.submit();
}
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="3" topmargin="0">
<table width="15%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td width="9"><img src="images/left_1.gif" width="9" height="24"></td>
    <td align="center" nowrap><font color="#0066FF">图书入库建档</font></td>
    <td align="right" width="9"><img src="images/right_1.gif" width="9" height="24"></td>
  </tr>
</table>
<br>
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td width="9" height="23"><img src="images/left_4.gif" width="9" height="23"></td>
    <td width="100" height=23 align=center nowrap  class=bg2> 添加新书</td>
    <td height="23"><img src="images/right_4.gif" width="7" height="23"></td>
    <td height="23" width="20" valign="bottom">&nbsp; </td>
  </tr>
</table>
<table width="90%" border="0" cellspacing="0" cellpadding="0" class="biankuang" align="center">
  <form action="book_add.asp" method="post" name="myform">
    <tr> 
      <td align="center"> 
       
        <table width="100%" border="0" cellspacing="1" cellpadding="0">
          <tr> 
            <td height="30" width="16%" align="center"  nowrap>书籍编号</td>
            <td height="30"  nowrap colspan="3"> 
              <input type="text" name="book_serial" size="20" maxlength="20">
            </td>
          </tr>
          <tr> 
            <td height="30" width="16%" align="center"  nowrap>书籍名称</td>
            <td height="30"  nowrap width="36%"> 
              <input type="text" name="book_name" size="15" maxlength="30">
            </td>
            <td height="30" width="16%" align="center"  nowrap>书籍类别</td>
            <td height="30" width="28%" align="left"  nowrap> 
              <select name="book_type">
                <option value="经济">经济</option>
                <option value="政冶">政冶</option>
                <option value="医学">医学</option>
                <option value="历史">历史</option>
                <option value="文学">文学</option>
                <option value="军事">军事</option>
                <option value="体育">体育</option>
                <option value="外语">外语</option>
                <option value="技术">技术</option>
                <option value="其它">其它</option>
              </select>
            </td>
          </tr>
          <tr> 
            <td height="30" width="16%" align="center"  nowrap>出 
              版 社</td>
            <td height="30"  nowrap width="36%"> 
              <input type="text" name="publisher" size="15" maxlength="40">
            </td>
            <td height="30" width="16%" align="center"  nowrap>作者姓名</td>
            <td height="30" width="28%" align="left"  nowrap> 
              <input type="text" name="writer" size="15" maxlength="20">
            </td>
          </tr>
          <tr>
            <td height="30" width="16%" align="center"  nowrap>书籍价格</td>
            <td height="30"  nowrap width="36%">
              <input type="text" name="book_price" size="15" onKeyDown="only_num_input(document.myform.book_price,0);" maxlength="10">
            </td>
            <td height="30" width="16%" align="center"  nowrap>书籍页数</td>
            <td height="30" width="28%" align="left"  nowrap>
              <input type="text" name="pages" size="15" onKeyDown="only_num_input(document.myform.pages,1);" maxlength="10">
            </td>
          </tr>
          <tr> 
            <td height="30" width="16%" align="center"  nowrap>登记日期</td>
            <td height="30"  nowrap width="36%"> 
              <input type="text" name="posttime" size="15" value="<%Uo5xsh92B0Wiw/g/idMUT9yyuQksjhiu%>" readonly>
            </td>
            <td height="30" width="16%" align="center"  nowrap>&nbsp;</td>
            <td height="30" width="28%" align="left"  nowrap>&nbsp; 
            </td>
          </tr>
          <tr> 
            <td height="30" width="16%" align="center"  nowrap>备　　注</td>
            <td height="30"  nowrap colspan="3"> 
              <textarea name="remark" cols="50" rows="3">请详细说明关于本书的情况！</textarea>
              <input type="hidden" name="action">
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </form>
</table>
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td align="right"> 
      <table width="20%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="9"><img src="images/left_3_1.gif" width="9" height="20"></td>
          <td class="bg3" align="center"><a href="#" onclick="post_data();return false;">添加</a></td>
          <td width="18" align="center"><img src="images/right_3_1.gif" width="9" height="20"><img src="images/left_3_1.gif" width="9" height="20"></td>
          <td class="bg3" align="center"><a href="javascript:window.history.back();">返回</a></td>
          <td width="9"><img src="images/right_3_1.gif" width="9" height="20"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>
