<?php /* V2.10 Template Lite 4 January 2007  (c) 2005-2007 Mark Dickenson. All rights reserved. Released LGPL. 2013-07-13 10:34 中国标准时间 */ ?>

<!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=gb2312" />
<title>友情链接申请 - <?php echo $this->_vars['QISHI']['site_name']; ?>
</title>
<meta name="author" content="恩平招聘网，恩平人才网" />
<meta name="copyright" content="epzpw.com" />
<meta http-equiv="X-UA-Compatible" content="IE=7">
<link rel="shortcut icon" href="<?php echo $this->_vars['QISHI']['site_dir']; ?>
favicon.ico" />
<link href="<?php echo $this->_vars['QISHI']['site_template']; ?>
css/common.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_vars['QISHI']['site_template']; ?>
css/link.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->_vars['QISHI']['site_template']; ?>
js/jquery.js" type='text/javascript' ></script>
<?php if ($this->_vars['verify_link'] == "1"): ?>
<script type="text/javascript">
$(document).ready(function()
{
function imgcaptcha(inputID,imgdiv)
{
	$(inputID).focus(function(){
		if ($(inputID).val()=="点击获取验证码")
		{
		$(inputID).val("");
		$(inputID).css("color","#333333");
		}
		$(inputID).parent("div").css("position","relative");
		//设置验证码DIV
		$(imgdiv).css({ position: "absolute", left:  $(inputID).width(), "bottom": "0px" , "z-index": "10", "background-color": "#FFFFFF", "border": "1px #A3C8DC solid","display": "none","margin-left": "15px"});
		$(imgdiv).show();
		if ($(imgdiv).html()=='')
		{
		$(imgdiv).append("<img src=\"<?php echo $this->_vars['QISHI']['site_dir']; ?>
include/imagecaptcha.php?t=<?php echo $this->_vars['random']; ?>
\" id=\"getcode\" align=\"absmiddle\"  style=\"cursor:pointer; margin:3px;\" title=\"看不请验证码？点击更换一张\"  border=\"0\"/>");
		}
		$(imgdiv+" img").click(function()
		{
			$(imgdiv+" img").attr("src",$(imgdiv+" img").attr("src")+"1");		
		});
		$(document).unbind().click(function(event)
		{
			var clickid=$(event.target).attr("id");
			if (clickid!="getcode" &&  clickid!="postcaptcha")
			{
			$(imgdiv).hide();
			$(inputID).parent("div").css("position","");
			$(document).unbind();
			}			
		});
	});
}
imgcaptcha("#postcaptcha","#imgdiv");
});
</script>
<?php endif; ?>
</head>
<body>
<?php $_templatelite_tpl_vars = $this->_vars;
echo $this->_fetch_compile_include("header.htm", array());
$this->_vars = $_templatelite_tpl_vars;
unset($_templatelite_tpl_vars);
 ?>
<div class="top_search_x">
  <div class="top_search_bar">
    <div class="hearend"><span>&nbsp;</span>当前位置：<b><a href="<?php echo $this->_vars['QISHI']['site_dir']; ?>
"  target="_blank" class="l7"><?php echo $this->_vars['QISHI']['site_name']; ?>
</a>-友情链接申请</b></div>
  </div>
</div>
<div class="linkbox">
<h1>友情链接申请</h1>
  <form action="?act=save" method="post">
  <table width="100%" border="0" cellspacing="0" cellpadding="5">
  
   <tr>
      <td width="120" align="right">申请页面(必填)：</td>
      <td width="460">
       <?php if (count((array)$this->_vars['cat'])): foreach ((array)$this->_vars['cat'] as $this->_vars['li']): ?>	
	   <label>
              <input name="alias" type="radio" value="<?php echo $this->_vars['li']['c_alias']; ?>
" <?php if ($this->_vars['li']['c_alias'] == $this->_vars['cat']['0']['c_alias']): ?> checked="checked" <?php endif; ?>/>
              <?php echo $this->_vars['li']['categoryname']; ?>
</label>
			
	   <?php endforeach; endif; ?>	    </td>
      <td><strong>申请说明：</strong></td>
   </tr>
    <tr>
      <td width="120" align="right">连接名称(必填)：</td>
      <td>
        <input type="text" name="link_name" class="link_input" />      </td>
      <td rowspan="5" valign="top"><?php echo $this->_vars['link_application_txt']; ?>
</td>
    </tr>
    <tr>
      <td align="right">连接地址(必填)：</td>
      <td>  <input type="text" name="link_url" class="link_input" /></td>
      </tr>
    <tr>
      <td align="right">LOGO地址(选填)：</td>
      <td>  <input type="text" name="link_logo" class="link_input" /></td>
      </tr>
	  <?php if ($this->_vars['verify_link'] == "1"): ?>
	  <tr>
      <td align="right">验证码：</td>
      <td> 
	  
	  <div>
	  <div id="imgdiv"></div>
			<input  class="link_input" name="postcaptcha" id="postcaptcha" type="text" value="点击获取验证码" style="color:#999999" />
			
			</div>
	  
	  </td>
      </tr>
	  <?php endif; ?>
    <tr>
      <td align="right" valign="top">申请说明(选填)：</td>
      <td><textarea name="app_notes"  style="width:300px; height:60px;"></textarea></td>
      </tr>
    <tr>
      <td align="right" valign="top">&nbsp;</td>
      <td><div style="position:relative">
        <input type="submit" name="Submit" value="提交" class="but80" />
      </div></td>
      </tr>
  </table>
  </form>
</div>
<?php $_templatelite_tpl_vars = $this->_vars;
echo $this->_fetch_compile_include("footer.htm", array());
$this->_vars = $_templatelite_tpl_vars;
unset($_templatelite_tpl_vars);
 ?>
</body>
</html>
