<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>{:$title}_{:if $seotitle}$seotitle{:else}{:C('name')}{:/if}</title>
<meta name="keywords" content="{:$keywords}" />
<meta name="description" content="{:$description}" />
<link href="images/style.css" type="text/css" rel="stylesheet" />
<link href="../../statics/skins/blue/jxbox.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="http://lib.sinaapp.com/js/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
!window.jQuery && document.write('<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.3.min.js"><\/script>');
</script>
<script type="text/javascript" src="../../statics/js/jquery.cookie.js"></script>
<script type="text/javascript" src="../../statics/js/jquery.jxbox.min.js"></script>
<script type="text/javascript" src="../../statics/js/common.js"></script>
</head>
<body>
<div id="top">
 <div id="top_login">
  <div id="top_login_1">欢迎来到{:$config['name']}！请 <a href="javascript:;" onclick="login()">登录</a> <a href="{:Url::getUrl('member', 'reg')}">免费注册</a></div>
  <div id="top_login_2">您好，{username} <a href="{:Url::getUrl('member')}">会员中心</a> <a href="{:Url::getUrl('member', 'logout')}">退出</a></div>
 </div>
 <div class="search">
  <form name="search" action="{:ROOT_PATH}index.php" target="_blank">
   <input type="text" name="q" size="20" />
   <input type="hidden" name="a" value="search" />
   <select name='c'>
    <option value="article" selected="selected">文章</option>
    <option value="product">产品</option>
   </select>
   <input type="submit" name="s" value="搜索" class="button"/>
  </form>
 </div>
 <div class="rss">
  <a href="{:Url::getRssUrl()}" title="RSS订阅中心" target="_blank">
   <img src="images/rss.png" alt="RSS订阅" border="0" width="52" height="24" />
  </a>
 </div>
</div>
<div id="head">
 <div class="logo"><a href="{:ROOT_PATH}" title="{:$config['name']}">{:$config['name']}</a></div>
 <div class="banner"> {:Tag :: ad('top')}</div>
</div>
<ul id="nav">
 <li class="first"><a href="{:ROOT_PATH}" title="{:$config['name']}首页">首&nbsp;&nbsp;页</a></li>
 <!--{:loop Tag::menu($catid) $v}-->
 <li><a href="{:$v['url']}" title="{:$v['name']}"{:if $v['active']} class="active"{:/if}>{:$v['name']}</a></li>
 <!--{:/loop}-->
</ul>
<!--{:if $catid && (get_category($catid, 'pid') or get_category($catid, 'subnum'))}-->
<ul id="sub_nav">
 <!--{:loop Tag::menu($catid, $catid, 0, true) $v}-->
 <li><a href="{:$v['url']}" title="{:$v['name']}">{:$v['name']}</a></li>
 <!--{:/loop}-->
</ul>
<!--{:/if}-->
<!--{#:tpl head}-->
<div id="main">
 <!--{:if $a == 'add'}-->
 <div class="link bdr_1">
  <h4>申请友情链接</h4>
  <form action="{:Url::getUrl('link', 'add', '', 0)}" method="post" name="myform">
  <input type="hidden" name="forward" value="{:$referer}" />
  <!--{:Tag::tokenForm()}-->
  <ul class="add">
   <li>
    <label><span class="c_red">*</span>网站名称：</label>
    <input name="info[name]" size="40" require="true" datatype="limit" min="3" max="20" msg="长度控制在3-30字符" msgid="name_info" type="text"><span id="name_info">长度控制在3-20字符</span>
   </li>
   <li>
    <label><span class="c_red">*</span>网站地址：</label>
    <input size="40" name="info[url]" require="true" datatype="url|ajax" url = "{:Url::getUrl('link', 'checkurl', '', 0)}" msg="请填写正确的网址，格式为 http://xxx.xxx" msgid="url_info" type="text"><span id="url_info">请填写正确的网址，格式为 http://xxx.xxx</span>
   </li>
   <li>
    <label>网站Logo：</label>
    <input name="info[logo]" size="40" type="text">
   </li>
   <li>
    <label><span class="c_red">*</span>站长email：</label>
    <input size="40" name="info[email]" style="ime-mode:disabled" require="true" datatype="email" msg="邮件格式不正确">
   </li>
   <li>
    <label>网站简介：</label>
    <textarea name="info[introduce]" cols="40" rows="5"></textarea>
   </li>
   <li class="submit">
    <input type="submit" name="submit" value=" 提 交 " class="button" />
   </li>
  </ul>
  </form>
  <h5 class="title">本站链接信息</h5>
  <dl>
   <dt>名称：</dt><dd>{:$config['name']}</dd>
  </dl>
  <dl>
   <dt>地址：</dt><dd>{:ROOT_URL}</dd>
  </dl>
  <dl>
   <dt>Logo：</dt><dd><img src="../../statics/images/logo.gif" width="88" height="31" /></dd>
  </dl>
  <dl>
   <dt>Logo地址：</dt><dd>{:ROOT_URL}statics/images/logo.gif</dd>
  </dl>
  <dl>
   <dt>&nbsp;</dt><dd class="c_red">注意：请申请链接的同时做好本站的链接</dd>
  </dl>
 </div>
 <script type="text/javascript" src="../../statics/js/validator.js"></script>
 <script type="text/javascript">
 $(function(){
	$('form').checkForm(1);
 })
 </script>
 <!--{:else}-->
 <div class="link bdr_1 mb_10">
  <h4><a href="{:Url::getUrl('link', 'add', '', 0)}" class="f_r">申请友情链接</a>LOGO链接</h4>
  <div class="list">{:Tag::link(100,1)}</div>
 </div>
 <div class="link bdr_1 mb_10">
  <h4><a href="{:Url::getUrl('link', 'add', '', 0)}" class="f_r">申请友情链接</a>文字链接</h4>
  <div class="list">{:Tag::link(100,2)}</div>
 </div>
{:/if}
</div>
{:tpl foot}