<!--#include file="../../inc/config.asp"-->
<!--#include file="../../inc/conn.asp"-->
<!-- #include file="../inc/Session.asp" -->
<HTML><HEAD><TITLE>获得专题多维文字标签</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<SCRIPT event=onclick for=Ok language=JavaScript>
  window.returnValue='GetSpecialNews('+specialid.value+',"'+tablewidth.value+'",'+lineheight.value+',"'+tdStyle.value+'","'+tablename.value+'","'+orders.value+'","'+titlePrefix.value+'",'+maxChars.value+',"'+linkStyle.value+'","'+key.value+'",'+rowsNum.value+','+colsNum.value+')';
  window.close();
</SCRIPT>
<META content="MSHTML 5.00.2920.0" name=GENERATOR>
<link href="cs.css" rel="stylesheet" type="text/css">
</HEAD>
<base target="_self" />
<BODY bgColor=menu>
<%
dim special
set rs=server.CreateObject("adodb.recordset")
sql="select id,title from t_special order by id asc"
rs.open sql,conn,3,1
if not rs.eof then
	special=rs.GetRows()
else
	response.Write("现在还没有专题!<br><a href=""../resource_add.asp?type=t_special"">现在添加吗？</a>")
	response.End()
end if
rs.close
set rs=nothing
%>
<fieldset style="text-align:center; ">
<legend>获得专题多维文字标签</legend>
<table width="400" border="0" align="center" cellpadding="1" cellspacing="5">
  <tr>
    <td>专题：</td>
    <td><select name="specialid" id="specialid" size="1">      
      <%
  	for i=0 to ubound(special,2)
		response.Write("<option value="&special(0,i)&">"&special(1,i)&"</option>"&Chr(10))	    	
	next	
	%>
    </select></td>
  </tr>
  <tr>
    <td width="112">表格宽度：</td>
    <td width="269"><INPUT name="tablewidth" id="tablewidth" value="100%" size=7>      </td>
  </tr>
  <tr>
    <td>行高：</td>
    <td><INPUT name="lineheight" id="lineheight" value="20" size=7></td>
  </tr>
  <tr>
    <td>行样式：</td>
    <td><INPUT name="tdStyle" id="tdStyle" size=7>
      </td>
  </tr>
  <tr>
    <td>表名：</td>
    <td><INPUT name="tablename" id="tablename" value="news" size=7>
      默认:存放文章的表</td>
  </tr>

  <tr>
    <td>排序：</td>
    <td><INPUT name="orders" id="orders" value="id" size=7>
      默认:根据ID排序</td>
  </tr>
  <tr>
    <td>文字前辍：</td>
    <td><INPUT name="titlePrefix" id="titlePrefix" size=7 value="·">
      默认：·</td>
  </tr>
  <tr>
    <td>文字个数：</td>
    <td><INPUT name="maxChars" id="maxChars" size=7 value="40">
      默认:(40个字符=20个汉字)</td>
  </tr>
  <tr>
    <td>链接样式：</td>
    <td><INPUT name="linkStyle" id="linkStyle" size=7 value=""></td>
  </tr>
  <tr>
    <td>新闻属性：</td>
    <td>
      <select name="key" id="key" size="1">
	  <option value="" selected>无</option>
        <option value="top1">头条</option>
		<option value="totop">置顶</option>
		<option value="tohot">热点</option>
		<option value="recommend">推荐</option>
		<option value="imgnews">图文</option>
      </select></td>
  </tr>  
  <tr>
    <td>行数：</td>
    <td><INPUT name="rowsNum" id="rowsNum" value="2" size=7>
      默认:2</td>
  </tr>
  <tr>
    <td>列数：</td>
    <td><INPUT name="colsNum" id="colsNum" value="3" size=7>
      默认:3</td>
  </tr>
  <tr>
    <td colspan="2">
      <div align="center">
        <input  id="Ok" type="submit" value="确定">
        &nbsp;
        <input type="button"  onclick="window.close();" value="取消">
    &nbsp;</div></td>
  </tr>
</table>

</fieldset>
  </CENTER></DIV>
  <div align="center"></div>
</BODY></HTML>
<%
call connclose()
%>