<!--#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="../css/style.css" />

<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="99%" height="499" border="0" cellpadding="0" cellspacing="0">
  <tr>
   <td height="33"><table width="100%" height="33" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="100" class="NemuNot"><div align="center"><a  href="MingChengList.asp?leibie=<%=leibie%>" target=main>物品列表</a></div></td>
        <td width="100" class="NemuNot"><div align="center"><a  href="WuPinJinChu.asp?leibie=<%=leibie%>" target=main>物品进仓</a></div></td>
		<td width="100" class="NemuNot"><div align="center"><a  href="WuPinJieLing.asp?leibie=<%=leibie%>" target=main>物品借领</a></div></td>
		<td width="100" class="NemuNot"><div align="center"><a  href="WuPinJiLu.asp?leibie=<%=leibie%>" target=main>物品进出记录</a></div></td>
		<td width="100" class="Nemuselect"><div align="center"><a  href="MingChengGuanLi.asp?leibie=<%=leibie%>" target=main>管理名称</a></div></td>
		<td width="100" class="NemuNot"><div align="center"><a  href="WuPinBaoFei.asp?leibie=<%=leibie%>" target=main>物品报损</a></div></td>
      <td class="NemuLine">&nbsp;</td>
      </tr>
    </table></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>
