<%@ page contentType="text/html; charset=GBK"%>
<%@ taglib uri="/cms4j" prefix="cms4j" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>选择专题</title>
<link href="../skin/blue/css/oper_area_style.css" rel="stylesheet" type="text/css">
</head>
<script src="../../js/page_init.js"></script>
<script language="JScript">
function confirm(){
	var form=document.form;
	var spec=form.SPEC_ID;
	var spec1=form.checkbox1;
	var specNO="";
	var specName="";
	if(!spec.checked){
		for(var i=0;i<spec.length;i++){
			if(spec[i].checked==true){
				specNO+=spec[i].value;
				specNO+="|";
				specName+=spec1[i].value;
				specName+="|";
			}
		}
	}else{
		specNO =   spec.value + "|";
		specName = spec1.value + "|";
	}
		
	opener.document.all.SPECIAL_ID.value=specNO;
	opener.document.all.SPECIAL_NAME.value=specName;
	opener.resetSel();
	window.close();	
}

function initBody(){
	var idSelected="${param.idSelected}";
	if(idSelected=="1"||idSelected==null||idSelected==""){
		return;
	}else{
		var arrId=new Array();
		arrId=idSelected.split("|");
		for(var i=0;i<arrId.length;i++){
			idValue=arrId[i];
			radioGuoupInit("SPEC_ID",idValue);
		}
	}
}
</script>

<body onload="initBody()">
<form name="form">
<table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr height="12"> 
    <td width="3%"><img src="../../images/admin/oper_table_up_left.gif" width="26" height="12"></td>
    <td width="92%" background="../../images/admin/oper_table_up_bg.gif" height="12"></td>
    <td width="5%"><img src="../../images/admin/oper_table_up_right.gif" width="26" height="12"></td>
  </tr>
  <tr> 
    <td colspan="3"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="5" background="../../images/admin/oper_table_left_bg.gif"><img src="../../images/admin/oper_table_left_bg.gif" width="5" height="2"></td>
          <td background="../../images/admin/oper_table_bg.gif">
            <table width="100%" border="0" cellpadding="0" cellspacing="1" class="table_border_bg">
              <tr class="table_title">
                <td width="13%" height="15" align="center">选择</td>
                <td width="42%" height="15">专题名称</td>
                <td width="32%">专题别名(ID)</td>
                <td width="13%">文章数</td>
              </tr>
			  
			  	<cms4j:article_special state="all">
              <tr class="table_border_cell_bg">
                <td height="22" align="center">
					<input type="checkbox" name="SPEC_ID" id="SPEC_ID" value="<%=special.getSPECIAL_ID()%>">
					<input type="checkbox" style="display:none" name="checkbox1" value="<%=special.getNAME()%>">
				</td>                
                <td height="22" align="left">&nbsp;<%=special.getNAME()%></td>
                <td height="22" align="center"><%=special.getSPECIAL_ID()%></td>
                <td height="22" align="center"><%=special.getArticleCount()%></td>
              </tr>
				</cms4j:article_special>			  
            </table>
          </td>
          <td width="5" background="../../images/admin/oper_table_right_bg.gif"><img src="../../images/admin/oper_table_right_bg.gif" width="5" height="2"></td>
        </tr>
      </table></td>
  </tr>
  <tr height="13"> 
    <td><img src="../../images/admin/oper_table_down_left.gif" width="26" height="13"></td>
    <td width="100%" height="13" background="../../images/admin/oper_table_down_bg.gif"></td>
    <td align="right"><img src="../../images/admin/oper_table_down_right.gif" width="26" height="13"></td>
  </tr>
</table>
<div align="center">
  <input name="conf" type="button" class="form_button" value="确定" onclick="javascript:confirm();">
  <input name="canc" type="button" class="form_button" value="取消" onclick="javascript:window.close();">
</div>
</form>
</body>
</html>
