source: extensions/Psli_BingMaps/admin/template/admin_zone.tpl @ 15448

Last change on this file since 15448 was 15448, checked in by psli, 12 years ago
File size: 7.9 KB
Line 
1<!--
2Plugin Name: Psli-BingMaps
3Author: psli
4-->
5<div class="titrePage">
6<h2>Psli-BingMaps</h2>
7</div>
8
9<form action="" method="post">
10<input type="hidden" name="hiddenzone" value="{$HIDDENZONE}" />
11<input type="hidden" name="hiddenpoints" id="hiddenpoints" value="{$HIDDENPOINTS}" />
12<input type="hidden" name="hiddencenterlat" id="hiddencenterlat" value="{$HIDDENCENTERLAT}" />
13<input type="hidden" name="hiddencenterlon" id="hiddencenterlon" value="{$HIDDENCENTERLON}" />
14<!-- ***************************************************************************************************** -->
15<!-- ***************************************************************************************************** -->
16<!-- ***************************************************************************************************** -->
17<!-- ***************************************************************************************************** -->
18<table style="width:100%;">
19        <colgroup>
20                <col width="200px" >
21                <col width="*" >
22        </colgroup>
23        <tr>
24                <td>
25                &nbsp;
26                </td>
27                <td colspan="" style="text-align:left;">
28                        <input type="submit" name="create" value="{'Create a zone'|@translate}" style="width:140px;" />
29                        <br />
30                        <br />
31                </td>
32        </tr>
33        <tr>
34                <td align="right">
35                        {'Select a zone'|@translate} :
36                </td>
37                <td>
38                        <select name="zoneSelected" style="width:300px;">
39                                {html_options options=$zone_select_selected}
40                                {html_options options=$zone_select}
41                        </select>
42                        <input type="submit" name="open" value="{'Open this zone'|@translate}" style="width:140px;" />
43                        <input type="submit" name="delete" value="{'Delete this zone'|@translate}" style="width:140px;margin-left:30px;" />
44                        <input type="checkbox" name="deleteCheck">&nbsp;{'Are you sure?'|@translate}</input>
45                </td>
46        </tr>
47</table>
48
49<!-- ***************************************************************************************************** -->
50<!-- ***************************************************************************************************** -->
51<!-- ***************************************************************************************************** -->
52<!-- ***************************************************************************************************** -->
53<fieldset id="tableData" style="display:none;">
54<legend>{'Entity field'|@translate} : {$TITLE}</legend>
55        <table style="margin-top:10px;width:95%;">
56                <colgroup>
57                        <col width="172px" >
58                        <col width="470px" >
59                        <col width="200px" >
60                        <col width="*" >
61                </colgroup>
62                <tr>
63                        <td align="right">{'Zone Title'|@translate} : </td>
64                        <td><input type="text" style="width:398px;" name="zonetitle" id="zonetitle" value="{$TITLE}" /></td>
65                        <td style="text-align:left;">
66                                <input type="submit" name="save" value="{'Submit'|@translate}" style="width:100px;margin-bottom:5px;" />
67                        </td>
68                        <td rowspan="5">
69                                <fieldset>
70                                <legend>{'Associated map'|@translate}</legend>                                 
71                                        <table>
72                                                {$ASSOCIATEDMAP}
73                                        </table>
74                                </fieldset>
75                        <td>
76                </tr>           
77                <tr>
78                        <td align="right">{'Zoom minimum'|@translate}&nbsp;:</td>
79                        <td>
80                                <input id="zoommin" type="text" name="zoommin" value="{$ZOOMMIN}" style="width:398px;margin-right:5px;" maxlength="2">
81                                <button type="button" onclick="psli_SetMinimum();">{'Set'|@translate}</button>
82                        </td>
83                        <td style="text-align:left;">
84                                <button id="deletePoint" style="width:180px;" type="button" onclick="psli_DeleteLast();">{'Delete last point'|@translate}</button>
85                        </td>   
86                </tr>
87                <tr>
88                        <td align="right">{'Zoom maximum'|@translate}&nbsp;:</td>
89                        <td>
90                                <input id="zoommax" type="text" name="zoommax" value="{$ZOOMMAX}" style="width:398px;margin-right:5px;" maxlength="2">
91                                <button type="button" onclick="psli_SetMaximum();">{'Set'|@translate}</button> 
92                        </td>
93                        <td style="text-align:left;">
94                                <button id="deleteAllPoints" style="width:180px;" type="button" onclick="psli_DeleteAll();">{'Delete all points'|@translate}</button>
95                        </td>                                                           
96                </tr>
97                <tr>
98                        <td align="right">{'Action'|@translate}&nbsp;:</td>
99                        <td align="left">
100                                <select id="actionselect" name="actionselect" style="width:402px;" onchange="psli_ChangeActionMode()">
101                                        <option value="1">{'Change Zoom Level'|@translate}</option>
102                                        <option value="2">{'Open Category'|@translate}</option>
103                                        <option value="3">{'Open Picture'|@translate}</option>
104                                </select>
105                        </td>
106                        <td style="text-align:left;">
107                                <button id="reloadPoints" style="width:180px;" type="button" onclick="psli_Reload();">{'Reload saved zone'|@translate}</button>
108                        </td>
109                </tr>
110                <tr id="ActionZoom" style="display:block;">
111                        <td align="right">{'Action Zoom'|@translate}&nbsp;:</td>
112                        <td>
113                                <select id="actionzoomselect" name="actionzoomselect" style="width:402px;margin-right:5px;" >
114                                        <option value="1">{'Zoom level 1'|@translate}</option>
115                                        <option value="2">{'Zoom level 2'|@translate}</option>
116                                        <option value="3">{'Zoom level 3'|@translate}</option>
117                                        <option value="4">{'Zoom level 4'|@translate}</option>
118                                        <option value="5">{'Zoom level 5'|@translate}</option>
119                                        <option value="6">{'Zoom level 6'|@translate}</option>
120                                        <option value="7">{'Zoom level 7'|@translate}</option>
121                                        <option value="8">{'Zoom level 8'|@translate}</option>
122                                        <option value="9">{'Zoom level 9'|@translate}</option>
123                                        <option value="10">{'Zoom level 10'|@translate}</option>
124                                        <option value="11">{'Zoom level 11'|@translate}</option>
125                                        <option value="12">{'Zoom level 12'|@translate}</option>
126                                        <option value="13">{'Zoom level 13'|@translate}</option>
127                                        <option value="14">{'Zoom level 14'|@translate}</option>
128                                        <option value="15">{'Zoom level 15'|@translate}</option>
129                                        <option value="16">{'Zoom level 16'|@translate}</option>
130                                        <option value="17">{'Zoom level 17'|@translate}</option>
131                                        <option value="18">{'Zoom level 18'|@translate}</option>
132                                        <option value="19">{'Zoom level 19'|@translate}</option>
133                                        <option value="20">{'Zoom level 20'|@translate}</option>
134                                </select>                                                                                                               
135                                <button type="button" onclick="psli_SetAction();">{'Set'|@translate}</button>                                   
136                        </td>
137                </tr>
138                <tr id="ActionAlbum" style="display:none;">
139                        <td align="right">{'Action Album'|@translate}&nbsp;:</td>
140                        <td>
141                                <select id="actionalbumselect" name="actionalbumselect" style="width:402px;" >
142                                        {html_options options=$actionalbum_select_selected}
143                                        {html_options options=$actionalbum_select}
144                                </select>
145                        </td>
146                </tr>
147                <tr id="ActionPicture" style="display:none;">
148                        <td align="right">{'Action Picture'|@translate}&nbsp;:</td>
149                        <td>
150                                <input id="actionpictureid" type="text" name="actionpictureid" value="{$ACTIONPICTURE}" style="width:398px;margin-right:5px;" />
151                        </td>
152                </tr>
153        </table>
154</fieldset>     
155
156        <!-- ***************************************************************************************************** -->
157        <!-- ***************************************************************************************************** -->
158        <!-- ***************************************************************************************************** -->
159        <!-- ***************************************************************************************************** -->         
160        <div id='myMap' style="position:relative; text-align:center; height:600px; margin:15px; border:2px solid white;"></div>
161        <script charset="UTF-8" type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"></script>                   
162        <script charset="UTF-8" type="text/javascript" src="{$JSPATH}"></script>                           
163        <script>
164                psli_g_BingKey = "{$KEY}";
165                psli_g_MapCenter = new Microsoft.Maps.Location(document.getElementById("hiddencenterlat").value, document.getElementById("hiddencenterlon").value);
166               
167                psli_g_MapOptions = {ldelim}
168                        credentials: psli_g_BingKey,
169                        showDashboard:false,
170                        showMapTypeSelector:false,
171                        showScalebar:false,
172                        mapTypeId: Microsoft.Maps.MapTypeId.road,
173                        center: psli_g_MapCenter,
174                        zoom: parseInt(document.getElementById("zoommax").value)
175                {rdelim};
176
177                psli_InitMap();
178                {$ADDJS}
179                document.getElementById("tableData").style.display='{$DISPLAY}';
180                psli_savePoints();
181        </script>
182
183</form>
Note: See TracBrowser for help on using the repository browser.