<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); include template('milu_pick:pick_header'); ?><script src="static/js/calendar.js?v=<?php echo PICK_VERSION;?>" type="text/javascript" type="text/javascript" type="text/javascript"></script>
<script>

function show_article_detail(aid,do_id){
showWindow('article_detail', PICK_URL+'picker_manage&myac=show_article_detail&aid='+aid);

}
function search_submit(e,f){
if (e.keyCode == 13) { 
f.submit();
} 
}
</script>
<div class="itemtitle">
<?php if($info['p']) { ?>
<ul class="tab1" style="margin-top:8px;"><?php if(is_array($info['status_arr'])) foreach($info['status_arr'] as $key => $rs) { ?><li <?php if($info['status'] == $key ) { ?>class="current" <?php } ?>><a href="?<?php echo PICK_GO;?>picker_manage&myac=article_manage&pid=<?php echo $info['pid'];?>&status=<?php echo $key;?>&p=<?php echo $info['p'];?>"><span><?php echo $rs;?><?php if($info['a_c'][$key]) { ?>(<?php echo $info['a_c'][$key];?>)<?php } ?></span></a></li>
<?php } ?>
</ul>
<?php } ?>
<form onkeydown="javascript: search_submit(event,this);" id="form12" name="form12"  action="?<?php echo PICK_GO;?>picker_manage&myac=article_manage<?php if($info['p']) { ?>&pid=<?php echo $info['pid'];?>&status=<?php echo $info['status'];?><?php } ?>&p=<?php echo $info['p'];?>" method="post"> 
 <input type="hidden" name="formhash" id="formhash" value="<?php echo FORMHASH;?>" />

  <p style="float:left; margin-top:3px; margin-left:10px; width:<?php if($info['p']) { ?>800<?php } else { ?>900<?php } ?>px;">
    <span style="float:left"><font style="float:left; margin-top:5px;">文章标题:</font>
      <input type="text" style="float:left; margin:3px 10px 0 10px; width:175px; height:16px;" name="set[s]"  value="<?php echo $info['s'];?>" id="srchforumipt" class="txt">	
  <?php if(!$info['p']) { ?>
  <?php echo $info['pick_select'];?>  <?php echo select_output($info['status_arr'], '', 'set[status]', $info['status'], 1);?>  <?php } ?>	
          
      <?php echo select_output($info['orderby_arr'], '', 'set[orderby]', $info['orderby'], 1);?>  
      <?php echo select_output($info['ordersc_arr'], '', 'set[ordersc]', $info['ordersc'], 1);?>  
      <?php echo select_output($info['perpage_arr'], '', 'set[perpage]', $info['perpage'], 1);?>      </span>
    
    <input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="submit" class="btn" value="搜索" id="submit_editsubmit">

    <input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索地区" onclick=" window.location.href = window.location.href+'&op=getArea' ">
    
    <!-- start -->
    
    <input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索安徽" onclick=" window.location.href = window.location.href+'&op=province&province=安徽' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索福建" onclick=" window.location.href = window.location.href+'&op=province&province=福建' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索甘肃" onclick=" window.location.href = window.location.href+'&op=province&province=甘肃' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索广东" onclick=" window.location.href = window.location.href+'&op=province&province=广东' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索广西" onclick=" window.location.href = window.location.href+'&op=province&province=广西' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索贵州" onclick=" window.location.href = window.location.href+'&op=province&province=贵州' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索海南" onclick=" window.location.href = window.location.href+'&op=province&province=海南' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索河北" onclick=" window.location.href = window.location.href+'&op=province&province=河北' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索河南" onclick=" window.location.href = window.location.href+'&op=province&province=河南' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索黑龙江" onclick=" window.location.href = window.location.href+'&op=province&province=黑龙江' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索湖北" onclick=" window.location.href = window.location.href+'&op=province&province=湖北' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索湖南" onclick=" window.location.href = window.location.href+'&op=province&province=湖南' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索吉林" onclick=" window.location.href = window.location.href+'&op=province&province=吉林' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索江苏" onclick=" window.location.href = window.location.href+'&op=province&province=江苏' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索江西" onclick=" window.location.href = window.location.href+'&op=province&province=江西' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索辽宁" onclick=" window.location.href = window.location.href+'&op=province&province=辽宁' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索内蒙古" onclick=" window.location.href = window.location.href+'&op=province&province=内蒙古' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索宁夏" onclick=" window.location.href = window.location.href+'&op=province&province=宁夏' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索青海" onclick=" window.location.href = window.location.href+'&op=province&province=青海' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索山东" onclick=" window.location.href = window.location.href+'&op=province&province=山东' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索山西" onclick=" window.location.href = window.location.href+'&op=province&province=山西' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索陕西" onclick=" window.location.href = window.location.href+'&op=province&province=陕西' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索上海" onclick=" window.location.href = window.location.href+'&op=province&province=上海' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索四川" onclick=" window.location.href = window.location.href+'&op=province&province=四川' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索天津" onclick=" window.location.href = window.location.href+'&op=province&province=天津' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索西藏" onclick=" window.location.href = window.location.href+'&op=province&province=西藏' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索新疆" onclick=" window.location.href = window.location.href+'&op=province&province=新疆' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索云南" onclick=" window.location.href = window.location.href+'&op=province&province=云南' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索浙江" onclick=" window.location.href = window.location.href+'&op=province&province=浙江' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索重庆" onclick=" window.location.href = window.location.href+'&op=province&province=重庆' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索香港" onclick=" window.location.href = window.location.href+'&op=province&province=香港' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索澳门" onclick=" window.location.href = window.location.href+'&op=province&province=澳门' ">
