sinat_33914559 2016-08-14 09:29 采纳率: 0%
浏览 3569

点击按钮根据文本框中的内容从数据库中输出数据

 <table id="choose_time">
            <tr>
                <td>请选择时间</td>
                <td><input type="text" id="d11" name="d11" onclick="WdatePicker()" style="margin-left: 60px"></td>
                <td><a class="btn btn-small btn-success" onClick="click();" style="margin-left: 80px">查询</a></td>
            </tr>
   </table>

        <div class="first">
            <table id="table_report" class="table table-striped table-bordered table-hover" style="white-space:nowrap;">
                <thead>
                    <tr>
                        <th width="20px">序号</th>
                        <th width="20px">员工姓名</th>
                        <th>上班时间</th>
                    </tr>
                </thead>

                <tbody> 
                <!-- 开始循环 -->   
                <c:choose>
                    <c:when test="${not empty historyworkList}">
                        <c:if test="${QX.cha == 0}">
                        <c:forEach items="${historyworkList}" var="historywork" varStatus="vs">     
                            <tr>
                                <td class='center' style="width: 30px;">${vs.index+1}</td>
                                <td>${historywork.employee_name}</td>   <%--  员工姓名 --%>
                                <td>${historywork.message_time}</td>   <%-- 员工下班时间 --%>

                            </tr>
                        </c:forEach>
                        </c:if>

                        <c:if test="${QX.cha == 1 }">
                            <tr>
                                <td colspan="10" class="center">您无权查看</td>
                            </tr>
                        </c:if>
                    </c:when>

                    <c:otherwise>
                        <tr class="main_info">
                            <td colspan="16" class="center">没有相关数据</td>
                        </tr>
                    </c:otherwise>
                </c:choose>
                </tbody>
            </table>
            </div>
 ![图片说明](https://img-ask.csdn.net/upload/201608/14/1471166979_430794.png)
  • 写回答

3条回答 默认 最新

  • sinat_33914559 2016-08-14 09:32
    关注

    我想在

    这么写可以嘛

    评论

报告相同问题?

悬赏问题

  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler