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

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

[edit_gmaps] Improvement of the display.


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