Discuz.Web/templates/default3.1/space/usercpspacelinkadd.htm

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%inherits "Discuz.Space.Pages.usercpspacelinkadd"%>
<%template _header%>
<div id="nav">
	<div class="wrap s_clear">
        <a href="{config.forumurl}" class="title">{config.forumtitle}</a> &raquo; <a href="usercp.aspx">用户中心</a> &raquo; <strong>增加友情链接</strong>
	</div>
</div>
<script type="text/javascript">
	function validateSubmit()
	{
		$ = document.getElementById;
		if($("linktitle").value == "")
		{
			alert("没有输入链接文字!");
			$("linktitle").focus();
			return false;
		}
		if($("linkurl").value == "")
		{
			alert("没有输入链接地址!");
			$("linkurl").focus();
			return false;
		}
		if($("linkdescription").value.length > 200)
		{
			alert('链接描述长度最大为200字'); 
			return false;
		}
	}
</script>
<div class="wrap with_side s_clear" id="wrap">
	<%template _menu%>
	<div class="cpmain">
	<div class="cpcontent">
		<h1>增加友情链接</h1>
		<%template _spacemenu%>	
	<%if page_err==0%>
		<%if ispost%>
			<%template _usercpmsgbox%>
		<%else%>
		<form id="postpm" name="postpm" method="post" action="">
			<table cellspacing="0" cellpadding="0" class="formtable" summary="个人资料">
			<tbody>
			<tr>
				<th><label for="linktitle">链接文字</label></th>
				<td><input name="linktitle" type="text" id="linktitle" value="" size="40" maxlength="50" class="txt"/></td>
			</tr>
			<tr>
				<th><label for="linkurl">链接地址</label></th>
				<td><input name="linkurl" type="text" id="linkurl" value="" size="40" maxlength="255" class="txt"/></td>
			</tr>
			<tr>
				<th><label for="description">描述</label></th>
				<td><textarea name="description" cols="50" rows="6" id="linkdescription" class="txtarea"></textarea></td>
			</tr>
			<tr>
				<th></th>
				<td><input type="submit" name="Submit" value="确定" onclick="return validateSubmit();" ID="Submit1"/></td>
			</tr>
			</tbody>
后面还有 11 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。