<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset={sys_charset}">
<title>user class edit</title>
<link href="{adminStylePath}style/common.css" rel="stylesheet" type="text/css">
<link href="{adminStylePath}style/jqModal.css" type="text/css" rel="stylesheet">
<link href="{sys_dir}plugins/kindeditor/themes/default/default.css"  rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{adminStylePath}js/validate.js"></script>
<script type="text/javascript" src="{adminStylePath}js/jquery.js"></script>
<script type="text/javascript" src="{adminStylePath}js/jqModal.js"></script>
<script type="text/javascript" src="{adminStylePath}js/jqModal.init.js"></script>
<script type="text/javascript" src="{adminStylePath}js/common.js"></script>
<script type="text/javascript" src="{sys_dir}plugins/kindeditor/kindeditor.js"></script>
<script type="text/javascript" src="{sys_dir}plugins/kindeditor/lang/zh_CN.js"></script>
<script language="javascript">
    KindEditor.ready(function(K) {
        var editor = K.editor({
            allowFileManager : false
        });
        K('#btn_upfile').click(function() {
            editor.loadPlugin('image', function() {
                editor.plugin.imageDialog({
                    imageUrl : K('#fileurl').val(),
                    clickFn : function(url, title, width, height, border, align) {
                        K('#fileurl').val(url);
                        editor.hideDialog();
                    }
                });
            });
        });
    });

function showChannel(tmptype)
{
	if(tmptype==1) document.getElementById('edit_channel').style.display="none";
	else document.getElementById('edit_channel').style.display="";

}


</script>
</head>

<body>
<table class="nav_table" cellpadding="0" cellspacing="0">	
	<tr>
		<td class="nav_td">{menu_nav}</td>
	</tr>	
</table>
<table class="toolbar_table" cellpadding="0" cellspacing="0">
	<tr>
		<td class="toolbar_td">{toolbar}</td>
	</tr>

</table>

<div class="line_space"><img src="{adminStylePath}images/blank.gif"></div>

<table cellpadding="0" cellspacing="0" class="edit_tb">
  
  <form name="editForm" method="post" action="" >
  	<input type="hidden" name="selectid" id="selectValue" value="{selectid}">
    <input type="hidden" name="selectValue" id="selectValue" value="{selectid}">
    <input type="hidden" name="edittype"  value="general">
    <tr> 
    	<td colspan="2" width="100%">
    		<table cellpadding="0" cellspacing="0" width="100%" border="0">	
					<tr>
						<td width="30%" class="edit_td_txt">所属用户组:</td>
			      <td width="20%" class="edit_td_input">
			      	  {list_class}
			      </td>
			      <td width="20%" class="edit_td_txt">所属用户:</td>
			      <td class="edit_td_input">
			      	<input type="text" name="username" id="username" class="input_text" value="{username}" onClick="openSelectWin('../mod_user/user_select.php')" {isdisabled}>
				      <input type="hidden" name="uid" id="uid" value="{uid}">
			      </td>
					</tr>	
				</table>
    	</td>
    </tr>
    <tr> 
      <td width="30%"  class="edit_td_txt">用户组名:</td>
      <td width="70%"  class="edit_td_input">
      	 <input type="text" name="title" class="input_text" value="{title}" dataType="LimitB" min="1" max="30"  msg="[1,30]个字符之内">*
      </td>
    </tr>
    <tr> 
      <td width="30%"  class="edit_td_txt">登录路径:</td>
      <td width="70%"  class="edit_td_input">
      	<input type="text" name="loginurl" size="40" class="input_text" value="{loginurl}">
      </td>
    </tr>
    <tr> 
      <td class="edit_td_txt">标题图片:</td>
      <td class="edit_td_input">
      	<input type="text" name="fileurl" class="input_text" size="40" value="{fileurl}">
         <input name="btn_upfile" type="button" value="上传图片" id="btn_upfile">
        &nbsp;&nbsp;{show_img}
      </td>
    </tr>   
    <tr> 
      <td class="edit_td_txt">描叙:</td>
      <td class="edit_td_input">
      	<textarea name="intro" class="input_textarea" cols="30" rows="5" >{intro}</textarea> 
      </td>
    </tr>
    <tr> 
      <td width="30%"  class="edit_td_txt">管理的频道:</td>
      <td width="70%"  class="edit_td_input">
      	<input type="radio" name="channel_type" id="channel_type_1" value="1" {channel_checked_1} onClick="showChannel(1)">所有&nbsp;
      	<input type="radio" name="channel_type" id="channel_type_2" value="2" {channel_checked_2} onClick="showChannel(2)">选择
      </td>
    </tr>   
	<tr id="edit_channel" style="display:{channel_display}"> 
        <td width="30%"  class="edit_td_txt"></td>
		<td width="70%"  class="edit_td_input">
		<input type="text" name="channel_id" id="channel_id" class="input_text" size="30" value="{channel_id}" require="false" dataType="LimitB" min="0" max="255"  msg="不能为空">
        <input type="button" class="btn_jqm" name="btn_select_channel_id" id="btn_select_channel_id" title="选择频道" value="选择..." onClick="openChannelSelect('channel_id','multiselect','all')" >
		</td> 
    </tr>  
    <tr> 
      <td class="edit_td_txt">是否显示:</td>
      <td class="edit_td_input">
      	{status}
      </td>
    </tr>
    <tr> 
      <td class="edit_td_txt">标记属性:</td>
      <td class="edit_td_input">
      	{flag}
      </td>
    </tr>
    <tr> 
    	<td colspan="2" width="100%">
    		<table cellpadding="0" cellspacing="0" width="100%" border="0">	
					<tr>
						<td width="30%" class="edit_td_txt">添加时间:</td>
      			<td width="20%" class="edit_td_input">{addtime}</td>
						<td width="20%" class="edit_td_txt">IP:</td>
			      <td class="edit_td_input">{ip}</td>		      
					</tr>	
				</table>
    	</td>
    </tr>
  </form>
</table>

<div id="modalWindow" class="jqmWindow">
<div id="jqmTitle">
<button class="jqmClose">X</button>
<span id="jqmTitleText">选择频道</span>
</div>
<iframe id="jqmContent" src=""></iframe>
</div>

</body>
</html>

