Rev 16185 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 16185 | Rev 16267 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 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"> |
|
- | 17 | <input type="hidden" name="job" value="motd" /> |
|
- | 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> |
|
- | 37 | <li><a><img src="gifs/$motd_lang.gif" alt="$(Lang_name_$motd_lang)" class="vignette"/> $(Lang_name_$motd_lang)</a> |
|
- | 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 | "> |
|
- | 46 | !href module=adm/manage&motd_lang=$l&cmd=reply <img src="gifs/$l.gif" alt="$(Lang_name_$l)" class="vignette" />$l_ |
|
- | 47 | !else |
|
- | 48 | disabled"> |
|
- | 49 | <a class="current"><img src="gifs/$l.gif" alt="$(Lang_name_$l)" class="vignette"/>$l_ <span class="smaller">($wims_name_current)</span></a> |
|
- | 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"> |
|
- | 65 | <input type="submit" name="save" value="$wims_name_tosave" /> |
|
- | 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 | ||
- | 79 | :view |
|
1 | !! view motd and supervisor message in log file |
80 | !! view motd and supervisor message in log file |
2 | 81 | ||
3 | <h2>$(name_motd_intro2[$motd_option])</h2> |
82 | <h2>$(name_motd_intro2[$motd_option])</h2> |
4 | <br/> |
83 | <br/> |
5 | $name_motd_introdesc |
84 | $name_motd_introdesc |
Line 16... | Line 95... | ||
16 | !record 0 of wimshome/log/$(listfile[$motd_option]).$l |
95 | !record 0 of wimshome/log/$(listfile[$motd_option]).$l |
17 | </div> |
96 | </div> |
18 | </li> |
97 | </li> |
19 | !next i |
98 | !next i |
20 | </ul> |
99 | </ul> |
- | 100 | !reset motd_option |