<!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=<tpl> $NCharset </tpl>" />
<link href="<tpl> $template_dir </tpl>/member/css/layout.css" rel="stylesheet" type="text/css" />
<tpl>include file ='../head.config.html'</tpl>
<script type="text/javascript" src="../js/calendar/Calendar.js"></script>
<link id="calCss" type="text/css" href="../js/calendar/blue/blue.css" rel="Stylesheet" />
<script type="text/javascript" language="javascript"> 
//普通日历
$(function(){
	 //datepicker
	$("#start_time").datepicker();
	$("#end_time").datepicker();
})
</script>
<script>
$().ready(function() {
	$('#icon_close_search_box').click(
		function(){ $('#filter').slideUp('slow',function(){$('#showcontr').slideDown('fast')})}
	);
	$('#showcontr').click(
		function(){ $('#showcontr').slideUp('fast',function(){$('#filter').slideDown('slow')})}
	);
});
</script>
</head>
<body> <tpl>include file ='../header.html'</tpl> 

<div id="container761">
  <div class="own_member_main">
 <tpl>include file ='own_menu.html'</tpl>
<div class="member_right">
<div class="new_main_left">
		<div class="new_main_left1">
	<h1 class="new_text">
	<tpl> if $type eq 'bought' </tpl>
	<tpl> $langOAlreadyBuyBaby </tpl>
	<tpl> else </tpl>
	<tpl> $langOAlreadySellBaby </tpl>
	<tpl> /if </tpl>
	</h1>
		 <i></i>
	</div>
		  <b></b>
	</div>
	<div id="own_main_rightop">

       <div id="filtermaincon" >
              <form action="own_order.php?action=<tpl> $order_case </tpl>" method="post">
			  <input name="time" type="hidden" value="<tpl> $time </tpl>" />
			  <DL>
			  <p>
                <DT class="dt1"><tpl> $langOrderBabyName </tpl>： </DT>
                <DD class="dd1">
                  <INPUT  class="new_input" maxLength=50 name=p_name />
                </DD>
                <DT class="dt2"><tpl> $langOrderSaleNickname </tpl>： </DT>
                <DD class="dd2">
                  <INPUT  class="new_input" name=seller_nick />
                </DD></p>
				<p>
                <DT class="dt3"><tpl> $langOrderBargainOnTime </tpl>： </DT>
                <DD class="dd3"><tpl> $langOrderFrom </tpl>
                  <!-- <INPUT  class="new_input" name="start_time" /> -->
				  <input type="text" name="start_time" class="new_input" id="start_time" size="15"  readonly="readonly" />
                  <tpl> $langOrderTo </tpl>
                  <input type="text" name="end_time" class="new_input" id="end_time" size="15"  readonly="readonly" />
				  <!-- <INPUT  class="new_input"name="end_time"> -->
				                  </DD>
           			<input type="submit" value="<tpl> $langCSelect </tpl>" class="new_anniu"/>
                </p>
                </DL>
			
			  </form>
		</div>