<input  style="float:left;  margin:0 0 0 10px; padding:1px 5px; height:23px;" name="submit" type="button" class="btn" value="搜索台湾" onclick=" window.location.href = window.location.href+'&op=province&province=台湾' ">
    
    <!-- end -->

  </p>
</form></div>


<form id="cpform" action="?<?php echo PICK_GO;?>picker_manage&myac=article_batch&tpl=no&pid=<?php echo $info['pid'];?>&orderby=<?php echo $info['orderby'];?>&ordersc=<?php echo $info['ordersc'];?>&perpage=<?php echo $info['perpage'];?>&s=<?php echo $info['s'];?>&status=<?php echo $info['status'];?>&p=<?php echo $info['p'];?>&pid=<?php echo $info['pid'];?>" autocomplete="off" method="post" name="cpform">
<input type="hidden" value="4e816df0" name="formhash"><input type="hidden" value="" name="scrolltop" id="formscrolltop">
   </p>
    <table class="tb tb2 ">
<tr><th colspan="25" class="partition"><?php if($info['pick']['name']) { ?><?php echo $info['pick']['name'];?><?php } else { ?>全部<?php } ?> - 文章列表</th>
</tr>
<tbody><tr class="header"><th></th>
<th width="420">文章标题</th>
<?php if(!$info['p']) { ?>
<th>采集器</th>
<th>目前状态</th>
<?php } if($info['status'] == 4) { ?>
  <th>预计发布时间</th>
  <th>发布位置</th>
<?php } else { ?>
<th>门户</th>
<th>论坛</th>
<th>博客</th>
<!--<th>发布时间</th>-->
<?php } ?>

  <th>入库时间</th>
  <th>图片</th>
  <th>回复数</th>
  <th>页数</th>
  <th>操作</th>
