<!--#include file="../checkLogin.asp"-->
<!--#include file="../SQLconn.asp"-->

<html>
<head><title></title><meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="../images/<%=request.cookies("imgdir")%>/css/style.css" media="all"/>

<style type="text/css">
<!--
.STYLE3 {color: #990033}
-->
</style>
<body>
<%leibie=request("leibie") 


'检查权限
		
		tname=request.cookies("tname")
         Set MyOAASPObj = Server.CreateObject("YFSchoolOApro.YFSchoolDll")
           if MyOAASPObj.QuanXian(tname,"校产设备管理")=0 then 
		    response.redirect  "../NoPower.asp"
           end if 
		   set MyOAASPObj=nothing
        '检查权限结束	




 %>
 
<table width="100%" height="495" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="27">
	<div class="header">
	<div class="nav">
        <ul>
           
            <li><a  href="MingChengList.asp?leibie=<%=leibie%>" target=main>物品列表</a></li> 		
            <li><div align="center"><a  href="WuPinJinChu.asp?leibie=<%=leibie%>" target=main>物品进仓</a></li>
			<li><a  href="WuPinJieLing.asp?leibie=<%=leibie%>" target=main>物品借领</a></li>			
			<li><a  href="WuPinJiLu.asp?leibie=<%=leibie%>" target=main>物品进出记录</a></li>
			<li class="on">管理名称</li>
			<li><a  href="WuPinBaoFei.asp?leibie=<%=leibie%>" target=main>物品报损</a></li>
        </ul>
    </div>	
	</td>
  </tr>

  <tr>
    <td height="470" valign="top"     class="NemuMainBox">
	<br>
	
	
	<form id="form3" name="form3" method="post" action="saveMingCheng.asp?leibie=<%=leibie%>"  onSubmit="return form_check();">
      <table width="551" border="0" align="center" cellspacing="0" bordercolorlight="#11b1ff" bordercolordark="#f0f8ff">
      
      <tr align="middle">
        <td class="STYLE1">&nbsp;</td>
        <td height="27" class="STYLE1"><div align="right">校产类型</div></td>
        <td align="center" valign="middle" class="STYLE1"><label>
          <div align="left">
            <select name="xiaochanleixing" id="xiaochanleixing">
              <option value="固定资产">固定资产</option>
              <option value="消耗物品">消耗物品</option>
            </select>
            固定资产借出需要归还。消耗物品领用不用归还
          ！</div>
        </label></td>
        <td>&nbsp;</td>
      </tr>
      <tr align="middle">
        <td class="STYLE1">&nbsp;</td>
        <td height="27" class="STYLE1"><div align="right">编号</div></td>
        <td align="center" valign="middle" class="STYLE1"><div align="left">
          <input name="bianhao" type="text" class="text" id="bianhao" />
        </div></td>
        <td>&nbsp;</td>
      </tr>
      <tr align="middle">
        <td class="STYLE1">&nbsp;</td>
        <td height="28" class="STYLE1"><div align="right">名称 </div></td>
        <td align="center" valign="middle" class="STYLE1"><div align="left">
          <input name="mingcheng" type="text" class="text" id="mingcheng" />
        </div></td>
        <td>&nbsp;</td>
      </tr>
      <tr align="middle"> <td width="56" class="STYLE1">&nbsp;</td>
      <td width="54" height="28" class="STYLE1"><div align="right">单位</div></td>
      <td width="428" align="center" valign="middle" class="STYLE1"><div align="left">
        <input name="danwei" type="text" class="text" id="danwei" />  
        <input name="Submit" type="submit" class="topanniu" value="添加" />
      </div>
        <div align="left"></div> </label></td><td width="8">&nbsp;</td> </tr></table>
      </form>

    <table width="816" align="center" border="1" cellpadding="3"   cellspacing="0"  bordercolor="#6D8DD8"  class="mtable">   
    <tr style="background-color:#D6E4FF"  class="TableHeader">
      <td align="center" nowrap class="STYLE1"><div align="center">校产类型</div>
      <div align="center"></div></td>
    <td height="27" align="center" nowrap class="STYLE1">编号
      <div align="center"></div></td>
    <td width="184" align="center" nowrap class="STYLE1">名称</td>
    <td width="111" align="center" nowrap class="STYLE1">单位</td>
    <td width="111" align="center" nowrap class="STYLE1">操作</td>
    </tr>

   
   <%Set Rslist=Server.CreateObject("Adodb.Recordset")
   sqllist="select * from ZiChanMingCheng where   类别='"&leibie& "'  order by 编号" 
   Rslist.open sqllist,conn,1,1
   while not Rslist.eof and not Rslist.bof%>
    <tr onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#EFF8FF'">
      <td width="184" align="center" nowrap class="STYLE1"><%=Rslist("校产类型")%></td>
    <td width="184" height="27" align="center" nowrap class="STYLE1"><%=Rslist("编号")%></td>
    <td align="center" nowrap class="STYLE1"><%=Rslist("名称")%></td>
    <td align="center" nowrap class="STYLE1"><%=Rslist("单位")%></td>
    <td align="center" nowrap class="STYLE1">
	<a href="modifyMingCheng.asp?leibie=<%=leibie%>&id=<%=Rslist("id")%>">修改</a>&nbsp;&nbsp;&nbsp;
	 
	<a   href= "# "   onclick= "javascript:if(confirm( '您真的要删除记录？ '))href= 'deleteMingCheng.asp?leibie=<%=leibie%>&id=<%=Rslist("id")%>'; "> 删除 </a>	  </td>	
    </tr>
<%  Rslist.movenext
    wend
%>
</table>	</td>
  </tr>
</table>
</body>
</html>
