Subversion Repositories wimsdev

Rev

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

  1. !if $(module_title_$moduclass_lang)!=$empty
  2.   !set module_title=$(module_title_$moduclass_lang)
  3. !endif
  4. !read adm/class/class.lang names.phtml
  5.  
  6. !read adm/css.phtml
  7. !header1
  8.  
  9. !read adm/class/classname.phtml $wims_classname\
  10. $wims_institutionname
  11.  
  12. !read adm/title.phtml 1\
  13. $classname\
  14. $module_title
  15.  
  16. !set wims_menu_items=!append line SE_config,1,module=adm/class/config to $wims_menu_items
  17.  
  18. !if $error!=$empty
  19.  <div class="wims_msg alert">
  20.  !read lang/msg.phtml.$moduclass_lang
  21.  </div>
  22.  !set wims_ref_class=wims_button
  23. <p class="wimscenter">
  24.  !href module=home $wims_name_back2
  25. </p>
  26.  !goto end
  27. !endif
  28.  
  29. !form reply
  30.  
  31. !if $wims_user=supervisor
  32.  !default job=user
  33.  !if $job=none
  34.    !set ch_$job=checked
  35.    <fieldset class="property_fields halfwidth blockcenter">
  36.     <legend>$wims_name_Password</legend>
  37.     <div class="field box">
  38.     $name_passwdtype
  39.     <br />
  40.      <input type="radio" name="job" $ch_user value="user" id="job" />
  41.      <label for="job2">$name_userpasswd</label>
  42.    !if $part!=$empty and $job=part
  43.      <br />
  44.      <input type="radio" name="job" $ch_part value="part" id="job2" />
  45.      <label for="job2">$name_partpasswd</label>
  46.      <div class="formHelp"><span class="tt">$part</span> ($name_warning1)</div>
  47.    !endif
  48.      <br />
  49.      <input type="radio" name="job" $ch_class value="class" id="job3" />
  50.      <label for="job3">$name_classpasswd</label>
  51.      <div class="formHelp">$name_warning1.</div>
  52.    </div>
  53.  !else
  54.     <fieldset class="property_fields halfwidth blockcenter">
  55.      <legend>
  56.       !if $class_type>0 and $job=class
  57.        $(name_$(job)passwdt)
  58.       !else
  59.        $(name_$(job)passwdt)
  60.        !if $job=part
  61.         <span class="tt">$part</span>
  62.        !endif
  63.       !endif
  64.       </legend>
  65.       <input type="hidden" name="job" value="$job" />
  66.  !endif
  67. !else
  68.   <input type="hidden" name="job" value="user" />
  69.   <fieldset class="property_fields halfwidth blockcenter">
  70. !endif
  71.  !if $job=user or $job=none
  72.   <div class="field box">
  73.    <label for="old">$name_actualpasswd</label>
  74.    <input type="password" size="16" name="old" id="old" />
  75.   </div>
  76.  !endif
  77.    <div class="field box">
  78.      <label for="pw1">$name_newpasswd</label>
  79.      <input type="password" size="16" name="pw1" id="pw1" required="required"/>
  80.    </div>
  81.    <div class="field box">
  82.      <label for="pw2">$name_newpasswd2</label>
  83.      <input type="password" size="16" name="pw2" id="pw2" required="required"/>
  84.    </div>
  85.    <div class="wimscenter wimsform">
  86.     <input type="submit" value="$wims_name_tosave" />
  87.     !set wims_ref_class=wims_button wims_secondary_button
  88.     !href module=home $wims_name_giveup
  89.    </div>
  90.   </fieldset>
  91.  
  92. <p class="small">$name_jetable
  93. !set wims_ref_class=wims_button_help
  94. !href target=wims_mhelp cmd=help $wims_name_help
  95. </p>
  96.  
  97. !formend
  98. <p>
  99. $name_alphanumer
  100. !if $wims_user=supervisor
  101.  ($name_emptypasswd).
  102. !endif
  103. </p>
  104. !endif
  105. :end
  106. !tail
  107.  
  108. !distribute item $ into job,pw1,pw2,old
  109.