<!--
<?php
$detail=explode(",",$webdb[Post_group_UpPhoto].',3,4');
if($webdb[Post_group_UpPhoto]&&!in_array($groupdb['gid'],$detail))$none='none;';
print <<<EOT
--> 
<div style="display:none;"> <iframe width=1 height=1 src='' id="iframe_zone" name="iframe_zone"></iframe> 
  <iframe width=1 height=1 src='' id="iframe_street" name="iframe_street"></iframe> 
  <form name="form1" method="post" action="" target="iframe_zone" id="form_zone">
  </form>
</div>
<script src="images/default/setday.js"></script>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="MainTable">
  <tr> 
    <td width="100%" height="393" valign="top" class="Main"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="dragTable" id="postshop">
        <tr> 
          <td class="head"> 
            <h3 class="L"></h3>
            <span class="TAG">{$city_DB[name][$city_id]}$fidDB[name]</span> 
            <h3 class="R"></h3>
          </td>
        </tr>
        <tr> 
          <td class="middle"> <form name="FORM" id="FORM" method="post" action="?action=$atc"  enctype="multipart/form-data" onsubmit="return post();">
            <script>
function upfile(url,name,size,ty){
	document.getElementById(ty).value=url;
}
</script>
              <table width="99%" border="0" cellspacing="8" cellpadding="3" id="bigtable">
                <tr align="left"> 
                  <td colspan="2"> 
                    <div class="ct">基本资料</div>
                  </td>
                </tr>
                <tr> 
                  <td width="18%" align="right"><font color="red">*</font>所在区域:</td>
                  <td width="82%">$city_fid<span id="showzone"></span><span id="showstreet"></span> 
                    <SCRIPT LANGUAGE="JavaScript">
<!--
function choose_where(t,fup,fid,delstreet,typeid){
	if(t=='getzone'){
		url="$city_url/job.php?job=getzone&typeid="+typeid+"&fup="+fup+"&fid="+fid+"&delstreet="+delstreet;
		target='iframe_zone';
	}else{
		url="$city_url/job.php?job=getstreet&typeid="+typeid+"&fup="+fup+"&fid="+fid;
		target='iframe_street';
	}
	document.getElementById("form_zone").action=url;
	document.getElementById("form_zone").target=target;
	document.getElementById("form_zone").submit();
}
choose_where("getzone","$city_id","$zone_id",'','');
choose_where("getstreet","$zone_id","$street_id",'','');
//-->
</SCRIPT>
                  </td>
                </tr>
                <tr> 
                  <td width="18%" align="right"><font color="red">*</font>信息标题:</td>
                  <td width="82%"> 
                    <input type="text" name="postdb[title]" id="atc_title" size="50" value="$rsdb[title]">
                  </td>
                </tr>
                <!--
EOT;
if($job!="edit"&&$webdb[Info_GroupPostYzImg]&&!$web_admin&&in_array($groupdb['gid'],explode(",",$webdb[Info_GroupPostYzImg]))){
print <<<EOT
-->
                <tr> 
                  <td width="18%" align="right">验证码:<font color=red>(必填)</font></td>
                  <td width="82%"> 
                    <input id="yzImgNum" type="text" name="yzimg" size="8">
<SCRIPT LANGUAGE="JavaScript">
<!--
document.write('<img border="0" name="imageField" onclick="this.src=this.src+Math.random();" src="$webdb[www_url]/do/yzimg.php?'+Math.random()+'">');
//-->
</SCRIPT>
                  </td>
                </tr>
                <!--
EOT;
}
print <<<EOT
-->
                <tr> 
                  <td width="18%" align="right">介绍图片 <a href="#" title="点击增加1项" onClick="showinput()"><img border='0' src='$webdb[www_url]/images/default/menu_add.gif'></a>
                    
                   </td>
                  <td width="82%"><SCRIPT LANGUAGE="JavaScript">
<!--
function choosef(i,t){
	if(t=='out'){
		document.getElementById("out_url"+i).style.display='';
		document.getElementById("in_url"+i).style.display='none';
	}else{
		document.getElementById("out_url"+i).style.display='none';
		document.getElementById("in_url"+i).style.display='';
	}
}
//-->
</SCRIPT>
                    <!--
