• ddd




    <form id="yj-form" method="GET" action="fgyj.do">
      public List<AjxxModel> randomSelect(String ajxhs, int n) {
            String[] ajxhStrings = StringUtil.split(ajxhs, ',');
            int total = ajxhStrings.length;
            List<String> chooseAjxhs = new ArrayList<String>();
            String randomajxhs = "";
            Random rd = new Random();
            int choseNum = 0;
            if (total >= n) {
                while (choseNum < n) {
                    int choseIndex = rd.nextInt(total);
                    String choseAjxh = ajxhStrings[choseIndex];
                    if (!chooseAjxhs.contains(choseAjxh)) {
                        chooseAjxhs.add(choseAjxh); choseNum++;
                    }
                }
                for (String choseAjxh : chooseAjxhs) { randomajxhs += choseAjxh + ","; }
                if (!StringUtil.isEmpty(randomajxhs)) { randomajxhs = randomajxhs.substring(0, randomajxhs.length() - 1); }
            }else { randomajxhs = ajxhs; }
            AjcxtjModel ajcxtjModel = new AjcxtjModel();
            ajcxtjModel.setAjxhs(randomajxhs);
            List<AjxxModel> ajxxModels = ajjbDao.getAjxxByAjcxtj(ajcxtjModel);
            return ajxxModels;
        }
    
    
    
     

      <div class="search_condition">     <label> 时间范围:</label> <input name="search_kssj" type="text" class="datepicker" value="${search_kssj}" /> <label></label> <input name="search_jssj" type="text" class="datepicker" value="${search_jssj}" /> </div> <div class="search_condition"> <label><span style="0.5em; display: inline-block;"></span><span style="0.5em; display: inline-block;"></span>人:</label> <input name="search_dsr" type="text" value="${search_dsr }"/>
      </div>
    <div class="search_condition">
        <label><span style="2em; display: inline-block;"></span>门:</label>
        <select name="search_fgbm">
          <option selected="selected" value="">全部</option>
    <c:forEach items="${bmModels }" var="bmModel">
       <option value="${bmModel.dmbh }" <c:if test="${search_fgbm == bmModel.dmbh }" >selected="selected"</c:if> >${bmModel.dmms }</option>
    </c:forEach>
    </select>
    </div>
    <div class="search_condition">
       <label>约见法官:</label>
          <select name="search_yjfg" >
       <c:if test="${search_i_yjfg != '' }">
              <option value="-1">全部</option>
              <c:forEach items="${yhModels }" var="yhModel">
                <option value="${yhModel.yhbh }" <c:if test="${search_i_yjfg == yhModel.yhbh }" >selected="selected"</c:if> >${yhModel.yhmc }</option>
              </c:forEach>
    </c:if>
          </select>
    </div>
    <div class="search_btn_area">

        <input id="search" class="search_btn" type="submit" value="查 询" />
    <a href="yjxz.do"><input id="add" class="search_btn" value="新 增" /></a>
    </div>
    </form>
  • 相关阅读:
    python+matplotlib制作雷达图3例分析和pandas读取csv操作
    python+pygame的导弹追踪鼠标游戏设置和说明
    python+pygame制作一个可自定义的动态时钟和详解
    python+tkinter制作一个可自定义的动态时钟及详细解释,珍藏版
    教你如何用python和pygame制作一个简单的贪食蛇游戏,可自定义
    博客园的博客之美化日历
    博客园的博客美化之-增加首页音乐播放器APlayer
    博客园的博客美化之文章推荐和反对按钮、看板娘、图片放大、github链接、返回顶部小火箭
    设计模式之装饰器模式
    设计模式之状态模式
  • 原文地址:https://www.cnblogs.com/zhyxBlog/p/3511703.html
Copyright © 2020-2023  润新知