<h2><{$listTitle}></h2>
<{if !$realty_data}>
  <h3><{$smarty.const._RE_NODATA}></h3>
<{else}>
  <font color='red'><b><{$warrning}></b></font>
  <p>
    <form action="index.php" method="get">
    <{$smarty.const._RE_ORDER}>
    <select name="search_order">
        <option value="8" <{if $search_order==8}>selected="selected"<{/if}> ><{$smarty.const._RE_NEWARRIVAL}></option>
        <option value="0" <{if $search_order==0}>selected="selected"<{/if}> ><{$smarty.const._RE_PRICE}><{$smarty.const._RE_ASC}></option>
        <option value="1" <{if $search_order==1}>selected="selected"<{/if}> ><{$smarty.const._RE_PRICE}><{$smarty.const._RE_DESC}></option>
        <option value="2" <{if $search_order==2}>selected="selected"<{/if}> ><{$smarty.const._RE_AREA_OF_BUILDING}><{$smarty.const._RE_ASC}></option>
        <option value="3" <{if $search_order==3}>selected="selected"<{/if}> ><{$smarty.const._RE_AREA_OF_BUILDING}><{$smarty.const._RE_DESC}></option>
        <option value="4" <{if $search_order==4}>selected="selected"<{/if}> ><{$smarty.const._RE_ORDER_YEARSOLD}><{$smarty.const._RE_ASC}></option>
        <option value="5" <{if $search_order==5}>selected="selected"<{/if}> ><{$smarty.const._RE_ORDER_YEARSOLD}><{$smarty.const._RE_DESC}></option>
        <option value="6" <{if $search_order==6}>selected="selected"<{/if}> ><{$smarty.const._RE_WALKTO}><{$smarty.const._RE_ASC}></option>
        <option value="7" <{if $search_order==7}>selected="selected"<{/if}> ><{$smarty.const._RE_WALKTO}><{$smarty.const._RE_DESC}></option>
    </select>
    <input type='hidden' name='listno' id='listno' value='<{$listno}>' />
    <input type='hidden' name='search_typeid' id='search_typeid' value='<{$search_typeid}>' />
    <input type='hidden' name='search_price_low' id='search_price_low' value='<{$search_price_low}>' />
    <input type='hidden' name='search_price_high' id='search_price_high' value='<{$search_price_high}>' />
    <input type='hidden' name='search_area_building' id='search_area_building' value='<{$search_area_building}>' />
    <input type='hidden' name='search_area_land' id='search_area_land' value='<{$search_area_land}>' />
    <input type='hidden' name='search_yearpriod' id='search_yearpriod' value='<{$search_yearpriod}>' />
    <input type='hidden' name='search_walkto' id='search_walkto' value='<{$search_walkto}>' />
    <input type='hidden' name='search_address' id='search_address' value='<{$search_address}>' />
    <input type="submit" class="submit" value="<{$smarty.const._SUBMIT}>" />
    </form>
  </p>
  <div class="pagenav">
  <{$realty_pagenav}>
  </div>

  <!-- DATA TABLE SECTION -->
  <table width="100%" id="realty">
  <tr>
    <th scope="col"><{$smarty.const._RE_HASIMAGE}></th>
    <th scope="col"><{$smarty.const._RE_PROPERTY}><br /><{$smarty.const._RE_UPDATE}></th>
    <th scope="col"><{$smarty.const._RE_RAILS}></th>
    <th scope="col"><{$smarty.const._RE_TRANSIT}></th>
    <th scope="col"><{$smarty.const._RE_DISTRICT}></th>
    <th scope="col"><{$smarty.const._RE_PRICE}></th>
    <th scope="col"><{$smarty.const._RE_ADDRESS}></th>
    <th scope="col"></th>
  </tr>
  <!-- RECORD DATA -->
  <{foreach item=i from=$realty_data}>
  <tr>
      <td>
		<{if $i.imageURL2}>
        	<img height="32" width="48" alt="<{$i.station_name}>" src=<{$i.imageURL}> /><br />
        	<img height="16" width="48" alt="<{$i.layout_desc}>" src=<{$i.imageURL2}> />
        <{else}>
        	<img height="48" width="48" alt="<{$i.station_name}>" src=<{$i.imageURL}> />
        <{/if}>
      <td>
        <{$i.property_id}>
		<{if $i.id}>
        (<{$i.id}>)
        <{/if}>
        <br /><{$i.updated}>
      </td>
      <td><{$i.railline_name}><br /><{$i.station_name}></td>
      <td><{$i.transit}></td>
      <td><{$i.type_desc}><br /><{$i.layout_desc}></td>
      <td align="right">
        <{if $smarty.session.realty_switch==1}>
         	<{$i.price|number_format}><{$smarty.const._RE_PRICE_UNIT}>
        <{else}>
         	<{$i.price_jp|number_format}><{$smarty.const._RE_10TH_PRICE_UNIT}>
        <{/if}>
		<br />
      	<{$i.yearsold}>
      </td>
      <td>
        <a class="qmButton qmAdd colorbox" href="http://maps.google.com/maps?q=<{$i.googlemap}>">
        <span><{$i.address}></span></a><br />
        <{if $smarty.session.realty_switch==1}>
			<{if $i.depositcaution_month || $i.depositcaution_money}>
        		<{$smarty.const._RE_depositcaution_money}>
			<{/if}>
			<{if $i.depositcaution_month}>
				<{$i.depositcaution_month}><{$smarty.const._RE_PAYMONTH}>
			<{else}>
				<{if $i.depositcaution_money}>
					<{$i.depositcaution_money|number_format}><{$smarty.const._RE_PRICE_UNIT}>
				<{/if}>
			<{/if}>
			<{if $i.beneficial_payment_month || $i.beneficial_payment_money}>
	        	<{$smarty.const._RE_beneficial_payment}>
			<{/if}>
			<{if $i.beneficial_payment_month}>
				<{$i.beneficial_payment_month}><{$smarty.const._RE_PAYMONTH}>
			<{else}>
				<{if $i.beneficial_payment}>
					<{$i.beneficial_payment|number_format}><{$smarty.const._RE_PRICE_UNIT}>
				<{/if}>
			<{/if}>
			<{if $i.guarantee_deposit_month || $i.guarantee_deposit_money}>
	        	<{$smarty.const._RE_guarantee_deposit}>
			<{/if}>
			<{if $i.guarantee_deposit_month}>
				<{$i.guarantee_deposit_month}><{$smarty.const._RE_PAYMONTH}>
			<{else}>
				<{if $i.guarantee_deposit}>
					<{$i.guarantee_deposit|number_format}><{$smarty.const._RE_PRICE_UNIT}>
				<{/if}>
			<{/if}>
        <{else}>
			<{if $i.area_of_land}>
	      	  &nbsp;<{$smarty.const._RE_AREA_OF_LAND}><{$i.area_of_land|number_format}><{$smarty.const._RE_SQM}>
	        <{/if}>
			<{if $i.monopolize_area}>
	      	  &nbsp;<{$smarty.const._RE_MONOPOLIZE_AREA}><{$i.monopolize_area|number_format}><{$smarty.const._RE_SQM}>
	        <{/if}>
			<{if $i.area_of_building}>
	      	  &nbsp;<{$smarty.const._RE_AREA_OF_BUILDING}><{$i.area_of_building|number_format}><{$smarty.const._RE_SQM}>
	        <{/if}>
	    <{/if}>
      </td>
      <td>
      <a href="index.php?property_id=<{$i.property_id}>"><{$smarty.const._RE_DETAIL}></a>
      </td>
  </tr>
  <{/foreach}>
  </table>
  <div class="pagenav">
  <{$realty_pagenav}>
  </div>
<{/if}>
<{if $addnew_link}>
  <a class="qmButton qmAdd colorbox" href="<{$addnew_link}>"><span><{$smarty.const._RE_CREATEPROMPT}></span></a>
<{/if}>
<{if $xoops_user}>
	<{$sql}>
<{/if}>
