<%@ page language="java" contentType="text/html; charset=UTF-8"? ? pageEncoding="UTF-8"%><%@taglib uri="http://java.sun.com/jsp/jstl/core" ?prefix="c"%><%? ? String path = request.getContextPath();%><!-- 月收入查詢功能界面 ?2016-10-14--><div id='show'><select id="years" ?class="easyui-combobox"> ?? ? ? ?<c:forEach var="year" begin="2002" end="2016" step="1" > ?? ? ? ? ?<option value="${year}" ?>${year}</option> ?? ? ? ?</c:forEach> ?? ? ? </select> ?? ? ?<select id="months" ?class="easyui-combobox"> ?? ? ? ?<c:forEach var="month" begin="1" end="12" step="1" > ?? ? ? ? <option value="${month}">${month}</option> ?? ? ? ?</c:forEach> ?? ? ? </select> ?<a id="btn" href="javascript:search()" class="easyui-linkbutton" ?data-options="iconCls:'icon-search'">查詢</a>?<div><table id="mothTable"></table><script>$(function(){$('#mothTable').datagrid({ ? ?? ?url:'<%=path%>/detail/moth.htm?authorid=10000', ? ?? ?columns:[[ ? ?? ? ? ?{field:'BOOKNAME',title:"書(shū)籍名稱"}, ? ?? ? ? ?{field:'TOTAL',title:'收入書(shū)豆'}, ? ?? ? ? ?{field:'TIME',title:'月'} ? ?? ?]] ? ?});?});?function search(){$('#mothTable').datagrid("load",{date:$('#show').combobox('getValue'), ? //- ==> Parameters: 10000(String), 2007(String)?只獲取年 ?月沒(méi)有獲取 ?求教});}
添加回答
舉報(bào)
0/150
提交
取消