</tr></tbody>
  <tbody id="">
  <?php if($info['rs']) { ?>
   <?php if(is_array($info['rs'])) foreach($info['rs'] as $key => $rs) { ?><tr class="hover"><td class="td25"><input type="checkbox"  name="aid[]" value="<?php if($info['status'] == 4) { ?><?php echo $rs['id'];?><?php } else { ?><?php echo $rs['aid'];?><?php } ?>" class="checkbox"></td><td width="420"><div><a href="<?php echo $rs['url'];?>" target="_blank" title="<?php echo $rs['full_title'];?>"><?php echo $rs['title'];?></a></div></td>
  <?php if(!$info['p']) { ?>
  <td><?php echo $rs['name'];?></td>
  <td><?php echo $info['status_arr'][$rs['status']];?></td>
  <?php } ?>

  <?php if($info['status'] == 4) { ?>
  <td><?php echo $rs['public_dateline'];?></td>
  <td><?php if($rs['public_type'] == 1) { ?>门户<?php } elseif($rs['public_type'] == 2) { ?>论坛<?php } elseif($rs['public_type'] == 3) { ?>博客<?php } ?></td>
<?php } else { ?>
    <td><?php if($rs['portal_id']) { ?><a target="_blank" href="portal.php?mod=view&amp;aid=<?php echo $rs['portal_id'];?>" >访问</a><?php } ?></td>
    <td><?php if($rs['forum_id']) { ?><a target="_blank" href="forum.php?mod=viewthread&amp;tid=<?php echo $rs['forum_id'];?>" >访问</a><?php } ?></td>
    <td><?php if($rs['blog_id']) { ?><a target="_blank" href="home.php?mod=space&amp;do=blog&amp;uid=<?php echo $rs['uid'];?>&amp;id=<?php echo $rs['blog_id'];?>" >访问</a><?php } ?></td>
<!--<td><?php echo $rs['public_time'];?></td>-->

<?php } ?>	

  <td><?php echo $rs['dateline'];?></td>
  <td><?php echo $rs['pic'];?></td>
  <td><?php echo $rs['reply_num'];?></td>
  <td><?php echo $rs['contents'];?></td>
  <td>
  <!--<a href="?<?php echo PICK_GO;?>picker_manage&myfunc=article_edit&aid=<?php echo $rs['aid'];?>" target="_blank" >快速编辑</a>&nbsp;-->
   <a href="javascript:void(0);" class="public_add" onclick="public_add(<?php echo $rs['aid'];?>)" id="public_add_<?php echo $rs['aid'];?>" >前台发布</a>&nbsp;
  <a href="?<?php echo PICK_GO;?>picker_manage&myfunc=article_edit&aid=<?php echo $rs['aid'];?>&pid=<?php echo $rs['pid'];?>&status=<?php echo $status;?>&url_args=<?php echo $info['url_args'];?>" >编辑</a>&nbsp;
  <a href="javascript:void(0)" onclick="show_article_detail(<?php echo $rs['aid'];?>,<?php echo PICK_ID;?>)">查看</a> 
<a href="?<?php echo PICK_GO;?>picker_manage&myaction=article_delete&tpl=no&pid=<?php echo $info['pid'];?>&orderby=<?php echo $info['orderby'];?>&ordersc=<?php echo $info['ordersc'];?>&perpage=<?php echo $info['perpage'];?>&s=<?php echo $info['s'];?>&status=<?php echo $info['status'];?>&p=<?php echo $info['p'];?>&pid=<?php echo $info['pid'];?>&aid=<?php echo $rs['aid'];?>" >删除</a>
   </td>
</tr>
   <?php } ?>
   <?php } else { ?>
  <tr class="hover"><td colspan="14" align="center" class="td25">暂无数据</td></tr>
  <?php } ?>
  </tbody><tbody style="display: none" id="subnav_6"></tbody>
<tbody></tbody><tbody><tr><td colspan="25"><div class="cuspages right"><?php echo $info['multipage'];?></div><div class="fixsel"><input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll('prefix', this.form, 'aid')"><label for="chkall">全选</label></div></td></tr><script type="text/JavaScript">_attachEvent(document.documentElement, 'keydown', function (e) { entersubmit(e, 'submit'); });</script></tbody></table>
  
  
  <table class="tb tb2 nobdt">
<tbody><tr><th colspan="15" class="partition">操作</th></tr>
<tr class="header"><th></th><th>操作</th><th>选项</th></tr>

<tr class="hover">
  <td class="td25">&nbsp;</td>
  <td class="td24">操作范围</td>
  <td class="rowform" style="width:auto;"><span class="td25">
    <input name="oparea" type="radio" <?php if($info['oparea'] != 'all') { ?>checked="checked"<?php } ?> class="radio" id="radio" onclick="this.form.modsubmit.disabled=false;" value="selected" checked="checked" />
    所选数据
  </span><span class="td25">
  <input class="radio" <?php if($info['oparea'] == 'all') { ?>checked="checked"<?php } ?> type="radio" id="radio2" name="oparea" value="all" onclick="this.form.modsubmit.disabled=false;" />
  全部数据&nbsp; “全部数据”是指全部分页的数据，请慎重选择!</span></td>
</tr>


