<%@page trimDirectiveWhitespaces="true"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="gen" uri="http://help.jspgen.com/taglib/jstl"%>
<!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" />
<meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1" />
<title>来源</title>
<!-- 当前页面 -->
<link type="text/css" href="${config.statie}ui/admin/images/admin.css" rel="stylesheet">
</head>
<body>
<div id="wrapper">
  <div class="push">
    <form name="search" id="search" method="POST" action="?">
      &nbsp;关键字：
      <input type="text" name="keyword" class="text small" title="关键字" value="${gen:text(param.keyword,true,true)}" size="10"/>
      <input name="find" type="hidden" value="name" />
      <input name="submit" class="button blue small" type="submit" value="查询" />
    </form>
  </div>
  <div class="push">
    <ul class="list-info">
      <gen:if test="${not empty pager.results}">
        <c:forEach items="${pager.results}" var="map">
          <li>&nbsp;<a href="javascript:void(0);" class="choose" id="${map.id}" title="${map.name}">${map.name}</a></li>
        </c:forEach>
        <gen:else />
        <li class="txt-c">暂无数据</li>
      </gen:if>
    </ul>
  </div>
</div>
<!-- 必备插件 -->
<script type="text/javascript" src="${config.statie}js/jquery.js"></script>
<script type="text/javascript" src="${config.statie}js/jquery.form.js"></script>
<script type="text/javascript" src="${config.statie}js/jquery.grapes.js"></script>
<script type="text/javascript" src="${config.statie}js/jquery.timers.js"></script>
<script type="text/javascript" src="${config.statie}js/jquery.mousewheel.js"></script>
<!-- 弹窗插件 -->
<script type="text/javascript" src="${config.statie}js/dialog/jquery.dialog.js?self=true"></script>
<script type="text/javascript" src="${config.statie}js/dialog/jquery.dialog.plugins.js"></script>
<!-- UI界面必备 -->
<script type="text/javascript" src="${config.statie}ui/js/jspgen.js"></script>
<script type="text/javascript" src="${config.statie}ui/js/jspgen.ajax.js"></script>
<script type="text/javascript" src="${config.statie}ui/js/jspgen.ready.js"></script>
<!-- 当前页面 -->
<script type="text/javascript">
// document.domain = "jspgen.com";// 调用
$(document).ready(function(){
	// 变量
	var $choose = $('li a.choose');
	
	// 选择
	$choose.bind('click', function () {
		$temp = $(this);
		$dialogApi.callback({id:$temp.attr('id'), name:$temp.text()});
		$dialogApi.close();
	});
});
</script>
</body>
</html>
