source: extensions/lmt/admin/plugin_admin_config.tpl @ 30611

Last change on this file since 30611 was 15341, checked in by grum, 12 years ago

feature:2641 - Compatibility with Piwigo 2.4

  • Property svn:executable set to *
File size: 6.0 KB
Line 
1{literal}
2<script type="text/javascript">
3
4    //global var ; need to not have to initialize them every time a value is changed
5    var objlang;
6    var objlang2;
7    var objnames = new Array('itext');
8    var objnames2 = new Array({/literal}{$datas.objnames2}{literal});
9    var objinput = new Array();   //input text from form => objinput[name]
10    var objhidden = new Array();  //input hidden from form => objhidden[name][lang]
11    var objinput2 = new Array();   //input text from form => objinput[name]
12    var objhidden2 = new Array();  //input hidden from form => objhidden[name][lang]
13    var imgDir="{/literal}{$datas.img_directory}{literal}";
14
15  {/literal}
16  {$extended_code}
17  {literal}
18
19
20</script>
21{/literal}
22
23<form method="post" action="" class="general">
24
25  <fieldset >
26    <legend>{'lmt_general_config'|@translate}</legend>
27
28    <table class="formtable"  >
29      <tr>
30        <td class="icnhelp" title="{'lmt_help_config_2'|@translate}">{'lmt_cfg_licence_activated'|@translate}</td>
31        <td>
32          {html_options name="f_lmt_licence_activated" values=$lmt_yesno_values output=$lmt_yesno_labels selected=$datas.lmt_licence_activated}
33        </td>
34      </tr>
35
36    </table>
37  </fieldset >
38
39  <fieldset >
40    <legend>{'lmt_licence_config'|@translate}</legend>
41    <table class="formtable"  >
42
43      <tr>
44        <td class="icnhelp" title="{'lmt_help_config_3'|@translate}">{'lmt_cfg_licence_visible'|@translate}</td>
45        <td>
46          {html_options name="f_lmt_licence_visible" values=$lmt_yesno_values output=$lmt_yesno_labels selected=$datas.lmt_licence_visible}
47        </td>
48      </tr>
49
50      <tr>
51        <td>{'lmt_cfg_licence_logo'|@translate}</td>
52        <td>
53          <select name="f_lmt_licence_logo"  id="ilicence_logo" onchange="change_logodefault();">
54            {html_options values=$lmt_licence_logo_values output=$lmt_licence_logo_labels selected=$datas.lmt_licence_logo}
55          </select>
56        </td>
57      </tr>
58
59      <tr>
60        <td class="icnhelp" title="{'lmt_help_config_4'|@translate}">{'lmt_cfg_licence_default'|@translate}</td>
61        <td>
62          <select name="f_lmt_licence_default" id="ilicence_default" onchange="change_logodefault();">
63            {html_options values=$lmt_licence_default_values output=$lmt_licence_default_labels selected=$datas.lmt_licence_default}
64          </select>
65        </td>
66      </tr>
67
68      <tr>
69        <td class="icnhelp" title="{'lmt_help_config_8'|@translate}">{'lmt_cfg_licence_default_author'|@translate}</td>
70        <td>
71          <select name="f_lmt_licence_default_author" id="ilicence_default_author">
72            {html_options values=$lmt_licence_default_author_values output=$lmt_licence_default_author_labels selected=$datas.lmt_licence_default_author}
73          </select>
74        </td>
75      </tr>
76
77      <tr>
78        <td colspan=2 style="border-top:1px dotted;"></td>
79      </tr>
80
81      <tr>
82        <td>{'example'|@translate}</td>
83        <td><span id="logodefault"></span></td>
84      </tr>
85
86
87    </table>
88  </fieldset>
89
90
91  <fieldset >
92    <legend>{'lmt_warning_config'|@translate}</legend>
93    <table class="formtable"  >
94      <tr>
95        <td class="icnhelp" title="{'lmt_help_config_5'|@translate}">{'lmt_cfg_warning_visible'|@translate}</td>
96        <td>
97          {html_options name="f_lmt_warning_visible" values=$lmt_yesno_values output=$lmt_yesno_labels selected=$datas.lmt_warning_visible}
98        </td>
99      </tr>
100
101      <tr>
102        <td class="icnhelp" title="{'lmt_help_config_7'|@translate}">
103          {'lmt_cfg_warning_texts'|@translate}<br/>
104          <select onchange="change_lang();" id="islang">
105            {html_options values=$lmt_language_list_values output=$lmt_language_list_labels selected=$lmt_language_selected}
106          </select>
107        </td>
108        <td>
109        {if isset($datas.lmt_warning_texts) and count($datas.lmt_warning_texts)}
110          {foreach from=$datas.lmt_warning_texts key=name item=lang}
111            <input type="hidden" name="f_lmt_warning_texts_{$lang.lang}"
112                    id="itext_{$lang.lang}" value="{$lang.text}">
113          {/foreach}
114        {/if}
115        <textarea id="itext" rows="4" cols="60" onkeyup="apply_changes('itext');" /></textarea>
116        </td>
117      </tr>
118
119      <tr>
120        <td colspan=2 style="border-top:1px dotted;"></td>
121      </tr>
122
123      <tr>
124        <td>{'example'|@translate}</td>
125        <td><span id="textexample"></span></td>
126      </tr>
127
128
129
130    </table>
131  </fieldset>
132
133  <fieldset >
134    <legend>{'lmt_redirect_config'|@translate}</legend>
135
136    <table class="formtable"  >
137
138      <tr>
139        <td class="icnhelp" title="{'lmt_help_config_6'|@translate}">{'lmt_cfg_warning_link'|@translate}</td>
140        <td>
141          {html_options name="f_lmt_redirect_activated" values=$lmt_yesno_values output=$lmt_yesno_labels selected=$datas.lmt_redirect_activated}
142        </td>
143      </tr>
144
145      <tr>
146        <td class="icnhelp" title="{'lmt_help_config_10'|@translate}">{'lmt_cfg_warning_target'|@translate}</td>
147        <td>
148          {html_options name="f_lmt_redirect_open_target" values=$lmt_yesno_values output=$lmt_yesno_labels selected=$datas.lmt_redirect_open_target}
149        </td>
150      </tr>
151
152      <tr>
153        <td colspan=2 style="padding-top:5px;border-top:1px dotted;">
154          {'lmt_redirect_urls'|@translate}<br/>
155          <select onchange="change_urllang();" id="iurlslang">
156            {html_options values=$lmt_language_list_values output=$lmt_language_list_labels selected=$lmt_language_selected}
157          </select>
158        </td>
159      </tr>
160
161
162      {foreach from=$datas.lmt_redirect_urls key=name item=data}
163      <tr>
164        <td>{$data.text}</td>
165        <td>
166          <input type="text" value="" maxlength="250" size="50" id="i{$name}" onkeyup="apply_changes2('i{$name}')"/>
167          {foreach from=$data.langs key=lname item=lang}
168            <input type="hidden" name="f_{$name}_{$lname}" value="{$lang}" id="i{$name}_{$lname}"/>
169          {/foreach}
170        </td>
171      </tr>
172      {/foreach}
173
174    </table>
175  </fieldset >
176
177
178  <p>
179    <input type="submit" value="{'lmt_do_save'|@translate}" name="submit_save_config"/>
180  </p>
181</form>
182
Note: See TracBrowser for help on using the repository browser.