source: extensions/edit_gmaps/admin/admin_edit.tpl @ 8918

Last change on this file since 8918 was 8918, checked in by cljosse, 13 years ago

[edit_gmaps] compatibility with piwigo 2.2

File size: 6.6 KB
RevLine 
[4545]1{html_head}
[8456]2{* $Id: admin_edit.tpl  2011-01-03   *}
[8918]3{if PHPWG_VERSION < 2.2 } {include
4file=$EDIT_RV_ROOT_ABS|@cat:'header_2_1.tpl'} {else} {include file= $EDIT_RV_ROOT_ABS|@cat:'header_2_2.tpl'}
5{/if}
[4555]6
[8466]7
[8918]8
[8501]9 {assign var='visible' value = true }
10  {if not empty($Selectthumbnails)  }
11    <script src="http://maps.google.com/maps/api/js?sensor=false&amp;hl={$lang_info.code}" type="text/javascript"></script>
12         <script type="text/javascript">
13            {if isset($coordinates) && $coordinates.LAT <= 90 }
14                      var   coordinates={ldelim}
15                 LAT:'{$coordinates.LAT}',
16                 LON:'{$coordinates.LON}',
17                 ADRESSE:'{$coordinates.ADRESSE}',
18                 ZOOM:18
19                 };
20                 {else}
21             var    coordinates={ldelim}
22                 LAT:' ',
23                 LON:' ',
24                 ADRESSE:'{$coordinates.ADRESSE}',
25                 ZOOM:4
26                 };
27           {/if}           
28         
[8586]29        jQuery(window).load(function(){ldelim}
30                onLoad();
31                });
32
33    // Event.observe(window, 'load', onLoad );
34
[8501]35            </script>
36 {/if}
[4545]37
[8501]38    <style type="text/css">{literal}
[8466]39#map{
40 left:0px;
41  width:100%;
[4545]42  height:500px;
43 border:outset;
44}
[8501]45 
[4545]46
47{/literal}
48</style>
[8456]49
50
51
[4545]52{/html_head}
[8501]53 
[4545]54
[8501]55 
[4555]56
[8501]57    <fieldset class="fieldset">
58        <legend>{'Display options'|@translate}</legend>
59        <table ><td class="cluetip" title="{'set'|translate}|{'hlp_line1'|@translate}." align="left"  >
60        <form>
61        Set:
62        <select onchange="document.location = this.options[this.selectedIndex].value;"   >
63        <optgroup label="Specials">
64        {html_options options=$specials}
65        </optgroup>
66        <optgroup label="{'Categories'|@translate}">
67        {html_options options=$categories selected=$categories_selected}
68        </optgroup>
69        <!-- <optgroup label="{'Tags'|@translate}"></optgroup> -->
70        </select>
71        </form>
72        </td>
73        <td   > {'hlp_line2'|@translate} </td>
74        </table>
75        <p>{'elements per page'|@translate}:
76            <a href="{$U_DISPLAY}&amp;display=20">20</a>
77        | <a href="{$U_DISPLAY}&amp;display=50">50</a>
78        | <a href="{$U_DISPLAY}&amp;display=100">100</a>
79        | <a href="{$U_DISPLAY}&amp;display=all">{'all'|@translate}</a>
80        </p>
81    </fieldset>
82 {if  empty($Selectthumbnails) }{/if}
[4545]83
[4555]84
[8501]85<form action="" method="post" id="Envoie" name="Envoie"   >
86  {if not empty($thumbnails) &&  empty($Selectthumbnails) }  {/if}
[4545]87
[8501]88<fieldset  id="Elements"  class="fieldset">
[4545]89        <legend>{'Elements'|@translate}</legend>
90
[8501]91    {if !empty($navbar) }{include file='navigation_bar.tpl'} {/if}
92        <fieldset >   
93                <ul class="thumbnails">
94                        {foreach from=$thumbnails item=thumbnail}
95                        <li><span class="wrap1">
96                                <label>
97                                        <span class="wrap2"><span>
98                                                <img src="{$thumbnail.U_TN}" alt="{$thumbnail.file}" title="{$thumbnail.TITLE}" class="thumbnail" />
99                                        </span></span>
100                                        <input type="checkbox" name="selection[]" value="{$thumbnail.id}"    />
101                                </label>
102                                <span class="thumbLegend">
103                                 {if isset($thumbnail.U_MAP)}
104                                   <a href="{$thumbnail.U_MAP}" target="_blank">{$thumbnail.lat},{$thumbnail.lon}</a>
105                                 {/if}
106                     {$thumbnail.file} 
107                                </span>
[4545]108
[8501]109                                </span>
110                        </li>
111                        {/foreach}
112                </ul>     
113        </fieldset>
[4545]114
[8501]115        <fieldset>
116        <label> {'target'|@translate}</label>
117        <table>
118        <td><label><input type="radio" name="target" value="all" /> {'all'|@translate}</label></td>
119        <td><label><input type="radio" name="target" value="selection" checked="checked" /> {'selection'|@translate}</label></td>
120        <td><input class="cluetip submit " title="{'selection'|@translate}|{'hlp_line3'|@translate}." type="submit" name="submit" value="{'selection'|@translate}"  {$tag_input_enabled} /></td>
121        </table>
122    </fieldset>
[4545]123</fieldset>
[8501]124 <script>
125   {if empty($Selectthumbnails)  }
126 
127   var no_affiche=true ;
128   {else}
129   var no_affiche=false ;
130   {/if} </script>
131<fieldset   id ="geoposition"  class="fieldset">
132<legend>{'Selection'|@translate}</legend>
133 
134    <fieldset>   
[8456]135            <ul class="thumbnails">
136                    {foreach from=$Selectthumbnails item=thumbnail}             
[4545]137                        <li><span class="wrap1">
138                                <label>
139                                        <span class="wrap2"><span>
140                                                <img src="{$thumbnail.U_TN}" alt="{$thumbnail.file}" title="{$thumbnail.TITLE}" class="thumbnail" />
[8456]141                                        </span>                                 
[4545]142                                        </span>
143                                        <br/>
[8456]144                </label>
145                                <input type="hidden"  value={$thumbnail.id}  name="selection[]"    />                           
[4545]146                                <span class="thumbLegend">
147                                {if isset($thumbnail.U_MAP)}
148                                        <a href="{$thumbnail.U_MAP}" target="_blank">{$thumbnail.lat},{$thumbnail.lon}</a>
149                                {/if}
150                                {$thumbnail.file} 
151                                </span>
152                                </span>
[8501]153                        </li>                   
[4545]154                {/foreach}
155        </ul>
[8456]156</fieldset>
[8501]157    <fieldset>
158    <label>{'command'|@translate}</label>
[4545]159
[8501]160        <table>
161            <td>
162            <input class="cluetip" title="{'reset'|@translate}|{'hlp_line4'|@translate}."  type="submit" name="submit" value="{'reset'|@translate}" /><br />
163            </td>
164            <td>
165        <input class="cluetip" title="{'selection'|@translate}|{'hlp_line3'|@translate}." type="submit" name="submit" value="{'selection'|@translate}" />
166            </td>
167        </table>
[5062]168
[8501]169        <label>{'Form'|@translate}</label>
170        <table>
171        <td >
172 
173        <input class="cluetip" title="{'search_title'|@translate}|{'hlp_line6'|@translate}." type=button  value="{'search_title'|@translate}" id="search" />
[5062]174
[8501]175        <input class="cluetip" title="{'lieu'|@translate}|{'hlp_line5'|@translate}." type="text" size="70"   value="{$match}"  name="match"   id="match"    />
176        </td>
177        <tr> 
178        <td>
179        <label>Latitude (-90=S to 90=N)</label>
180        <input type="text" size="8" value="{$lat}"  name="lat" />
181        </td>
182        <td>         
183        <label>Longitude (-180=E to 180=W) </label>
184        <input type="text" size="9"value="{$lon}"  name="lon"  />         
185        </td>
186        </tr><tr>
187
188        <td><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" {$tag_input_enabled} /></td>
189        </td></tr>
190        </table>
191    </fieldset>
192
193    <fieldset>
194        <label>{'map'|@translate}</label>
195        <table>
196        <td><div id="markerStatus"></div></td>
197        <td><div id="markerAdress"></div></td>
198        </table>
199        <div id="map"></div>
200    </fieldset>
201  </fieldset>
202
[8456]203</form>
Note: See TracBrowser for help on using the repository browser.