<?php include mymps_tpl('inc_head');?>
<style>
.mymps_td td{ background-color:#ffffff}
.upload_img{width:100%; height:auto; padding:30px 60px}
.upload_img input{margin-top:5px}
.upload_img ul{float:left; margin:10px; text-align:center; }
.upload_img .preview{height:125px; border:1px #ccc solid; width:125px }
.upload_img .preview img {width:120px;}
.upload_img ul{margin-top:0; padding-top:0;}
.upload_img li{margin:0 0 10px 0}
.upload_img .img_input{width:130px;height:22px}
tr{ background-color:#f5fbff}
</style>
<div style="display:none;">
    <iframe width=0 height=0 src='' id="iframe_area" name="iframe_area"></iframe> 
    <iframe width=0 height=0 src='' id="iframe_street" name="iframe_street"></iframe> 
    <form method="post" target="iframe_area" id="form_area"></form>
</div>
<form action="?action=edit" method="post" enctype="multipart/form-data" name="form1" onSubmit="return CheckSubmit();";>
	<input name="catid" value="<?=$post[catid]?>" type="hidden" />
    <input name="do" value="post" type="hidden">
    <input name="id" value="<?=$post[id]?>" type="hidden">
    <input name="ismember" value="<?=$post[ismember]?>" type="hidden">
    <input name="userid" value="<?=$post[userid]?>" type="hidden">
<div id="mymps">
<table width="100%" cellspacing="0" cellpadding="0" class="vbm">
      <tr class="firstr">
        <td colspan="5">
        <div class="left"><a href="javascript:collapse_change('1')">基本信息</a></div>
        <div class="right"><a href="javascript:collapse_change('1')"><img id="menuimg_1" src="template/images/menu_reduce.gif"/></a></div>
        </td>
      </tr>
      <tbody id="menu_1" class="mymps_td">
	  <tr>
        <td width="100" height="25"><font color=red>(*)</font>信息类别：</td>
        <td>
        <select name="catid">
        <?=cat_list('category',0,$post[catid])?>
        </select>
		<警告：若您要调整的类别与原类别应用不同的信息模型，请勿修改>
        </td>
      </tr>
      <tr>
        <td height="25"><font color=red>(*)</font>所属地区：</td>
        <td>
		<?php echo select_where_option('',$post['cityid'],$post['areaid'],$post['streetid']);?>
        </td>
      </tr>
      <tr>
        <td height="25"><font color=red>(*)</font>信息标题：</td>
        <td>
        	<input type="text" name="title" class="text" value="<?=$post[title]?>"/></td>
      </tr>
	  <?php if(is_array($post[mymps_extra_value])){
	  	foreach($post[mymps_extra_value] as $k => $v){
	  ?>
	  <tr>
        <td height="25"><?php echo $v['required'] == 1 ? '<font color=red>(*)</font>' : '';?><?php echo $v['title'];?>：</td>
        <td>
        	<?php echo $v['value'];?></td>
      </tr>
	  <?php }
	  }?>
      <?php if($cat[if_mappoint] == 1){?>
      <tr>
        <td height="25">地图坐标：</td>
        <td><input name="mappoint" id="mappoint" type="text" class="text" value="<?=$post[mappoint]?>" style="width:125px"/><input name="markmap" type="button" value="点击标注" class="gray" onclick="javascript:setbg('地图标注',500,500,'../map.php?action=markpoint&width=500&height=500&p=<?=$post[mappoint]?>')"></td>
      </tr>
      <?}?>
      <tr>
        <td height="25">有效期：</td>
        <td>
        <?=$post[GetInfoLastTime]?>
        </td>
      </tr>
      </tbody>
      </table>
	  <div class="mymps_td" style="margin-top:3px">
	  <?=$acontent?>
	  </div>
</div>
<div id="mymps">
<table width="100%" cellspacing="0" cellpadding="0" class="vbm">
      <tr class="firstr">
      <td colspan="3">
        <div class="left"><a href="javascript:collapse_change('2')">联系方式</a></div>
        <div class="right"><a href="javascript:collapse_change('2')"><img id="menuimg_2" src="template/images/menu_reduce.gif"/></a></div>
       </td>
      </tr>
      <tbody id="menu_2" class="mymps_td">
      <tr>
        <td height="25" width="100"><font color=red>(*)</font>联系人：</td>
        <td>
        	<input type="text" name="contact_who" class="text" value="<?=$post[contact_who]?>"/>        </td>
      </tr>
      <tr>
        <td height="25"><font color=red>(*)</font>手机或电话：</td>
        <td>
        	<input type="text" name="tel" class="text" value="<?=$post[tel]?>"/>        </td>
      </tr>
      <tr>
        <td height="25">电子邮件：</td>
        <td>
        	<input type="text" class="text" value="<?=$post[email]?>" name="email"/>        </td>
      </tr>
      <tr>
        <td height="25">QQ：</td>
        <td>
        	<input type="text" class="text" value="<?=$post[qq]?>" name="qq"/>        </td>
      </tr>
      </tbody>
      </table>
</div>
<?php if($post[upload_img]){?>
<div id="mymps">
<table width="100%" cellspacing="0" cellpadding="0" class="vbm">
     <tr class="firstr">
        <td colspan="3">
         <div class="left"><a href="javascript:collapse_change('3')">相关图片</a></div>
         <div class="right"><a href="javascript:collapse_change('3')"><img id="menuimg_3" src="template/images/menu_reduce.gif"/></a></div>
        </td>
      </tr>
      <tbody id="menu_3" class="mymps_td">
      <tr class="mymps_td">
      <td colspan="2">
		<?=$post[upload_img]?>
      </td>
      </tr>
      </tbody>
    </table>
</div>
<?php }?>
<div id="mymps">
<table width="100%" cellspacing="0" cellpadding="0" class="vbm">
     <tr class="firstr">
        <td colspan="3">
         <div class="left"><a href="javascript:collapse_change('4')">其他设置</a></div>
         <div class="right"><a href="javascript:collapse_change('4')"><img id="menuimg_4" src="template/images/menu_reduce.gif"/></a></div>
        </td>
      </tr>
      <tbody id="menu_4" class="mymps_td">
        <?=$post[manage_pwd]?>
        <tr>
        <td height="25" width="150">信息状态：</td>
        <td>
        	<?=GetInfoLevel($post[info_level])?>
        </td>
        </tr>
        <tr>
        <td height="25" width="150">标题套红：</td>
        <td>
        	<select name="ifred">
            	<option value="1" 
                <?php if($post[ifred] == 1){echo "style=\"background-color:#6EB00C;color:white\" selected";}?>
                >套红</option>
                <option value="0" 
                <?php 
                if($post[ifred] == 0){echo "style=\"background-color:#6EB00C;color:white\" selected";}
                ?>>不套红</option>
            </select>
        </td>
        </tr>
        <tr>
        <td height="25" width="150">标题加粗：</td>
        <td>
        	<select name="ifbold">
            	<option value="1" 
                <?php 
                if($post[ifbold] == 1){echo "style=\"background-color:#6EB00C;color:white\" selected";}
                ?>>加粗</option>
                <option value="0" 
                <?php 
                if($post[ifbold] == 0){echo "style=\"background-color:#6EB00C;color:white\" selected";}
                ?>>不加粗</option>
            </select>
        </td>
        </tr>
        <tr>
        <td height="25">是否大类置顶：</td>
        <td>
        	<?=$post[upgrade_type]?> <?=GetUpgradeTime($post[upgrade_time])?>（若选择不置顶，可不选择该项目）
        </td>
        </tr>
        <tr>
		<tr>
        <td height="25">是否小类置顶：</td>
        <td>
        	<?=$post[upgrade_type_list]?> <?=GetUpgradeTime($post[upgrade_time_index],'upgrade_time_index')?>（若选择不置顶，可不选择该项目）
        </td>
        </tr>
        <tr>
        <td height="25">是否首页置顶：</td>
        <td>
        	<?=$post[upgrade_type_index]?> <?=GetUpgradeTime($post[upgrade_time_index],'upgrade_time_index')?>（若选择不置顶，可不选择该项目）
        </td>
        </tr>
        <tr>
        <td height="25">发布时间：<br /><em><?php echo GetTime($post['begintime']); ?></em></td>
        <td>
        <label for="refresh"><input name="refresh" value="1" type="checkbox" class="checkbox" id="refresh">刷新?</label>
        </td>
        </tr>
      </tbody>
    </table>
</div>
<center><input type="button" onclick="window.open('../information.php?id=<?=$post[id]?>')" target=_blank value="预 览" class="gray mini" />
&nbsp;
<input type="submit" name="mymps" value="修 改" class="mymps mini" />
&nbsp;&nbsp;<input type="button" onClick="location.href='?'" value="返 回" class="mymps mini"> 
</center>
</form>
<?php mymps_admin_tpl_global_foot();?>