<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" import="com.novell.webaccess.common.JSPConduit, com.novell.emframe.dev.eMFrameUtils" %>
<%   JSPConduit c = JSPConduit.getJSPConduit(request); 
   c.stringTable("DevResources"); 
   c.stringTable("FwResources"); %>

<HTML>
<HEAD>
   <TITLE><%= c.string("ProductName") %></TITLE>
   <LINK rel='stylesheet' href='<%= c.getModulesUrl() + "/dev/css/hf_style.css" %>'>
   <STYLE>
      select {width:200px; font-size:10px; font-face:Helvetica,Arial};
   </STYLE>
</HEAD>
<jsp:include page='<%= c.getPath("dev/eMFrameScripts_inc.jsp") %>' flush="true" />
<script>
function UpdateTask(taskId,newInstance)
{ 
   tasks = [<% c.set("i", "0"); 
               while (c.lt(c.var("i"), c.var("Task.count"))) { 
               if (c.var("Task."+c.var("i")+ ".update").equals("true")) { %>
            "<%= c.var("Task."+c.var("i")+ ".id") %>"<% } %>,
            <% c.inc("i"); 
               } %>];
    
   collections = [<% c.set("i", "0"); 
               while (c.lt(c.var("i"), c.var("Task.count"))) { 
               if (c.var("Task."+c.var("i")+ ".update").equals("true")) { %>
            "<%= c.var("Task."+c.var("i")+ ".collection") %>"<% } %>,
            <% c.inc("i"); 
               } %>];
  
  var t = pack(tasks);
  var c = pack(collections);
  alert("<%= c.string("HiddenPluginsUpdateTaskWait") %>");  
  //window.location="webacc?taskId="+taskId+"&oldTaskId=<%= c.var("taksId") %>&tasksToUpdate="+t+"&collections="+c+"&merge=dev.GenConf&nextState=getTasks&User.context=<%= c.var("User.context") %>&onComplete=return:taskId=fw.HiddenPluginsInfo%26merge=fw.HiddenPluginsInfo%26error=dev.GenErr" 
  window.location="webacc?taskId="+taskId+"&tasksToUpdate="+t+"&collections="+c+"&merge=dev.GenConf&nextState=getTasks&User.context=<%= c.var("User.context") %>&onComplete=close"
}




</script>

<BODY text="#000000" bgcolor="#FFFFFF">
<div class="head3b">
   <%= c.string("HiddenPluginsInfo.Title") %></div>
<div class="formdescriptextml0">
   <p><%= c.string("HiddenPluginsInfo.Header") %></p>
</div>
<table border="0" bgcolor="#FFFFFF" width="610" cellpadding="3" cellspacing="0">
   <!-- column header -->
   <tr class="head4" bgcolor="#FFFFFF">
      <td width="30%"><%= c.string("HiddenPluginsInfo.TaskHeading") %></td>
      <td><%= c.string("HiddenPluginsInfo.RoleHeading") %></td>
      <td><%= c.string("HiddenPluginsInfo.DetailHeading") %></td>
      <%/*<td>To make available</td> */%> 
   </tr>
    <% c.set("OwnerUpdateMsg", "false"); 
       c.set("AdminUpateMsg", "false"); 
	   c.set("i", "0"); 
	   while (c.lt(c.var("i"), c.var("Task.count"))) { %>
      <tr class="rowaltcolor">
         <td class="mediumtext"><% if ((c.var("Task."+c.var("i")+ ".update").equals("true")) && (c.var("Task."+c.var("i")+ ".error").equals((c.string("PluginError.IncorrectVersion"))))) { %><b>*</b> &nbsp<% c.set("OwnerUpdateMsg", "true");    } %><%= c.toDisplay(c.var("Task."+c.var("i")+ ".name")) %></td>
         <td class="instructions"><%= c.toDisplay(c.var("Task."+c.var("i")+ ".role")) %></td>
         <td class="instructions"><%= c.toDisplay(c.var("Task."+c.var("i")+ ".error")) %></td>
      </tr>
         <% if (c.var("Task."+c.var("i")+ ".error").equals(c.string("PluginError.IncorrectVersion"))) { 
            c.set("AdminUpdateMsg", "true"); 
            } 
           c.inc("i"); 
	   } %>
</table>
<p>
<div class="ruleabove"><a href="javascript:window.close();"><IMG name="Close" alt="<%= c.string("Button.Close.alt") %>" title="<%= c.string("Button.Close.alt") %>" src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.Close.image") %>" border=0></a>
</body>

</HTML>