EOT;
if($groupdb['gid']==2){
	$picnum=$webdb[Info_GuestPostPicNum]!=''?intval($webdb[Info_GuestPostPicNum]):3;
}elseif($groupdb['gid']==8){
	$picnum=$webdb[Info_MemberPostPicNum]!=''?intval($webdb[Info_MemberPostPicNum]):10;
}else{
	$picnum=80;
}
if($picnum<1)unset($listdb);
$detail=explode(",",$webdb[group_UpPhoto].',3,4');
if($webdb[group_UpPhoto]&&!in_array($groupdb['gid'],$detail))$none='none;';
$i=0;
foreach($listdb AS $key=>$rs){
$i++;
print <<<EOT
-->
                    图片标题: 
                    <input type="text" name="titledb[$i]" size="10" value="$rs[name]">
                    图片地址: 
                    <input type="text" name="photodb[$i]" size="30" id="out_url$i" value="$rs[imgurl]">
                    <input type="file" name="local_file$i" id="in_url$i" style="display:none;">
                    <input type="radio" name="ftype[$i]" value="out" checked onclick="choosef($i,'out')">
                    网络文件 <a style="display:$none;"> 
                    <input type="radio" name="ftype[$i]" value="in" onclick="choosef($i,'in')">
                    本地文件 </a> 
                    <input type="hidden" name="piddb[$i]" value="$key">
                    <br>
                    <!--
EOT;
}print <<<EOT
-->
                    <div id='input$i'></div>
                    <script>
totalnum=$i;
limitnum=$picnum;
function showinput(){
	if(totalnum>(limitnum-1)){
		alert("你最多只能上"+limitnum+"传张图片!");
		return ;
	}
	var str='';
	var divid='input'+totalnum;
	var num=2;
	num=document.FORM.nums.value;
	for(var i=1;i<=num;i++){
		totalnum=totalnum+i;
		str+='图片标题:<input type="text" name="titledb['+totalnum+']" size="10"> 图片地址: <input type="text" name=photodb['+totalnum+'] size="30" id="out_url'+totalnum+'"> <input type="file" name="local_file'+totalnum+'" id="in_url'+totalnum+'" style="display:none;"> <input type="radio" name="ftype['+totalnum+']" value="out" checked onclick="choosef('+totalnum+',\'out\')">网络文件 <a style="display:$none;"><input type="radio" name="ftype['+totalnum+']" value="in" onclick="choosef('+totalnum+',\'in\')">本地文件</a><br>';
	}
	document.getElementById(divid).innerHTML=str+"<div id='input"+totalnum+"'></div>";
} 
</script><input type="hidden" size="3" name="nums" value="1">
</td>
                </tr>
               <!--
EOT;
if($m_config[moduleSet][useMap]){
if($webdb[if_GGmap]){
print <<<EOT
--> 
<tr> 
                  <td width="18%" align="right">地图位置:</td>
                  <td width="82%"> <input type="text" name="postdb[maps]" id="mapid" size="40" value="$rsdb[maps]" readonly  onclick="window.open('$webdb[www_url]/job.php?job=ggmap_position&position=$rsdb[maps]&mapid=mapid&cityid='+document.getElementById('mapid_v').value);">
(<img src="$webdb[www_url]/images/default/icon_qi.gif"><a onclick="window.open('$webdb[www_url]/job.php?job=ggmap_position&position=$rsdb[maps]&mapid=mapid&cityid='+document.getElementById('mapid_v').value);" href="#" >点击标注地图位置</a> 
<font color="#999999">标注后，店铺将定位到电子地图上</font>) (<A onclick="document.getElementById('mapid').value='';" HREF="#">清除</A>) 
<input type="hidden" name="hiddenField" id="mapid_v" value="$city_id">
                  </td>
                </tr>
    <!--
EOT;
}else{
print <<<EOT
--> 
<tr> 
                  <td width="18%" align="right">地图位置:</td>
                  <td width="82%"> 
                    <input type="text" name="postdb[maps]" id="mapid" size="15" value="$rsdb[maps]" readonly  onclick="window.open('$city_url/job.php?job=map_position&mapid=mapid&cityid='+document.getElementById('mapid_v').value);">
                    (<img src="$webdb[www_url]/images/default/icon_qi.gif"><a onclick="window.open('$city_url/job.php?job=map_position&mapid=mapid&cityid='+document.getElementById('mapid_v').value);" href="#" >点击标注地图位置</a> 
                    <font color="#999999">标注后，店铺将定位到电子地图上</font>) (<A onclick="document.getElementById('mapid').value='';" HREF="#">清除</A>) 
                    <input type="hidden" name="hiddenField" id="mapid_v" value="$city_id">
                  </td>
                </tr>
				
				
				<!--
EOT;
}}print <<<EOT
-->
               <tr> 
                  <td width="18%" align="right">有效日期:</td>
                  <td width="82%"> 
                    <!--
