<div class="panel panel-info espcms_member_center">
	<div class="panel-heading"><h3>My Order</h3></div>
	<div class="panel-body text-center">
		You have submitted a total of <u>{%$order_read.db_num%}</u> orders. <span class="colorgreg pl5">You have <u>{%$order_read.db_num_ok%}</u> orders processed.</span>  <span class="pl5"><a class="button" href="{%$order_list_link%}">Click to view</a></span>
	</div>
	<ul class="list-group">
		{%if espcms_count($array)>0%}
		{%forlist from=$array key=i%}
		<li class="list-group-item">
			<div class="member_list_div">
				<div class="col-sm-9 p0">
					<h4>{%$array[i].ordersn%}</h4>
					<span class="text-ashes f12">Time：{%$array[i].addtime|espcms_timeformat(3)%}</span>
					<span class="text-ashes pl10 f12">Order amount:{%$array[i].orderamount|espcms_format_money(3)%}</span>
					<span class="text-ashes pl10 f12">Payment status：
						{%if $array[i].ispay==1%}<span class="text-green">Paid</span>{%/if%}
						{%if $array[i].ispay==2%}<span class="text-green">Paid</span>{%/if%}
						{%if $array[i].ispay==0%}<span class="text-orange">Unpaid</span>{%/if%}
					</span>
					<span class="text-ashes pl10 f12">Type：
						{%if $array[i].ordertype==0%}<span class="text-danfei">Obsolete</span>{%/if%}
						{%if $array[i].ordertype==1%}<span class="text-orange">New</span>{%/if%}
						{%if $array[i].ordertype==2%}<span class="text-green">Processed</span>{%/if%}
					</span>
				</div>
				<div class="col-sm-3 p0 text-right order_bottom">
					<a class="btn btn-success btn-sm" href="{%$array[i].link%}">View</a>
					{%if $array[i].ispay==0%}
					<a class="btn btn-warning btn-sm" href="{%$array[i].paylink%}">Pay</a>
					{%/if%}
				</div>
			</div>
		</li>
		{%/forlist%}
		{%else%}
		<li class="list-group-item text-center"> No order </li>
		{%/if%}
	</ul>
</div>