<?php
require "inc.php";
$tab_sys_area =DB_PRE."sys_area";
(isset($get_pid))? $get_pid=intval($get_pid):$get_pid=0;
$str_where=" where area_pid='".$get_pid."'";
$str_sql="SELECT * FROM ".$tab_sys_area .$str_where." order by area_sort,area_id desc";
$obj_result = $obj_db->query($str_sql);
$arr_items=array();
while($obj_rs = $obj_db->fetch_array($obj_result))
{
	$arr_items[] = $obj_rs;
}
?>
<style>
.me_area_list{float:left;width:100%}
.me_area_list li{float:left;padding:5px 10px 3px 5px;text-align:left;white-space:nowrap;width:80px;cursor:pointer}
.me_area_list_next{float:left;width:100%;}
.me_area_list_next li{float:left;padding:5px 10px 3px 5px;white-space:nowrap;cursor:pointer}
</style>
<div class="me_area_list a_4">
<li><a href="javascript:me_get_next_area(-1,0,'²»ÏÞ');" style="color:#0000ff;font-weight:bold">²» ÏÞ</a></li>
	<?php
	foreach($arr_items as $item){ 
		echo "<li><a href=\"javascript:me_get_next_area(".$item["area_id"].",0,'".$item["area_name"]."');\">".$item["area_name"]."</a></li>";
	}?>
</div>
<div class="me_area_list_next a_4" id="id_area_next_0">
</div>
