Subversion Repositories wimsdev

Rev

Rev 11675 | Rev 15500 | 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 password_pattern=pattern="[a-zA-Z0-9]{4,16}"
  17. !if $wims_user=supervisor
  18.   !set wims_menu_items=!append line SE_config,1,module=adm/class/config to $wims_menu_items
  19. !endif
  20. !if $error!=$empty
  21.   <div class="wims_msg
  22.    !if success iswordof $error
  23.      success
  24.    !else
  25.      alert
  26.    !endif
  27.    ">
  28.     !read lang/msg.phtml.$moduclass_lang
  29.   </div>
  30.   !set wims_ref_class=wims_button
  31.   <p class="wimscenter">
  32.     !href module=home $wims_name_back2
  33.   </p>
  34.   !goto end
  35. !endif
  36.  
  37. !form reply
  38.  
  39. !if $class_type=4 or $class_type=2 or ($class_type=3 and $class_typename!=class) or  /0// isin $wims_class//
  40.   !! in a group or portal or program or level or test zone$
  41.   !! for groups and portal, the class password is used for teachers registration
  42.   !set name_classpasswd = $name_classpasswdt
  43.   !set name_classpasswd_hlp = $name_classpasswdt_hlp
  44. !endif
  45.  
  46. <fieldset class="property_fields halfwidth blockcenter">
  47.   !if $wims_user=supervisor
  48.     !default job=user
  49.     !if $job=none
  50.       !set ch_$job=checked
  51.       <legend>$wims_name_Password</legend>
  52.       <div class="field box">
  53.         $name_passwdtype
  54.         <div>
  55.           <input type="radio" name="job" $ch_user value="user" id="job1" />
  56.           <label for="job1">$name_userpasswd</label>
  57.           <div class="formHelp">$name_userpasswd_hlp</div>
  58.         </div>
  59.         <div>
  60.           <input type="radio" name="job" $ch_class value="class" id="job2" />
  61.           <label for="job2">$name_classpasswd</label>
  62.           <div class="formHelp">$name_classpasswd_hlp</div>
  63.         </div>
  64.       </div>
  65.     !else
  66.       <legend>
  67.         $(name_$(job)passwd)
  68.         !if $job=part
  69.           <span class="tt">$part</span>
  70.         !endif
  71.       </legend>
  72.       <p class="formHelp">$(name_$(job)passwd_hlp)</p>
  73.       <input type="hidden" name="job" value="$job" />
  74.     !endif
  75.   !else
  76.     <input type="hidden" name="job" value="user" />
  77.   !endif
  78.  
  79.   !if $job=user or $job=none
  80.     <legend>$wims_name_Password</legend>
  81.     <div class="field box">
  82.       <label for="old">$name_actualpasswd</label>
  83.       <input type="password" size="16" name="old" id="old"
  84.       !if $job=user
  85.         required="required" $password_pattern
  86.       !endif
  87.       />
  88.       !if $job=none and $wims_user=supervisor
  89.         <div class="formHelp">$name_actualpasswd_hlp.</div>
  90.       !endif
  91.     </div>
  92.   !endif
  93.  
  94.   <div class="field box">
  95.     <label for="pw1">$name_newpasswd</label>
  96.     <input type="password" size="16" name="pw1" id="pw1"
  97.     !if $job=user
  98.       required="required" $password_pattern
  99.     !endif
  100.     />
  101.     <div class="formHelp">
  102.       $name_alphanumer
  103.       !if $job isitemof none,class and $wims_user=supervisor
  104.         <br/>($name_emptypasswd).
  105.       !endif
  106.     </div>
  107.   </div>
  108.   <div class="field box">
  109.     <label for="pw2">$name_newpasswd2</label>
  110.     <input type="password" size="16" name="pw2" id="pw2"
  111.     !if $job=user
  112.       required="required" $password_pattern
  113.     !endif
  114.     />
  115.   </div>
  116.   <div class="wimscenter wimsform">
  117.     <input type="submit" value="$wims_name_tosave" />
  118.     !set wims_ref_class=wims_button wims_secondary_button
  119.     !href module=home $wims_name_giveup
  120.   </div>
  121. </fieldset>
  122.  
  123. !if $job notwordof class
  124.   <p class="small wimscenter">
  125.     $name_jetable
  126.     !set wims_ref_class=wims_button_help
  127.     !href target=wims_mhelp cmd=help $wims_name_help
  128.   </p>
  129. !endif
  130.  
  131. !formend
  132.  
  133. :end
  134. !tail
  135.  
  136. !distribute item $ into job,pw1,pw2,old
  137.