<%@ page language="C#" autoeventwireup="true" inherits="admin_nav, kfenlei" %><%@ Register Src="inc/adminTop.ascx" TagName="adminTop" TagPrefix="qth8" %>
<!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>
<title>框分类信息系统 后台管理</title>
<link href="css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<%=sJs %>
<div align="center">
<div class="main" align="left">
<qth8:adminTop ID="AdminTop1" runat="server" />
<script src="js/colpick.js" type="text/javascript"></script>
<script type="text/javascript">
var obj;
var objInput;
function showNav(input)
{
objInput=input;
obj=layer.tab({
  area: ['800px', '400px'],
  tab: [<%=sSortList%>]
});
}
function setNav(sLink)
{
    objInput.value=sLink;
	layer.close(obj);
}
</script>
<link rel="stylesheet" href="css/colpick.css" type="text/css"/>
<div class="d01">
<div class="tabTitle">导航设置</div>
<form action="action.aspx?s=addNav" class="layui-form" method="post" name="link" id="navM">
<input type="hidden" name="navType" value="0" />
<table width="100%" border="0" class="layui-table" cellspacing="0" cellpadding="0">
<thead>
<tr>
<td width="100">链接字</td>
<td width="200">链接</td>
<td width="60">颜色</td>
<td width="300">Style样式</td>
<td width="100">目标窗口</td>
<td width="50">排序</td>
<td width="220">&nbsp;</td>
</tr>
</thead>
<tr id="navEdit">
<td><input type="text" size="12" class="layui-input" name="navName" /></td>
<td><input type="text" size="25" class="layui-input" onfocus="showNav(this)" value="/" id="navUrl" name="navUrl" /></td>
<td><input type="text" size="6" class="layui-input" value="" name="navClass" id="picker" /></td>
<td>
<input type="checkbox" value="font-weight:bolder;" name="navStyle" title="加粗" /><input type="checkbox" value="font-style:italic;"  name="navStyle" title="斜体" /><input type="checkbox" value="text-decoration:underline;" name="navStyle" title="下划线" />
</td>
<td><select name="navTarget">
<option value="">当前窗口</option>
<option value="_blank">新窗口</option>
</select>
</td>
<td><input type="text" size="5" class="layui-input" value="" name="navOrder" /></td>
<td>
<input type="submit" value="添加" class="layui-btn">
</td></tr>
</table>
</form>
<%=linkTableStr%>
</div>
</div>
</div>
<script type="text/javascript">
$("input[name='navClass']").colpick({
	layout:'hex',
	submit:0,
	colorScheme:'dark',
	onChange:function(hsb,hex,rgb,el,bySetColor) {
		$(el).css('background-color','#'+hex);
		$(el).css('color','#fff');
		// Fill the text box just if the color was set using the picker, and not the colpickSetColor function.
		if(!bySetColor) $(el).val(hex);
	}
}).keyup(function(){
	$(this).colpickSetColor(this.value);
});
</script>
</body>
</html>
