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

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

[edit_gmaps] upgrade to Google map apiV3


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