<?php if($info['status'] == 3) { ?>
<tr class="hover"><td class="td25"><input <?php if($info['optype'] == 'recover') { ?>checked="checked"<?php } ?> class="radio" type="radio" id="recover" name="optype" value="recover" onclick="show_hide('show_public_set','',2);"></td>
<td class="td24">批量恢复文章</td>
<td class="rowform" style="width:auto;">&nbsp;</td></tr>


<?php } elseif($info['status'] != 4) { if($info['pid']) { ?>
<tr class="hover"><td class="td25"><input <?php if($info['optype'] == 'move_portal') { ?>checked="checked"<?php } ?> class="radio" type="radio" id="optype_move_portal" name="optype" value="move_portal" onclick="show_hide('show_public_set','',1);"></td>
<td class="td24">批量发布到门户</td>
<td class="rowform" style="width:auto;"><?php echo $info['portalselect'];?></td>
</tr>
<tr class="hover"><td class="td25"><input <?php if($info['optype'] == 'move_forums') { ?>checked="checked"<?php } ?> class="radio" type="radio" id="optype_import_forums" name="optype" value="move_forums" onclick="show_hide('show_public_set','',1);"></td>
<td class="td24">批量发布到论坛</td>
<td class="rowform" style="width:auto;"><?php echo $info['forumselect'];?><span id="threadtypes"><?php echo $info['threadtypes'];?></span></td></tr>
<tr class="hover"><td class="td25"><input <?php if($info['optype'] == 'move_blog') { ?>checked="checked"<?php } ?> class="radio" type="radio" id="optype_move_blog" name="optype" value="move_blog" onclick="show_hide('show_public_set','',1);"></td>
<td class="td24">批量发布到博客</td>
<td class="rowform" style="width:auto;"><?php echo $info['blogselect'];?></td>
</tr>
<?php } ?>
<tr class="hover">
  <td class="td25"><input class="radio" <?php if($info['optype'] == 'move_picker') { ?>checked="checked"<?php } ?> type="radio" id="radio3" name="optype" value="move_picker" onclick="show_hide('show_public_set','',2);"></td>
  <td class="td24">批量移动到采集器</td>
  <td class="rowform" style="width:auto;"><?php echo $info['article_move_pick_select'];?></td>
</tr>
<tr class="hover"><td class="td25"><input <?php if($info['optype'] == 'move_trash') { ?>checked="checked"<?php } ?> class="radio" type="radio" id="move_trash" name="optype" value="move_trash" onclick="show_hide('show_public_set','',2);"></td>
<td class="td24">批量移动到采集器</td>
<td class="rowform" style="width:auto;">&nbsp;</td></tr>

<?php } if($info['status'] == 4) { ?>
<tr class="hover"><td class="td25"><input <?php if($info['optype'] == 'timing_delete') { ?>checked="checked"<?php } ?> class="radio" type="radio" id="optype_timing_delete" name="optype" value="timing_delete" onclick="show_hide('show_public_set','',2);"></td><td class="td24">批量取消</td>
<td class="rowform" style="width:auto;">取消定时发布不会删除掉文章</td>
</tr>
<?php } else { ?>
<tr class="hover"><td class="td25"><input <?php if($info['optype'] == 'delete') { ?>checked="checked"<?php } ?> class="radio" type="radio" id="optype_delete" name="optype" value="delete" onclick="show_hide('show_public_set','',2);"></td><td class="td24">批量删除</td><td class="rowform" style="width:auto;">&nbsp;</td></tr>
<?php } ?>




<tr class="hover">
  <td class="td25">&nbsp;</td>
  <td class="td24"><h2>辅助设置</h2></td>
  <td class="rowform" style="width:auto;">&nbsp;</td>
</tr>

<tr class="hover"><td class="td25">&nbsp;</td>
  <td class="td24">每批次执行数目</td>
  <td class="rowform" style="width:auto;"><span class="rowform" style="width:auto;">
    <input name="article_batch_num" type="text" id="article_batch_num" value="<?php echo $info['article_batch_num'];?>" size="5" />
将所选文章再分批执行,服务器性能太差的用户，请将数值改小</span></td>
</tr>
<!--
<tbody id="show_public_set" <?php if($info['optype'] == 'move_portal' || $info['optype'] == 'move_forums' || $info['optype'] == 'move_blog') { } else { ?>style="display:none"<?php } ?>>
<tr class="hover">
  <td class="td25">&nbsp;</td>
  <td class="td24">文章发布顺序</td>
<td class="rowform" style="width:auto;"><?php echo radio_output(array('name' => 'article_public_sort', 'int_val' => 1, 'lang' => array('article_public_sort_desc', 'article_public_sort_asc')), $info['pick']);; ?></td>
</tr>

<tr class="hover">
  <td class="td25">&nbsp;</td>
  <td class="td24">发布时间</td>
  <td class="rowform" style="width:auto;"><div style="width:600px;">
