<!--#include file="byshop_conn.asp"-->
<!--#include file="session.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div align="center">
<table cellpadding="3" cellspacing="1" border="1" width="100%" class="tableBorder" style="border-collapse: collapse" bordercolor="#C0C0C0">
  <tr height=25> 
	<th class="tableHeaderText" colspan=6 height=25 bgcolor="#E8F1FF">房产图库-管理</th>	
  </tr>
  <tr> 
    <td colspan=6  class="forumRowHighlight"><div align="center">
	&nbsp;<%
        set rs=server.CreateObject("adodb.recordset")
        rs.Open "select * from fcpic order by picorder",conn,1,1
         if rs.EOF and rs.BOF then
		  response.Write "<font color=red>还没有房产图库信息</font>"
		  paixu=0
		  else
       
    %></div>
    </td>
  </tr>
  <tr> 
   <td width="12%" class="forumRowHighlight" ><div align="center">图片名称</div></td>
   <td width="10%" class="forumRowHighlight" >
	<p align="center">图片分类</td>
   <td width="28%" class="forumRowHighlight" >
	<p align="center">小图片</td>
   <td width="29%" class="forumRowHighlight" >
	<p align="center">大图片</td>
   <td width="5%" class="forumRowHighlight"><div align="center">排序</div></td>
   <td width="11%" class="forumRowHighlight"><div align="center">确定操作</div></td>
 </tr>
 <%  do while not rs.EOF%>
   <form name="form1" method="post" action="savefcpic.asp?action=edit&id=<%=rs("id")%>">
   <tr> 
     <td width="12%" class="forumRowHighlight" ><div align="center">
	 <input name="picname" type="text" id="nclass" size="16" value="<%=trim(rs("picname"))%>">
	 <input name="id" type="hidden" value="<%=rs("id")%>" id="Hidden1"></div>
     </td>
     <td width="10%" class="forumRowHighlight" >
	 <p align="left">
	 &nbsp;&nbsp;
   	<select name="picclass" >
   	<option value="1" <%if rs("picclass")=1 then%> selected <%end if%>>客厅</option>
   		<option value="2" <%if rs("picclass")=2 then%> selected <%end if%>>厨房</option>
	<option value="3" <%if rs("picclass")=3 then%> selected <%end if%>>餐厅</option>
	<option value="4" <%if rs("picclass")=4 then%> selected <%end if%>>书房</option>
	<option value="5" <%if rs("picclass")=5 then%> selected <%end if%>>卧室</option>
	<option value="6" <%if rs("picclass")=6 then%> selected <%end if%>>浴室</option>
	<option value="7" <%if rs("picclass")=7 then%> selected <%end if%>>阳台</option>
	<option value="8" <%if rs("picclass")=8 then%> selected <%end if%>>楼梯</option>
	<option value="9" <%if rs("picclass")=9 then%> selected <%end if%>>房型图</option>
     </select></td>
     <td width="28%" class="forumRowHighlight" >
	 <input name="pics" type="text"  size="30" value="<%=rs("pics")%>">
   	浏览</td>
     <td width="29%" class="forumRowHighlight" >
	 <input name="picb" type="text"  size="30" value="<%=rs("picb")%>"> 
		浏览</td>
     <td width="5%"  class="forumRowHighlight"><div align="center"><input name="picorder" type="text"  size="4" value="<%=int(rs("picorder"))%>"></div></td>
	<td width="11%"  class="forumRowHighlight"><div align="center"><input class=button type="submit" name="Submit" value="修 改">&nbsp;<a href="savefcpic.asp?id=<%=int(rs("id"))%>&action=del" onClick="return confirm('此删除操作，您确定进行删除操作吗？')"><font color=red>删除</font></a> </div></td>
  </tr> </form>
 <%rs.movenext
        loop
        paixu=rs.RecordCount
        rs.close
        set rs=nothing
        end if
	%>
	  <form name="myform" method="post" action="">
   <tr> 
     <td width="12%" class="forumRowHighlight" >
		　</td>
     <td width="69%" class="forumRowHighlight" colspan="3" >
	 &nbsp;&nbsp;
   </td>
     <td width="5%"  class="forumRowHighlight">　</td>
	<td width="11%"  class="forumRowHighlight">　</td>
  </tr>

  </table>
</div>
<table border="1" width="100%" cellspacing="1" cellpadding="3" style="border-collapse: collapse" bordercolor="#C0C0C0">
	<tr>
		<td bgcolor="#E8F1FF" colspan="3">
		<p align="center">图片上传</td>
	</tr>
	<tr>
		<td width="22%">
		<p align="center">图片上传</td>
		<td width="39%"><%
					ServerName1=Cstr(Request.ServerVariables("HTTP_REFERER"))
					%>
	 <input name="carpic" type="text" id="carpic" size="30">&nbsp;&nbsp; <input  type="button" name="Submit4" value="上传图片" onClick="window.open('../Up_byshopPic2.asp?formname=myform&editname=carpic&byshopuppath=upload/pic&filelx=jpg&ServerName1=<%=ServerName1%>','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')"></td>
		<td width="36%">
	 <span lang="zh-cn">图片在这上传，把生成路径复制到上面的图片路径中，再点击修改即可。</span></td>
	</tr></form>
</table>
<br>
<div align="center">
<table cellpadding="3" cellspacing="1" border="1" width="100%" class="tableBorder" style="border-collapse: collapse" bordercolor="#D1D1D1">
  <tr height=25> 
	<th class="tableHeaderText" colspan=6 height=25 bgcolor="#E8F1FF">房产图库-添加</th>	
  </tr>
  <tr> 
   <td width="11%" class="forumRowHighlight"><div align="center">图片名称</div></td>
   <td width="20%" class="forumRowHighlight">
	<p align="center">图片分类</td>
   <td width="19%" class="forumRowHighlight">
	<p align="center">小图片</td>
   <td width="26%" class="forumRowHighlight">
	<p align="center">大图片</td>
   <td width="8%" class="forumRowHighlight">
	<p align="center">排序</td>
   <td width="13%" class="forumRowHighlight"><div align="center">确定操作</div></td>
 </tr>
 <form name="form2" method="post" action="savefcpic.asp?action=add">
 <tr> 
   <td width="11%" class="forumRowHighlight"><div align="center"><input name="picname" type="text" id="nclass22" size="16"></div></td>
   <td width="20%" class="forumRowHighlight">
	 <p align="center">
   	<select name="picclass" >
   	<option value="1">客厅</option>
   		<option value="2">厨房</option>
	<option value="3">餐厅</option>
	<option value="4">书房</option>
	<option value="5">卧室</option>
	<option value="6">浴室</option>
	<option value="7">阳台</option>
	<option value="8">楼梯</option>
	<option value="9">房型图</option>
     </select></td>
   <td width="19%" class="forumRowHighlight">
	 <input name="pics" type="text" id="nclass24" size="30" ></td>
   <td width="26%" class="forumRowHighlight">
	 <input name="picb" type="text"  size="30" ></td>
   <td width="8%" class="forumRowHighlight"><div align="center"><input name="picorder" type="text" id="nclassidorder22" size="4" value="<%=paixu+1%>"></div></td>
   <td width="13%" class="forumRowHighlight"><div align="center"><input class="button" type="submit" name="Submit2" value="添 加"></div></td>
 </tr>
</form>
</table>
</div>
<br>
</body>
</html> 
  