Subversion Repositories wimsdev

Rev

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