<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="manage_ajax_dialog_teamdetail.aspx.cs" Inherits="Maticsoft.Web.AjaxPage.manage_ajax_dialog_teamdetail" %>


<div id="order-pay-dialog" class="order-pay-dialog-c" style="width:580px;">
	<h3><span id="order-pay-dialog-close" class="close" onclick="return X.boxClose();">关闭</span>项目详情</h3>
	<div style="overflow-x:hidden;padding:10px;">
	<table width="96%" align="center" class="coupons-table">
		<tr><td width="80"><b>项目名称：</b></td><td><b><%=team["title"] %></b></td></tr>
		<tr><td><b>项目时间：</b></td><td>开始：<b><%=team["begin_time"] %></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;截至：<b><%=team["end_time"] %></b></td></tr>

		<tr><td><b>当前状态：</b></td><td><span style="color:#F00;font-weight:bold;"><%=GetTeamStateName(GetState(teamm)) %></span><%if (teamm.Delivery == "coupon" && couponno)
                                                                                                                               { %>&nbsp;&nbsp;<span style="color:#F8C;font-weight:bold;"><%if (showsmsautosmscoupon)
                                                                                                                                                                                                                                                                                                { %>&lt;<%=ASSystemArr["couponname"]%>未发完&gt;<%}
                                                                                                                                                                                                                                                                                                else
                                                                                                                                                                                                                                                                                                { %>&lt;<%=ASSystemArr["couponname"]%>已发放&gt;</span><%} %><%} %></td></tr>
		<tr><td><b>限购数量：</b></td><td>最低：<%=team["min_number"]%>&nbsp;&nbsp;&nbsp;&nbsp;最高：<%=((teamm.Max_number == 0) ? "无上限" : team["max_number"])%></td></tr>
		<tr><td><b>项目定价：</b></td><td>市场价格：<b><%=team["market_price"]%></b>&nbsp;元&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;项目价格：<b><%=team["team_price"]%></b>&nbsp;元</td></tr>
		<tr><td><th colspan="2"><hr/></th></td></tr>
		<tr><td><b>成交情况：</b></td><td><b><%=team["now_number"]%></b>&nbsp;，实际共&nbsp;<b><%=paycount%></b>&nbsp;人购买了&nbsp;<b><%=buycount%></b>&nbsp;份
		</td></tr>
		<tr><td><b>支付统计：</b></td><td>在线支付：<b><%=onlinepay%></b>&nbsp;元&nbsp;&nbsp;&nbsp;&nbsp;余额支付：<b><%=creditpay%></b>&nbsp;元</td></tr>
		<tr><td><b>项目收支：</b></td><td>支付总额：<b><%=(onlinepay + creditpay)%></b>&nbsp;元&nbsp;&nbsp;&nbsp;&nbsp;代金券抵用：<b><%=cardpay%></b>&nbsp;元</td></tr>
	<%if (showbutton)
   { %>
		<tr><td<th colspan="2"><hr/></th></td></tr>
		<tr><td colspan="2">
        <%if (showdingyue)
          { %>
			<button style="padding:0;" id="dialog_subscribe_button_id" onclick="if(confirm('发送邮件过程中，请耐心等待，同意吗？')){this.disabled=true;return X.misc.noticenext(<%=team["id"] %>,0);}">邮件订阅&nbsp;(<span id="dialog_subscribe_count_id">0</span>/<%=mailcount%>)</button>&nbsp;
			<button style="padding:0;" id="dialog_smssubscribe_button_id" onclick="if(confirm('发送短信过程中，请耐心等待，同意吗？')){this.disabled=true;return X.misc.noticenextsms(<%=team["id"] %>,0);}">短信订阅&nbsp;(<span id="dialog_smssubscribe_count_id">0</span>/<%=smscount%>)</button>&nbsp;
		<%} %>
        <%if (showsmscoupon)
          { %>
        	<button id="dialog_sms_button_id" onclick="if(confirm('此过程将为全部订购用户重新发送一遍，是否继续？')){this.disabled=true;return X.misc.noticesms(<%=team["id"] %>,0);}">短信发券&nbsp;(<span id="dialog_sms_count_id">0</span>/<%=buycount%>)</button>&nbsp;
		<%} %>
        <%if (showsmsautosmscoupon)
          { %>
        	<button onclick="this.disabled=true;return X.manage.teamcoupon(<%=team["id"] %>);">自动发券&nbsp;(<%=sendcount%>/<%=buycount%>)</button>&nbsp;
		<%} %>
        </td></tr>
	<%} %>
	</table>
	</div>
</div>
