⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 incomelist_jsp.java

📁 crm.customer relationship management
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
      out.write("                        </td>\r\n");
      out.write("                      </tr>\r\n");
      out.write("                    </table>\r\n");
      out.write("                  </td>\r\n");
      out.write("                </tr>\r\n");
      out.write("              </table>\r\n");
      out.write("            </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td height=10>\r\n");
      out.write("            </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td valign=center align=center>\r\n");
      out.write("              <table border=0 cellpadding=0 cellspacing=1 bgcolor=\"#eeeedd\">\r\n");
      out.write("                <tr class=\"tr_head4\" \r\n");
      out.write("                  onclick=\"gotoAdminPage('question')\" >\r\n");
      out.write("                  <td valign=center align=left width=144 height=20>\r\n");
      out.write("                    &nbsp;◇ 客户重要信息提醒\r\n");
      out.write("                  </td>\r\n");
      out.write("                </tr>\r\n");
      out.write("                <tr class=\"tr_content4\">\r\n");
      out.write("                  <td valign=center align=left>\r\n");
      out.write("                    <table border=0 cellpadding=0 cellspacing=0 width=144>\r\n");
      out.write("                      <tr>\r\n");
      out.write("                        <td height=20>\r\n");
      out.write("                          &nbsp;└ <a href=\"javascript:gotoPage('S410')\">客户重要信息提醒</a>\r\n");
      out.write("                        </td>\r\n");
      out.write("                      </tr>\r\n");
      out.write("                    </table>\r\n");
      out.write("                  </td>\r\n");
      out.write("                </tr>\r\n");
      out.write("              </table>\r\n");
      out.write("            </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td height=10>\r\n");
      out.write("            </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("        </table>\r\n");
      out.write("      </td>\r\n");
      out.write("      <td>\r\n");
      out.write("        <table border=0 cellpadding=0 cellspacing=0 bgcolor=\"#FFFFFF\" width=640 height=450>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td width=640 valign=top>");
      out.write('\r');
      out.write('\n');

//页面内部使用变量
Vector vIncomes = new Vector();
vIncomes = (Vector)session.getAttribute("incomes");

//总记录条数和当前位置
int iCountPerPage = 20;
int iMax = vIncomes.size();
int iIndex = ((Integer)myValues.get("pageIndex")).intValue();

//总页数和当前页码
int iMaxPage = (int)Math.ceil((double)iMax/iCountPerPage);
int iCurPage = iIndex/iCountPerPage + 1;
if ( iMaxPage == 0 )
{
    iCurPage = 0;
}

      out.write("\r\n");
      out.write("<table border=0 cellpadding=0 cellspacing=0 width=640 height=450>\r\n");
      out.write("<tr>\r\n");
      out.write("  <td height=25 colspan=2>\r\n");
      out.write("    &nbsp;当前是第<font color=blue>");
      out.print(iCurPage);
      out.write("</font>页,共<font color=blue>");
      out.print(iMaxPage);
      out.write("</font>页。\r\n");
      out.write("  </td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("  <td width=20>\r\n");
      out.write("  </td>\r\n");
      out.write("  <td width=620 height=20 align=left valign=top>\r\n");
      out.write("    <table border=0 cellpading=0 cellspacing=1 width=580 height=20 bgcolor=\"#ffffff\">\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td width=150 bgcolor=\"#ccaaaa\" align=center>\r\n");
      out.write("          客户来电编号\r\n");
      out.write("        </td>\r\n");
      out.write("        <td width=150 bgcolor=\"#ccaaaa\" align=center>\r\n");
      out.write("          客户编号\r\n");
      out.write("        </td>\r\n");
      out.write("        <td width=200 bgcolor=\"#ccaaaa\" align=center>\r\n");
      out.write("          客户来电时间\r\n");
      out.write("        </td>\r\n");
      out.write("        <td width=80 bgcolor=\"#ccaaaa\" align=center>\r\n");
      out.write("          操作\r\n");
      out.write("        </td>\r\n");
      out.write("      </tr>\r\n");
      out.write("    </table>\r\n");
      out.write("  </td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("  <td width=20>\r\n");
      out.write("  </td>\r\n");
      out.write("  <td width=620 height=370 align=left valign=top>\r\n");
      out.write("    <table border=0 cellpading=0 cellspacing=1 width=580 bgcolor=\"#ffffff\">\r\n");

for ( int i=iIndex; i<iIndex + iCountPerPage; i++ )
{
    if ( i<vIncomes.size() )
    {
        Income oIncome = (Income)vIncomes.get(i);
        
        if ( i%2 == 0 )
        {

      out.write("\r\n");
      out.write("          <tr bgcolor=\"#ffffff\">\r\n");

        }
        else
        {

      out.write("\r\n");
      out.write("          <tr bgcolor=\"#ffeeee\">\r\n");

        }

      out.write("\r\n");
      out.write("            <td width=150>\r\n");
      out.write("              ");
      out.print(oIncome.getCallId());
      out.write("\r\n");
      out.write("            </td>\r\n");
      out.write("            <td width=150>\r\n");
      out.write("              ");
      out.print(oIncome.getCustomerId());
      out.write("\r\n");
      out.write("            </td>\r\n");
      out.write("            <td width=200>\r\n");
      out.write("              ");
      out.print(oIncome.getCallTime());
      out.write("\r\n");
      out.write("            </td>\r\n");
      out.write("            <td width=80 align=center>\r\n");
      out.write("              <table border=0 cellpading=0 cellspacing=0>\r\n");
      out.write("                <tr>\r\n");
      out.write("                  <td>\r\n");
      out.write("                    <a href=\"javascript: gotoView('");
      out.print(oIncome.getCallId());
      out.write("')\">\r\n");
      out.write("                      <font color=blue>查看</font>\r\n");
      out.write("                    </a>\r\n");
      out.write("                  </td>\r\n");
      out.write("                </tr>\r\n");
      out.write("              </table>\r\n");
      out.write("            </td>\r\n");
      out.write("          </tr>\r\n");

    }
    else
    {
        if ( i%2 == 0 )
        {

      out.write("\r\n");
      out.write("          <tr bgcolor=\"#ffffff\">\r\n");

        }
        else
        {

      out.write("\r\n");
      out.write("          <tr bgcolor=\"#ffeeee\">\r\n");

        }

      out.write("\r\n");
      out.write("            <td width=150>\r\n");
      out.write("              &nbsp;\r\n");
      out.write("            </td>\r\n");
      out.write("            <td width=150>\r\n");
      out.write("              &nbsp;\r\n");
      out.write("            </td>\r\n");
      out.write("            <td width=200>\r\n");
      out.write("              &nbsp;\r\n");
      out.write("            </td>\r\n");
      out.write("            <td width=80>\r\n");
      out.write("              &nbsp;\r\n");
      out.write("            </td>\r\n");
      out.write("          </tr>\r\n");

    }
}

      out.write("\r\n");
      out.write("    </table>\r\n");
      out.write("  </td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("  <td colspan=2 align=left valign=top>\r\n");
      out.write("    <table border=0 cellpading=0 cellspacing=0>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td width=20>\r\n");
      out.write("          &nbsp;\r\n");
      out.write("        </td>\r\n");
      out.write("        <td width=200 align=left valign=top>\r\n");
      out.write("          \r\n");
      out.write("        </td>\r\n");
      out.write("        <td width=360 align=right valign=top>\r\n");
      out.write("          <table border=0 cellpading=0 cellspacing=0>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td width=40>\r\n");

if ( iCurPage > 1 )
{

      out.write("\r\n");
      out.write("                <button onclick=\"gotoFirst()\">首页</button>\r\n");

}

      out.write("\r\n");
      out.write("              </td>\r\n");
      out.write("              <td width=40>\r\n");

if ( iCurPage > 1 )
{

      out.write("\r\n");
      out.write("                <button onclick=\"gotoPrev()\">前页</button>\r\n");

}

      out.write("\r\n");
      out.write("              </td>\r\n");
      out.write("              <td width=80>\r\n");

if ( iMaxPage > 1 )
{

      out.write("\r\n");
      out.write("                <input type=\"text\" size=2 maxlength=2 name=\"spec\" value=\"");
      out.print(iCurPage);
      out.write("\">\r\n");
      out.write("                <img src=\"img/go.gif\" alt=\"跳转到..\" onclick=\"gotoSpec()\" style=\"cursor:hand; position:relative; top:2px;\">\r\n");

}

      out.write("\r\n");
      out.write("              </td>\r\n");
      out.write("              <td width=40>\r\n");

if ( iCurPage < iMaxPage )
{

      out.write("\r\n");
      out.write("                <button onclick=\"gotoNext()\">次页</button>\r\n");

}

      out.write("\r\n");
      out.write("              </td>\r\n");
      out.write("              <td width=40>\r\n");

if ( iCurPage < iMaxPage )
{

      out.write("\r\n");
      out.write("                <button onclick=\"gotoLast()\">末页</button>\r\n");

}

      out.write("\r\n");
      out.write("              </td>\r\n");
      out.write("            </tr>\r\n");
      out.write("          </table>\r\n");
      out.write("        </td>\r\n");
      out.write("      </tr>\r\n");
      out.write("    </table>\r\n");
      out.write("  </td>\r\n");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("  <input type=\"hidden\" name=\"pageId\" value=\"");
      out.print(sPageId);
      out.write("\">\r\n");
      out.write("  <input type=\"hidden\" name=\"curPage\" value=\"");
      out.print(iCurPage);
      out.write("\">\r\n");
      out.write("  <input type=\"hidden\" name=\"incomeId\" value=\"\">\r\n");
      out.write("  <input type=\"hidden\" name=\"actionId\" value=\"\">\r\n");
      out.write("\r\n");
      out.write("            </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("        </table>\r\n");
      out.write("      </td>\r\n");
      out.write("    </tr>\r\n");
      out.write("  </table>\r\n");
      out.write("  </center>\r\n");
      out.write("</form>\r\n");
      out.write("</body>\r\n");
      out.write("</html>");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -