<?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>
<link href="http://127.0.0.5/Magic/Data/Public/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://127.0.0.5/Magic/Data/Public/js/jquery.js"></script>
<script src="http://127.0.0.5/Magic/Data/Public/js/main.js"></script>
<script src="http://127.0.0.5/Magic/Data/Public/js/jquery.nicescroll.min.js"></script>
</head>
<body>
<style type="text/css">
	.la{padding:2px 5px;margin-right:10px;}
	.la:hover{color:#fff;}
</style>
<script type="text/javascript">
	function savetoken(){
		token = $('#token').val();
		if (token == ''){
			$('#token').addClass('hints');
			return false;
		}else{
			$('#token').removeClass('hints');
			$('#blank').attr('src','?r=linksubmit-index-savetoken&token='+token)
		}
	}
</script>
<body>
<div class="place">
	<span>位置：</span>
	<ul class="placeul">
		<li>首页</a></li>
		<li>模块管理</li>
		<li>百度链接推送</li>
	</ul>
</div>
	<div class="formbody">
		<iframe id="blank" name="blank"  style="display:none"></iframe>
		<form method="post" target="blank"  action="?r=linksubmit-index-submit">
		<table border="0" cellspacing="0" cellpadding="0" class="forminfo">
		<tr><td colspan="2">
			<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" >
			<tr>
				<td></td>
				<td width="120" height="60" align="left" colspan="4">通过该插件将网站内容实时推送给百度，保证内容快速的被收录。同时还能在搜索结果中获得更丰富的信息展示，提升用户体验，提高用户点击率。</td>
			</tr>
			<tr>
				<td></td>
				<td  align="left" colspan="3" >百度站长平台密钥：<input type="text"  size="35" class="insty" name="token" id="token" value="<?php echo $token;?>" onblur ="$(this).removeClass('hints');">&nbsp;&nbsp;<input type="button" class="scbtn7" value="保存" onclick="savetoken()"></td>
			</tr>
			<tr>
				<td  align="right"></td>
				<td colspan="4">
					<a href="?r=linksubmit&date=today" class="la scbtn1">今天</a>
					<a href="?r=linksubmit&date=yesterday" class="la scbtn4">昨天</a>
					<a href="?r=linksubmit&date=week" class="la scbtn3">本周</a>
					<a href="?r=linksubmit&date=month" class="la scbtn2">本月</a>
					<a href="?r=linksubmit" class="la scbtn1">全部</a>
				</td>
			</tr>
			<tr>
				<td width="120" height="80	" align="right">可推送的文档：<br>
				[<a href="javascript:" onclick=$("#aid").find("option").prop("selected",true);>全选</a>]&nbsp;&nbsp;
				[<a href="javascript:" onclick=$("#aid").find("option").prop("selected",false);>取消</a>]&nbsp;&nbsp;&nbsp;
				</td><td >
				<select name="aid[]" id="aid" multiple="multiple" style="width:400px;height:200px" class="insty">
				  <?php foreach ($list as $vo){?>
				   <option value="<?php echo $vo['id'];?>"><?php echo $vo['title'];?></option>
				  <?php }?>
				</select>
				</td>
				<td width="130" height="80" align="left" >
					手动输入网址：<br>每行输入一个网址,如：<br>http://www.qintech.net
				</td><td ><textarea name="surls" rows="12" cols="60" class="textinput"></textarea></td>
			</tr>
			<tr>
			<td  height="40" colspan="4" align="center" style="border-bottom:none"><input type="submit" class="scbtn1" value="推送">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重置" class="scbtn4"></td>
			</tr>
			</table>
		</div>
		</form>
		
	</table>
</div>

