Subversion Repositories wimsdev

Rev

Rev 7474 | Rev 9426 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !read adm/levelname.phtml
  2. !read adm/css.phtml
  3. !read tabletheme
  4. !header1
  5.  
  6. <!-- Begin regclass/main.phtml -->
  7.  
  8. <!--!read adm/title.phtml 3\-->
  9. <div class="title_box">
  10.         <h1 class="wims_title">
  11.                 <!--WIMS $httpd_HTTP_HOST\-->
  12.                 $title
  13.         </h1>
  14. </div>
  15.  
  16. !if $toomany=yes
  17.  !read lang/toomany.phtml.$modu_lang
  18.  !goto end
  19. !endif
  20.  
  21. !if $error!=$empty
  22.  <div class="wims_alertmsg">
  23.  !read lang/msg.phtml.$modu_lang
  24.  </div>
  25.  !if $restart!=no
  26.   <p>
  27.    !href module=$module&cmd=reply&step=0 $name_again
  28.   </p>
  29.  !endif
  30.  !goto end
  31. !endif
  32.  
  33. !if $step=$empty or $step=pre
  34.  
  35. !!read local.phtml
  36. <div class="wims_content">
  37.  $name_choose
  38.  
  39.   <p>
  40.    !href cmd=reply&step=0&cltype=0 $wims_name_create_class
  41.   </p>
  42.  
  43.   !set wims_menu_items=!append line create_class,1,cmd=reply&step=0&cltype=0\
  44.   to $wims_menu_items
  45.  
  46.   <p>
  47.    !if 2 isitemof $alltypes
  48.     !href cmd=reply&step=0&cltype=2 $wims_name_create_superclass
  49.     !set wims_menu_items=!append line create_superclass,1,cmd=reply&step=0&cltype=2\
  50.     to $wims_menu_items
  51.    !else
  52.     <span class="wims_emph"><strike>$wims_name_create_superclass</strike></span> ($noright).
  53.    !endif
  54.   </p>
  55.  
  56.   <p>
  57.    !if 4 isitemof $alltypes
  58.     !href cmd=reply&step=0&cltype=4 $wims_name_create_portal
  59.     ($name_expert)
  60.     !set wims_menu_items=!append line create_portal,1,cmd=reply&step=0&cltype=4\
  61.     to $wims_menu_items
  62.    !else
  63.     <span class="wims_emph"><strike>$wims_name_create_portal</strike></span> ($noright).
  64.    !endif
  65.   </p>
  66.  
  67.   <span class="wims_warning">$wims_name_help</span>:
  68.   !read lang/help.phtml.$modu_lang 1
  69.  </div>
  70.  !goto end
  71.  
  72. !endif
  73.  
  74. !if $step=0
  75.  !read lang/help.phtml.$modu_lang 2
  76.  
  77.  !form reply
  78.  <input type="hidden" name="step" value="1" />
  79.  
  80. <fieldset class="property_fields blockcenter">
  81.     <legend>$name_classe</legend>
  82.     <div class="field box">
  83.      <label for="institution">$name_Name_portal</label>
  84.   !if $Cltype isin 13
  85.    !let institution=$wims_institutionname
  86.    $institution
  87.   !else
  88.    <input size="$instlim" name="institution" value="$institution" id="institution" maxlength="$instlim" />
  89.    <div class="formHelp">$name_atmost $instlim $name_characters</div>
  90.   !endif
  91.    </div>
  92.  
  93.    <div class="field box">
  94.     <label for="description">$wims_name_name $name_classesss</label>
  95.     <input size="$desclim" name="description" value="$description" id="description" maxlength="$desclim" />
  96.     <div class="formHelp">$name_atmost $desclim $name_characters</div>
  97.   </div>
  98.   !if $Cltype notin 24
  99.    !set nblevel=!itemcnt $wims_listlevel
  100.    <div class="field box">
  101.     <label for="level">$wims_name_level $name_classesss</label>
  102.      <select name="level" id="level">
  103.    !for k=1 to $nblevel
  104.     !if $(wims_listlevel[$k])=$level
  105.      <option selected="selected" value="$(wims_listlevel[$k])">$(name_wims_listlevel[$k])</option>
  106.     !else
  107.      <option value="$(wims_listlevel[$k])">$(name_wims_listlevel[$k])</option>
  108.     !endif
  109.     !next k
  110.    </select>
  111.    </div>
  112.  !endif
  113.  
  114.   !set suplim2 =$[rint($suplim/3)]
  115.   !set emaillim2= $[rint(2*$emaillim/3)]
  116.  !if $Cltype=1
  117.   <div class="field box">
  118.   !let firstname=$wims_firstname
  119.   !let lastname=$wims_lastname
  120.   $wims_name_Supervisor: $wims_firstname $wims_lastname
  121.   </div>
  122.  !else
  123.   <div class="field box halfwidth">
  124.     <label for="firstname">$wims_name_firstname</label>
  125.     <input size="$suplim2" name="firstname" value="$firstname" id="firstname" />
  126.     <div class="formHelp">$wims_name_Supervisor</div>
  127.   </div>
  128.   <div class="field box halfwidth">
  129.     <label for="lastname">$wims_name_lastname</label>
  130.     <input size="$suplim2" name="lastname" value="$lastname" id="lastname" maxlength="$suplim2" />
  131.     <div class="formHelp">$wims_name_Supervisor</div>
  132.   </div>
  133.  !endif
  134.  
  135.    <div class="field box">
  136.      <label for="email">$wims_name_email</label>
  137.     !if $Cltype=1 and $email!=$empty
  138.       !default email=$email
  139.       $email
  140.     !else
  141.       <input size="$emaillim2" name="email" value="$email" id="email" maxlength="$emaillim2" />
  142.     !endif
  143.     !if $regpolicy=email
  144.       <div class="formHelp">$name_regpolicy</div>
  145.      !endif
  146.    </div>
  147.    !if $Cltype!=1
  148.     <div class="field box halfwidth">
  149.      <label for="passsup">$wims_name_Password ($name_sup)</label>
  150.      <input size="16" type="password" name="passsup" id="passsup" maxlength="16" />
  151.      <div class="formHelp">$name_warningpass. $name_help1</div>
  152.     </div>
  153.     <div class="field box halfwidth">
  154.     !else
  155.     <div class="field box">
  156.    !endif
  157.      <label for="password">$wims_name_Password ($name_classesss)</label>
  158.      <input size="16" type="password" name="password" id="password" maxlength="16" />
  159.      <div class="formHelp">$name_warningpass.
  160.       !if $Cltype<2
  161.        $name_help2
  162.      !else
  163.        $name_help3
  164.      !endif
  165.      </div>
  166.    </div>
  167.    <div class="field box halfwidth">
  168.     <label for="exp_day">$wims_name_expiration</label>
  169.     <select name="exp_day" id="exp_day">
  170.   !for i=1 to 31
  171.    <option value="$i"
  172.    !ifval $i=$exp_day
  173.     selected="selected"
  174.    !endif
  175.    >$i
  176.    </option>
  177.   !next i
  178.   </select>
  179.   <select name="exp_month" id="exp_month">
  180.   !for i=1 to 12
  181.    <option value="$i"
  182.    !ifval $i=$exp_month
  183.     selected="selected"
  184.    !endif
  185.    >
  186.    !item $i of $months
  187.    </option>
  188.   !next i
  189.   </select>
  190.   <select name="exp_year" id="exp_year">
  191.   !for i=$thisyear to $thisyear+1
  192.    <option value="$i"
  193.    !ifval $i=$exp_year
  194.     selected="selected"
  195.    !endif
  196.    >$i
  197.    </option>
  198.   !next i
  199.   </select>
  200.   <div class="formHelp">$name_help_date</div>
  201.   </div>
  202.    <div class="field box halfwidth">
  203.      <label for="limit">$name_help_limit</label>
  204.     !let num=!charcnt $wims_class_user_limit
  205.     <input size="3" name="limit" value="$limit" id="limit" maxlength="$num" />
  206.     <div class="formHelp">&lt; $wims_class_user_limit</div>
  207.   </div>
  208.  
  209.    <div class="field box">
  210.      <label for="secure">$name_secure ($name_sup)</label>
  211.      !!!default secure=all
  212.      <input size="30" name="secure" value="$secure" id="secure" />
  213.      <div class="formHelp">$name_host</div>
  214.     !reset secure
  215.   !!!if $Cltype<3
  216.   !! $name_optional.
  217.   !!!endif
  218.    </div>
  219.    !if $cltype isin 024
  220.     <div class="field box">
  221.      <label for="cas_auth">$name_cas ($name_optional)</label>
  222.      <input size="30" name="cas_auth" value="$cas_auth" id="cas_auth" />
  223.      <div class="formHelp">$name_cas_help</div>
  224.     </div>
  225.   !endif
  226.   <div class="wimscenter wimsform">
  227.    <input type="submit" value="$name_continue" />
  228.   </div>
  229. </fieldset>
  230.  
  231. !formend
  232.  
  233.  !goto end
  234. !endif
  235.  
  236. !if $step=1
  237. !read lang/help.phtml.$modu_lang step1
  238.  
  239.  !form reply
  240.  <input type="hidden" name="step" value="2" />
  241.  <fieldset class="property_fields blockcenter">
  242.   !if $Cltype!=1
  243.    <div class="field box">
  244.     <label for="passsup"> $wims_name_Password ($name_sup)</label>
  245.     <input type="password" name="passsup" id="passsup" maxlength="16" />
  246.    </div>
  247.   !endif
  248.   !if $pword!=$empty
  249.    <div class="field box">
  250.      <label for="password">$wims_name_Password</label>
  251.      <input type="password" name="password" id="password" maxlength="16" />
  252.      <div class="formHelp">$name_classesss</div>
  253.    </div>
  254.   !endif
  255.    <div class="wimscenter wimsform">
  256.     <input type="submit" value="$name_continue" />
  257.    </div>
  258.  </fieldset>
  259. !formend
  260.  !goto end1
  261. !endif
  262.  
  263. !if $step=2
  264.  !read lang/help.phtml.$modu_lang step2
  265.  !form reply
  266.  <input type="hidden" name="step" value="3" />
  267.    <fieldset class="property_fields blockcenter">
  268.     <div class="field box">
  269.      <label for="typecode">$name_code</label>
  270.      <input size="12" name="typecode" id="typecode" />
  271.     </div>
  272.     <div class="wimscenter wimsform">
  273.      <input type="submit" value="$name_continue" />
  274.     </div>
  275.    </fieldset>
  276.  
  277. !formend
  278.  <span class="wims_warning">$wims_name_warning</span>:
  279.  <span class="warning_code">$name_warning_code</span>
  280.  !goto end1
  281. !endif
  282.  
  283. !if $step=3
  284.  !read lang/help.phtml.$modu_lang step3
  285.  !if $Cltype iswordof 0 1
  286.   !let tmp=!positionof item $ilevel in $wims_listlevel
  287.   ($wims_name_level <span class="wims_emph">$(name_wims_listlevel[$tmp])</span>).
  288.  !endif
  289.  !read adm/class/initclass $code,auth
  290.  !if $(class_authidp[1;])=cas
  291.    !set link_=$host_auth/login?service=
  292.  !else
  293.    !set link_=http://$httpd_HTTP_HOST$httpd_SCRIPT_NAME?
  294.  !endif
  295.  <br class="spacer" />
  296.  !read adm/class/links.phtml $code
  297.  !goto end
  298. !endif
  299.  
  300. :end1
  301.  
  302. :end
  303. !if $step>=0 and $cmd=reply
  304.  !set wims_menu_items=!append line back2,1,module=$module\
  305.  to $wims_menu_items
  306. !endif
  307.  
  308. !tail
  309.  
  310. !set step=
  311.