mertmngview.jsp

来自「培训考试系统代码」· JSP 代码 · 共 95 行

JSP
95
字号
<%@ page contentType="text/html;charset=gb2312"%>
<%@ include file="/agt/public/jsp/top.jsp" %>
<%
  String abstracts = (String)request.getAttribute("abstracts");
  String matype    = (String)request.getAttribute("matype");
  String classname   = ClassInfo.get((String)request.getAttribute("classid"));
  session.setAttribute("mert_filename",request.getAttribute("fileName"));
%>
<!-- title>资料修改</title -->
<script language="javascript" src="/agt/public/js/mertmng.js"></script>
<script language="javascript" src="/agt/public/js/func.js"></script>
<script language="javascript">
<!--
function openwindow()
{
 window.open("/agt/mertmng/MertMngFileView.jsp","看资料内容", "toolbar=yes,resizable=yes,location=yes, scrollbars=yes, width=450,height=350,status=yes","bReplace");
}
function viewinit()
{
    var staffno  = trim("<%=(String)session.getAttribute("StaffNo")%>");
    var staffnos = trim("<%=(String) request.getAttribute("staffnoinfo")%>");
    if( staffnos.lastIndexOf(staffno) != -1)
    {
        document.forms[0].auth.disabled = true;
    }
}
//-->
</script>
<form action="/MertMngOperatorAction.do?operatorFlag=<%=OperatorFlagCode.MERT_SAVE%>"  method ="post" >
  <table width="539" border="0" cellpadding="3" cellspacing="1" class="table-cs1">
    <tr>
      <td width="76" align="center" class="td-cs1">标  题</td>
      <td width="448" class="td-cs2">
<%=request.getAttribute("title")%></td>
    </tr>
    <tr>
      <td align="center" class="td-cs1">关 键 字</td>
      <td class="td-cs2">
<%=request.getAttribute("keyWord")%></td>
    </tr>
    <tr>
      <td align="center" class="td-cs1">摘  要</td>
      <td class="td-cs2">
<%=abstracts==null?"":abstracts%>
      </td>
    </tr>
    <tr>
      <td align="center" class="td-cs1">资料类型</td>
      <td class="td-cs2">
         <%if(matype.equals("0")){%>文本 <%}%>
         <%if(matype.equals("1")){%>录音 <%}%>
        </td>
    </tr>
    <tr>
      <td align="center" class="td-cs1">类  别</td>
      <td class="td-cs2">
<%=ClassInfo.get((String)request.getAttribute("classid"))%>
      </td>
    </tr>
    <tr>
	  <td align="center" class="td-cs1">文件内容</td>
                        <td colspan="2" class="td-cs2">
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="40%"><%=(String)request.getAttribute("fileName1")%></td>
                              <td width="60%"><a href="javascript:;" onClick="openwindow();" onMouseOver="MM_swapImage('Image24','','/agt/public/images/view_2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="/agt/public/images/view.gif" name="Image24" width="48" height="25" border="0" id="Image24"></a></td>
                            </tr>
                          </table></td>
    </tr>
  </table>
  <table width="539" height="30" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td align="center"> <table width="424" height="30" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="25%">&nbsp; </td>
            
            <%if("1".equalsIgnoreCase(byClass))
            {%>
                              <td width="25%" height="35"> <input name="close" type="image" onclick="window.close();return false;" src="/agt/public/images/close.gif" width="82" height="22" border="0" onmouseover="this.src='/agt/public/images/'+ this.name + '_2.gif';" onmouseout="this.src='/agt/public/images/'+ this.name + '.gif'">
                              </td>
            <%}
            else
            {%>
                               <td width="25%" height="35"> <input name="back" type="image" onclick="history.back();return false;" src="/agt/public/images/back.gif" width="82" height="22" border="0" onmouseover="this.src='/agt/public/images/'+ this.name + '_2.gif';" onmouseout="this.src='/agt/public/images/'+ this.name + '.gif'">
                              </td>           
            <%}%>
            <td>&nbsp; </td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
<%@ include file="/agt/public/jsp/bot.jsp" %>

⌨️ 快捷键说明

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