📄 remind_jsp.java
字号:
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(" └ <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 vCustomers = new Vector();
vCustomers = (Vector)session.getAttribute("customers");
String sToday = NVL((String)session.getAttribute("today"));
//总记录条数和当前位置
int iCountPerPage = 20;
int iMax = vCustomers.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(" 当前是第<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=610 height=20 bgcolor=\"#ffffff\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=70 bgcolor=\"#ccccaa\" align=center>\r\n");
out.write(" 客户编号\r\n");
out.write(" </td>\r\n");
out.write(" <td width=100 bgcolor=\"#ccccaa\" align=center>\r\n");
out.write(" 客户姓名\r\n");
out.write(" </td>\r\n");
out.write(" <td width=40 bgcolor=\"#ccccaa\" align=center>\r\n");
out.write(" 性别\r\n");
out.write(" </td>\r\n");
out.write(" <td width=100 bgcolor=\"#ccccaa\" align=center>\r\n");
out.write(" 客户电话\r\n");
out.write(" </td>\r\n");
out.write(" <td width=80 bgcolor=\"#ccccaa\" align=center>\r\n");
out.write(" 客户生日\r\n");
out.write(" </td>\r\n");
out.write(" <td width=80 bgcolor=\"#ccccaa\" align=center>\r\n");
out.write(" 加入日期\r\n");
out.write(" </td>\r\n");
out.write(" <td width=140 bgcolor=\"#ccccaa\" 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=610 bgcolor=\"#ffffff\">\r\n");
for ( int i=iIndex; i<iIndex + iCountPerPage; i++ )
{
if ( i<vCustomers.size() )
{
Customer customerObj = (Customer)vCustomers.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=\"#ffffee\">\r\n");
}
out.write("\r\n");
out.write(" <td width=70>\r\n");
out.write(" ");
out.print(customerObj.getCustomerId());
out.write("\r\n");
out.write(" </td>\r\n");
out.write(" <td width=100>\r\n");
out.write(" ");
out.print(customerObj.getRealname());
out.write("\r\n");
out.write(" </td>\r\n");
out.write(" <td width=40>\r\n");
out.write(" ");
out.print(customerObj.getSex().equals("0")?"男":"女");
out.write("\r\n");
out.write(" </td>\r\n");
out.write(" <td width=100>\r\n");
out.write(" ");
out.print(customerObj.getPhone());
out.write("\r\n");
out.write(" </td>\r\n");
out.write(" <td width=80>\r\n");
out.write(" ");
out.print(customerObj.getBirthday());
out.write("\r\n");
out.write(" </td>\r\n");
out.write(" <td width=80>\r\n");
out.write(" ");
out.print(customerObj.getStartDate());
out.write("\r\n");
out.write(" </td>\r\n");
out.write(" <td width=140>\r\n");
if ( customerObj.getBirthday().indexOf(sToday) > 0 )
{
out.write("\r\n");
out.write(" <font color=red>今天是客户生日</font>\r\n");
}
else
{
out.write("\r\n");
out.write(" <font color=blue>成为客户周年纪念</font>\r\n");
}
out.write("\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=\"#ffffee\">\r\n");
}
out.write("\r\n");
out.write(" <td width=70>\r\n");
out.write(" \r\n");
out.write(" </td>\r\n");
out.write(" <td width=100>\r\n");
out.write(" \r\n");
out.write(" </td>\r\n");
out.write(" <td width=40>\r\n");
out.write(" \r\n");
out.write(" </td>\r\n");
out.write(" <td width=100>\r\n");
out.write(" \r\n");
out.write(" </td>\r\n");
out.write(" <td width=80>\r\n");
out.write(" \r\n");
out.write(" </td>\r\n");
out.write(" <td width=80>\r\n");
out.write(" \r\n");
out.write(" </td>\r\n");
out.write(" <td width=140>\r\n");
out.write(" \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(" \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=\"customerId\" 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 + -