Subversion Repositories wimsdev

Rev

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

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