EOT;
$showday[$rsdb[showday]]=' selected ';
print <<<EOT
-->
                    <select name="postdb[showday]">
					
					 <!--
EOT;
if(!$webdb[Info_UseEndTime]){
print <<<EOT
-->
                      <option value="0">不限</option>
					  
					  
                    <!--
EOT;
}
$showday[$rsdb[showday]]=' selected ';
$webdb[Info_showday] || $webdb[Info_showday]="90/60/30";
$array=explode("/",$webdb[Info_showday]);
foreach($array AS $key=>$value){
print <<<EOT
-->
					  
                      <option value="$value" {$showday[$value]}>{$value}天</option>
<!--
EOT;
}
print <<<EOT
-->
                    </select>
                  </td>
                </tr> <tr> 
                  <td width="18%" align="right">联系方式:</td>
                  <td width="82%"> 联系人: 
                    <input type="text" name="postdb[linkman]" id="atc_linkman" size="15" value="$rsdb[linkman]">
                    电话: 
                    <!--
EOT;
if($webdb[Info_Musttelephone]){
print <<<EOT
-->
                    (<font color="#FF0000">*</font>) 
                    <!--
EOT;
}
print <<<EOT
-->
                    <input type="text" name="postdb[telephone]" id="atc_title" size="15" value="$rsdb[telephone]">
                    手机: 
                    <!--
EOT;
if($webdb[Info_Mustmobphone]){
print <<<EOT
-->
                    (<font color="#FF0000">*</font>) 
                    <!--
EOT;
}
print <<<EOT
-->
                    <input type="text" name="postdb[mobphone]" id="atc_title" size="15" value="$rsdb[mobphone]">
                    <br>
                    邮箱: 
                    <!--
EOT;
if($webdb[Info_MustEmail]){
print <<<EOT
-->
                    (<font color="#FF0000">*</font>) 
                    <!--
EOT;
}
print <<<EOT
-->
                    <input type="text" name="postdb[email]" id="atc_title" size="25" value="$rsdb[email]">
                    QQ: 
                    <!--
EOT;
if($webdb[Info_MustQQ]){
print <<<EOT
-->
                    (<font color="#FF0000">*</font>) 
                    <!--
EOT;
}
print <<<EOT
-->
                    <input type="text" name="postdb[oicq]" id="atc_title" size="15" value="$rsdb[oicq]">
                    MSN: 
                    <input type="text" name="postdb[msn]" id="atc_title" size="15" value="$rsdb[msn]">
                  </td>
                </tr>
                <tr> 
                  <td width="18%" align="right">标　　签:<font color="red"> </font></td>
                  <td width="82%"> 
                    <input type="text" name="postdb[keywords]" id="atc_title" size="50" value="$rsdb[keywords]">
                    (多个用空格隔开)</td>
                </tr><!--
