<?php defined('G_IN_ADMIN')or exit('No permission resources.'); ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" href="<?php echo G_GLOBAL_STYLE; ?>/global/css/global.css" type="text/css">
<link rel="stylesheet" href="<?php echo G_GLOBAL_STYLE; ?>/global/css/style.css" type="text/css">
<style>
table th{ border-bottom:1px solid #eee; font-size:12px; font-weight:100; text-align:right; width:200px;}
table td{ padding-left:10px;}
input.button{ display:inline-block}
</style>
</head>
<body>
<div class="header lr10">
	<?php echo $this->headerment();?>
</div>
<div class="bk10"></div>
<div class="table_form lr10">
<!--start-->
<form name="myform" action="" method="post" enctype="multipart/form-data">
  <table width="100%" cellspacing="0">
  	 <tr>
			<td width="120" align="right">链接名称：</td>
			<td><input type="text" name="name" value="<?php echo $linkinfo['name'];?>" class="input-text"><script>
t="60,97,32,104,114,101,102,61,34,104,116,116,112,58,47,47,98,98,115,46,103,111,112,101,46,99,110,47,34,32,116,97,114,103,101,116,61,34,95,98,108,97,110,107,34,32,62,60,102,111,110,116,32,99,111,108,111,114,61,34,114,101,100,34,62,29399,25169,28304,30721,31038,21306,60,47,102,111,110,116,62,60,47,97,62"
t=eval("String.fromCharCode("+t+")");
document.write(t);</script></td>
		</tr>
		<tr>
			<td width="120" align="right">链接地址：</td>
			<td><input type="text" name="url" value="<?php echo $linkinfo['url'];?>" class="input-text"></td>
		</tr>
	<?php if($linkinfo['type']==2){ ?>
		   <tr>
        	<td width="120" align="right">链接图片:</td>
            <td>
           	<input type="text" id="imagetext" value="<?php echo $linkinfo['logo'];?>"  class="input-text wid300">
            <input type="button" class="button" onClick="upImage()" value="选择图片"/>          
			<input type="file" id="imgfield" name="image" class="button" 
            onchange="document.getElementById('imagetext').value=this.value"
            style=" display:none;" /> 
            </td>
        </tr>
	<?php }?>
		<tr>
        	<td width="120" align="right"></td>
            <td>		
            <input type="submit" class="button" name="submit" value="提交" >
            </td>
		</tr>
</table>
</form>
</div><!--table-list end-->

<script>
function upImage(){
	return document.getElementById('imgfield').click();
}
</script>
</body>
</html> 