<span style="float:left; margin-right:15px;">
   <input id="time_public" <?php if($info['public_time_type'] && !$info['public_time_type']) { ?>checked="checked"<?php } ?> name="set[public_time_type]" onclick="show_hide('show_public_time','',2);" type="radio"  class="radio" value="1"><label for="time_public">发布时的时间</label>
   
    <input id="time_pick_time" <?php if($info['public_time_type'] == 2) { ?>checked="checked"<?php } ?> name="set[public_time_type]" onclick="show_hide('show_public_time','',2);" type="radio"  class="radio" value="2"><label for="time_pick_time">采集到的时间</label>

   <input id="time_rand" <?php if($info['public_time_type'] == 3) { ?>checked="checked"<?php } ?>  name="set[public_time_type]" onclick="show_hide('show_public_time','',1);" type="radio"  class="radio" value="3"><label for="time_rand">随机的时间段</label>
   </span>
   <br />
   <p style="display:block; width:400px; margin-top:10px;">
   <span id="show_public_time" <?php if($info['public_time_type'] != 3) { ?>style="display:none"<?php } ?>>
   <input style="float:left; width:140px;" name="set[public_start_time]" type="text" class="txt" onclick="showcalendar(event, this, 1)" id="public_start_time" value="<?php echo $info['public_start_time'];?>">
<span style="float:left; margin-right:10px;">-</span>
<input style="float:left; width:140px;" name="set[public_end_time]" type="text" class="txt" onclick="showcalendar(event, this, 2)" id="public_end_time" value="<?php echo $info['public_end_time'];?>" />
</span>
</p>
</div></td>
</tr>


<tr class="hover"><td class="td25">  <input <?php if($info['pick']['is_public_del'] == 1) { ?>checked="checked"<?php } ?> type="checkbox" name="is_public_del" value="1" />
</td>
  <td class="td24">发布之后删除文章</td><td class="rowform" style="width:auto;"></td></tr>
  
 </tbody> 
--> 

  <tr><td colspan="15"><div class="fixsel"><?php if($info['pick']['is_public_del'] == 1) { ?><input type="hidden" name="is_public_del" value="1" /> <?php } ?> <input type="submit" class="btn" id="submit_modsubmit" name="modsubmit" title="" value="提交"></div></td></tr></tbody></table>
  <div id="public_add_show" style="display:none">
  		 <label>发布到:</label>
    <select name="set[public_type]" id="public_add_type" onchange="change_public_type(this.value);">
  <option <?php if(!$info['pick']['public_type']) { ?>selected="selected"<?php } ?> value="0">请选择</option>
      <option <?php if($info['pick']['public_type'] == 1) { ?>selected="selected"<?php } ?> value="1">门户</option>
      <option <?php if($info['pick']['public_type'] == 2) { ?>selected="selected"<?php } ?>  value="2">论坛</option>
      <option <?php if($info['pick']['public_type'] == 3) { ?>selected="selected"<?php } ?>  value="3">博客</option>
      </select>
    </label>
    <span id="portal_show" <?php if($info['pick']['public_type'] != 1) { ?>style="display:none"<?php } ?>><?php echo $info['public_portalselect'];?>&nbsp;&nbsp;</span>
    <span id="forums_show"  <?php if($info['pick']['public_type'] != 2) { ?>style="display:none"<?php } ?>> <?php echo $info['forumselect_public'];?>&nbsp;&nbsp;</span>
    <span id="blog_show" <?php if($info['pick']['public_type'] != 3) { ?>style="display:none"<?php } ?> > <?php echo $info['public_blogselect'];?>&nbsp;&nbsp;</span>&nbsp;&nbsp;
    <br />可以在采集器编辑的【发布设置】绑定栏目

  </div>
</form>
<script language="javascript" type="application/javascript">
function public_add(aid){
var html = $("public_add_show").innerHTML;
show_html_window('share_pick', '前台发布', 410, 200, '<div class="c bart" style=" width:100%; height:145px;">'+html+'</div><p class="o pns"><button onclick="public_add_run('+aid+');" class="pn pnc" name="dsf" type="submit"><span>确定</span></button><button onclick="hideWindow(\'share_pick\');" class="pn" name="dsf" type="reset"><em>取消</em></button></p>');
}
function public_add_run(aid){
var to_type = $("public_add_type").value;
var url = '';
if(to_type == 1){
url = 'portal.php?mod=portalcp&ac=article&catid='+$("public_portal").value;
}else if(to_type == 2){
url = 'forum.php?mod=post&action=newthread&fid='+$("public_forums").value;	
}else if(to_type == 3){
url = 'home.php?mod=spacecp&ac=blog';	
}else{
showDialog("请先选择发布到哪里", 'notice');
return;
}
var href = SITEURL+url+'&pick_aid='+aid;
window.open(href,'_blank');
hideWindow('share_pick');
}
</script>
