Subversion Repositories wimsdev

Rev

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

  1. !read adm/css.phtml
  2. !read tabletheme
  3. !header1
  4.  
  5. !!if $cmd=help
  6.  !!read help.phtml
  7.  !!goto end
  8. !!endif
  9.  
  10.  
  11. !read adm/title.phtml 3\
  12. WIMS $httpd_HTTP_HOST\
  13. $title
  14.  
  15. !if $toomany=yes
  16.  !read lang/toomany.phtml.$modu_lang
  17.  !goto end
  18. !endif
  19.  
  20. !if $error!=$empty
  21.  <p>
  22.  !read lang/msg.phtml.$modu_lang
  23.  !if $restart!=no
  24.   <p>
  25.   !href module=$module&cmd=reply&step=0 $name_again
  26.  !endif
  27.  <p>
  28.  !goto end
  29. !endif
  30.  
  31. !if $step=$empty or $step=pre
  32.  $name_choose
  33.  <p>
  34.  !href cmd=reply&step=0&cltype=0 $wims_name_create_class
  35.  !set wims_menu_items=!append line create_class,1,cmd=reply&step=0&cltype=0\
  36.  to $wims_menu_items
  37.  <p>
  38.  !if 2 isitemof $alltypes
  39.   !href cmd=reply&step=0&cltype=2 $wims_name_create_superclass
  40.   !set wims_menu_items=!append line create_superclass,1,cmd=reply&step=0&cltype=2\
  41.  to $wims_menu_items
  42.  !else
  43.   <font color=blue><strike>$wims_name_create_superclass</strike></font> ($noright).
  44.  !endif
  45.  <p>
  46.  !if 4 isitemof $alltypes
  47.   !href cmd=reply&step=0&cltype=4 $wims_name_create_portal
  48.   ($name_expert)
  49.   !set wims_menu_items=!append line create_portal,1,cmd=reply&step=0&cltype=4\
  50.  to $wims_menu_items
  51.  !else
  52.   <font color=blue><strike>$wims_name_create_portal</strike></font> ($noright).
  53.  !endif
  54.  <p>
  55.  <b>$wims_name_help</b>:
  56.  !read lang/help.phtml.$modu_lang 1
  57.  !goto end
  58. !endif
  59.  
  60. !if $step=0
  61.  !read lang/help.phtml.$modu_lang 2
  62.  !form reply
  63.  <input type=hidden name="step" value=1>
  64.  $table_header
  65.  $table_tr<td><label for="institution">$name_Name_portal</label></td><td>
  66.  !if $Cltype isin 13
  67.   !default institution=$wims_institutionname
  68.  !endif
  69.   <input size=$instlim name="institution" value="$institution" id="institution"> ($name_atmost $instlim $name_characters)
  70.  </td></tr>
  71.  $table_tr<td><label for="description">$wims_name_name $name_classesss</label></td><td>
  72.   <input size=$desclim name="description" value="$description" id="description">($name_atmost $desclim $name_characters)
  73.  </td></tr>
  74.  
  75.  !if $Cltype notin 24
  76.  $table_tr<td><label for="level">$wims_name_level $name_classesss</label></td><td>
  77.   <select name="level" id="level">
  78.    !for k=1 to $nblevel
  79.     !if $(levelid[$k])=$level
  80.      <option selected value=$(levelid[$k])>$(leveldesc[$k])</option>
  81.     !else
  82.      <option value=$(levelid[$k])>$(leveldesc[$k])</option>    
  83.     !endif
  84.    !next k
  85.   </select>
  86.  </td></tr>
  87.  !endif
  88. !set suplim2 =$[rint(2*$suplim/3)]
  89.  $table_tr<td>$wims_name_Supervisor</td><td>
  90.  <label for="firstname">$wims_name_firstname</label>
  91.  <input size=$suplim2 name="firstname" value="$firstname" id="firstname">
  92.   <label for="lastname">$wims_name_lastname</label>
  93.   <input size=$suplim2 name="lastname" value="$lastname" id="lastname">
  94.  </td></tr>
  95.  
  96.  $table_tr<td><label for="email">$wims_name_email</label></td><td>
  97.   <input size=$emaillim name="email" value="$email" id="email">
  98.   !if $regpolicy=email
  99.    <br>($name_regpolicy)
  100.   !endif
  101.   <br>
  102.  </td></tr>
  103.  $table_tr<td><label for="passsup">$wims_name_Password ($name_sup)</label></td><td>
  104.   <input size=16 type=password name="passsup" id="passsup"> <small>
  105.   ($name_warningpass).
  106.   $name_help1</small>
  107.  </td></tr>
  108.  
  109.  $table_tr<td><label for="password">$wims_name_Password ($name_classesss)</label></td><td>
  110.   <input size=16 type=password name="password" id="password">
  111.   <small>($name_warningpass).
  112.   !if $Cltype<2
  113.   $name_help2
  114.   !else
  115.   $name_help3
  116.  !endif
  117.  </small>
  118.  </td></tr>
  119.  
  120.  $table_tr<td><label for="exp_day">$wims_name_expiration</label></td><td>
  121.  <select name="exp_day" id="exp_day">
  122.   !for i=1 to 31
  123.    <option value=$i
  124.    !ifval $i=$exp_day
  125.     selected
  126.    !endif
  127.    >$i
  128.   !next i
  129.   </select> <select name="exp_month" id="exp_month">
  130.   !for i=1 to 12
  131.    <option value=$i
  132.    !ifval $i=$exp_month
  133.     selected
  134.    !endif
  135.    >
  136.    !item $i of $months
  137.   !next i
  138.   </select> <select name="exp_year" id="exp_year">
  139.   !for i=$thisyear to $thisyear+1
  140.    <option value=$i
  141.    !ifval $i=$exp_year
  142.     selected
  143.    !endif
  144.    >$i
  145.   !next i
  146.   </select> <small>$name_help_date</small>
  147.  </td></tr>
  148.  
  149.  $table_tr<td><label for="limit">$name_help_limit</label></td><td>
  150.   <input size=3 name="limit" value="$limit" id="limit">
  151.   <small>(< $wims_class_user_limit.) </small>
  152.  </td></tr>
  153.  
  154.  $table_tr<td><label for="secure">$name_secure ($name_sup)</label></td><td>
  155.   !default secure=all
  156.   <input size=30 name="secure" value="$secure" id="secure">
  157.   !reset secure
  158.   <small>$name_host
  159.   !if $Cltype<3
  160.    $name_optional.
  161.   !endif
  162.   </small>
  163.  </td></tr>
  164. $table_tr<td colspan="2" align="center">
  165.  <input type=submit value="$name_continue">
  166.  </td></tr>
  167.  $table_end
  168.  </form>
  169.  
  170.  !goto end
  171. !endif
  172.  
  173. !if $step=1
  174. !read lang/help.phtml.$modu_lang step1
  175. <p>
  176.  !form reply
  177.  <input type=hidden name="step" value=2>
  178. <label for="passsup"> $wims_name_Password ($name_sup)</label>
  179.  <input type=password name="passsup" id=passsup> <p>
  180.  !if $pword!=$empty
  181.  <label for="password">$wims_name_Password ($name_classesss)</label>
  182.   <input type=password name="password" id=password> <p>
  183.  !endif
  184.  <center><input type=submit value="$name_continue"></center>
  185.  </form>
  186.  !goto end1
  187. !endif
  188.  
  189. !if $step=2
  190.  !read lang/help.phtml.$modu_lang step2
  191.  !form reply
  192.  <input type=hidden name="step" value=3>
  193.  <center><label for="typecode">$name_code</label> <input size=12 name="typecode" id="typecode">
  194.  <p><input type=submit value="$name_continue"></center>
  195.  </form>
  196.  <b>$wims_name_warning</b>: $name_warning_code
  197.  <p>
  198.  !goto end1
  199. !endif
  200.  
  201. !if $step=3
  202. !read lang/help.phtml.$modu_lang step3
  203.  !if $Cltype iswordof 0 1
  204.   !let tmp=!positionof item $ilevel in $levelid
  205.   ($wims_name_level <font color=green>$(leveldesc[$tmp])</font>).
  206.  !endif
  207.  <p>
  208.  !read lang/links.phtml.$modu_lang
  209.  !goto end
  210. !endif
  211.  
  212. :end1
  213.  
  214. :end
  215. !if $step>=0 and $cmd=reply
  216.  !set wims_menu_items=!append line back2,1,module=$module\
  217.  to $wims_menu_items
  218. !endif
  219.  
  220. !tail
  221.  
  222. !set step=
  223.  
  224.