<?php if (!defined('APP_PATH')) exit;?><!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=utf-8" />
<title></title>
<script src="http://127.0.0.5/magic/Data/Public/js/jquery.js"></script>
<script src="http://127.0.0.5/Data/Public/editor/kindeditor-min.js"></script>
<link href="http://127.0.0.5/Data/Public/editor/themes/default/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://127.0.0.5/Data/Public/editor/lang/zh_CN.js"></script>
<script src="http://127.0.0.5/magic/Data/Public/js/main.js"></script>
<script src="http://127.0.0.5/Data/Public/validform/calendar.js"></script>
<link href="http://127.0.0.5/magic/Data/Public/css/style.css" rel="stylesheet"/>
</head>
<body>
<div class="place">
	<span>位置：</span>
	<ul class="placeul">
		<li><a href="/">首页</a></li>
		<li><a href="#">友链管理</a></li>
		<li><a href="#">编辑友链</a></li>
	</ul>
</div>
<div class="formbody">
	<div id="usual1" class="usual"> 
		<div class="itab">
			<ul> 
				<li class="selected">基本信息</a></li> 
			</ul>
		</div>
		<iframe id="blank" name="blank"  style="display:none"></iframe>
		<form method="post" target="blank"  action="?r=links-index-save">
		<input type="hidden" name="id"  value="<?php echo $links['id'];?>">
		<table border="0" cellspacing="0" cellpadding="0" class="forminfo">
		<tr><td colspan="2">
		<div class="tabson" style="display:block">
			<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" >
			<tr>
				<td width="120" align="right">网站名称：</td><td><input type="text" name="title" value="<?php echo $links['title'];?>"  class="insty" size="45"></td>
			</tr>
			<tr>
				<td width="120" align="right">网站地址：</td><td><input type="text" name="url" value="<?php echo $links['url'];?>"  class="insty" size="45"></td>
			</tr>
			<tr>
				<td width="120"  align="right" style="padding:2px">网站LOGO：</td><td style="padding:2px 0" align="left">
				<table border="0" cellspacing="0" cellpadding="0" width="90%" align="left" height="100%">
					<tr>
						<td width="480" style="border:none;" align="left"><input type="text" name="logo" id="logo"  class="insty" size="45" value="<?php echo $links['logo'];?>" >&nbsp;&nbsp;<input type="button" class="scbtn7" plugin="image" view="true" name="logo" value="上  传" /></td>
						<td style="border:none;padding:2px;text-align:left" ><img id="logo_view" src="<?php if($class['ico']!=''){ ?><?php echo $class['ico'];?><?php }else{ ?>http://127.0.0.5/magic/Data/Public/images/pview.gif<?php }?>" onload="if(this.width>100){this.width=100;};if(this.height>100){this.height=100;}"></td>
					</tr>
				</table>
				</td>
			</tr >
			<tr>
				<td width="120" height="100" align="right">备注：</td><td><textarea name="note" class="textinput" rows="5" cols="60"><?php echo $links['note'];?></textarea></td>
			</tr>
			<tr>
				<td width="120" align="right">发布时间：</td><td><input type="text" readonly name="pubtime" onClick="calendar({dateFmt:'yyyy-MM-dd HH:mm:ss',istime:1})" value="<?php if(empty($links['pubtime'])){ ?><?php echo date('Y-m-d H:i:s');?><?php }else{ ?><?php echo $links['pubtime'];?><?php }?>" size="25" class="insty tico"></td>
			</tr>
			<tr>
				<td width="120" align="right">是否发布：</td><td>&nbsp;是&nbsp;<input type="radio" name="status" value="1" <?php if($links['status']==1){ ?> checked<?php }?>>&nbsp;否&nbsp;<input type="radio" name="status" value="0" <?php if($links['status']==0){ ?> checked<?php }?>></td>
			</tr>
			</table>
		</div>
		</form>
		<tr>
		<td width="100" height="40" align="right"></td><td><input type="submit" class="scbtn1" value="保存">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重置" class="scbtn4"></td>
	</tr>
	</table>
	</div>
</div>
</body>
</html>
