<%@ page language="C#" autoeventwireup="true" inherits="admin_callJs, 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>
<div align="center">
<div class="main" align="left">
<qth8:adminTop ID="AdminTop1" runat="server" />
<div class="d01">
<div class="tabTitle">JS外部调用信息</div>
<form class="layui-form">
<table width="100%" border="0" class="layui-table" cellspacing="0" cellpadding="0">
<tr><td class="head" style=" vertical-align:top;" valign="top">分类： <input name="s" id="navUrl" value="0" class="inputText" size="10" />&nbsp;&nbsp;&nbsp;&nbsp;  显示条数： <input name="c" id="c" value="10" class="inputText" size="5" />&nbsp;&nbsp;&nbsp;&nbsp;字数： <input name="a" id="a" class="inputText" size="5" />&nbsp;&nbsp;&nbsp;&nbsp; 显示信息： <input type="radio" id="Radio1" name="s2" value="0" checked="checked" title="全部" /><input type="radio" id="Radio2" name="s2" value="1" title="普通" /><input type="radio" id="Radio3" name="s2" value="2" title="置顶" />  &nbsp;&nbsp;显示日期： <input type="radio" id="t1" name="t" value="0" checked="checked" title="是" /><input type="radio" id="t2" name="t" value="1" title="否" />&nbsp;&nbsp;<input type="button" class="layui-btn" value="确认生成" onclick="createJs()" />
</td></tr>
<tr><td><div class="jsTextareaDiv">
<textarea name="js" id="js" class="layui-textarea" rows="10" cols="100"></textarea>
</div></td></tr>
</table>
</form>
</div>
</div></div>
<script type="text/javascript">
var obj;
var objInput;
$("#navUrl").click(function()
{
obj=layer.tab({
  area: ['800px', '400px'],
  tab: [{title: '分类选择',  content: '<%=sSortList%>'}]});
});
function changesort(sobj)
{
	document.getElementById("navUrl").value=sobj
	layer.close(obj);
}
</script>
<script language="javascript" type="text/javascript">
function createJs()
{
	var s=q$("navUrl").value;
	var c=q$("c").value;
	var a=q$("a").value;
	var t="0";
	var s2=$("input[name='s2']:checked").val();
	if(q$("t2").checked==true)
	{
	    t="1";
	}
	q$("js").value='<!--您可以自己定义css代码-->\n\r<style type="text/css">\n\r.kflInfo{width:98%; height:20px; line-height:20px; font-size:12px; color:#000000;}\n\r.kflInfo span{color:#666666; float:right;}\n\r</style>\n\r<script type="text\/javascript" src="http:\/\/<%=sWebDomain%>\/services\/?s=js&s1='+s+'&c='+c+'&a='+a+'&s2='+s2+'&t='+t+'"><\/script>';
}
</script>
</body>
</html>
