<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExpressList.aspx.cs" Inherits="XpShop.Supplier.ExpressList" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="SupplierMenu" Src="Modules/SupplierMenu.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.ascx" %>
<%@	Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox"	%>

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<!--#include file="inc/head.inc"-->
		<title>商家中心 <%=config.SiteTitle%></title>
        <script type="text/javascript" src="inc/commond.js"></script>
        <script type="text/javascript">
            $(document).ready(function() {
            $('.doDel').click(function(){
                if(confirm('确认删除这家物流公司信息么?')){
                    return true;
                }
                else{
                    return false;
                }
            });
            $('.doSet').click(function(){
                if(confirm('确认设置这家物流公司为最常用么?')){
                    return true;
                }
                else{
                    return false;
                }
            });
        });
        </script>        
        
 
	</head>
	<body>
			<uc1:Header id="Header1" runat="server"></uc1:Header>
			 <!--位置导航开始-->
			 <div class="path"><a href="<%=webSite %>supplier/default.<%=config.html%>">商家桌面</a> > 订单管理 > 物流公司管理 ></div>
			<!--位置导航结束-->
			<div class="xp-w clear">
				<div class="content-left">
					<!--会员中心导航开始-->
					<uc1:SupplierMenu id="SupplierMenu1" runat="server"></uc1:SupplierMenu>
					<!--会员中心导航结束-->
				</div>
				<div class="content-middle">	
					<div class="rframe">
					    <div class="tm">物流公司管理</div>
					    <div class="mm clear">
					        <form id="Form1" runat="server" >
                                <div style="margin: auto;padding:10px 10px 10px 0px;text-align: right;">
                                    <a href="ExpressAdd.aspx?action=add">添加新物流公司信息</a>
                                </div>
                               
						        <div class="pro_hlist">
							        <asp:DataList id="dlExpress" CellPadding="4" RepeatColumns="1" 
                                        RepeatDirection="Horizontal" Width="100%" runat="server" ForeColor="#333333" BorderWidth="1" BorderColor="#c8dcf4">
								        <AlternatingItemStyle BackColor="White" ForeColor="#284775" />
                                        <ItemStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                        <SelectedItemStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
			                            <ItemStyle CssClass="datagrid-item"></ItemStyle>
			                            <HeaderStyle CssClass="datagrid-header"></HeaderStyle>
								        <HeaderTemplate>								
                                            <ItemTemplate>													
									            <table cellpadding="3" cellspacing="0" width="100%">
										            <tr align=center> 
                                                        <td width="5%">
                                                            序号
											            </td>
                                                        <td width="65%">
                                                            物流公司信息
											            </td>
                                                        <td width="35%">
                                                            操作
											            </td>
										            </tr>
									            </table>
								            </ItemTemplate>								
								        </HeaderTemplate>
								        <ItemTemplate>													
									        <table cellpadding="3" cellspacing="0" width="100%">
								    	        <tr align=center>
                                                    <td width="5%">
                                                        <%#Container.ItemIndex+1 %>
											        </td>
                                                    <td width="65%">
                                                        <%# DataBinder.Eval(Container.DataItem, "ExpressName") %>
											        </td>
                                                    <td width="35%">
                                                         <%# CreateLink(Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "IsUseful")), Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ExpressID")))%>
                                                         <a  href="ExpressAdd.aspx?action=mod&eid=<%# DataBinder.Eval(Container.DataItem, "ExpressID")%>">修改</a>
                                                         <a class="doDel"  href="ExpressAdd.aspx?action=del&eid=<%# DataBinder.Eval(Container.DataItem, "ExpressID")%>">删除</a>
											        </td>
										        </tr>
									        </table>
								        </ItemTemplate>
							        </asp:DataList>
                                </div>                     
				            </form>
					    </div>
					</div>
                </div>
			</div>
		<uc1:Helper id="Helper" runat="server"></uc1:Helper>
		<uc1:Footer id="Footer" runat="server"></uc1:Footer>
	</body>
</html>