<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="newhousephotolist.aspx.cs" Inherits="HeyuanHouse.Web.backend.newhousephotolist" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>河房网网站管理系统</title>
<link href="images/sdcms.css" rel="stylesheet" type="text/css" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<script language="javascript" src="images/sdcms.js"></script>
</head>
<body>
<div class="sdcms_notice"><span>管理操作：</span><a href="#"></a></div>
<br>
<ul id="sdcms_sub_title">
	<li class="sub"><a href="#">楼盘图片管理</a></li>
</ul>
<div id="sdcms_right_b">
<form id="Form1" runat="server">
  <table class="table_b" cellspacing="1" cellpadding="3" align="Center" rules="all" border="0" id="Table1" style="border-width:0px;">
	<tr>
      <td width="12%" align="center" class="tdbg">图片：      </td>
      <td class="tdbg"><asp:FileUpload runat="server" ID="fuhousephoto" /></td>
    </tr>
    <tr class="tdbg">
      <td align="center">类型：      </td>
      <td>
         <asp:RadioButtonList runat="server" ID="rblphototype" RepeatLayout="Flow" RepeatDirection="Horizontal">
            <asp:ListItem Text="实景图" Value="1" Selected="True" />
            <asp:ListItem Text="效果图" Value="2" />
            <asp:ListItem Text="位置图" Value="3" />
            <asp:ListItem Text="配套图" Value="4" />
            <asp:ListItem Text="样板间图" Value="5" />
            <asp:ListItem Text="户型图" Value="6" />
            <asp:ListItem Text="广告图" Value="7" />
         </asp:RadioButtonList>
      </td>
    </tr>
    <tr class="tdbg">
      <td align="center">描述：      </td>
      <td>
         <asp:TextBox ID="txtphotodesc" runat="server" Width="430px" CssClass="input"></asp:TextBox>
      </td>
    </tr>
    <tr class="tdbg">
	  <td>&nbsp;</td>
      <td><asp:Button runat="server" ID="btnSave" CssClass="bnt" Text="添加图片" onclick="btnSave_Click" /> </td>
    </tr>
  </table>
  <br />
  <asp:DataGrid runat="server" ID="dgPhotoList" AutoGenerateColumns="false" 
            BorderWidth="0" HorizontalAlign="Center" CellPadding="3" CellSpacing="1" 
            CssClass="table_b" HeaderStyle-CssClass="title_bg" 
            FooterStyle-BackColor="#ffffff" FooterStyle-HorizontalAlign="Center" FooterStyle-Height="33"
            UseAccessibleHeader="true" ShowFooter="false" ShowHeader="true" 
            DataKeyField="pid" onitemcommand="dgPhotoList_ItemCommand">
<FooterStyle HorizontalAlign="Center" BackColor="White" Height="33px"></FooterStyle>
      <ItemStyle HorizontalAlign="Center" />
     <Columns>
     <asp:TemplateColumn HeaderText="图片" ItemStyle-Width="200">
        <ItemTemplate>
           <img src="<%# Eval("thumbfullpath")%>" width="120" height="90" />
        </ItemTemplate>
     </asp:TemplateColumn>
     <asp:TemplateColumn HeaderText="类型" ItemStyle-Width="100">
        <ItemTemplate>
           <%# Eval("phototypeview")%>
        </ItemTemplate>
     </asp:TemplateColumn>
     <asp:TemplateColumn HeaderText="描述">
        <ItemTemplate>
           <%# Eval("photodesc")%>
        </ItemTemplate>
     </asp:TemplateColumn>
     <asp:TemplateColumn HeaderText="管理操作" ItemStyle-Width="100">
        <ItemTemplate>
           <asp:LinkButton ID="lnkDelete" runat="server" CommandArgument="DeleteInfo" Text="删除" />
        </ItemTemplate> 
     </asp:TemplateColumn>
     </Columns>

<HeaderStyle CssClass="title_bg"></HeaderStyle>
  </asp:DataGrid>  
  </form>
</div>
</body>
</html>