<%inherits "Discuz.Album.Pages.usercpphotoedit"%>
<%template _header%>
<div class="wrap cl pageinfo">
	<div id="nav">
		<%if {usergroupinfo.allowsearch}>0%>
			<%template _quicksearch%>
		<%/if%>
       <a href="{config.forumurl}" class="title">{config.forumtitle}</a>  &raquo; <a href="usercp.aspx">用户中心</a>  &raquo; <a href="usercpspacemanagealbum.aspx">管理相册</a>  &raquo;  <strong>编辑图片</strong>
	</div>
</div>
<div class="wrap uc cl">
	<%template _menu%>
	<div class="uc_main">
	<div class="uc_content">
	<h1 class="u_t">编辑{photo.title}</h1>
<%if page_err==0%>
	<%if ispost%>
	<%template _usercpmsgbox%>
	<%else%>
	<form action="" method="post">
	<table cellspacing="0" cellpadding="0" class="tfm" summary="编辑{photo.title}">
	<tbody>
		<tr>
			<th></th>
			<td><img src="{photo.filename}" alt="形象图"/></td>
		</tr>
		<tr>
			<th>标题</th>
			<td><input name="title" id="title" type="text" value="{photo.title}" size="25" maxlength="20" class="txt"/></td>
		</tr>
		<tr>
			<th>描述</th>
			<td><textarea name="description" rows="2" maxlength="200" class="txtarea" cols="50">{photo.description}</textarea></td>
		</tr>
		<%if {config.enabletag}==1%>
		<tr>
			<th>标签</th>
			<td><input name="phototag" type="text" id="phototag" size="25" maxlength="55" value="{tags}" class="txt"/></td>
		</tr>
		<%/if%>
		<tr>
			<th><a href="###" onclick="openadvance();" class="drop">图片选项</a></th>
			<td>&nbsp;</td>
		</tr>
		<tr id="status" style="display: none;">
			<th>评论设置</th>
			<td>
				<input type="radio" name="commentstatus" value="0" <%if {commentstatus}==0%>checked="checked"<%/if%> />只有我可以评论	
				<input type="radio" name="commentstatus" value="2" <%if {commentstatus}==2%>checked="checked"<%/if%> />注册用户可以评论
			</td>
		</tr>
		<tr>
			<th></th>
			<td><button type="submit" name="Submit" class="pn"><span>提交</span></button></td>
		</tr>
	</tbody>
	</table>
	</form>
	<%/if%>
<%else%>
	<%template _usercperrmsgbox%>
<%/if%>
	</div>
	</div>
</div>
<script type="text/javascript">
function openadvance()
{
	var div = $("status");
	if (div.style.display != "none")
	{
		div.style.display = "none";
	}
	else
	{
		div.style.display = "";
	}
}
</script>
<%template _copyright%>
<%template _footer%>