<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>TAGS修改管理</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>
</head>
<BODY style="margin:2px">
 
	<table align="center" border="1" cellspacing="0" cellpadding="5" bordercolor="#C4DFF4" width="950" style="border-collapse:collapse;">
	<form method="post" Name="myForm" action="<?=site_url('admin/tags/save/')?>"> 
	<tr><td align="center" height="20" colspan="3" class="title">修改Tags标签</td></tr>
	<tr><td width="20%" align="right"><strong>标签名称：</strong></td>
		<td width="40%"><input size="48" name="CS_Name" value="<?=$tags->CS_Name?>"></td>
		<td width="40%"></td>
	</tr>
	<tr><td align="right"><strong>标签分类：</strong></td>
		<td>
<?php
$cname='';
for($j=1;$j<8;$j++){	
	         switch ($j){
                      case '1':$tname=( ! defined('CS_Tags_1'))?'按年代':CS_Tags_1;break;
                      case '2':$tname=( ! defined('CS_Tags_2'))?'按曲风':CS_Tags_2;break;
                      case '3':$tname=( ! defined('CS_Tags_3'))?'按心情':CS_Tags_3;break;
                      case '4':$tname=( ! defined('CS_Tags_4'))?'按地域':CS_Tags_4;break;
                      case '5':$tname=( ! defined('CS_Tags_5'))?'按场景':CS_Tags_5;break;
                      case '6':$tname=( ! defined('CS_Tags_6'))?'按乐器':CS_Tags_6;break;
                      case '7':$tname=( ! defined('CS_Tags_7'))?'按主题':CS_Tags_7;break;
                 }
                 if($tags->CS_CID==$j){
                     $cname.='<option value="'.$j.'" selected="selected">'.$tname.'</option>';
                 }else{
                     $cname.='<option value="'.$j.'">'.$tname.'</option>';
                 }
}
?>              <select name="CS_CID"><?=$cname?></select>
		</td>
		<td></td>
	</tr>
	<input name="CS_ID" type="hidden" value="<?=$tags->CS_ID?>">
  	<tr align="center">
    		<td height="36" colspan="3" ><input type="submit" name="Submit" class="italk-bt" value=" 修改 "> <INPUT TYPE=BUTTON value=" 返回 " onclick="history.back();" class="italk-bt"></td>
  	</tr></form>
	</table>
 
</body>
</html>