</div>
<div id="own_main_rightop_line" style="margin-top:-3px;">
	  <b class="b4"></b>
	  <b class="b3"></b>
	  <b class="b2"></b>
	  <b class="b1"></b>
	  </div>

      <div id="showcontr" style=" margin-top:10px"><a href="#"><tpl> $langOrderDisSelect </tpl></a></div>
      <UL class="item_list_title">
	  <tpl> if $order_case eq 'bought' </tpl>
		  <tpl> if $time eq '' </tpl>
			<LI class="selected"><A href="own_order.php?action=bought"><tpl> $langOrderLatelyBuyBaby </tpl></A> </LI>
		  <tpl> else </tpl>  
			<LI><A href="own_order.php?action=bought"><tpl> $langOrderLatelyBuyBaby </tpl></A>
			</LI>
		  <tpl> /if </tpl>
		  <tpl> if $time eq '1' </tpl>
			<LI class="selected"><A href="own_order.php?action=bought&time=1"><tpl> $langOrder6BuyBaby </tpl></A> </LI>
		  <tpl> else </tpl>  
			<LI><A href="own_order.php?action=bought&time=1"><tpl> $langOrder6BuyBaby </tpl></A> </LI>
		  <tpl> /if </tpl>
		<tpl> /if </tpl> 
		<tpl> if $order_case eq 'sold' </tpl>
		  <tpl> if $time eq '' </tpl>
			<LI class="selected"><A href="own_order.php?action=sold"><tpl> $langOrderLatelySaleBaby </tpl></A> </LI>
		  <tpl> else </tpl>  
			<LI ><A href="own_order.php?action=sold"><tpl> $langOrderLatelySaleBaby </tpl></A> </LI>
		  <tpl> /if </tpl>
		  <tpl> if $time eq '1' </tpl>
			<LI class="selected"><A href="own_order.php?action=sold&time=1"><tpl> $langOrder6SaleBaby </tpl></A> </LI>
		  <tpl> else </tpl>  
			<LI><A href="own_order.php?action=sold&time=1"><tpl> $langOrder6SaleBaby </tpl></A> </LI>
		  <tpl> /if </tpl>
		<tpl> /if </tpl> 
      </UL>
      <div id="item_list_border">
        <table id="item_list_info">
          <tr>
            <th align="center" valign="middle"><tpl> $langOrderImage </tpl></th>
            <th align="center" valign="middle"><tpl> $langOrderBabyName </tpl></th>
			<tpl> if $order_case eq 'sold' </tpl>
			<th align="center" valign="middle"><tpl> $langOrderLiaisonBuy </tpl></th>
			<tpl> /if </tpl>
			<tpl> if $order_case eq 'bought' </tpl>
			<th align="center" valign="middle"><tpl> $langOrderLiaisonSale </tpl></th>
			<tpl> /if </tpl>
            <th align="center" valign="middle"><tpl> $langOrderPrice </tpl></th>
            <th align="center" valign="middle"><tpl> $langOrderSoldTime </tpl></th>
            <th align="center" valign="middle"><tpl> $langOrderBargainingEstate </tpl></th>
			<th align="center" valign="middle"><tpl> $langOrderComplaintTo </tpl></th>
            <th align="center" valign="middle"><tpl> $langOrderAppraise </tpl></th>
          </tr>
          <tpl> foreach item = goods from = $product_order_array </tpl>
          <tr>
            <td style="text-align:center">
			<!-- 过渡使用，如果没有快照，则查看相当商品详情 -->
			<tpl> if $goods.sp_html neq '' </tpl>
				<a href="<tpl> $site_url </tpl>/home/order.php?action=sp_html&sp_code=<tpl> $goods.sp_code </tpl>" target="_blank"><img src='<tpl> $site_url </tpl>/<tpl> $goods.p_pic|default:"templates/green/images/noimgs.gif" </tpl>' class="p_pic50" /></a>
			<tpl> else </tpl>
				<tpl> if $ifhtml eq '1' && $goods.html_url neq '' </tpl>
					<a target="_blank" href="<tpl> $goods.html_url </tpl>">
					<img src='<tpl> $site_url </tpl>/<tpl> $goods.p_pic|default:"templates/green/images/noimgs.gif" </tpl>' class="p_pic50" /></a>
				<tpl> else </tpl>
					<a href="../home/product.php?action=view&pid=<tpl> $goods.p_code </tpl>" target="_blank"><img src="<tpl> $site_url </tpl>/<tpl> $goods.p_pic|default:'templates/green/images/noimgs.gif' </tpl>" alt="<tpl>$goods.p_name</tpl>" title="<tpl>$goods.p_name</tpl>" class="p_pic50" /></a>
				<tpl> /if </tpl>
			<tpl> /if </tpl>
			</td>
            <td><div class="cc">
			<!-- 过渡使用，如果没有快照，则查看相当商品详情 -->
			<tpl> if $goods.sp_html neq '' </tpl>
				<a href="<tpl> $site_url </tpl>/home/order.php?action=sp_html&sp_code=<tpl> $goods.sp_code </tpl>" target="_blank"><tpl> $goods.p_name </tpl></a>
			<tpl> else </tpl>
				<tpl> if $ifhtml eq '1' && $goods.html_url neq '' </tpl>
					<a target="_blank" href="<tpl> $goods.html_url </tpl>"><tpl> $goods.p_name </tpl></a>
				<tpl> else </tpl>
					<a href="<tpl> $site_url </tpl>/home/product.php?action=view&pid=<tpl> $goods.p_code </tpl>" target="_blank"><tpl> $goods.p_name </tpl></a>
				<tpl> /if </tpl>
			<tpl> /if </tpl>
			</div>
			</td>
            <td style="">
			<tpl> if $order_case eq 'sold' && $goods.anonymous eq '1' </tpl>
				<tpl> $langOrderAnonymityBuy </tpl>
			<tpl> else </tpl>
				<a href="../store/userinfo.php?userid=<tpl> $goods.member_id </tpl>" target="_blank"><tpl> $goods.member_nick </tpl></a>
			<tpl> /if </tpl>
			</td>
            <td class="b font666" style=""><tpl> $goods.unit_price </tpl></td>
            <td class="b font666" style=""><tpl> $goods.sold_date </tpl><br /><tpl> $goods.sold_hour </tpl></td>
            <td align="center" class="font666"  style="padding-top:3px;">
			
			<!--<a href="<tpl> $goods.state_info.state_url </tpl>"><tpl> $goods.state_info.state_title </tpl></a>-->
			<tpl> if $goods.state_info.state_type neq 'all' </tpl>
				<tpl> if $goods.state_info.state_type eq 'buyer' </tpl>
					<tpl> if $order_case eq 'bought'</tpl>
						<font color="#FF3300"><tpl> $goods.state_info.state_title </tpl></font>
						<tpl> if $goods.sp_state eq '0' </tpl>
							<br /><span class="xijie-1"><a class="yellow-1" href="<tpl> $goods.state_info.state_url </tpl>"><tpl> $langOrderPay </tpl></a></span><!-- 付款 -->
						<tpl> /if </tpl>
						<tpl> if $goods.sp_state eq '2' </tpl>
							<br /><span class="xijie-1" ><a class="blue-1" href="<tpl> $goods.state_info.state_url </tpl>"><tpl> $langAffirmReceiptBale </tpl></a></span><!-- 确认收货 -->
						<tpl> /if </tpl>
					<tpl> else </tpl>	
						<tpl> $goods.state_info.state_title </tpl>
						<tpl> if $goods.sp_state eq '0' </tpl>
							<br /><a href="own_order.php?action=close&sp_code=<tpl> $goods.sp_code </tpl>"><tpl> $langOrderClose </tpl></a>
						<tpl> /if </tpl>
					<tpl> /if </tpl>
				<tpl> /if </tpl>
				<tpl> if $goods.state_info.state_type eq 'seller' </tpl>
					<tpl> if $order_case eq 'sold' </tpl>
						<font color="#FF3300"><tpl> $goods.state_info.state_title </tpl></font>
						<tpl> if $goods.sp_state eq '1' </tpl>
							<br /><span class="xijie-1" ><a class="blue-1" href="<tpl> $goods.state_info.state_url </tpl>"><tpl> $langOrderShipment </tpl></a></span><!-- 发货 -->
						<tpl> /if </tpl>
					<tpl> else </tpl>
						<tpl> $goods.state_info.state_title </tpl>
					<tpl> /if </tpl>
				<tpl> /if </tpl>
			<tpl> else </tpl>
				<tpl> $goods.state_info.state_title </tpl>
			<tpl> /if </tpl>
			
			<br /><a href="own_order.php?action=show&sp_code=<tpl> $goods.sp_code </tpl>"><tpl> $langOrderListDetail </tpl></a>
			</td>
            <td class="b font666">
				<tpl> if $order_case eq "sold" </tpl>
					<a  href="own_complaint.php?action=complaint_buy&step=one&spid=<tpl> $goods.sp_id </tpl>"><tpl> $langOrderComp </tpl></a>
				<tpl> elseif $order_case eq "bought" </tpl>
					<a href="own_complaint.php?action=complaint_sell&step=one&spid=<tpl> $goods.sp_id </tpl>"><tpl> $langOrderComp </tpl></a>
				<tpl> /if </tpl>
			</td>
			<td style="text-align:center">
				<tpl> $goods.score_say </tpl>
			</td>
          </tr>
          <tpl>/foreach</tpl>
        </table>
      </div>
	  <tpl> if $product_order_array[0].p_code neq '' </tpl>
	  <div style=" text-align:right">
	  	<tpl> $page_list </tpl>
		</div>
	  <tpl> else </tpl>
	  	<tpl> $langOrderTemporarilyNotInfo </tpl>
	  <tpl> /if </tpl>
	  <div id="reviewed_buyedproduct" style="width:100%; height:100px; float:left; background-image:background-repeat:repeat-x; background-position:left top; margin-top:10px">
</div>
</div>
  <tpl> include file ='../../../html/footer.html' </tpl></div>
  </div>
</body>
</html>