source: extensions/music_player/template/admin_edit.tpl @ 16931

Last change on this file since 16931 was 10294, checked in by flop25, 14 years ago

better management of the config : no more notice and defaut value if empty
code a bit cleaner

File size: 6.5 KB
Line 
1<div class="titrePage">
2  <ul class="categoryActions">
3    <li><a href="admin.php?page=plugin&section=music_player/admin/help.php" title="{'Help'|@translate}">{'mp_need_help'|@translate}</a></li>
4  </ul>
5  <h2>Music player / {$PLAYLIST}</h2>
6</div>
7{foreach from=$edit_txt item=edit_txt}
8<form action="" method="post" name="edit_txt">
9  {'mp_adm_edit_1'|@translate} :
10  <input name="texte" type="text" value="{$edit_txt.TXT}" maxlength="255" />
11  <input name="id" type="hidden" value="{$edit_txt.ID}" />
12  <input name="envoi" value="edit_txt" type="hidden" />
13  <input name="submit" value="OK" type="submit" />
14</form>
15<p><a href="admin.php?page=plugin&amp;section=music_player/admin/admin.php">{'mp_adm_return'|@translate}</a></p>
16{/foreach}
17
18{foreach from=$edit_ex item=edit_ex}
19<form action="" method="post" name="edit_ex">
20  {'mp_adm_edit_1'|@translate} :
21  <input name="texte" type="text" value="{$edit_ex.TXT}" maxlength="255" />
22  <br />
23  URL :
24  <input name="url" type="text" value="{$edit_ex.URL}" size="60" maxlength="255" />
25  <input name="id" type="hidden" value="{$edit_ex.ID}" />
26  <input name="envoi" value="edit_ex" type="hidden" />
27  <input name="submit" value="OK" type="submit" />
28</form>
29<p><a href="admin.php?page=plugin&amp;section=music_player/admin/admin.php">{'mp_adm_return'|@translate}</a></p>
30{/foreach}
31
32{foreach from=$suppr item=suppr}
33<form action="admin.php?page=plugin&amp;section=music_player/admin/admin_edit.php&music={$suppr.PL}" method="post" name="suppr">
34  <input name="envoi" type="hidden" value="suppr" />
35  <input name="id" type="hidden" value="{$suppr.ID}" />
36  <input name="submit" value="{'mp_adm_ed_sup_ok'|@translate}" type="submit" />
37  {'mp_adm_ed_sup_info'|@translate}
38</form>
39<p><a href="admin.php?page=plugin&amp;section=music_player/admin/admin_edit.php&music={$suppr.PL}">{'mp_adm_return_2'|@translate}</a></p>
40{/foreach}
41{foreach from=$edit_music item=edit_music}
42<form action="" method="post" name="edit_music">
43  Texte :
44  <input name="nom" type="text" value="{$edit_music.NOM}" size="40" maxlength="255" />
45  <br />
46  URL :
47  <input name="url" type="text" value="{$edit_music.URL}" size="80" maxlength="255" />
48  <input name="id" type="hidden" value="{$edit_music.ID}" />
49  <input name="envoi" type="hidden" value="edit_music" />
50  <input name="submit" value="OK" type="submit" />
51</form>
52<p><a href="admin.php?page=plugin&amp;section=music_player/admin/admin_edit.php&music={$edit_music.PL}">{'mp_adm_return_2'|@translate}</a></p>
53{/foreach}
54
55{if isset($etape_ID)}
56<fieldset>
57<legend>{'mp_adm_etape_1'|@translate}</legend>
58<form id="form1" name="form1" method="post" action="">
59  <div align="center">{'mp_adm_et1_txt'|@translate}
60    <input type="hidden" name="id_playlist" id="hiddenField" value="{$etape_ID}" />
61    <input type="hidden" name="envoi" id="hiddenField" value="synchro_bdd" />
62    <input type="submit" name="button" id="button" value="{'mp_adm_edit_3'|@translate}" />
63  </div>
64</form>
65</fieldset>
66<fieldset>
67<legend>{'mp_adm_etape_2'|@translate}</legend>
68{'mp_adm_et2_txt'|@translate}
69<form id="form1" name="form1" method="post" action="">
70  {'mp_adm_et2_nbr'|@translate}
71  <input name="nbr_ajout" type="text" id="nbr_ajout" size="3" maxlength="2" />
72  <input type="submit" name="button" id="button" value="OK" />
73</form>
74<form action="" method="post" name="edit_music">
75  {foreach from=$ajout item=ajout}<!-- BEGIN ajout -->
76  <fieldset>
77  Texte :
78  <input name="nom_{$ajout.I}" type="text" size="40" maxlength="255" />
79  {'mp_adm_et2_rg'|@translate}
80  <input name="rang_{$ajout.I}" type="text" size="3" maxlength="20" />
81  {'mp_adm_et2_rg2'|@translate}<br />
82  URL :
83  <input name="url_{$ajout.I}" type="text" size="80" maxlength="255" />
84  </fieldset>
85  {/foreach}
86  <input name="nbr" type="hidden" value="{$etape_I}" />
87  <input name="envoi" type="hidden" value="ajout" />
88  <input name="submit" value="{'mp_send'|@translate}" type="submit" />
89</form>
90</fieldset>
91{/if}<!-- etape -->
92
93{if isset($playlist_TEXTE)}
94<fieldset>
95<legend>{'mp_adm_etape_3'|@translate}</legend>
96{'mp_adm_edit_2'|@translate} &quot;<em>{$playlist_TEXTE}&quot;</em> {'mp_adm_envoi_2'|@translate} :
97<table id="list_music" class="table2">
98  <thead>
99    <tr class="throw">
100      <td>{'mp_adm_thead1'|@translate}</td>
101      <td>{'mp_adm_thead2'|@translate}</td>
102      <td>{'mp_adm_thead3'|@translate}</td>
103      <td>{'mp_adm_thead4'|@translate}</td>
104      <td>{'mp_adm_thead5'|@translate}</td>
105      <td>{'mp_adm_thead6'|@translate}</td>
106    </tr>
107  </thead>
108  {foreach from=$music item=music}<!-- BEGIN music -->
109  <tr class="{$music.CLASS}">
110    <td>{$music.NOM}</td>
111    <td>{$music.FILE}</td>
112        <td>
113    {if isset ($music.UP_RANG)}
114      <form action="" method="post">
115        <input name="rang" type="hidden" value="{$music.UP_RANG}" />
116        <input name="nouv_rang" type="hidden" value="{$music.UP_RANG_NEW}" />
117        <input type="hidden" name="envoi" id="hiddenField" value="rang" />
118        <input type="image" name="up" src="plugins/music_player/template/icon/page_top.png" />
119      </form>
120        {/if}
121    </td>
122    <td>
123    {if isset ($music.D_RANG)}
124      <form action="" method="post">
125        <input name="rang" type="hidden" value="{$music.D_RANG}" />
126        <input name="nouv_rang" type="hidden" value="{$music.D_RANG_NEW}" />
127        <input type="hidden" name="envoi" id="hiddenField" value="rang" />
128        <input type="image" name="down" src="plugins/music_player/template/icon/page_end.png" />
129      </form>
130    {/if}
131    </td>
132    <td><a href="admin.php?page=plugin&section=music_player/admin/admin_edit.php&music_id={$music.ID}" title="{'mp_admin_nm_edit'|@translate}"><img src="{$pwg_root}{$themeconf.icon_dir}/category_edit.png" class="button" alt="{'mp_admin_nm_edit'|@translate}"></a></td>
133    <td><a href="admin.php?page=plugin&section=music_player/admin/admin_edit.php&suppr={$music.ID}" title="{'delete'|@translate}"><img src="{$pwg_root}{$themeconf.icon_dir}/delete.png" class="button" alt="{'delete'|@translate}"></a> </td>
134  </tr>
135  {/foreach}<!-- END music -->
136</table>
137</fieldset>
138<fieldset>
139<legend>{'mp_adm_etape_4'|@translate}</legend>
140<form id="form1" name="form1" method="post" action="">
141  <div align="center"> ===>{'mp_adm_et4_txt'|@translate}
142    <input type="hidden" name="id_playlist" id="hiddenField" value="{$playlist_ID}" />
143    <input type="hidden" name="envoi" id="hiddenField2" value="synchro_xml" />
144    <input type="submit" name="button" id="button" value="{'mp_adm_et4_ok'|@translate}" />
145    <=== </div>
146</form>
147</fieldset>
148
149<p><a href="admin.php?page=plugin&amp;section=music_player/admin/admin.php">{'mp_adm_return'|@translate}</a></p>
150{/if}
Note: See TracBrowser for help on using the repository browser.