catalog_user_add.vm

来自「一个简单的blog系统」· VM 代码 · 共 76 行

VM
76
字号
##
##  This program is free software; you can redistribute it and/or modify
##  it under the terms of the GNU General Public License as published by
##  the Free Software Foundation; either version 2 of the License, or
##  (at your option) any later version.
##
##  This program is distributed in the hope that it will be useful,
##  but WITHOUT ANY WARRANTY; without even the implied warranty of
##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
##  GNU Library General Public License for more details.
##
##  You should have received a copy of the GNU General Public License
##  along with this program; if not, write to the Free Software
##  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
##
##  add catalog user view
##
###############################################################################
#parse("/html/_sub/_global.vm")
#select_layout("p_setting.vm")
#set($page_title="增加特权用户")
#set($catalog_id = $dlog.param("cat_id", -1))
#set($catalog = $DIARY_tool.catalog($g_site, $g_user, $catalog_id))
<div class="page_top">
	<div class="pagecontent">
		<div class="pagecontent_left fleft">
			<b>增加特权用户</b>&nbsp;|&nbsp;${catalog.name}
		</div>
		<div class="pagecontent_right fright">
			今天是: $date.get("MMMMM d, yyyy  EEEEE")
		</div>
	</div>
	<div class="spacer_1"></div>
</div>
<div class="page_content">			
	<form action="$link.setAction("html/sitemgr/catalog")" method="post">
    <input type="hidden" name="sid" value="$g_site_id"/>
    <input type="hidden" name="id" value="$catalog_id"/>
    <input type="hidden" name="cat_id" value="$catalog_id"/>
	<input type="hidden" name="__ClientId" value="$dlog.gen_client_id()"/>
    <input type="hidden" name="fromPage" value="$dlog.get_request_url()"/>
	<div class="form">
		<div class="form_row">
    		<div class="form_row_title fleft">
				用户编号
    		</div>
    		<div class="form_row_content">
				<input type="text" size="10" name="userid" value="$dlog.param("userid","")">&nbsp&nbsp;{用户的ID号码!}
				#struts_message("userid")
			</div>
    	</div>
		<div class="spacer_1"></div>
		<div class="form_row">
    		<div class="form_row_title fleft">
				访问权限
    		</div>
    		<div class="form_row_content">
				<select name="role">
                    #if($catalog.type==0)<option value="1">读权限</option>#end
                    <option value="4">读写权限</option>
                </select>
			</div>
    	</div>
		<div class="spacer_1"></div>
		<div class="form_row">
			<div class="form_row_submit">
				<input type="submit" name="eventSubmit_CreateCatalogUser" value="添加权限" />
				<input type="reset" value="重新填写" />
				<input type="button" value="返回" onclick="history.go(-1)" />
			</div>
    	</div>
	</div>
	</form>
	<div class="spacer_10"></div>
</div>
<div class="page_bottom"></div>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?