<%@page language="java" contentType="text/html;charset=UTF-8"%> <%@taglib uri="/tags/struts-bean" prefix="bean" %> <%@taglib uri="/tags/struts-html" prefix="html" %> <%@taglib uri="/tags/struts-logic" prefix="logic" %> <%@taglib uri="/tags/reading-template" prefix="template"%> <%@page import="com.snr.lnr.bom.dto.DTOBookStatus"%> <%@page import="com.snr.lnr.common.ReadingUtils"%> <% org.apache.struts.util.MessageResources msgRes = org.apache.struts.util.PropertyMessageResources.getMessageResources("rcApplicationResources"); %> <%-- compruebo el perfil --%> <% boolean editor = "editor".equals(com.snr.lnr.login.LoginProfile.getUserProfileName(session)); String editorHelpKey = (String) request.getAttribute("editorHelpKey"); String width = editor ? "582" : "517"; String profile = "editor"; String helpKey = ""; if(!editor) { profile = "teacher"; helpKey = "role" + Integer.toString(com.snr.lnr.login.LoginProfile.getTeacherRole(session)) + ".help.teacher.browse.resource.file"; } boolean isOnline = (bookManagerForm.get("bookOnline")!=null) && (((String) bookManagerForm.get("bookOnline")).length() >0); // calculo para el rowspan de la imagen int rowSpanImage = 14; if (isOnline) { if (request.getAttribute("createAction") !=null) { rowSpanImage = 18; } else if (request.getAttribute("updateAction") !=null) { rowSpanImage = 16; } else if (request.getAttribute("browseAction") !=null) { rowSpanImage = 14; } } else { if (request.getAttribute("createAction") !=null) { rowSpanImage = 18; } else if (request.getAttribute("updateAction") !=null) { rowSpanImage = 16; } else if (request.getAttribute("browseAction") !=null) { rowSpanImage = 16; } } // Se recupera el número mínimo de actividades que se tienen que definir int skillSize=0; if (request.getAttribute("skillSize")!=null){ skillSize=Integer.parseInt(request.getAttribute("skillSize").toString()); } %> <%--fin compruebo el perfil --%> " help="<%=(editor) ? editorHelpKey : helpKey%>"> <bean:message bundle="resources" key="bookManager.captions.title"/> init(); <% // indica si estamos en una acción de consulta boolean browseAction = request.getAttribute("browseAction")!=null; %> "> "> "> "> "> "> "> "> "> "> "> <%-- si estamos en alta --%> <%-- si estamos en modificación --%> <%-- si estamos en consulta --%> <%-- si estamos en alta --%> <%-- si estamos en modificación --%> <%-- si estamos en consulta --%> <%-- fin asociar una documento online --%> <% if (profile=="editor") { %> <% } %> <%-- seccion sólo válida para el alta y la modificacion --%> <%-- si estamos no estamos en consulta, audio--%> <%-- fin seccion sólo válida para el alta y la modificacion --%>
">
  " width="18" height="17" title="" alt="" border="0">    |    " width="18" height="17" title="" alt="" border="0">   " width="18" height="17" title="" alt="" border="0">   " width="18" height="17" title="" alt="" border="0"> ');">
" width="18" height="17" title="" alt="" border="0">   " width="18" height="17" title="" alt="" border="0"> ');">
 
 
    ');"> " width="100" height="154" border="0"> " width="120" height="150" border="0">

');"> <bean:message bundle=" border="0">


');"> <bean:message bundle=" border="0">


',400,150,'popAudio');"> <bean:message bundle=" border="0">
<%-- si estamos en consulta, botón de audio --%> ',400,150,'popAudio');"> <bean:message bundle=" border="0">
 
 
 
  ">   "> " class="cajatexto" size="20" readonly="true"/>
 
 
 
 
 
 
 
 
  <%-- si estamos en modifcación, botón de borrar imagen --%>
 
 
<% if (editor) {%>
 
" class="v10r666" <%= row.isChecked() ? "checked" : "" %>/>
 
   
<bean:message bundle=" title=""> <bean:message bundle=" title="">    <bean:message bundle=" title=""> <bean:message bundle=" title="">
 
 
 
 
     
<% } %>