<?php
# Name: PHP版程氏专集CMS管理系统 v3.0
# Author: 程氏<web@chshcms.com> [QQ:848769359]
# Homepage:http://www.chshcms.cn/
include_once("../../lib/cs_label.php");
include_once("../loginstate.php");
?>
<!doctype html>
<html>
<head>
<meta charset="gbk">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>chshdjcms management</title>
<link href="../res/css/admin_style.css" rel="stylesheet" />
<link href="../../public/css/webox.css" rel="stylesheet" />
<script type="text/javascript" src="../res/js/ajax.js"></script>
<script language="javascript" src="../res/js/jquery.js"></script>
<script src="../../public/js/webox.js"></script>
</head>
<body>
<div class="wrap">
	<div class="nav">
		<ul class="cc">
			<li class="current"><a href="?">网站生成选项</a></li>
		</ul>
	</div>
	<div class="h_a">网站生成选项&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php if(!empty($_SESSION["htmllook"])) echo '<font color=red><b><a href='.$_SESSION["htmllook"].'>上一次有生成静态任务未完成，是否继续?</a></b></font>';?></div>
	<div class="table_full">
		<table width="100%">
			<col width="120" />
			<col width="120"/>
			<col width="120"/>
			<col width="120"/>
			<col width="120"/>
			<tr>
				<td><input name="submit" type="button"  onclick="window.location='html_index.php'" class="btn btn_submit J_ajax_submit_btn" value="生成网站首页" /></td>
				<td><input name="submit" type="button"  onclick="window.location='html_topic.php?sid=1'" class="btn btn_submit J_ajax_submit_btn" value="生成歌曲专集" /></td>
				<td><input name="submit" type="button"  onclick="window.location='html_topic.php?sid=2'" class="btn btn_submit J_ajax_submit_btn" value="生成文章专题" /></td>
				<td><input name="submit" type="button"  onclick="window.location='html_index.php?ac=baidu'" class="btn btn_submit J_ajax_submit_btn" value="生成百度地图" /></td>
				<td><input name="submit" type="button"  onclick="window.location='html_index.php?ac=guge'" class="btn btn_submit J_ajax_submit_btn" value="生成谷歌地图" /></td>
				<td><input name="submit" type="button"  onclick="window.location='html_index.php?ac=rss'" class="btn btn_submit J_ajax_submit_btn" value="生成RSS订阅" /></td>
			</tr>
        		</table>
	</div>
	<div class="h_a">生成歌曲选项</div>
	<div class="table_full">
		<table width="100%">
				<col width="100" />
			<col width="210"/>
			<col width="160"/>
			<col width="160"/>
 			<tr><td colspan="5"></td></tr>
                        <form action="html_dance.php?ac=list" method="post" class="J_ajaxForm" id="J_backup_form">
			<tr>
				<th>生成歌曲分类:</th>
				<td>
					 歌曲分类：
					 <select class="select_2" name="cid">
                                                <option value="">全部分类</option>
            					 <?php
              						$sqlclass="select * from ".Getdbname('class')." where CS_YID=0 and CS_SID=1 and CS_FID=0";
									$results=$db->query($sqlclass);
									if($results){
										while ($row3=$db->fetch_array($results)){
       
										         echo "<option value='".$row3['CS_ID']."' >".$row3['CS_Name']."</option>";

		                                                                     //处理此分类下的子分类
		                                                                     $sql2="select * from ".Getdbname('class')." where CS_FID=".$row3['CS_ID']."";
		                                                                     $class2=$db->query($sql2);
		                                                                     if($class2){
			                                                                     while($row2=$db->fetch_array($class2)){
										                    echo "<option value='".$row2['CS_ID']."' >├ ".$row2['CS_Name']."</option>";
			                                                                     }
		                                                                     }
										}
									}
			  
			  			 ?> 
					 </select>
				</td>
				<td>
                			 指定天数:
                			 <select name="sday">
                				 <option value="">不限</option>
                   			  <?php
                    				 for($i=1;$i<16;$i++){
							echo "<option value=\"".$i."\">".$i."天内</option>\r\n";
							}
					  ?>
				</td>
				<td>
                			 排序方式:
                			 <select name="op">
                				 <option value="id">按ID排序</option>
                				 <option value="hits">每总人气</option>
                				 <option value="yue">每月人气</option>
                				 <option value="zhou">每周人气</option>
                				 <option value="ri">每日人气</option>
                				 <option value="down">下载人气</option>
                				 <option value="fav">收藏人气</option>
                				 <option value="reco">推荐星际</option>
                				 <option value="time">更新时间</option>
                				 <option value="ding">被顶次数</option>
                			 </select>
				</td>
				<td> 
                			 &nbsp; <input name="submit" type="submit" class="btn J_ajax_submit_btn" value="开始生成分类" />
				</td>
			</tr> </form> 
  			<tr><td colspan="5"></td></tr>
                        <form action="html_dance.php" method="post" class="J_ajaxForm" id="J_backup_form">
			<tr>
				<th>生成歌曲播放:</th>
				<td>
					 歌曲分类：
					 <select class="select_2" name="cid">
                                                <option value="">全部分类</option>
            					 <?php
              						$sqlclass="select * from ".Getdbname('class')." where CS_YID=0 and CS_SID=1 and CS_FID=0";
									$results=$db->query($sqlclass);
									if($results){
										while ($row3=$db->fetch_array($results)){
       
										         echo "<option value='".$row3['CS_ID']."' >".$row3['CS_Name']."</option>";

		                                                                     //处理此分类下的子分类
		                                                                     $sql2="select * from ".Getdbname('class')." where CS_FID=".$row3['CS_ID']."";
		                                                                     $class2=$db->query($sql2);
		                                                                     if($class2){
			                                                                     while($row2=$db->fetch_array($class2)){
										                    echo "<option value='".$row2['CS_ID']."' >├ ".$row2['CS_Name']."</option>";
			                                                                     }
		                                                                     }
										}
									}
			  
			  			 ?> 
					 </select>
				</td>
				<td>
                			 指定天数:
                			 <select name="sday">
                				 <option value="">不限</option>
                   			  <?php
                    				 for($i=1;$i<16;$i++){
							echo "<option value=\"".$i."\">".$i."天内</option>\r\n";
							}
					  ?>
				</td>
				<td> 
                			 <input name="submit" type="submit" class="btn J_ajax_submit_btn" value="开始生成播放" />&nbsp;
				</td> 
				<td> 
                			 &nbsp; <input name="submit" type="button"  onclick="window.location='html_dance.php?ac=list'" class="btn btn_submit J_ajax_submit_btn" value="生成全部分类+播放" />
				</td>
			</tr> </form> 
  			<tr><td colspan="5"></td></tr>
                        <form action="html_dance.php?ac=play_id" method="post" class="J_ajaxForm" id="J_backup_form">
			<tr>
				<th>按ID生成播放:</th>
				<td>
					 开始ID：
					 <input name="ksid" type="text" class="input length_1 mr5" value="1">
				</td>
				<td>
                			 结束ID:
                			 <input name="jsid" type="text" class="input length_1 mr5" value="10">
				</td>
				<td> 
                			 <input name="submit" type="submit" class="btn btn_submit J_ajax_submit_btn" value="开始生成" />&nbsp;
				</td> 
				<td> 
                			 &nbsp;
				</td>
			</tr> </form> 
        		</table>
	</div>

	<div class="h_a">生成文章选项</div>
	<div class="table_full">
		<table width="100%">
				<col width="100" />
			<col width="210"/>
			<col width="160"/>
			<col width="160"/>
 			<tr><td colspan="5"></td></tr>
                        <form action="html_news.php?ac=list" method="post" class="J_ajaxForm" id="J_backup_form">
			<tr>
				<th>生成文章分类:</th>
				<td>
					 文章分类：
					 <select class="select_2" name="cid">
                                                <option value="">全部分类</option>
            					 <?php
              						$sqlclass="select * from ".Getdbname('class')." where CS_YID=0 and CS_SID=2 and CS_FID=0";
									$results=$db->query($sqlclass);
									if($results){
										while ($row3=$db->fetch_array($results)){
       
										         echo "<option value='".$row3['CS_ID']."' >".$row3['CS_Name']."</option>";

		                                                                     //处理此分类下的子分类
		                                                                     $sql2="select * from ".Getdbname('class')." where CS_FID=".$row3['CS_ID']."";
		                                                                     $class2=$db->query($sql2);
		                                                                     if($class2){
			                                                                     while($row2=$db->fetch_array($class2)){
										                    echo "<option value='".$row2['CS_ID']."' >├ ".$row2['CS_Name']."</option>";
			                                                                     }
		                                                                     }
										}
									}
			  
			  			 ?> 
					 </select>
				</td>
				<td>
                			 指定天数:
                			 <select name="sday">
                				 <option value="">不限</option>
                   			  <?php
                    				 for($i=1;$i<16;$i++){
							echo "<option value=\"".$i."\">".$i."天内</option>\r\n";
							}
					  ?>
				</td>
				<td>
                			 排序方式:
                			 <select name="op">
                				 <option value="id">按ID排序</option>
                				 <option value="hits">每总人气</option>
                				 <option value="yue">每月人气</option>
                				 <option value="zhou">每周人气</option>
                				 <option value="ri">每日人气</option>
                				 <option value="down">下载人气</option>
                				 <option value="fav">收藏人气</option>
                				 <option value="reco">推荐星际</option>
                				 <option value="time">更新时间</option>
                				 <option value="ding">被顶次数</option>
                			 </select>
				</td>
				<td> 
                			 &nbsp; <input name="submit" type="submit" class="btn J_ajax_submit_btn" value="开始生成分类" />
				</td>
			</tr> </form> 
  			<tr><td colspan="5"></td></tr>
                        <form action="html_news.php" method="post" class="J_ajaxForm" id="J_backup_form">
			<tr>
				<th>生成文章内容:</th>
				<td>
					 文章分类：
					 <select class="select_2" name="cid">
                                                <option value="">全部分类</option>
            					 <?php
              						$sqlclass="select * from ".Getdbname('class')." where CS_YID=0 and CS_SID=2 and CS_FID=0";
									$results=$db->query($sqlclass);
									if($results){
										while ($row3=$db->fetch_array($results)){
       
										         echo "<option value='".$row3['CS_ID']."' >".$row3['CS_Name']."</option>";

		                                                                     //处理此分类下的子分类
		                                                                     $sql2="select * from ".Getdbname('class')." where CS_FID=".$row3['CS_ID']."";
		                                                                     $class2=$db->query($sql2);
		                                                                     if($class2){
			                                                                     while($row2=$db->fetch_array($class2)){
										                    echo "<option value='".$row2['CS_ID']."' >├ ".$row2['CS_Name']."</option>";
			                                                                     }
		                                                                     }
										}
									}
			  
			  			 ?> 
					 </select>
				</td>
				<td>
                			 指定天数:
                			 <select name="sday">
                				 <option value="">不限</option>
                   			  <?php
                    				 for($i=1;$i<16;$i++){
							echo "<option value=\"".$i."\">".$i."天内</option>\r\n";
							}
					  ?>
				</td>
				<td> 
                			 <input name="submit" type="submit" class="btn J_ajax_submit_btn" value="开始生成内容" />&nbsp;
				</td> 
				<td> 
                			 &nbsp; <input name="submit" type="button"  onclick="window.location='html_news.php?ac=list'" class="btn btn_submit J_ajax_submit_btn" value="生成全部分类+内容" />
				</td>
			</tr> </form> 
  			<tr><td colspan="5"></td></tr>
                        <form action="html_news.php?ac=play_id" method="post" class="J_ajaxForm" id="J_backup_form">
			<tr>
				<th>按ID生成内容:</th>
				<td>
					 开始ID：
					 <input name="ksid" type="text" class="input length_1 mr5" value="1">
				</td>
				<td>
                			 结束ID:
                			 <input name="jsid" type="text" class="input length_1 mr5" value="10">
				</td>
				<td> 
                			 <input name="submit" type="submit" class="btn btn_submit J_ajax_submit_btn" value="开始生成" />&nbsp;
				</td> 
				<td> 
                			 &nbsp;
				</td>
			</tr> </form> 
        		</table>
	</div>
</div>
</body>
</html>
 