EOT;
if(!$lfjid){print <<<EOT
-->
				<tr> 
                  <td width="18%" align="right">管理密码:</td>
                  <td width="82%"> 
                    <input type="password" name="postdb[editpwd]" id="atc_title" size="10" value="$rsdb[editpwd]">
                    <input type="hidden" name="editpwd2" value="$rsdb[editpwd]">
                    (设置密码后,将可以凭借密码删除信息)</td>
                </tr>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
if($lfjid){print <<<EOT
-->
                <tr align="left"> 
                  <td colspan="2" height="21"> 
                    <div class="ct">增值服务</div>
                  </td>
                </tr>
                <tr> 
                  <td width="18%" align="right">是否置顶:</td>
                  <td width="82%"> 
                    <input type="radio" name="iftop" value="0" $ifTop[0]>
                    不置顶 
                    <input type="radio" name="iftop" value="1" $ifTop[1]>
                    置顶(注:栏目内置顶需要消费积分:<b><font color="#FF0000">{$webdb[Info_TopMoney]}</font></b>个,<a href="$webdb[www_url]/do/jf.php" target="_blank"><font color="#0000FF">点击查上看如何获取积分?</font></a>) 
                  </td>
                </tr>
                <tr> 
                  <td width="18%" align="right">头条显示:</td>
                  <td width="82%"> 
                    <input type="checkbox" name="buyfid[]" value="Index" {$buyfid['Index']}>
                    首页焦点显示 
                    <input type="checkbox" name="buyfid[]" value="Sort" {$buyfid['Sort']}>
                    栏目焦点显示 
                    <input type="checkbox" name="buyfid[]" value="BigSort" {$buyfid['BigSort']}>
                    分类焦点显示 <br>
                    注意:系统规定首页焦点显示最低收费{$webdb[MoneyName]}<font color="#FF0000">{$webdb[AdInfoIndexShow]}</font>{$webdb[MoneyDW]},栏目焦点显示最低收费{$webdb[MoneyName]}<font color="#FF0000">{$webdb[AdInfoSortShow]}</font>{$webdb[MoneyDW]},分类焦点显示最低收费{$webdb[MoneyName]}<font color="#FF0000">{$webdb[AdInfoBigsortShow]}</font>{$webdb[MoneyDW]} 
                    ,有效期<font color="#0000FF">{$webdb[AdInfoShowTime]}</font>天.你目前有{$webdb[MoneyName]}<font color="#FF0000">{$lfjdb[money]}</font>{$webdb[MoneyDW]}. 
                    <SCRIPT LANGUAGE="JavaScript">
<!--
function chooseShow(t){
	document.getElementById("putmoney").style.display='none';
	document.getElementById("money_sort").style.display='none';
	document.getElementById("money_bigsort").style.display='none';
	document.getElementById("money_index").style.display='none';
	document.getElementById("money_index").style.display='none';
	obj=document.getElementById("money");
	if(t=='Index'){
		document.getElementById("putmoney").style.display='';
		document.getElementById("money_index").style.display='';
		if(parseInt(obj.value)<parseInt('$webdb[AdInfoIndexShow]')||isNaN(parseInt(obj.value))){
			obj.value='$webdb[AdInfoIndexShow]';
		}
	}else if(t=='Sort'){
		document.getElementById("putmoney").style.display='';
		document.getElementById("money_sort").style.display='';
		if(parseInt(obj.value)<parseInt('$webdb[AdInfoSortShow]')||isNaN(parseInt(obj.value))){
			obj.value='$webdb[AdInfoSortShow]';
		}
	}else if(t=='BigSort'){
		document.getElementById("putmoney").style.display='';
		document.getElementById("money_bigsort").style.display='';
		if(parseInt(obj.value)<parseInt('$webdb[AdInfoBigsortShow]')||isNaN(parseInt(obj.value))){
			obj.value='$webdb[AdInfoBigsortShow]';
		}
	}
}
//chooseShow('$showtype');
//-->
</SCRIPT>
                    <a href="$webdb[www_url]/do/jf.php" target="_blank"><font color="#0000FF">点击查看如何获取积分?</font></a> 
                  </td>
                </tr>
<!--
EOT;
}print <<<EOT
-->
				
                <tr align="left"> 
                  <td colspan="2"> 
                    <div class="ct">补充资料</div>
                  </td>
                </tr>
                <tr> <td align='right'>性质:<font color=red>*</font><br></td> <td > <input type='radio' name='postdb[sortid]' value='1' {$rsdb[sortid]['1']}>个人  <input type='radio' name='postdb[sortid]' value='2' {$rsdb[sortid]['2']}>中介  </td></tr><tr> <td align='right'>面积:<br></td> <td > <input   type='text' name='postdb[my_acreage]' id='atc_my_acreage' style='width:100px;' value='$rsdb[my_acreage]'> 平方米</td></tr><tr> <td align='right'>价格:<br></td> <td > <input   type='text' name='postdb[my_price]' id='atc_my_price' style='width:100px;' value='$rsdb[my_price]'> 元</td></tr><tr> <td align='right'>装修情况:<br></td> <td ><select name='postdb[my_fitment]' id='atc_my_fitment'><option value='普通装修' {$rsdb[my_fitment]['普通装修']}>普通装修</option><option value='精装修' {$rsdb[my_fitment]['精装修']}>精装修</option><option value='豪华装修' {$rsdb[my_fitment]['豪华装修']}>豪华装修</option><option value='毛坯房' {$rsdb[my_fitment]['毛坯房']}>毛坯房</option></select></td></tr><tr> <td align='right'>所在楼层:<br></td> <td > <input   type='text' name='postdb[my_floor]' id='atc_my_floor' style='width:100px;' value='$rsdb[my_floor]'> 楼</td></tr><tr> <td align='right'>附近公交站:<br></td> <td > <input   type='text' name='postdb[my_station]' id='atc_my_station' style='width:100px;' value='$rsdb[my_station]'> </td></tr><tr> <td align='right'>公交线路:<br></td> <td > <input   type='text' name='postdb[my_bus]' id='atc_my_bus' style='width:100px;' value='$rsdb[my_bus]'> </td></tr><tr> <td align='right'>附注信息:<br></td> <td ><textarea  name='postdb[content]' id='atc_content' style='width:400px;height:100px;'>$rsdb[content]</textarea></td></tr><!----> 
                <tr> 
                  <td width="18%" align='right'>&nbsp;</td>
                  <td width="82%"> 
                    <input type="submit" name="Submit" value="提 交">
                    <input type="hidden" name="fid" value="$fid">
                    <input type="hidden" name="id" value="$id">
                    <input type="hidden" name="fid_bak1" value="$rsdb[fid_bak1]">
                    <input type="hidden" name="fid_bak2" value="$rsdb[fid_bak2]">
                    <input type="hidden" name="fid_bak3" value="$rsdb[fid_bak3]">
                    <input type="hidden" name="$webdb[rand_num_inputname]" value="$webdb[rand_num]">
                  </td>
                </tr>
              </table>
            </form>
          </td>
        </tr>
        <tr> 
          <td class="foot"> 
            <h3 class="L"></h3>
            <h3 class="R"></h3>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<SCRIPT LANGUAGE="JavaScript">
<!--

function post(){
	t="$webdb[Force_Choose_City]";
	obj_city=document.getElementById("{$_pre}city");
	if(t=='1'&&obj_city!=null){
		city_value=obj_city.options[obj_city.selectedIndex].value;
		if(obj_city.options.length>1&&city_value==''){
			alert("你必须要选择一个城市");
			obj_city.focus();
			return false;
		}
	}
	obj_city=document.getElementById("{$_pre}zone");
	if(t=='1'&&obj_city!=null){
		city_value=obj_city.options[obj_city.selectedIndex].value;
		if(obj_city.options.length>1&&city_value==''){
			alert("你必须要选择一个辖区");
			obj_city.focus();
			return false;
		}
	}
	obj_city=document.getElementById("{$_pre}street");
	if(t=='1'&&obj_city!=null){
		city_value=obj_city.options[obj_city.selectedIndex].value;
		if(obj_city.options.length>1&&city_value==''){
			alert("你必须要选择一个地段");
			obj_city.focus();
			return false;
		}
	}
	document.getElementById("FORM").submit();
}

//-->
</SCRIPT>
<!--
EOT;
?>
-->
