Subversion Repositories wimsdev

Rev

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

  1. !read adm/class/class.lang names.phtml
  2.  
  3. !read adm/css.phtml
  4. !header1
  5.  
  6. !read adm/class/classname.phtml $wims_classname\
  7. $wims_institutionname
  8.  
  9. !read adm/title.phtml 1\
  10. $classname\
  11. $module_title
  12.  
  13. !if $error!=$empty
  14.  <p></p>
  15.  !read lang/msg.phtml.$moduclass_lang
  16. <p>
  17. !set wims_ref_class=wims_button
  18.  !href module=home $wims_name_back2
  19. </p>
  20.  !goto end
  21. !endif
  22.  
  23. !form reply
  24.  
  25. !if $wims_user=supervisor
  26.  !default job=user
  27.  !if $job=none
  28.   $name_passwdtype :
  29.   <ul>
  30.    !set ch_$job=checked
  31.    <li><input type="radio" name="job" $ch_user value="user"/> $name_userpasswd</li>
  32.    !if $part!=$empty and $job=part
  33.     <li><input type="radio" name="job" $ch_part value="part"/> $name_partpasswd <tt>$part</tt> ($name_warning1).</li>
  34.    !endif
  35.    <li><input type="radio" name="job" $ch_class value="class"/> $name_classpasswd ($name_warning1).</li>
  36.   </ul>
  37.   $table_header
  38.  
  39.  !else
  40.    $table_header
  41.     $table_tr
  42.      <th colspan="2" align="center">
  43.       $(name_$(job)passwd)
  44.       !if $job=part
  45.        <tt>$part</tt>
  46.       !endif
  47.       <input type="hidden" name="job" value="$job"/>
  48.      </th>
  49.     </tr>
  50.  !endif
  51. !else
  52.  <input type="hidden" name="job" value="user"/>
  53.  $table_header
  54. !endif
  55.  !if $job=user or $job=none
  56.   $table_tr
  57.    <td align="right">$name_actualpasswd</td>
  58.    <td><input type="password" size="16" name="old"/></td>
  59.   </tr>
  60.  !endif
  61.  $table_tr
  62.   <td align="right">$name_newpasswd</td>
  63.   <td><input type="password" size="42" name="pw1"/></td>
  64.  </tr>
  65.  $table_tr
  66.   <td align="right">$name_newpasswd2</td>
  67.   <td><input type="password" size="42" name="pw2"/></td>
  68.  </tr>
  69.  $table_tr
  70.   <td colspan="2" align="center"><input type="submit" value="$wims_name_tosave"/></td>
  71.  </tr>
  72. $table_end
  73.  <p></p>
  74. <small>$name_jetable
  75. !set wims_ref_class=wims_button_help
  76. !href target=wims_mhelp cmd=help $wims_name_help
  77. </small>
  78. </form>
  79. <p>
  80. $name_alphanumer
  81. !if $wims_user=supervisor
  82.  ($name_emptypasswd).
  83. !endif
  84. </p>
  85. !endif
  86. :end
  87. !tail
  88.  
  89. !distribute item $ into job,pw1,pw2,old
  90.  
  91.