<%@ page import="com.novell.webaccess.common.JSPConduit2"%>
<%   JSPConduit2 c = JSPConduit2.getJSPConduit(request); %>
<%@ taglib uri="/WEB-INF/iman.tld" prefix="iman" %>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/x.tld" prefix="x" %>
<html>
   <head><title>iManager TC Debug Task (debug/TC.jsp)</title>
      <iman:stylesheet/>
      
      <!-- include scripts necessary to use target chooser -->
      <iman:eMFrameScripts/>
      <iman:targetChooserScripts/>
         <!-- includes OSScripts_inc.jsp -->
         <!-- include ASScripts_inc.jsp -->
         <!-- calls iManMvedHeaderTag.doWork() to set up mved -->
      
      <script language="JavaScript">
         function mySubmit()
         {
            if (validateTargetChooser())  //in TC.js
            {
               document.TCForm.submit();
            }
         }
      </script>
      
   </head>
   <body onLoad="returnFromOS();">
      <form name="TCForm" method=post action="webacc">
      
      <!-- task state parameters -->
      <input type=hidden name="taskId" value="<%= c.var("taskId") %>">
      <input type=hidden name="merge" value="dev.GenConf">
      <input type=hidden name="error" value="dev.GenErr">
      <input type=hidden name="User.context" value="<%= c.var("User.context") %>">
      <input type=hidden name="nextState" value="doTC">
      
      <iman:taskHeader title="TCTask" />
      <BR/>

<%    request.setAttribute("types", new String[] {"User","Group"}); %>
      <iman:targetChooser  id="myTargetChooser" 
                           objectTypeNames="${types}"
                           advancedSelection="true"
                           advancedTypeSelection="false"
                           multipleSelection="true"
                           singleSelection="false"
                           mode="advanced"
                           initialValues="P:g123.Novell:admin.Novell:a'b.NovellP"
                           initialSelections="P:0:2:P" />      
      <BR/>
      
      <iman:bar/>
      <iman:button key="OK" onClick="mySubmit()"/>
      <iman:cancelBtn/>
      </form>
      
      <iman:osFooter/>  <!-- required since iman:targetChooserScripts does not include OSFooter_inc.jsp -->
   </body>
</html>
