<?php
require('../../class/connect.php');
require('../../class/db_sql.php');
require("../../data/dbcache/class.php");
require "../".LoadLang("pub/fun.php");
require("../../class/functions.php");
require("../../class/dpfun.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
//验证用户
$lur=is_login();
$logininid=$lur['userid'];
$loginin=$lur['username'];
$loginrnd=$lur['rnd'];
$loginlevel=$lur['groupid'];
$loginadminstyleid=$lur['adminstyleid'];


$r=$empire->fetch1("select * from {$dbtbpre}enewssitemapset where id=1 limit 1");

//页面标题
$thispage='sitemap生成设置';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$pagechar?>">
<link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
<title><?=$thispage?></title>
</head>

<body>
<form method="post" action="do.php">
  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
    <tr class="header"> 
      <td height="25" colspan=2> <?=$thispage?></td>
    </tr>
	<tr bgcolor="#ffffff">
		<td>每个文件网址数</td>
		<td width=80%> 
			<input type="text" name="num" value="<?=$r['num']?>" size="15"> 
			<font color="gray">（100～10000）</font>
		</td>
	</tr>
	<tr bgcolor="#ffffff">
		<td>sitemap文件格式</td>
		<td width=80%> 
			<select name="type">
				<option value=" ">请选择</option>
				<option value=".xml" <?=$r['type']=='.xml'?' selected':''?>>.xml</option>
				<option value=".txt" <?=$r['type']=='.txt'?' selected':''?>>.txt</option>
			</select> 
			
		</td>
	</tr>
	<tr bgcolor="#ffffff">
		<td>文件存储目录</td>
		<td width=80%> 
			<input type="text" name="path" value="<?=$r['path']?>" size="15"> 
			<font color="gray">（相对于系统根目录）</font>
		</td>
	</tr>
	<tr bgcolor="#ffffff">
		<td>生成时间间隔</td>
		<td width=80%> 
			<input type="text" name="time" value="<?=$r['time']?>" size="15">秒
		</td>
	</tr>
	<tr bgcolor="#ffffff">
		<td>网站首页网址</td>
		<td width=80%> 
			<input type="text" name="siteurl" value="<?=$r['siteurl']?>" size="60"> 
			<font color="gray">（结尾不需加斜杠'/'）</font>
		</td>
	</tr>
	<tr bgcolor="#ffffff">
		<td>站内链接类型</td>
		<td width=80%> 
			<select name="linktype">
				<option value=" ">请选择</option>
				<option value="0" <?=$r['linktype']==0?' selected':''?>>相对地址</option>
				<option value="1" <?=$r['linktype']==1?' selected':''?>>绝对地址</option>
			</select> 
			<font color="gray">（例：相对地址 /a/1.html；绝对地址 http://123.com/a/1.html）</font>
		</td>
	</tr>
	<tr bgcolor="#ffffff">
		<td>不显示信息的栏目</td>
		<td width=80%> 
			<textarea name="class_0" rows="4" cols="60"><?=$r['class_0']?></textarea> 
			<font color="gray">（终极栏目ID，多个栏目ID用"|"隔开，如: 1|2|3）</font>
		</td>
	</tr>
	<tr bgcolor="#ffffff">
		<td>不显示的栏目</td>
		<td width=80%> 
			<textarea name="class_1" rows="4" cols="60"><?=$r['class_1']?></textarea> 
			<font color="gray">（多个栏目ID用"|"隔开，如: 1|2|3）</font>
		</td>
	</tr>
	<tr bgcolor="#ffffff">
		<td height="25">&nbsp;</td>
		<td width=83%> 
			<input type="hidden" name="enews" value="set">
			<input type="submit" value="提交">
		</td>
	</tr>
  </table>
</form>
</body>
</html>
<?
db_close();
$empire=null;
?>