
<!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>[.$ourphp_adminfont.admintitle.]</title>
<link href="templates/images/ourphp_login.css" rel="stylesheet" type="text/css"> 
<script type="text/javascript" src="../../function/plugs/jquery/1.7.2/jquery-1.7.2.min.js"></script>
<script>
<!--
/*第一种形式 第二种形式 更换显示样式*/
function setTab(m,n){
 var tli=document.getElementById("menu"+m).getElementsByTagName("li");
 var mli=document.getElementById("main"+m).getElementsByTagName("ul");
 for(i=0;i<tli.length;i++){
  tli[i].className=i==n?"hover":"";
  mli[i].style.display=i==n?"block":"none";
 }
}
//-->
</script>
</head>

<body>
<div style="height:50px;"></div>
<div style="clear:both"></div>
<div id="tabs0">
 <ul class="menu0" id="menu0">
  <li onclick="setTab(0,0)" class="hover">信息列表</li>
  <li onclick="setTab(0,1)">添加信息</li>
 </ul>
 <div class="main" id="main0" style="border-top:2px #488fcd solid; clear:both;">
  <ul class="block">
	  <li>
		<div class="ourphp_newslist">
		        <table width="100%" border="0" cellpadding="10" class="ourphp_newslist">
                  <tr>
				  	<td width="5%" bgcolor="#EBEBEB"><div align="center">ID</div></td>
                    <td width="10%" bgcolor="#EBEBEB">类型</td>
					<td width="15%" bgcolor="#EBEBEB">网站名称</td>
					<td width="25%" bgcolor="#EBEBEB">网站链接</td>
					<td width="8%" bgcolor="#EBEBEB">状态</td>
                    <td width="20%" bgcolor="#EBEBEB">发布时间</td>
                    <td width="20%" bgcolor="#EBEBEB">操作</td>
                  </tr>
				  [.section loop=$Linklist name=op.]
                  <tr>
				  	<td><div align="center"><font style="background:#009933; color:#FFFFFF; padding:2px; text-align:center;">[.$Linklist[op].id.]</font></div></td>
					<td>
					[.if $Linklist[op].class == 'font'.]文字链接[.elseif $Linklist[op].class == 'img'.]
						[.if strstr($Linklist[op].img,'http://') || strstr($Linklist[op].img,'https://').]
						<img src="[.$Linklist[op].img.]" style="max-width:100px; border:0px;" />
						[.else.]
						<img src="../../[.$Linklist[op].img.]" style="max-width:100px; border:0px;" />
						[./if.]
					[./if.]
					</td>
					<td><a href="[.$Linklist[op].url.]" target="_blank">[.$Linklist[op].name.]</a></td>
					<td><a href="[.$Linklist[op].url.]" target="_blank">[.$Linklist[op].url.]</a></td>
                    <td>[.if $Linklist[op].kstate == 1.]显示[.else.]<font color="#CC0000">隐藏</font>[./if.]</td>
                    <td>[.$Linklist[op].time.]</td>
                    <td><a href="ourphp_linkview.php?id=[.$Linklist[op].id.]">编辑</a>&nbsp;&nbsp;-&nbsp;&nbsp;<a href="?ourphp_cms=del&id=[.$Linklist[op].id.]" onclick="javascript:return confirm('确认删除吗?')">删除</a></td>
                  </tr>
				  [.sectionelse.]
				  <tr>
                    <td colspan="7">[.$ourphp_access.]</td>
                  </tr>
				  [./section.]
                </table>
		</div>
	  </li>
  </ul>
  
  <ul>
	  <li>
		<form id="form1" name="form1" method="POST" action="?ourphp_cms=add" class="registerform">
		<table width="98%" border="0" cellpadding="5" cellspacing="0" bordercolor="#666666" style="border-collapse:collapse;" align="center">
		  <tr>
		  	<td><div align="right">网站名称</div></td>
			<td><input name="OP_Linkname" type="text" class="win" [.$ourphp_bgcolor.] datatype="*" nullmsg="网站名称是必填项!"/><font color=red> (*)</font></td>
		  </tr>
		  <tr>
		  	<td><div align="right">网站地址</div></td>
			<td><input name="OP_Linkurl" type="text" class="win" [.$ourphp_bgcolor.]  datatype="*" nullmsg="网站地址是必填项!" /><font color=red> (*)</font>									
			</td>
		  </tr>
		  <tr>
		  	<td><div align="right">类型</div></td>
			<td><label><input name="OP_Linkclass" type="radio" value="font" checked="checked" />文字链接</label>&nbsp;&nbsp;<label><input name="OP_Linkclass" type="radio" value="img" />图片链接</label></td>
		  </tr>
			<tr>
			  <td><div align="right">图片地址</div></td>
			  <td><input name="OP_Linkimg" type="text" class="win" value="http://" id="upload" />&nbsp;
			<input type="button" id="image3" value="上传图片" style="width:100px; height:35px; line-height:35px; background:#0099CC; color:#FFFFFF; border:0px;" />
			[.include file="ourphp_editor.html".]
			<script>
			KindEditor.ready(function(K) {
				var editor = K.editor({
					allowFileManager : true
				});
				K('#image3').click(function() {
					editor.loadPlugin('image', function() {
						editor.plugin.imageDialog({
							showRemote : false,
							imageUrl : K('#upload').val(),
							clickFn : function(url, title, width, height, border, align) {
								K('#upload').val(url);
								editor.hideDialog();
							}
						});
					});
				});
			});
		</script>
			 </td>
			</tr>  
		  <tr>
		  	<td><div align="right">状态</div></td>
			<td><label><input name="OP_Linkstate" type="radio" value="1" checked="checked" />显示</label>&nbsp;&nbsp;<label><input name="OP_Linkstate" type="radio" value="2"/>隐藏</label></td>
		  </tr>
		  <tr>
		  	<td><div align="right">排序</div></td>
			<td><input name="OP_Linksorting" type="text" class="win2" value="99" [.$ourphp_bgcolor.] /> 数字越小，越靠前								
			</td>
		  </tr>
		  <tr>
		  	<td><div align="right">打开方式</div></td>
			<td>
			
				<label><input name="OP_Linktarget" type="radio" value="_blank" checked="checked" />新窗口</label>&nbsp;&nbsp;
				<label><input name="OP_Linktarget" type="radio" value="_self"/>当前窗口</label>&nbsp;&nbsp;
				<label><input name="OP_Linktarget" type="radio" value="_parent"/>父窗口</label>&nbsp;&nbsp;
				<label><input name="OP_Linktarget" type="radio" value="_top"/>顶级窗口</label>
			
			</td>
		  </tr>
		  <tr>
		  	<td><div align="right">禁爬虫</div></td>
			<td>
			
				<label><input name="OP_Linknofollow" type="radio" value="no" checked="checked" />不禁nofollow</label>&nbsp;&nbsp;
				<label><input name="OP_Linknofollow" type="radio" value="nofollow"/>禁nofollow</label>
			
			</td>
		  </tr>
		   <tr>
		   	<td></td>
			<td><input type="submit" name="submit" value="提 交" class="ourphp-anniu"/></td>
		  </tr>
		</table>
		</form>
	  </li>
  </ul>
 </div>
</div>
[.include file="ourphp_foot.html".]
</body>
</html>