<%@ Page Language="C#" AutoEventWireup="true" debug="true" Inherits="WinLibClass.Form.UserInfo.GoodsOrder.UI_List" CodePage="65001" GameType="1" PageFileFlag="UserOrder" PageFileTitle="我的保价订单-会员中心" DataBindingType="1" PageFlagId="1"   IsSaveBuy="1"  intPageSize="10" %>

<%@ Register TagPrefix="Site" TagName="Menu" Src="~/WUC/Common/Site_Menu.ascx" %>
<%@ Register TagPrefix="Site" TagName="UserPicNote" Src="~/WUC/Common/Site_UserPicNote.ascx" %>
<%@ Register TagPrefix="Site" TagName="Game1" Src="~/WUC/Common/Site_Game1.ascx" %>

<%@ Register TagPrefix="Site" TagName="Side_UserPicNote" Src="~/WUC/Common/Site_Side_UserPicNote.ascx" %>
<%@ Register TagPrefix="Site" TagName="Side_Future" Src="~/WUC/Common/Site_Side_Future.ascx" %>
<%@ Register TagPrefix="Site" TagName="Side_Main" Src="~/WUC/Common/Site_Side_Menu.ascx" %>


<!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>
<Site:Menu id="menu_headtitle" runat="server" Flag="HeadTitle" CurrentPageTitle = "会员中心 - 我的保价订单" />
<Site:Menu id="menu_headjs" runat="server" Flag="HeadJs"  />

<link href="/css/common.css" type="text/css" rel="stylesheet" />
<link href="/css/common_3.css" type="text/css" rel="stylesheet" />
<link href="/css/article.css" type="text/css" rel="stylesheet" />
<link href="/css/stylezd.css" type="text/css" rel="stylesheet" />

</head>
<script>
<!--
/*第一种形式 第二种形式 更换显示样式*/
function setTab(name,cursel,n){
    for(i=1;i<=n;i++){
    var menu=document.getElementById(name+i);
    //var con=document.getElementById("con_"+name+"_"+i);
    menu.className=i==cursel?"hover":"";
    con.style.display=i==cursel?"block":"none";
    }
}
//-->
</script>
<body>

<Site:Menu id="menu_topmenu" runat="server" Flag="TopMenu"  CurrentPageFlag="User" />

<div class="clear"></div>
<!--start 内容-->
<div class="ArtContent PageWidth">
	<!-- 左侧菜单 -->
<Site:Side_Main id="Side_Main_art1" runat="server" PageFlagId="100"  CurrentPageFlag="User" DataBindingType="1" />
	<!-- 左侧菜单结束 -->
	<!-- 右侧正文或列表 -->
<!--start 主体内容-->
<script type="text/javascript" src="/PaiPaiJS/GoodCurrencyJS.JS"></script>
<script type="text/javascript" language="javascript">


function SetTab(mids,focus,blur,cids,curid)
{
	var mid = jQuery(mids);
	var cid = jQuery(cids);
	var curObj = jQuery(curid);
	
	mid.removeClass(focus).addClass(blur);
	curObj.removeClass(blur).addClass(focus);
	cid.addClass("hide");
	jQuery(cids + '[flag="' + curObj.attr("id") + '"]' ).removeClass("hide");

}

jQuery(function(){


});
function PicManage(id)
{
	SetActive(id);
	AjaxSubmit(null,"/UpPic/UserOrderPic.aspx?PhotoType=4&PhotoUserType=1",{"InfoId":id}
	,function(msg){
	AddDialogbox("Ajax_User_UpPic","",60001,582,"Ajax_User_UpPic_screenMask",10000,true,msg);
	
	
	
	},null);	

}

</script>



<div class="Grid-Base PageWidth_Right2">

	<div class="help-box padding0 " >
 		<div class="tit2 H60 LH55">
				我的保价订单
		</div>
		<div class="tab">
			<div id="mlist" class="tab-0 ML20 color<%=GoodType==0?"1":"2"%>" onclick='SetTab(".tab-0","color1","color2",".H485 .editexp","#mlist");'>
				<div class="tab-0-left"></div>	
				<div class="yjcont "><div class="tabtit"><a href="?<%=__UrlParam%>&type=0">未支付</a></div></div>
                <div class="tab-0-right"></div>
				
			</div>

			<div id="mlist2" class="tab-0 ML5 color<%=GoodType==1?"1":"2"%>" onclick='SetTab(".tab-0","color1","color2",".H485 .editexp","#medit");'>
                 <div class="tab-1-left"></div>     			
				 <div class="yjcont"><div class="tabtit"><a href="?<%=__UrlParam%>&type=1">已支付</a></div></div>
				 <div class="tab-1-right"></div>
			</div>
			<div id="mlist3" class="tab-0 ML5 color<%=GoodType==2?"1":"2"%>" onclick='SetTab(".tab-0","color1","color2",".H485 .editexp","#medit");'>
                 <div class="tab-1-left"></div>     			
				 <div class="yjcont"><div class="tabtit"><a href="?<%=__UrlParam%>&type=2">已过期或取消</a></div></div>
				 <div class="tab-1-right"></div>
			</div>			

		</div>

	</div>

	<div class="help-box " style="border-bottom:0px;" >
		<div class="H30 zzcy yellow">


				<%
				if(GoodType==0)
				{
				%>
				未支付商品<span ><%=WinLibClass.Config.Global.WebSiteConfig.OrderFormLimitHours/24%>天内未付款商品就会过期哦！</span>
				<%
				}
				else if(GoodType==1)
				{
					Response.Write("已支付商品");
				}
				else
				{
					Response.Write("过期的商品(由于您未在规定日期内完成支付，以下商品被视为您自动放弃)");
				}
				%>
				
				
		</div>
		<div class="H20 zzcy ">
		<%=strMsgForNoGoods%>
		</div>
		<div class="editexp " id="div-List" flag="mlist">
			<table>
				<tr class="list-th">
					<th CLASS="hide">ID</th>
					<th>订单编号</th>
					<td>类型</td>
					<th>商品信息</th>
					<th>成交价/实付价</th>
					<th>参于次数</th>
					<th>购买类型</th>
					<th>签订时间</th>
					<th>订单状态</th>
					
				</tr>
				
				
