Subversion Repositories wimsdev

Rev

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

  1. !!!### language independant
  2. !set wims_form_method=file
  3.  
  4. !form reply
  5. <input type="hidden" name="up_job" value="present" />
  6. <fieldset class="property_fields blockcenter">
  7.   <legend>$title</legend>
  8.  
  9.   <div class="field box halfwidth">
  10.     <label for="pr_logo">$name_logo</label>
  11.     !set wims_ref_class=wims_button_help float_right
  12.     !href cmd=help&special_parm=config&special_parm2=logo $wims_name_help
  13.     <input size="35" name="pr_logo" id="pr_logo" value="$class_logo" />
  14.   </div>
  15.  
  16.   <div class="field box halfwidth">
  17.     <label for="pr_logoside">$name_position_logo</label>
  18.     !set wims_ref_class=wims_button_help float_right
  19.     !href cmd=help&special_parm=config&special_parm2=logo $wims_name_help
  20.     !set pr_logoside=$class_logoside
  21.     !formselect pr_logoside list left,right prompt $name_logo_side
  22.   </div>
  23.  
  24.   <div class="field box halfwidth">
  25.     <label for="pr_bgcolor">$name_background_color</label>
  26.     !set wims_ref_class=wims_button_help float_right
  27.     !href cmd=help&special_parm=config&special_parm2=bgcolor $wims_name_help
  28.     <input size="10" name="pr_bgcolor" id="pr_bgcolor" value="$class_bgcolor" type="color" />
  29.   </div>
  30.  
  31.   <div class="field box halfwidth">
  32.     <label for="pr_bgimg">$name_image</label>
  33.     !set wims_ref_class=wims_button_help float_right
  34.     !href cmd=help&special_parm=config&special_parm2=bgimg $wims_name_help
  35.     <input size="35" name="pr_bgimg" id="pr_bgimg" value="$class_bgimg" />
  36.   </div>
  37.  
  38.   <div class="field box halfwidth">
  39.     <label for="pr_refcolor">$name_menu_color</label>
  40.     !set wims_ref_class=wims_button_help float_right
  41.     !href cmd=help&special_parm=config&special_parm2=bgcolor $wims_name_help
  42.     <input size="10" name="pr_refcolor" id="pr_refcolor" value="$class_refcolor" type="color" />
  43.   </div>
  44.  
  45.   <div class="field box halfwidth">
  46.     <label for="pr_ref_menucolor">$name_refmenu_color</label>
  47.     !set wims_ref_class=wims_button_help float_right
  48.     !href cmd=help&special_parm=config&special_parm2=bgcolor $wims_name_help
  49.     <input size="10" name="pr_ref_menucolor" id="pr_ref_menucolor" value="$class_ref_menucolor" type="color" />
  50.   </div>
  51.  
  52.   <div class="field box halfwidth">
  53.     <label for="pr_ref_button_bgcolor">$name_button_bgcolor</label>
  54.     !set wims_ref_class=wims_button_help float_right
  55.     !href cmd=help&special_parm=config&special_parm2=bgcolor $wims_name_help
  56.     <input size="10" name="pr_ref_button_bgcolor" id="pr_ref_button_bgcolor" value="$class_ref_button_bgcolor" type="color" />
  57.   </div>
  58.  
  59.   <div class="field box halfwidth">
  60.     <label for="pr_ref_button_color">$name_button_color</label>
  61.     !set wims_ref_class=wims_button_help float_right
  62.     !href cmd=help&special_parm=config&special_parm2=bgcolor $wims_name_help
  63.     <input size="10" name="pr_ref_button_color" id="pr_ref_button_color" value="$class_ref_button_color" type="color" />
  64.   </div>
  65.  
  66.   <div class="field box halfwidth">
  67.     <label for="pr_ref_button_help_bgcolor">$name_button_help_bgcolor</label>
  68.     !set wims_ref_class=wims_button_help float_right
  69.     !href cmd=help&special_parm=config&special_parm2=bgcolor $wims_name_help
  70.     <input size="10" name="pr_ref_button_help_bgcolor" id="pr_ref_button_help_bgcolor" value="$class_ref_button_help_bgcolor" type="color" />
  71.   </div>
  72.  
  73.   <div class="field box halfwidth">
  74.     <label for="pr_ref_button_help_color">$name_button_help_color</label>
  75.     !set wims_ref_class=wims_button_help float_right
  76.     !href cmd=help&special_parm=config&special_parm2=bgcolor $wims_name_help
  77.     <input size="10" name="pr_ref_button_help_color" id="pr_ref_button_help_color" value="$class_ref_button_help_color" type="color" />
  78.   </div>
  79.  
  80.   <div class="field box">
  81.     <strong>$name_colorscore</strong>
  82.     <p class="wimscenter">
  83.       !read adm/class/colors
  84.       <input size="5" id="pr_sccolor12" name="pr_sccolor12" value="$(class_scorecolor[12])" type="color" />
  85.       !for col=1 to 11
  86.        <label for="pr_sccolor$col" class="show-for-sr">$[$col-1]</label>
  87.         <input size="5" id="pr_sccolor$col" name="pr_sccolor$col" value="$(class_scorecolor[$col])" type="color" />
  88.       !next col
  89.     </p>
  90.     <div class="formHelp">$name_helpcolor</div>
  91.   </div>
  92.  
  93.   <div class="field box">
  94.     <strong>$name_coloract</strong>
  95.     <div>
  96.       !set actcolor_list=color,sheet,exam,doc,vote,exo,tool
  97.       !set name_actcolor=$name_act_color,$name_sheets,$name_exam, $wims_name_docs,$name_vote,$wims_name_exercises,$wims_name_tools
  98.       !set actcolor_cnt=!itemcnt $actcolor_list
  99.       !set DF_actcolor=!defof DF_actcolor in wimshome/public_html/bases/sys/defaults.conf
  100.       !for col=1 to $actcolor_cnt
  101.         !set color_tmp=$(class_actcolor[$col])
  102.         !default color_tmp=$(DF_actcolor[$col])
  103.         <div class="inline" style="margin-right:1em;">
  104.           <label for="pr_actcolor$col">$(name_actcolor[$col])</label>&nbsp;<input
  105.           size="5" id="pr_actcolor$col" name="pr_actcolor$col" value="$color_tmp" type="color" />
  106.         </div>
  107.       !next col
  108.     </div>
  109.   </div>
  110.  
  111.   <div class="field box halfwidth">
  112.     <label for="pr_theme">$name_theme</label>
  113.     !set wims_ref_class=wims_button_help float_right
  114.     !href cmd=help&special_parm=config&special_parm2=theme $wims_name_help
  115.  
  116.     !set pr_theme=$class_theme
  117.     !formselect pr_theme list $themelist
  118.   </div>
  119.  
  120.   <div class="field box halfwidth">
  121.     <label for="pr_theme_icon">$name_theme_icon</label>
  122.     !set wims_ref_class=wims_button_help float_right
  123.     !href cmd=help&special_parm=config&special_parm2=icon $wims_name_help
  124.     !set pr_theme_icon=$class_theme_icon
  125.     !formselect pr_theme_icon list $iconlist prompt $iconpromptlist
  126.   </div>
  127.  
  128.   <div class="field box halfwidth">
  129.     <label for="pr_css">$name_css (css)</label>
  130.     !set wims_ref_class=wims_button_help float_right
  131.     !href cmd=help&special_parm=config&special_parm2=css $wims_name_help
  132.  
  133.     !set pr_css=$class_css
  134.     !formselect pr_css list $csslist
  135.   </div>
  136.  
  137.   <div class="field box halfwidth">
  138.     <p>
  139.       <label for="wims_deposit">$name_css_transfer ($name_content_style)</label>
  140.       <input type="file" name="wims_deposit" id="wims_deposit"  />
  141.     </p>
  142.     <p>
  143.       <label for="pr_cssfile">$name_content_style2</label>
  144.       <textarea rows="6" cols="45" name="pr_cssfile" id="pr_cssfile" placeholder=".toto {color:red}">$cssfile</textarea>
  145.     </p>
  146.   </div>
  147.   <div class="field box halfwidth">
  148.      <label for="pr_homepage">$wims_name_class_home</label>
  149.      !set wims_ref_class=wims_button_help float_right
  150.      !href cmd=help&special_parm=config&special_parm2=homepage $wims_name_help
  151.      <input size="35" name="pr_homepage" id="pr_homepage" value="$class_homepage" />
  152.   </div>
  153.  
  154.   <div class="fullwidth wimscenter wimsform">
  155.      <input type="submit" name="save" value="$wims_name_tosave" />
  156.  $
  157.      <input type="submit" name="abandon" value="$wims_name_giveup" class="wims_secondary_button" />
  158.   </div>
  159. </fieldset>
  160. !formend
  161.  
  162.  
  163. !reset pr_logo, pr_logoside, pr_bgcolor,pr_refcolor, pr_ref_menucolor,\
  164.   pr_ref_button_color,pr_ref_button_bgcolor,pr_ref_button_help_color,pr_ref_button_help_bgcolor, \
  165.   pr_bgimg, pr_theme, pr_css, pr_theme_icon, pr_homepage, pr_cssfile
  166.