<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head><title><!--{$UUDEV_PAGE_TITLE}--></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="css/ubb.css" rel="stylesheet"/>
</head>
<body>
<div class="portlet ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" style="hight:auto;">
<div class="portlet-header ui-widget-header"><span class="ui-icon ui-icon-circle-arrow-s" style="float:right;"></span>插入搜索框</div>
<div class="portlet-content" style="display: block;padding:10px;">
	<div class="panel-body">
		<div class="info-box" style="display:none;"><a class="box warning corners" title="Error box" href="javascript:();"><span class="close">&nbsp;</span>在UBB还没有找到对应的搜索框，建议你先创建一个搜索！</a></div>
		<table class="ubbpad3">
			<tr>
				<td>搜索框名:</td>
				<td><input id="input-name" value="文章搜索">
		<img class="tiptip" title="当你点击插入搜索框的时候，系统会自动给你分配一个唯一的name值，不需要你手动输入，不同UBB编辑框的搜索框name值不一样" src="images/quest.gif"/></td>
			</tr>
			<tr>
				<td>搜索框度:</td>
				<td><select id="input-size">
			<option value="4">4</option>
			<option value="5" >5</option>
			<option value="6" selected="selected">6</option>
			<option value="7">7</option>
			<option value="8">8</option>
			<option value="9">9</option>
			<option value="10">10</option>
			<option value="11">11</option>
			<option value="12">12</option>
			<option value="13">13</option>
			<option value="14">14</option>
			<option value="15">15</option>
			<option value="16">16</option>
			<option value="17">17</option>
			<option value="18">18</option>
			<option value="19">19</option>
			<option value="20">20</option>
		</select><img class="tiptip" title="为搜索框的长度，填数字，默认6 " src="images/quest.gif"/></td>
			</tr>
			<tr>
				<td>搜索框默认值:</td>
				<td><input id="input-value" value="关键字">
		<img class="tiptip" title="即前台搜索框里面默认的关键字，多个关键字用“|”分开，例如：杀毒软件|浏览器|系统工具。默认为空。" src="images/quest.gif"/></td>
			</tr>
		</table>
		
	</div>
	<div class="panel-bottom"  style="text-align:center;">
		<button class="but5font insertBtn" role="button" aria-disabled="false"><span class="ui-button-text">插入</span></button>
		<button class="but5font cancelBtn" role="button" aria-disabled="false"><span class="ui-button-text">取消</span></button>
	</div>
</div>
</div>
<script>
$(document).ready(function(){
	
	$(".tiptip").tipTip({defaultPosition: "right"});
	$(".portlet").css({height:'100%'});
	
	$.ajax({
		url:"index.php?r=Layout.getRandomInputName",
		type:"get",
		cache:false,
		data:{},
		success:function(HtmlResponseText){
			$("#input-name").val(HtmlResponseText);
		}
	});

});
</script>
</body>
</html>