<script runat="server">
public string strTmp = "";
public string strId = "";
public string strIdList = "";
</script>				
<asp:Repeater id="rpList" runat="server"> 
<ItemTemplate>					

		<tr class="list-td" id="tr_<%#Eval("id")%>">
		<td title="订单编号:<%#Eval("OrderFormId")%>"><%# DV.Eval(Eval("OrderFormId").ToString(),16,"..") %></td>
		<td><%#WinLibClass.Entity.Enums.SystemClassConfig.GameTypeName(Eval("GameType"))%></td>		
		<td  style="text-align:center"><a href="/index.aspx?s=/Auction/detail/tid/<%#strId=Eval("VendueId").ToString()%>&GameType=<%#Eval("GameType")%>" target="_blank" title="<%#Eval("ProductName")%>"><%#Eval("VendueId")%>期 <%#DV.Eval(Eval("ProductName"),3,"..")%></a></td>
		<td>&yen;<%#DV.EvalToMoneyYuan(Eval("RealPrice"))%>/&yen;<%#WinLibClass.Common.Utils2.SetMoneyFormat(Eval("RealPayPrice"))%>
		</td>
		<td  style="text-align:center"><%#Eval("VendueCount")%></td>
		<td  style="text-align:center"><%#GetOrderFormTypeName(Eval("OrderFormType"))%></td>
		<td  style="text-align:center" title="<%#Eval("CreateTime")%>"><%#Eval("CreateTime","{0:d}")%></td>
		<td  id="TdOrderCheck_<%#Eval("id")%>"  style="text-align:center">

		<div style="display:none">
		<%#strTmp=GetCheckState(Eval("IsCancel"),Eval("IsChecked"),Eval("CreateTime"),Eval("VendueID"),Eval("ProductId"),Eval("ProductName"),Eval("RealPayPrice"),Eval("OrderFormType"))%>
		</div>

			
	    <form id="frm_<%#Eval("ID")%>" action="/PayManage/paycenter.aspx?ispost=1" method="POST" target="_blank" > 
			<input type="hidden" name="GameType" id="GameType" value="<%#Eval("GameType")%>" title="游戏类型,默认0">
			<input type="hidden" name="ordersn"  value="<%#Eval("OrderFormId")%>" >
			<input type="hidden" name="ordersnid" value="<%#Eval("ID")%>" >
			<input type="hidden" name="paytype" value="0" >
			<input type="hidden" name="PayTypeString" value="Alipay">
			</form>

		<%#(strTmp.Trim()=="<font color='green'><b>已付款</b></font>"? strTmp + " <a href=\"javascript:;\" onclick=\"UserPicNoteShow("+strId+","+ GameType +","+ Eval("OrderFormType") +");\" style=\"font-weight:bold;\">"+ (GameType==2?"晒图":"晒图") +"</a>":strTmp)%>

<%# ((strTmp.Trim()=="<font color='red'><b>未付款</b></font>") ? " <a href='#' onclick=\"if(confirm('确定付款')){ $('#frm_"+ Eval("id") +"').submit();return true;} else {return false;}\">付款</a>" : "" ) %>	
		

		<a href="javascript:;" onclick="Edit_GoodsCurrencyLog('<%#Eval("OrderFormId")%>',<%#Eval("VendueId")%>);"><%#GetState(Eval("IsChecked"),Eval("IsCancel"))==1?"发货":""%></a>
		
		</td>				
				</tr>
		
		
	<%
		strIdList += string.Format("m.Add('{0}');\r\n",strId);
	%>
</ItemTemplate>		
</asp:Repeater>						
				
			</table>
			<div class="Page Pnv">
<%=strPageInfo%>			
			</div>
		</div>
	</div>

</div>
<!--end 主体内容结束-->
	<!-- 右侧正文或列表结束 -->

  <div class="clear"></div>

</div>
<!--end 内容-->
<div class=" clear"></div>
<Site:Menu id="menu_foothelper" runat="server" Flag="FootHelper"  />
<div class=" clear"></div>
<Site:Menu id="menu_links" runat="server" Flag="Links"  />
<div class=" clear"></div>
<Site:Menu id="menu_foot" runat="server" Flag="Foot"   />
</body>
</html>
