Subversion Repositories wimsdev

Rev

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