<!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"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/dialog.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/ajaxrequest.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/collect.js"></script>
</head>
<BODY style="margin:2px">
<table align="center" border="1" cellspacing="0" cellpadding="5" bordercolor="#C4DFF4" width="950" style="border-collapse:collapse;">

<?php if($page==1){ ?>
<form method="post" action="<?=$xurl?>" name="myform" onSubmit="return(CheckForm1(this))">
<tr><td align="center" height="20" colspan="2" class="title"><strong>操作步骤：</strong>编辑项目>> <span style="color:red">基本设置</span> >> 列表设置 >> 链接设置 >> 正文设置 >> 采样测试 >> 完成</td></tr>
<tr>
        <td align="right" width="150">项目名称：</td><td width="800"><input name="CS_Name" type="text" style="width:300px;" value="<?=$CS_Name?>">&nbsp;<font color=red>*</font>如：92CC-中文舞曲</td>
</tr>
<tr>
        <td align="right">网站地址：</td><td><input name="CS_Url" type="text" style="width:300px;" value="<?=$CS_Url?>">&nbsp;<font color=red>*</font>采集的网站地址</td>
</tr>
<tr>
       <td align="right"> 编码方式：</td><td><select name="CS_Code"><option value='GB2312'<?php if($CS_Code=='GB2312') echo ' selected';?>>GB2312</option><option value='UTF-8'<?php if($CS_Code=='UTF-8') echo ' selected';?>>UTF-8</option><option value='GBK'<?php if($CS_Code=='GBK') echo ' selected';?>>GBK</option><option value='BIG5'<?php if($CS_Code=='BIG5') echo ' selected';?>>BIG5</option></select></td>
</tr>
<tr> 
        <td align="right">所属模块：</td><td><select ID="CS_SID" name="CS_SID" onChange="SelectClass(this.value,0)" style="Width:200px"><option value="0">===== 请选择模块 =====</option><option value="1"<?php if($CS_SID==1) echo ' selected';?>>歌曲</option><option value="2"<?php if($CS_SID==2) echo ' selected';?>>文章</option><option value="3"<?php if($CS_SID==3) echo ' selected';?>>视频</option></select>&nbsp;<font color=red>*</font></td>
</tr>
<tr>
        <td align="right">所属栏目：</td>
       <td id="cid1" style="display:none;">
<select name="CS_CID1" id="CS_CID1" style="Width:200px">
<option value='0'>请先选择所属模块</option>
<?php
                          $sqlstr="select * from ".CS_SqlPrefix."class where CS_SID=1 and CS_FID=0 order by CS_ID desc";
		          $result=$this->CsdjDB->db->query($sqlstr);
		          $recount=$result->num_rows();
                          if($recount>0){
			          foreach ($result->result() as $row) {
                                      if($row->CS_ID==$CS_CID){
                                         echo '<option value='.$row->CS_ID.' selected>├'.$row->CS_Name.'</option>';
                                      }else{
                                         echo '<option value='.$row->CS_ID.'>├'.$row->CS_Name.'</option>';
                                      }
                                         $sqlstrt="select * from ".CS_SqlPrefix."class where CS_SID=1 and CS_FID=".$row->CS_ID." order by CS_ID desc";
		                         $resultt=$this->CsdjDB->db->query($sqlstrt);
		                         $recountt=$resultt->num_rows();
                                         if($recountt>0){
			                        foreach ($resultt->result() as $rows) {
                                                    if($rows->CS_ID==$CS_CID){
                                                       echo '<option value='.$rows->CS_ID.' selected>│&nbsp;&nbsp;└ '.$rows->CS_Name.'</option>';
                                                    }else{
                                                       echo '<option value='.$rows->CS_ID.'>│&nbsp;&nbsp;└ '.$rows->CS_Name.'</option>';
                                                    }
                                                }
                                         }
                                  }
                          }else{
                                         echo '<option value=0>├没有数据</option>';
                          }
?>
</select>
       </td>
       <td id="cid2" style="display:none;">
<select name="CS_CID2" id="CS_CID2" style="Width:200px">
<option value='0'>请先选择所属模块</option>
<?php
                          $sqlstr="select * from ".CS_SqlPrefix."class where CS_SID=2 and CS_FID=0 order by CS_ID desc";
		          $result=$this->CsdjDB->db->query($sqlstr);
		          $recount=$result->num_rows();
                          if($recount>0){
			          foreach ($result->result() as $row) {
                                      if($row->CS_ID==$CS_CID){
                                         echo '<option value='.$row->CS_ID.' selected>├'.$row->CS_Name.'</option>';
                                      }else{
                                         echo '<option value='.$row->CS_ID.'>├'.$row->CS_Name.'</option>';
                                      }
                                         $sqlstrt="select * from ".CS_SqlPrefix."class where CS_SID=2 and CS_FID=".$row->CS_ID." order by CS_ID desc";
		                         $resultt=$this->CsdjDB->db->query($sqlstrt);
		                         $recountt=$resultt->num_rows();
                                         if($recountt>0){
			                        foreach ($resultt->result() as $rows) {
                                                    if($rows->CS_ID==$CS_CID){
                                                       echo '<option value='.$rows->CS_ID.' selected>│&nbsp;&nbsp;└ '.$rows->CS_Name.'</option>';
                                                    }else{
                                                       echo '<option value='.$rows->CS_ID.'>│&nbsp;&nbsp;└ '.$rows->CS_Name.'</option>';
                                                    }
                                                }
                                         }
                                  }
                          }else{
                                         echo '<option value=0>├没有数据</option>';
                          }
?>
</select>
       </td>
       <td id="cid3" style="display:none;">
<select name="CS_CID3" id="CS_CID3" style="Width:200px">
<option value='0'>请先选择所属模块</option>
<?php
                          $sqlstr="select * from ".CS_SqlPrefix."vlist where CS_FID=0 order by CS_ID desc";
		          $result=$this->CsdjDB->db->query($sqlstr);
		          $recount=$result->num_rows();
                          if($recount>0){
			          foreach ($result->result() as $row) {
                                      if($row->CS_ID==$CS_CID){
                                         echo '<option value='.$row->CS_ID.' selected>├'.$row->CS_Name.'</option>';
                                      }else{
                                         echo '<option value='.$row->CS_ID.'>├'.$row->CS_Name.'</option>';
                                      }
                                         $sqlstrt="select * from ".CS_SqlPrefix."vlist where CS_FID=".$row->CS_ID." order by CS_ID desc";
		                         $resultt=$this->CsdjDB->db->query($sqlstrt);
		                         $recountt=$resultt->num_rows();
                                         if($recountt>0){
			                        foreach ($resultt->result() as $rows) {
                                                    if($rows->CS_ID==$CS_CID){
                                                      echo '<option value='.$rows->CS_ID.' selected>│&nbsp;&nbsp;└ '.$rows->CS_Name.'</option>';
                                                    }else{
                                                       echo '<option value='.$rows->CS_ID.'>│&nbsp;&nbsp;└ '.$rows->CS_Name.'</option>';
                                                    }
                                                }
                                         }
                                  }
                          }else{
                                         echo '<option value=0>├没有数据</option>';
                          }
?>
</select>
       </td>
</tr>
<tr id="fwqid" style="display:none;">
        <td align="right"> 服务器组：</td>
<td id="fwq1" style="display:none;">
<select name="CS_FID1" id="CS_FID1" style="Width:200px">
<option value='0'>不要服务器组</option>
<?php
                          $sqlstr="select * from ".CS_SqlPrefix."fwqip where CS_SID=1 order by CS_ID desc";
		          $result=$this->CsdjDB->db->query($sqlstr);
		          $recount=$result->num_rows();
                          if($recount>0){
			          foreach ($result->result() as $row) {
                                      if($row->CS_ID==$CS_FID){
                                         echo '<option value='.$row->CS_ID.' selected>├'.$row->CS_Name.'</option>';
                                      }else{
                                         echo '<option value='.$row->CS_ID.'>├'.$row->CS_Name.'</option>';
                                      }
                                  }
                          }else{
                                         echo '<option value=0>├没有数据</option>';
                          }
?>
</select>
</td>
<td id="fwq3" style="display:none;">
<select name="CS_FID3" id="CS_FID3" style="Width:200px">
<option value='0'>不要服务器组</option>
<?php
                          $sqlstr="select * from ".CS_SqlPrefix."fwqip where CS_SID=2 order by CS_ID desc";
		          $result=$this->CsdjDB->db->query($sqlstr);
		          $recount=$result->num_rows();
                          if($recount>0){
			          foreach ($result->result() as $row) {
                                      if($row->CS_ID==$CS_FID){
                                         echo '<option value='.$row->CS_ID.' selected>├'.$row->CS_Name.'</option>';
                                      }else{
                                         echo '<option value='.$row->CS_ID.'>├'.$row->CS_Name.'</option>';
                                      }
                                  }
                          }else{
                                         echo '<option value=0>├没有数据</option>';
                          }
?>
</select>
</td>
</tr>
<tr id="dancepid" style="display:none;">
        <td align="right"> 播放器：</td><td><select ID="CS_PID" name="CS_PID" style="Width:200px"><option value=0<?php if($CS_PID==0) echo ' selected';?>>├CMP音频播放器</option><option value=1<?php if($CS_PID==1) echo ' selected';?>>├MP3、MP4等音频播放器</option><option value=2<?php if($CS_PID==2) echo ' selected';?>>├JW视频播放器、支持所有视频大站</option><option value=3<?php if($CS_PID==3) echo ' selected';?>>├CMP视频播放器、支持FLV,MP4</option></select></td>
</tr>
<tr id="laiyid" style="display:none;">
        <td align="right"> 播放来源：</td><td><select ID="CS_Laiy" name="CS_Laiy" style="Width:200px"><option value="swf"<?php if($CS_Laiy=='swf') echo ' selected';?>>swf数据—绝对地址SWF文件</option><option value="flv"<?php if($CS_Laiy=='flv') echo ' selected';?>>FLV数据—绝对地址FLV文件</option><option value="youku"<?php if($CS_Laiy=='youku') echo ' selected';?>>优酷 — youku.com</option><option value="tudou"<?php if($CS_Laiy=='tudou') echo ' selected';?>>土豆 — tudou.com</option><option value="sina"<?php if($CS_Laiy=='sina') echo ' selected';?>>新浪 — video.sina.com.cn</option>
        <option value="sohu"<?php if($CS_Laiy=='sohu') echo ' selected';?>>搜狐 — tv.sohu.com</option><option value="qq"<?php if($CS_Laiy=='qq') echo ' selected';?>>Q Q — v.qq.com</option><option value="ku6"<?php if($CS_Laiy=='ku6') echo ' selected';?>>酷 6 — ku6.com</option><option value="qiyi"<?php if($CS_Laiy=='qiyi') echo ' selected';?>>奇艺 — iqiyi.com</option><option value="letv"<?php if($CS_Laiy=='letv') echo ' selected';?>>乐视 — letv.com</option><option value="yyt"<?php if($CS_Laiy=='yyt') echo ' selected';?>>音悦台 — yinyuetai.com</option><option value="56"<?php if($CS_Laiy=='56') echo ' selected';?>>56高清— tv.56.com</option><option value="bdhd"<?php if($CS_Laiy=='bdhd') echo ' selected';?>>百度影音 — P2P</option><option value="pps"<?php if($CS_Laiy=='pps') echo ' selected';?>>pps — v.pps.tv(P2P)</option><option value="qvod"<?php if($CS_Laiy=='qvod') echo ' selected';?>>qvod — P2P快播</option><option value="media"<?php if($CS_Laiy=='media') echo ' selected';?>>media—wmv/asf/avi等格式</option></select></td>
</tr>
<tr>
        <td align="right">采集分页地址：</td><td><input name="CS_Cjurl" type="text" style="width:300px;" value="<?=$CS_Cjurl?>">&nbsp;<font color=red>*采集的分页地址,分页参数{$id}</font><br><br>
             开始页数：<input name="CS_Ksid" type="text" style="width:50px;" value="<?=$CS_Ksid?>" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">&nbsp;-&nbsp;结束页数：<input name="CS_Jsid" type="text" style="width:50px;" value="<?=$CS_Jsid?>" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">&nbsp;如：1-9
        </td>
</tr>
<tr><td align="right"> 入库会员：</td><td><input name="CS_User" type="text" style="width:200px;" value="<?=$CS_User?>">&nbsp;<font color=red>*</font>该记录所属会员</td></tr>
<tr><td align="right"> 重复记录入库：</td><td><input name="CS_CFID" type="radio" value="0"<?php if($CS_CFID==0) echo ' checked';?>>不入库&nbsp;&nbsp;<input name="CS_CFID" type="radio" value="1"<?php if($CS_CFID==1) echo ' checked';?>>新增数据&nbsp;&nbsp;<input name="CS_CFID" type="radio" value="2"<?php if($CS_CFID==2) echo ' checked';?>>智能覆盖&nbsp;&nbsp;</td></tr>
<tr><td align="right"> 采集选项：</td><td><input name="CS_PicID" type="checkbox" value="1"<?php if($CS_PicID==1) echo ' checked';?>>保存图片&nbsp;&nbsp;<input name="CS_DXID" type="checkbox" value="1"<?php if($CS_DXID==1) echo ' checked';?>>倒序采集</td></tr>
<tr><td align="right"> 入库选项：</td><td><input name="CS_RKID" type="radio" value="0"<?php if($CS_RKID==0) echo ' checked';?>>不直接入库，存入临时库(<font color=red>推荐</font>)<br/><input name="CS_RKID" type="radio" value="1"<?php if($CS_RKID==1) echo ' checked';?>>立即写入主数据库(待审)<br/><input name="CS_RKID" type="radio" value="2"<?php if($CS_RKID==2) echo ' checked';?>>立即写入主数据库并直接生成内容页(<font color=red>只对静态模式有效</font>)</td></tr>
<tr><td align="right">绑定模板：</td><td><input size="48" name="CS_Template" id="CS_Template" value="<?=$CS_Template?>" readonly> <input type="button" name="Submit" value="选择模板" class="italk-st" onClick="SelectFile('CS_Template');"></td></tr>

<script>SelectClass(<?=$CS_SID?>,<?=$CS_CID?>);</script>

<?php }elseif($page==2){ ?>
<tr><td align="center" height="20" colspan="2" class="title"><strong>操作步骤：</strong>编辑项目>> 基本设置 >> <span style="color:red">列表设置</span> >> 链接设置 >> 正文设置 >> 采样测试 >> 完成</td></tr>
<form method="post" action="<?=$xurl?>" name="myform">
<tr>
        <td align="right" width="150"><font color=red>采集目标源码：</font></td><td width="800"><Input type="radio" value="0" name="code" onClick="javascript:Content1.style.display='none';" checked>不查看 <Input type="radio" value="1" name="code" onClick="javascript:Content1.style.display='';">查看源码</td>
</tr>
<tr id="Content1" style='display:none'>
        <td colspan='2' align='center'><textarea name="Content" rows="" cols="" style="width:930px;height:300px"><?=$CS_Html?></textarea></td>
</tr>
<tr>
        <td align="right">列表开始标记：</td><td><textarea name="CS_Listks" style="width:500px;height:70px"><?=$CS_Listks?></textarea></td>
</tr>
<tr>
        <td align="right">列表结束标记：</td><td><textarea name="CS_Listjs" style="width:500px;height:70px"><?=$CS_Listjs?></textarea></td>
</tr>

<?php }elseif($page==3){ ?>
<tr><td align="center" height="20" colspan="2" class="title"><strong>操作步骤：</strong>编辑项目>> 基本设置 >> 列表设置 >> <span style="color:red">链接设置</span> >> 正文设置 >> 采样测试 >> 完成</td></tr>
<form method="post" action="<?=$xurl?>" name="myform">
<tr>
        <td align="right" width="150"><font color=red>截取的列表目标源码：</font></td><td width="800"><Input type="radio" value="0" name="code" onClick="javascript:Content1.style.display='none';" checked>不查看 <Input type="radio" value="1" name="code" onClick="javascript:Content1.style.display='';">查看源码</td>
</tr>
<tr id="Content1" style='display:none'>
        <td colspan='2' align='center'><textarea name="Content" rows="" cols="" style="width:930px;height:300px"><?=$CS_Html?></textarea></td>
</tr>
<tr>
        <td align="right">链接开始标记：</td><td><textarea name="CS_Linkks" style="width:500px;height:70px"><?=$CS_Linkks?></textarea></td>
</tr>
<tr>
        <td align="right">链接结束标记：</td><td><textarea name="CS_Linkjs" style="width:500px;height:70px"><?=$CS_Linkjs?></textarea></td>
</tr>
<tr>
        <td align="right">列表缩略图设置：</td><td><input type="radio" name="CS_PicMode" value="0" onClick="picl1.style.display='none'"<?php if($CS_PicMode==0) echo ' checked';?>>不作设置&nbsp;
       <input type="radio" name="CS_PicMode" value="1" onClick="picl1.style.display=''"<?php if($CS_PicMode==1) echo ' checked';?>>列表标签&nbsp;
       <input type="radio" name="CS_PicMode" value="2" onClick="picl1.style.display='none'"<?php if($CS_PicMode==2) echo ' checked';?>>正文页设置&nbsp;
       <tr id="picl1" <?php if($CS_PicMode!=1) echo 'style="display:none"';?>><td align="right">列表缩略图开始标记：<p>　</p><p>　</p>列表缩略图结束标记： </td><td>
        <textarea name="CS_Picks" style="width:500px;height:70px"><?=$CS_Picks?></textarea><br>
        <textarea name="CS_Picjs" style="width:500px;height:70px"><?=$CS_Picjs?></textarea></td>
</tr>

<?php }elseif($page==4){ ?>
<tr><td align="center" height="20" colspan="2" class="title"><strong>操作步骤：</strong>编辑项目>> 基本设置 >> 列表设置 >> 链接设置 >> <span style="color:red">正文设置</span> >> 采样测试 >> 完成</td></tr>
<form method="post" action="<?=$xurl?>" name="myform">
<tr>
        <td align="right" width="150"><font color=red>截取的列表链接地址：</font></td><td width="800"><select name="link1" onchange="window.open(this.value);" style="width:800px;">
<?php
 foreach ($CS_Linkurl as $row) { 
        echo "<option value='".$row."'>".$row."</option>";
 }
?></select>
        </td>
</tr>
<?php if($CS_PicMode==1){ ?>
<tr>
        <td align="right" width="150"><font color=red>列表缩略图地址：</font></td><td width="800"><select name="link2" onchange="window.open(this.value);" style="width:800px;">
<?php
 foreach ($CS_Picurl as $row) { 
        echo "<option value='".$row."'>".$row."</option>";
 }
?></select>
        </td>
</tr>
<?php } ?>
<tr>
        <td align="right" width="150"><font color=red>正文目标源码：</font></td><td width="800"><Input type="radio" value="0" name="code" onClick="javascript:Content1.style.display='none';" checked>不查看 <Input type="radio" value="1" name="code" onClick="javascript:Content1.style.display='';">查看源码</td>
</tr>
<tr id="Content1" style='display:none'>
        <td colspan='2' align='center'><textarea name="Content" rows="" cols="" style="width:930px;height:300px"><?=$CS_Html?></textarea></td>
</tr>
<tr>
        <td align="right">标题开始标记：</td><td><textarea name="CS_Nameks" style="width:500px;height:30px"><?=$CS_Nameks?></textarea></td>
</tr>
<tr>
        <td align="right">标题结束标记：</td><td><textarea name="CS_Namejs" style="width:500px;height:30px"><?=$CS_Namejs?></textarea></td>
</tr>
<tr>
        <td align="right"><?php if($this->session->userdata('CS_SID')==1){echo '歌词/介绍';}else{echo '内容';}?>开始标记：</td><td><textarea name="CS_Lrcks" style="width:500px;height:30px"><?=$CS_Lrcks?></textarea></td>
</tr>
<tr>
        <td align="right"><?php if($this->session->userdata('CS_SID')==1){echo '歌词/介绍';}else{echo '内容';}?>结束标记：</td><td><textarea name="CS_Lrcjs" style="width:500px;height:30px"><?=$CS_Lrcjs?></textarea></td>
</tr>
<tr>
        <td align="right"><?php if($this->session->userdata('CS_SID')==1){echo '歌词/介绍';}else{echo '内容';}?>替换：</td><td><textarea name="CS_LrcTh" style="width:500px;height:50px"><?=$CS_LrcTh?></textarea><br><font color=red>替换格式：<font color=#0000ff>被替换的内容@cscms@替换为的内容</font> 每行一条</font></td>
</tr>
<?php if($CS_PicMode==2){ ?>
<tr>
        <td align="right">图片开始标记：</td><td><textarea name="CS_Picks" style="width:500px;height:30px"><?=$CS_Picks?></textarea></td>
</tr>
<tr>
        <td align="right">图片结束标记：</td><td><textarea name="CS_Picjs" style="width:500px;height:30px"><?=$CS_Picjs?></textarea></td>
</tr>
<?php } ?>
<tr>
        <td align="right">关键字设置：</td><td><input type="radio" name="CS_TagsMode" value="0" onClick="Tags1.style.display='none';Tags2.style.display='none'"<?php if($CS_TagsMode==0) echo ' checked';?>>标题生成&nbsp;
       <input type="radio" name="CS_TagsMode" value="1" onClick="Tags1.style.display='';Tags2.style.display='none'"<?php if($CS_TagsMode==1) echo ' checked';?>>设置标签&nbsp;
       <input type="radio" name="CS_TagsMode" value="2" onClick="Tags1.style.display='none';Tags2.style.display=''"<?php if($CS_TagsMode==2) echo ' checked';?>>指定关键字&nbsp;
       <tr id="Tags1"<?php if($this->session->userdata('CS_TagsMode')!=1) echo ' style="display:none"';?>><td align="right">关键字开始标记：<p>　</p><p>　</p>关键字结束标记： </td><td>
        <textarea name="CS_Tagsks" style="width:500px;height:30px"><?=$CS_Tagsks?></textarea><br>
        <textarea name="CS_Tagsjs" style="width:500px;height:30px"><?=$CS_Tagsjs?></textarea></td>
</tr>
<tr id="Tags2"<?php if($this->session->userdata('CS_TagsMode')!=2) echo ' style="display:none"';?>><td align="right">请指定关键字：</td><td><input name="CS_Tags" type="text" style="width:300px;" value="<?=$CS_Tagsks?>"></td>
<tr>
        <td align="right">来源设置：</td><td><input type="radio" name="CS_LaiyMode" value="0" onClick="Laiy1.style.display='none';Laiy2.style.display='none'"<?php if($CS_LaiyuanMode==0) echo ' checked';?>>不作设置&nbsp;
       <input type="radio" name="CS_LaiyMode" value="1" onClick="Laiy1.style.display='';Laiy2.style.display='none'"<?php if($CS_LaiyuanMode==1) echo ' checked';?>>设置标签&nbsp;
       <input type="radio" name="CS_LaiyMode" value="2" onClick="Laiy1.style.display='none';Laiy2.style.display=''"<?php if($CS_LaiyuanMode==2) echo ' checked';?>>指定来源&nbsp;
       <tr id="Laiy1"<?php if($this->session->userdata('CS_LaiyMode')!=1) echo ' style="display:none"';?>><td align="right">来源开始标记：<p>　</p><p>　</p>来源结束标记： </td><td>
        <textarea name="CS_Laiyuanks" style="width:500px;height:30px"><?=$CS_Laiyuanks?></textarea><br>
        <textarea name="CS_Laiyuanjs" style="width:500px;height:30px"><?=$CS_Laiyuanjs?></textarea></td>
</tr>
<tr id="Laiy2"<?php if($this->session->userdata('CS_LaiyMode')!=2) echo ' style="display:none"';?>><td align="right">请指定来源：</td><td><input name="CS_Laiyuan" type="text" style="width:300px;" value="<?=$CS_Laiyuanks?>"></td>
<?php if($this->session->userdata('CS_SID')==3){ ?>
<tr>
        <td align="right">演员设置：</td><td><input type="radio" name="CS_ZuozMode" value="0" onClick="Zuoz1.style.display='none';Zuoz2.style.display='none'"<?php if($CS_ZuozMode==0) echo ' checked';?>>不作设置&nbsp;
       <input type="radio" name="CS_ZuozMode" value="1" onClick="Zuoz1.style.display='';Zuoz2.style.display='none'"<?php if($CS_ZuozMode==1) echo ' checked';?>>设置标签&nbsp;
       <input type="radio" name="CS_ZuozMode" value="2" onClick="Zuoz1.style.display='none';Zuoz2.style.display=''"<?php if($CS_ZuozMode==2) echo ' checked';?>>指定演员&nbsp;
       <tr id="Zuoz1"<?php if($this->session->userdata('CS_ZuozMode')!=1) echo ' style="display:none"';?>><td align="right">演员开始标记：<p>　</p><p>　</p>演员结束标记： </td><td>
        <textarea name="CS_Zuozks" style="width:500px;height:30px"><?=$CS_Zuozks?></textarea><br>
        <textarea name="CS_Zuozjs" style="width:500px;height:30px"><?=$CS_Zuozjs?></textarea></td>
</tr>
<tr id="Zuoz2"<?php if($this->session->userdata('CS_ZuozMode')!=2) echo ' style="display:none"';?>><td align="right">请指定演员：</td><td><input name="CS_Zuoz" type="text" style="width:300px;" value="<?=$CS_Zuozks?>"></td>

<tr>
        <td align="right">发行年份设置：</td><td><input type="radio" name="CS_YearMode" value="0" onClick="Year1.style.display='none';Year2.style.display='none'"<?php if($CS_YearMode==0) echo ' checked';?>>不作设置&nbsp;
       <input type="radio" name="CS_YearMode" value="1" onClick="Year1.style.display='';Year2.style.display='none'"<?php if($CS_YearMode==1) echo ' checked';?>>设置标签&nbsp;
       <input type="radio" name="CS_YearMode" value="2" onClick="Year1.style.display='none';Year2.style.display=''"<?php if($CS_YearMode==2) echo ' checked';?>>指定发行年份&nbsp;
       <tr id="Year1"<?php if($this->session->userdata('CS_YearMode')!=1) echo ' style="display:none"';?>><td align="right">发行年份开始标记：<p>　</p><p>　</p>发行年份结束标记： </td><td>
        <textarea name="CS_Yearks" style="width:500px;height:30px"><?=$CS_Yearks?></textarea><br>
        <textarea name="CS_Yearjs" style="width:500px;height:30px"><?=$CS_Yearjs?></textarea></td>
</tr>
<tr id="Year2"<?php if($this->session->userdata('CS_YearMode')!=2) echo ' style="display:none"';?>><td align="right">请指定发行年份：</td><td><input name="CS_Year" type="text" style="width:300px;" value="<?=$CS_Yearks?>"></td>
<tr>
        <td align="right">视频导演设置：</td><td><input type="radio" name="CS_DaoyMode" value="0" onClick="Daoy1.style.display='none';Daoy2.style.display='none'"<?php if($CS_DaoyMode==0) echo ' checked';?>>不作设置&nbsp;
       <input type="radio" name="CS_DaoyMode" value="1" onClick="Daoy1.style.display='';Daoy2.style.display='none'"<?php if($CS_DaoyMode==1) echo ' checked';?>>设置标签&nbsp;
       <input type="radio" name="CS_DaoyMode" value="2" onClick="Daoy1.style.display='none';Daoy2.style.display=''"<?php if($CS_DaoyMode==2) echo ' checked';?>>指定视频导演&nbsp;
       <tr id="Daoy1"<?php if($this->session->userdata('CS_DaoyMode')!=1) echo ' style="display:none"';?>><td align="right">视频导演开始标记：<p>　</p><p>　</p>视频导演结束标记： </td><td>
        <textarea name="CS_Daoyks" style="width:500px;height:30px"><?=$CS_Daoyks?></textarea><br>
        <textarea name="CS_Daoyjs" style="width:500px;height:30px"><?=$CS_Daoyjs?></textarea></td>
</tr>
<tr id="Daoy2"<?php if($this->session->userdata('CS_DaoyMode')!=2) echo ' style="display:none"';?>><td align="right">请指定视频导演：</td><td><input name="CS_Daoy" type="text" style="width:300px;" value="<?=$CS_Daoyks?>"></td>
<tr>
        <td align="right">视频语言设置：</td><td><input type="radio" name="CS_YuyanMode" value="0" onClick="Yuyan1.style.display='none';Yuyan2.style.display='none'"<?php if($CS_YuyanMode==0) echo ' checked';?>>不作设置&nbsp;
       <input type="radio" name="CS_YuyanMode" value="1" onClick="Yuyan1.style.display='';Yuyan2.style.display='none'"<?php if($CS_YuyanMode==1) echo ' checked';?>>设置标签&nbsp;
       <input type="radio" name="CS_YuyanMode" value="2" onClick="Yuyan1.style.display='none';Yuyan2.style.display=''"<?php if($CS_YuyanMode==2) echo ' checked';?>>指定视频语言&nbsp;
       <tr id="Yuyan1"<?php if($this->session->userdata('CS_YuyanMode')!=1) echo ' style="display:none"';?>><td align="right">视频语言开始标记：<p>　</p><p>　</p>视频语言结束标记： </td><td>
        <textarea name="CS_Yuyanks" style="width:500px;height:30px"><?=$CS_Yuyanks?></textarea><br>
        <textarea name="CS_Yuyanjs" style="width:500px;height:30px"><?=$CS_Yuyanjs?></textarea></td>
</tr>
<tr id="Yuyan2"<?php if($this->session->userdata('CS_YuyanMode')!=2) echo ' style="display:none"';?>><td align="right">请指定视频语言：</td><td><input name="CS_Yuyan" type="text" style="width:300px;" value="<?=$CS_Yuyanks?>"></td>
<tr>
        <td align="right">视频地区设置：</td><td><input type="radio" name="CS_DiquMode" value="0" onClick="Diqu1.style.display='none';Diqu2.style.display='none'"<?php if($CS_DiquMode==0) echo ' checked';?>>不作设置&nbsp;
       <input type="radio" name="CS_DiquMode" value="1" onClick="Diqu1.style.display='';Diqu2.style.display='none'"<?php if($CS_DiquMode==1) echo ' checked';?>>设置标签&nbsp;
       <input type="radio" name="CS_DiquMode" value="2" onClick="Diqu1.style.display='none';Diqu2.style.display=''"<?php if($CS_DiquMode==2) echo ' checked';?>>指定视频地区&nbsp;
       <tr id="Diqu1"<?php if($this->session->userdata('CS_DiquMode')!=1) echo ' style="display:none"';?>><td align="right">视频地区开始标记：<p>　</p><p>　</p>视频地区结束标记： </td><td>
        <textarea name="CS_Diquks" style="width:500px;height:30px"><?=$CS_Diquks?></textarea><br>
        <textarea name="CS_Diqujs" style="width:500px;height:30px"><?=$CS_Diqujs?></textarea></td>
</tr>
<tr id="Diqu2"<?php if($this->session->userdata('CS_DiquMode')!=2) echo ' style="display:none"';?>><td align="right">请指定视频地区：</td><td><input name="CS_Diqu" type="text" style="width:300px;" value="<?=$CS_Diquks?>"></td>
<?php
 } 
 if($this->session->userdata('CS_SID')==1){ 
?>
<tr>
        <td align="right">所属歌手设置：</td><td><input type="radio" name="CS_SingerMode" value="0" onClick="Singer1.style.display='none';Singer2.style.display='none'"<?php if($CS_SingerMode==0) echo ' checked';?>>不作设置&nbsp;
       <input type="radio" name="CS_SingerMode" value="1" onClick="Singer1.style.display='';Singer2.style.display='none'"<?php if($CS_SingerMode==1) echo ' checked';?>>设置标签&nbsp;
       <input type="radio" name="CS_SingerMode" value="2" onClick="Singer1.style.display='none';Singer2.style.display=''"<?php if($CS_SingerMode==2) echo ' checked';?>>指定所属歌手&nbsp;
       <tr id="Singer1" style="display:none"><td align="right">所属歌手开始标记：<p>　</p><p>　</p>所属歌手结束标记： </td><td>
        <textarea name="CS_Singerks" style="width:500px;height:30px"><?=$CS_Singerks?></textarea><br>
        <textarea name="CS_Singerjs" style="width:500px;height:30px"><?=$CS_Singerjs?></textarea></td>
</tr>
<tr id="Diqu2" style="display:none"><td align="right">请指定所属歌手：</td><td><input name="CS_Singer" type="text" style="width:300px;" value="<?=$CS_Singerks?>"></td>

<tr>
        <td align="right">歌曲地址设置：</td><td><input type="radio" name="CS_PlayMode" value="0" onClick="Play1.style.display='none'"<?php if($CS_PicMode==0) echo ' checked';?>>播放页&nbsp;
       <input type="radio" name="CS_PlayMode" value="1" onClick="Play1.style.display=''"<?php if($CS_PicMode==1) echo ' checked';?>>绝对地址页&nbsp;
       <tr id="Play1" style="display:none"><td align="right">连接地址开始标记：<p>　</p><p>　</p>连接地址结束标记： </td><td>
        <textarea name="CS_Playks" style="width:500px;height:30px"><?=$CS_Playks?></textarea><br>
        <textarea name="CS_Playjs" style="width:500px;height:30px"><?=$CS_Playjs?></textarea></td>
</tr>
<tr>
        <td align="right">歌曲开始标记：</td><td><textarea name="CS_Danceks" style="width:500px;height:30px"><?=$CS_Danceks?></textarea></td>
</tr>
<tr>
        <td align="right">歌曲结束标记：</td><td><textarea name="CS_Dancejs" style="width:500px;height:30px"><?=$CS_Dancejs?></textarea></td>
</tr>

<?php }elseif($this->session->userdata('CS_SID')==3){ ?>
<tr>
        <td align="right">播放列表开始标标记：</td><td><textarea name="CS_Playks" style="width:500px;height:30px"><?=$CS_Playks?></textarea></td>
</tr>
<tr>
        <td align="right">播放列表结束标记：</td><td><textarea name="CS_Playjs" style="width:500px;height:30px"><?=$CS_Playjs?></textarea></td>
</tr>
<tr>
        <td align="right">视频地址设置：</td><td><input type="radio" name="CS_PlayMode" value="0" onClick="Play1.style.display='none'"<?php if($CS_PlayMode==0) echo ' checked';?>>内容页&nbsp;
       <input type="radio" name="CS_PlayMode" value="1" onClick="Play1.style.display=''"<?php if($CS_PlayMode==1) echo ' checked';?>>播放页&nbsp;
       <tr id="Play1"<?php if($CS_PlayMode==0) echo ' style="display:none"';?>><td align="right">播放链接开始标记：<p>　</p><p>　</p>播放链接结束标记： </td><td>
        <textarea name="CS_Playlinkks" style="width:500px;height:30px"><?=$CS_Playlinkks?></textarea><br>
        <textarea name="CS_Playlinkjs" style="width:500px;height:30px"><?=$CS_Playlinkjs?></textarea></td>
</tr>

<tr>
        <td align="right">视频地址开始标记：</td><td><textarea name="CS_Danceks" style="width:500px;height:30px"><?=$CS_Danceks?></textarea></td>
</tr>
<tr>
        <td align="right">视频地址结束标记：</td><td><textarea name="CS_Dancejs" style="width:500px;height:30px"><?=$CS_Dancejs?></textarea></td>
</tr>
<?php } if($this->session->userdata('CS_SID')==1 || $this->session->userdata('CS_SID')==3){ ?>
<tr>
        <td align="right"><?php if($this->session->userdata('CS_SID')==3){echo '视频地址';}else{echo '歌曲地址';}?>替换：</td><td><textarea name="CS_DanceTh" style="width:500px;height:50px"><?=$CS_DanceTh?></textarea><br><font color=red>替换格式：<font color=#0000ff>被替换的内容@cscms@替换为的内容</font> 每行一条</font></td>
</tr>
<?php } }elseif($page==5){ ?>
<tr><td align="center" height="20" colspan="2" class="title"><strong>操作步骤：</strong>编辑项目>> 基本设置 >> 列表设置 >> 链接设置 >> 正文设置 >> <span style="color:red">采样测试</span> >> 完成</td></tr>
<form method="post" action="<?=$xurl?>" name="myform">
<tr><td colspan="2"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="5">
<tr>    <td align="center" valign="bottom"><font size="3">标题：<?=$CS_Name?></font></td></tr>
<?php if($this->session->userdata('CS_SID')!=2){ ?>
<tr>    <td align="center" valign="bottom">地址：<?=$CS_Dance?></td></tr>
<?php } if($this->session->userdata('CS_SID')==3){ ?>
<tr>	<td align="center">导演：<?=$CS_Daoy?>&nbsp;&nbsp;演员：<?=$CS_Zuoz?>&nbsp;&nbsp;地区：<?=$CS_Diqu?>&nbsp;&nbsp;发行年份：<?=$CS_Year?></td></tr>
<?php } ?>
<tr>	<td align="center">图片：<?=$this->session->userdata('CS_Pic')?></td></tr>
<tr>	<td align="center" valign="top">
    	<div style="border: double #E7E7E7;height:300px; overflow: auto; width:95%" align="center">
    	<table width="95%" height="100%" border="0" align="center" cellpadding="0" cellspacing="5">
    	<tr><td height="200" valign="top" align="left"><?=$CS_Neir?></td></tr>
    	</table>
    	</div>
	</td>
</tr>
<tr>
	<td align="center"><b>关键字：<?=$CS_Tags?>&nbsp;&nbsp;&nbsp;&nbsp;来源：<?=$CS_Laiyuan?></b></td>
</tr>

<?php } ?>

<tr><input name="CS_ID" type="hidden" value="<?=$CS_ID?>">
        <td height="35" colspan="2" align="center"><input name="ItemID" type="hidden" id="ItemID" value="7"><input class='italk-st' name="Cancel" type="button" id="Cancel" value=" 返&nbsp;&nbsp;回 " onClick="window.location.href='javascript:history.back();'">&nbsp;<input class='italk-st' type="submit" name="Submit" value="下&nbsp;一&nbsp;步"></td>
</tr>
</table>
</form> 
</body>
</html>

