Subversion Repositories wimsdev

Rev

Rev 16267 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
16267 guerimand 1
!! change motd and supervsor message in log file
2
 
3
 
4
!if $motd_option!=$empty
5
  !goto view
6
!endif
7
 
8
!if $motd_lang=$empty
9
  !set motd_lang=$lang
10
  !set motdfile=motd.phtml.$lang
11
!endif
12
 
13
<p>$name_motdintro</p>
14
 
15
!form reply
16
  <fieldset class="property_fields">
17180 bpr 17
    <input type="hidden" name="job" value="motd">
16267 guerimand 18
    <div class="field box">
19
      <label for="motd_type">$name_motdtypename</label>
20
      !set wims_ref_class=wims_formradio
21
      !default motd_type=1
22
      <select id="motd_type" name="motd_type" onchange="submit()">
23
        !for j=1 to 2
24
          <option value="$j"
25
            !if $motd_type=$j
26
              selected="selected"
27
            !endif
28
          >$(name_motdtype[$j])</option>
29
        !next j
30
      </select>
31
      !set wims_ref_class=wims_button_help
32
      !href cmd=help&help_subject=motd&help_conf=modtd $wims_name_help
33
    </div>
34
    <div class="field box fullwidth">
35
      <strong>$wims_name_Language</strong>
36
      <ul class="dropdown menu" data-dropdown-menu>
17180 bpr 37
        <li><a><img src="gifs/$motd_lang.gif" alt="$(Lang_name_$motd_lang)" class="vignette"> $(Lang_name_$motd_lang)</a>
16267 guerimand 38
          <ul class="language_selector">
39
            !for i=1 to $wims_language_cnt
40
              !set l=!word $i of $wims_site_languages
41
              !set l_=<span class="legende">$(lang_name_$l)</span>
42
              <li class="menuitem
43
                !set wims_ref_title=$(Lang_name_$l)
44
                !if $l!=$motd_lang
45
                  ">
17180 bpr 46
                  !href module=adm/manage&motd_lang=$l&cmd=reply <img src="gifs/$l.gif" alt="$(Lang_name_$l)" class="vignette">$l_
16267 guerimand 47
                !else
48
                  disabled">
17180 bpr 49
                  <a class="current"><img src="gifs/$l.gif" alt="$(Lang_name_$l)" class="vignette">$l_ <span class="smaller">($wims_name_current)</span></a>
16267 guerimand 50
                !endif
51
              </li>
52
            !next i
53
          </ul>
54
        </li>
55
      </ul>
56
      <div class="formHelp">$name_motdlangdesc</div>
57
    </div>
58
    <div class="field box">
59
      <label for="motd_desc">$name_motddesc</label>
60
      <textarea id="motd_desc" name="motd_desc" rows="6" maxlength="$msg_limit" required>
61
!record 0 of wimshome/log/$motdfile
62
</textarea>
63
    </div>
64
    <div class="wimscenter">
17180 bpr 65
      <input type="submit" name="save" value="$wims_name_tosave">
16267 guerimand 66
 
67
      !set wims_ref_class=wims_button wims_secondary_button
68
      !href module=$module&+job=$empty $wims_name_giveup
69
 
70
      !set wims_ref_class=wims_button
71
      !let r=!randint 1,100000
72
      !href target=wims_view module=$module&+job=motd&+motd_option=$motd_type&+r=$r $name_motdview
73
    </div>
74
  </fieldset>
75
!formend
76
 
77
!exit
78
 
17180 bpr 79
:view
16176 obado 80
!! view motd and supervisor message in log file
16173 guerimand 81
 
82
<h2>$(name_motd_intro2[$motd_option])</h2>
17180 bpr 83
<br>
16185 guerimand 84
$name_motd_introdesc
16173 guerimand 85
<ul>
86
  !for i=1 to $wims_language_cnt
87
    !set l=!word $i of $wims_site_languages
88
    !set l_=<span class="legende">$(lang_name_$l)</span>
17180 bpr 89
    <li><img src="gifs/$l.gif" alt="$(Lang_name_$l)" class="vignette">$l_
16173 guerimand 90
    !if $motd_option=1
16176 obado 91
      <div id="wims_motd" class="wims_motd">
16173 guerimand 92
    !else
16176 obado 93
      <div id="wims_class_manager_msg" class="wims_class_manager_msg">
16173 guerimand 94
    !endif
95
       !record 0 of wimshome/log/$(listfile[$motd_option]).$l
96
    </div>
97
    </li>
98
  !next i
99
</ul>
16267 guerimand 100
!reset motd_option