<?php mymps_admin_tpl_global_head();?>
<div id="<?=MPS_SOFTNAME?>" style="padding-bottom:0">
	<div class="mpstopic-category">
		<div class="panel-tab">
			<ul class="clearfix tab-list">
			<?php foreach($step as $k => $v){?>
				<li><a href="html.php?part=<?=$k?>" <?php if($part == $k){?>class="current"<?php }?>><?=$v?></a></li>
			<?php }?>
			</ul>
		</div>
	</div>
</div>
<script type='text/javascript' src='js/vbm.js'></script>
<div id="<?=MPS_SOFTNAME?>">
<table border="0" cellspacing="0" cellpadding="0" class="vbm">
  <form name="form1" action="?" method="post" target='stafrm'>
    <input name="part" value="<?=$part?>" type="hidden">
    <input name="html_do" value="yes" type="hidden">
    <tr class="firstr"> 
        <td colspan="2"><strong>&nbsp;&nbsp;<?=$here2?></strong></td>
    </tr>
    <tr> 
        <td valign="top" bgcolor="#FFFFFF" width="16%">&nbsp;&nbsp;选择信息栏目</td>
        <td valign="top" bgcolor="#FFFFFF">
        <select name="information_catid[]" size="1" multiple="multiple" style="width:50%; height:400px">
        <?=cat_list()?>
        </select>
        </td>
    </tr>
    <tr> 
        <td valign="top" bgcolor="#FFFFFF" width="10%">&nbsp;&nbsp;信息路径格式</td>
        <td valign="top" bgcolor="#FFFFFF">
        <input name="html_style" value="<?=$config[value]?>"  type="text" disabled="disabled" class="text">  <label for="new"><input name="if_save" value="yes" type="checkbox" class="checkbox"onclick="blocknone('new_path');" id="new">启用新路径</label>
        <a href="javascript:blocknone('bianqian')">展开标签说明</a> <br />
路径范例：<font style="color:#F00">/{year}{month}/info_{id}.html</font><br /><br />
        <div id="new_path" style="display:none"><input name="html_style" value=""  type="text" class="text"><br /></div>
        <div style="background-color:#dff6ff; padding: 5px 10px; width:300px; margin-top:5px; line-height:18px; display:none" id="bianqian">
          <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td>{time}</td>
              <td>unix时间戳，如<?php echo time();?></td>
            </tr>
            <tr>
              <td>{year}</td>
              <td>年，如<?php echo date('Y',time());?></td>
            </tr>
            <tr>
              <td>{month}</td>
              <td>月，如<?php echo date('m',time());?></td>
            </tr>
            <tr>
              <td>{day}</td>
              <td>日，如<?php echo date('d',time());?></td>
            </tr>
            <tr>
              <td>{id}</td>
              <td>ID编号</td>
            </tr>
            <tr>
              <td>{random}</td>
              <td>5位随机数字，如<?php echo rand();?></td>
            </tr>
          </table>
        </div>
        </td>
    </tr>
    <tr> 
        <td valign="top" bgcolor="#FFFFFF" width="10%">&nbsp;&nbsp;起始ID</td>
        <td valign="top" bgcolor="#FFFFFF">
        <input name="startid" value="" type="text" class="txt">（空或0表示从头开始）
        </td>
    </tr>
    <tr> 
        <td valign="top" bgcolor="#FFFFFF" width="10%">&nbsp;&nbsp;结束ID</td>
        <td valign="top" bgcolor="#FFFFFF">
        <input name="endid" value=""  type="text" class="txt">（空或0表示直到结束id）
        </td>
    </tr>
    <tr> 
      <td bgcolor="#ffffff">&nbsp;</td>
      <td bgcolor="#ffffff">
      <button name="submit" value="makehtml" style="margin:10px;" class="mymps large" type="submit" >开始生成html</button>
	  <button name="submit" value="delhtml" style="margin:10px;" class="gray large" type="submit" >开始删除html</button>
      </td>
    </tr>
  </form>
 <?php include mymps_tpl('html_runbox');?>
</table>
</div>
<?php mymps_admin_tpl_global_foot();?>