<%@ page language="C#" autoeventwireup="true" inherits="wap_user_link, kfenlei" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Cache-control" content="no-cache" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<title><%=sWebName %> - 友情链接管理</title>
<link rel="stylesheet" href="css.css" type="text/css" />
</head>
<body>
<%=qTemplate.Ac("wapUserTop.html") %>
<div align="left">
<div class="wapPageTitle"><a href="/wap/user/index1.aspx" class="infoback">返回</a>友情链接管理</div>
<div class="clear10"></div>
<div class="infowrap" align="left">
<form action="action.aspx?s=addLink" method="post" onSubmit="return valiForm()" name="linkForm">
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" class="userMessTable">
<tr>
<td class="head" width="50">文字：</td> <td><input type="text" size="10" class="inputText" name="linkName" /></td>
</tr>
<tr>
<td class="head">链接：</td><td><input type="text" size="10" class="inputText" value="http://" name="linkUrl" /></td>
</tr>
<tr>
<td class="head" width="50"></td>  <td><input type="submit" value="添加" class="bt1" /></td>
</tr>
</table>
</form>
</div>
<%=linkTableStr%>
</div>
<div class="clear80"></div>
<script language="javascript" type="text/javascript">
function valiForm()
{
	if(document.linkForm.linkName.value=="")
    {
		alert("请输入链接关键字！");
        return false;
    }
    if(document.linkForm.linkUrl.value=="" || document.linkForm.linkUrl.value=="http://" )
    {
    	alert("请输入链接网址！");
        return false;
    }
    return true;
}
</script>
</body>
</html>