<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<title>静态生成操作</title>
<LINK href="<?=base_url()?>csdj/admin/images/admin.css" type="text/css" rel="stylesheet">
<SCRIPT type="text/javascript" src="<?=base_url()?>csdj/admin/js/admin.js?20130615232514851"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/ajaxrequest.js"></script>
<SCRIPT type="text/javascript" src="<?=base_url()?>csdj/admin/js/setdate.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/dialog.js"></script>
</head>
<BODY style="margin:2px">
 
<table align="center" border="1" cellspacing="0" cellpadding="5" bordercolor="#A2DAE7" width="100%" style="border-collapse:collapse;">
<tr><td align="center" height="20" colspan="3" class="title">[歌手]模块生成操作 <input type="button" value="一键生成所有" onClick="TokeymakeAll(1,'singer');" class="italk-st3"></td></tr>
<tr>
	<td align="right" width="150">生成网站首页：</td>
	<td width="650"><div style="color:red" id="msg_0"></div></td>
	<td width="150" align="center"><input type="button" value="点击生成" onClick="makeindex(0,'<?=site_url('admin/html/index/')?>?');" class="italk-bt"></td>
</tr>
<tr>
	<td colspan="3">&nbsp;</td>
</tr>
<tr>
	<td align="right" width="150">生成歌手模块首页：</td>
	<td width="650"><div style="color:red" id="msg_1"></div></td>
	<td width="150" align="center"><input type="button" value="点击生成" onClick="makeindex(1,'<?=site_url('admin/html/singer/')?>?op=index');" class="italk-bt"></td>
</tr>
<tr>
	<td colspan="3" align="center" style="color:red">↓生成歌手页↓</td>
</tr>
<form action="<?=site_url('admin/html/singer/')?>?op=show&t=id" method="post" name="IDForm">
	<tr id="one_2"><td align="right">按ID生成歌手页：</td>
	<td>
	从 <input name="ksid" type="text" id="ksid" style="width:100px" value="1" size="10" onclick="chkinput(this,1,6)">        
        &nbsp;&nbsp;到 <input name="jsid" type="text" id="jsid" style="width:100px" value="10" size="10" onclick="chkinput(this,1,6)"> 
      	</td>
	<td align="center"><input type="submit" name="Submit" value="点击发布" class="italk-bt"></td>
	</tr>
</form>
 
<form action="<?=site_url('admin/html/singer/')?>?op=show&t=date" method="post" name="DateForm">
	<tr id="one_3"><td align="right">按日期生成歌手页：</td><td>
	从 <input name="ksdate" type="text" id="ksdate" readonly style="width:100px" value="<?=date('Y-m-d')?>"><img src="<?=base_url()?>csdj/images/datetime.gif" class="DateImg" align="absmiddle" vspace="1" onClick="Cs_setDate(event,'ksdate',1);">
        &nbsp;&nbsp;到 <input name="jsdate" type="text" id="jsdate" readonly style="width:100px" value="<?=date('Y-m-d')?>"><img src="<?=base_url()?>csdj/images/datetime.gif" class="DateImg" align="absmiddle" vspace="1" onClick="Cs_setDate(event,'jsdate',1);">
	</td>
	<td align="center"><input type="submit" name="Submit" value="点击发布" class="italk-bt"></td>
	</tr>
</form>
 
<form action="<?=site_url('admin/html/singer/')?>?op=show&t=news" method="post" name="NewForm">
	<tr id="one_4"><td align="right">生成最新歌手页：</td><td>
	最新 <input name="topn" type="text" id="topn" style="width:100px" value="10" onclick="chkinput(this,1,6)">个歌手
	</td>
	<td align="center"><input type="submit" name="Submit" value="点击发布" class="italk-bt"></td>
	</tr>
</form>
 
<form action="<?=site_url('admin/html/singer/')?>?op=show&t=lists" method="post" name="CatForm">
	<tr id="one_5"><td align="right">按分类生成歌手页：</td><td>
	<select name="cid[]" size="10" multiple style="width:260px">
<?php
$strss="";
                $sqlstr="select * from ".CS_SqlPrefix."gslist where CS_YID=0 order by CS_ID desc";
		$result=$this->CsdjDB->db->query($sqlstr);
		$recount=$result->num_rows();
                if($recount>0){
			foreach ($result->result() as $row) {
                               $strss.='<option value='.$row->CS_ID.'>├'.$row->CS_Name.'</option>';
                        }
                }
                echo $strss;
?>
</select><br>最新 <input name="topn" type="text" id="topn" style="width:100px" value="10" onclick="chkinput(this,1,6)">个歌手。您可以按住CTRL或SHIFT同时选择多个栏目一起发布。
	<td align="center"><input type="submit" name="Submit" value="点击发布" class="italk-bt"></td>
	</tr>
</form>
 
<form action="<?=site_url('admin/html/singer/')?>?op=show&t=all" method="post" name="AllForm">
	<tr><td align="right">生成所有歌手页：</td><td><div style="color:red" id="msg_show"></div></td>
	<td align="center"><input type="submit" name="Submit" value="点击发布" class="italk-bt"></td>
	</tr>
</form>
<tr>
	<td colspan="3" align="center" style="color:red">↓生成分类页↓</td>
</tr>
<form action="<?=site_url('admin/html/singer/')?>?op=list&t=id" method="post" name="MyForm">
 
	<tr id="one_6"><td align="right">按栏目生成列表页：</td>
<td><select name="cid[]" size="10" multiple style="width:260px">
<?php
$strsss="";
                $sqlstr="select * from ".CS_SqlPrefix."gslist where CS_YID=0 order by CS_ID desc";
		$result=$this->CsdjDB->db->query($sqlstr);
		$recount=$result->num_rows();
                if($recount>0){
			foreach ($result->result() as $row) {
                               $strsss.='<option value='.$row->CS_ID.'>├'.$row->CS_Name.'</option>';
                        }
                }
                echo $strsss;
?>
</select>
	<br>按 <select name="sort" style="width:90px">
                 <option value='id'>ID排序</option>
                 <option value='hits'>总人气排序</option>
                 <option value='yue'>月人气排序</option>
                 <option value='zhou'>周人气排序</option>
                 <option value='ri'>日人气排序</option>
                 <option value='new'>更新时间排序</option>
                 <option value='reco'>推荐星际排序</option>
              </select> 排序，您可以按住CTRL或SHIFT同时选择多个栏目一起发布。</td><td align="center">
	<input type="submit" name="Submit" id="btn" value="点击发布" class="italk-bt" /></td>
	</tr>
</form>
<form action="<?=site_url('admin/html/singer/')?>?op=list&t=all" method="post" name="AllCatForm">
	<tr><td align="right">生成所有列表页：
	
	</td><td><div style="color:red" id="msg_list"></div></td>
		<td align="center"><input type="submit" name="Submit" id="btn" value="点击发布" class="italk-bt" /></td>
	</tr>
</form>
</table>
<br /><br /><br /><br />
<div id="one_1"></div>
</body>
</html>

