软件图书管理系统+CDM图+PDM图+表间关系图 第9页

软件图书管理系统,关联图+DFD图+实体属性图+ER图

<td align="center"><strong>操作</strong></td>

   </tr>

   <tr class=t3 height=22>

          <td align=middle colspan=7><strong>&nbsp;</strong></td>

          <td align=middle><font color="#ff6600">

          <a onclick="return goNew();" style="cursor:hand;">借阅</a></font></td>

   </tr>

   <% 

          Vector vectAll = (Vector)myBean.getData();

          Vector vectPage = (Vector)myBean.getPageData(1);

          sum = Integer.parseInt((String)vectPage.get(0));//页数

          tnum=vectAll.size();//总条数

          String bgcolor = "";

          numAll=vectPage.size();

          for(int i=1;i<numAll;i++)

          {

                 if((i%2)==0) bgcolor = "t3";

                 else bgcolor = "t4";

                 Hashtable hash = (Hashtable)vectPage.get(i);

                 String strJYID = (String)hash.get("JYID");

                 String strREADERID = (String)hash.get("READERID");

                 //证件号

                 String strZJH  =   ds.toString((String)myBean.toName("KJB2_KJXX_READER","READERID","ZJH",strREADERID));

                 String strBOOKID=(String)hash.get("BOOKID");

                 //图书类别ID

                 String strBookClassID = ds.toString((String)myBean.toName("KJB2_KJXX_STORE","BOOKID","BOOKCLASSID",strBOOKID));

                 //图书标题

                 String strTitle = ds.toString((String)myBean.toName("KJB2_KJXX_BOOK","BOOKCLASSID","TITLE",strBookClassID));

                 //索取号

                 String strSQH = ds.toString((String)myBean.toName("KJB2_KJXX_STORE","BOOKID","SQH",strBOOKID));

                 String strJYSJ = (String)hash.get("JYSJ");

                 String strDQSJ=(String)hash.get("DQSJ");

                 String strZT=(String)hash.get("ZT");

                 if(strZT.equals("0")) strZT="借阅";

                 else strZT="归还";

                 String strXJCS=(String)hash.get("XJCS");

   %>

                 <tr height=22 class="<%=bgcolor%>">

                        <td align=middle><span class="style7"><%=strREADERID%>/<%=strZJH%></span></td>

                        <td align=middle><span class="style7"><%=strTitle%></span></td>

                        <td align=middle><span class="style7"><%=strSQH%></span></td>

                        <td align=middle><span class="style7"><%=strJYSJ%></span></td>

                        <td align=middle><span class="style7"><%=strDQSJ%></span></td>

                        <td align=middle><span class="style7"><%=strXJCS%></span></td>

                        <td align=middle><span class="style7"><%=strZT%></span></td>

                        <td align=middle><span class="style7">

                               <a onclick="return goView('<%=strJYID%>')" style="cursor:hand;" onmouseover="msover1()" onmouseout="msout1()">

                               查看

                               </a>|

                               <!-- <a onclick="return goMod('<%=strJYID%>');" style="cursor:hand;" onmouseover="msover1()" onmouseout="msout1()">

                               续借

                               </a>| -->

                               <a onclick="return goDel('<%=strJYID%>');" style="cursor:hand;" onmouseover="msover1()" onmouseout="msout1()">

                               取消借阅

                               </a>

                        </td>

                 </tr>            

   <%}%>

</table>

<table  border=0 cellpadding=0 cellspacing=0 class=p1 height=0 align=center width="100%"><tbody>

   <tr>

          <td  height=9 width="100%">

            <table border=0 cellpadding=0 cellspacing=0 class=p1 width="100%">

                        <tbody>

                        <tr>

                        <td align=middle nowrap

                        width="72%" class=t2>&nbsp;<b>分页</b>:

                        <%if(cur!=1){%>

                                      <a onclick="firsrpg()" style="cursor:hand">首页</a>

                        <%}%>

                        <%if(cur>1){ t=cur-1;%>

                                      <a onclick="lastpg()" style="cursor:hand">上一页</a>

                        <%}%>

                        <%if(cur<sum){ s=cur+1;%>

                                      <a onclick="nextpg()" style="cursor:hand">下一页</a>

                        <%}%>

                        <%if(cur<sum){%>

                               &nbsp;<a onclick="finalpg()" style="cursor:hand">尾页</a>

                        <%}%>

                        &nbsp;页次:<b><font color=red><%=cur%></font></b>/<b><%=sum%></b>

                                      <b>20</b>/ <b><%=tnum%></b>条记录 转到: <input  type=text

                        class=p1 name=bm size=2

                        style="border-bottom: 1px groove; border-left: 1px groove; border-right: 1px groove; border-top: 1px groove">

                        <input class=p1 name=b1 style="border-bottom: 1px ridge; border-left: 1px ridge; border-right: 1px ridge; border-top: 1px ridge" onclick="return checkdata()" type=submit value=go>

                        </td></tr>

          </tbody></table>

   </td>

   </tr>

</tbody></table>

 

以下是JSP代码中用到的函数

<script>

   function goNew()

   {

          document.all.txt_type.value = "24";

          document.all.txt_type1.value = "2.1";

          document.all.txt_edit.value = "1";

          document.all.txt_id.value = "";

          document.all.form1.action = "index.jsp";

          document.all.form1.submit(); 

   }

   function goDel(id)

   {    

          if(!confirm("你确认要取消此书的借阅吗?"))

                 return false;

          document.all.txt_type.value = "24";

          document.all.txt_type1.value = "2.1";

          document.all.txt_edit.value = "3";

          document.all.txt_id.value = id;

          document.all.txt_ifservlet.value = "-1";

          document.all.form1.action = "index.jsp";

          document.all.form1.submit(); 

   }

   function goView(id)

   {

          document.all.txt_type.value = "24";

          document.all.txt_type1.value = "2.1";

          document.all.txt_edit.value = "4";

          document.all.txt_id.value = id;

          document.all.txt_ifservlet.value = "";

          document.all.form1.action = "index.jsp";

          document.all.form1.submit(); 

   }

 

   function isDigitNew(str)

   {

          var strno=".";

          var time=0;

          var strnone=" ";

          var bool = true;

          for(var i=0;i<str.length;i++)

          {     if(str.charAt(i)==strno)

                 {

                        if(i==0)

                               return false;

                        if(i==str.length-1)

                               return false;

                        time++;

                 }

                 else

                 {

                        if(!(str.charAt(i)>=0&&str.charAt(i)<=9))

                        {

                               bool = false;

                               break;

                        }

                 }

          }

          if(str.indexOf("..")>=0)

                 return false;

          if(time>1)

                 return false;

          if(str.indexOf(" ")>=0)

                 return false;

          return bool;

   }

 

   function isDigit(str)

   {

//跳转到第一页的函数

   function firsrpg()

   {

          document.all.txt_type.value = "<%=strType%>";

          document.all.txt_type1.value = "<%=strType1%>";

              document.all.txt_id.value = "";

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]  ... 下一页  >> 

Copyright © 2007-2012 www.chuibin.com 六维论文网 版权所有