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

Last change on this file since 15448 was 15448, checked in by psli, 12 years ago
File size: 4.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="hiddenmap" value="{$HIDDENMAP}" />
11<!-- ***************************************************************************************************** -->
12<!-- ***************************************************************************************************** -->
13<!-- ***************************************************************************************************** -->
14<!-- ***************************************************************************************************** -->
15<table style="width:100%;">
16        <colgroup>
17                <col width="200px" >
18                <col width="*" >
19        </colgroup>
20        <tr>
21                <td>
22                &nbsp;
23                </td>
24                <td colspan="" style="text-align:left;">
25                        <input type="submit" name="create" value="{'Create a map'|@translate}" style="width:140px;" />
26                        <br />
27                        <br />
28                </td>
29        </tr>
30        <tr>
31                <td align="right">
32                        {'Select a Map'|@translate} :
33                </td>
34                <td>
35                        <select name="mapSelected" style="width:300px;">
36                                {html_options options=$map_select_selected}
37                                {html_options options=$map_select}
38                        </select>
39                        <input type="submit" name="open" value="{'Open this map'|@translate}" style="width:140px;" />
40                        <input type="submit" name="delete" value="{'Delete this map'|@translate}" style="width:140px;margin-left:30px;" />
41                        <input type="checkbox" name="deleteCheck">&nbsp;{'Are you sure?'|@translate}</input>
42                </td>
43        </tr>
44</table>
45
46<!-- ***************************************************************************************************** -->
47<!-- ***************************************************************************************************** -->
48<!-- ***************************************************************************************************** -->
49<!-- ***************************************************************************************************** -->
50<fieldset id="tableData" style="display:none;">
51<legend>{$TITLE}</legend>
52        <table>
53                <colgroup>
54                        <col width="200px" >
55                        <col width="500px" >
56                        <col width="*" >
57                </colgroup>
58                <tr>
59                        <td align="right">{'Map Title'|@translate} : </td>
60                        <td><input type="text" style="width:450px;" name="title" id="title" value="{$TITLE}" /></td>
61                        <td rowspan="2" style="text-align:left;vertical-align:center;">
62                                <input type="submit" name="save" value="{'Submit'|@translate}" style="width:100px;margin-bottom:5px;" />
63                        </td>
64                </tr>
65                <tr>
66                        <td align="right">{'Category'|@translate} : </td>
67                        <td>
68                                <select name="categorySelected" style="width:454px;">
69                                        {html_options options=$category_select_selected}
70                                        {html_options options=$category_select}
71                                </select>
72                        </td>
73                </tr>
74                <tr>
75                        <td align="right">{'Zoom'|@translate} : </td>
76                        <td><input type="text" style="width:250px;" maxlength="3" name="zoom" id="zoom" value="{$ZOOM}" onChange="psli_AdminUpdateMap();" /></td>
77                        <td style="text-align:left;">
78                                <button id="showView" style="width:180px;" type="button" onclick="psli_ShowGuestView();">{'Show guest view'|@translate}</button>
79                        </td>
80                </tr>
81                <tr>
82                        <td align="right">{'Center Latittude'|@translate} : </td>
83                        <td><input type="text" style="width:250px;" maxlength="21" name="lat" id="lat" value="{$LAT}" onChange="psli_AdminUpdateMap();" /></td>
84                        <td style="text-align:left;">
85                                <button id="showData" style="width:180px;" type="button" onclick="psli_ShowMapData();" DISABLED>{'Show map center'|@translate}</button>
86                        </td>
87                </tr>
88                <tr>
89                        <td align="right">{'Center Longitude'|@translate} : </td>
90                        <td><input type="text" style="width:250px;" maxlength="21" name="lon" id="lon" value="{$LON}" onChange="psli_AdminUpdateMap();" /></td>
91                </tr>
92        </table>
93</fieldset>
94
95<!-- ***************************************************************************************************** -->
96<!-- ***************************************************************************************************** -->
97<!-- ***************************************************************************************************** -->
98<!-- ***************************************************************************************************** -->         
99<div id='myMap' style="position:relative; text-align:center; height:600px; margin:15px; border:2px solid white;"></div>
100<script charset="UTF-8" type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"></script>                    
101<script charset="UTF-8" type="text/javascript" src="{$JSPATH}"></script>                          
102<script>
103        psli_g_BingKey = "{$KEY}";
104        psli_g_zoomInitial = {$ZOOM};
105        psli_g_MapCenter = new Microsoft.Maps.Location({$LAT}, {$LON});
106       
107        psli_g_MapOptions = {ldelim}
108                credentials: psli_g_BingKey,
109                showDashboard:false,
110                showMapTypeSelector:false,
111                showScalebar:false,
112                mapTypeId: Microsoft.Maps.MapTypeId.road,
113                center: psli_g_MapCenter,
114                zoom: psli_g_zoomInitial
115        {rdelim};
116
117        psli_InitMap();
118       
119        document.getElementById("tableData").style.display='{$DISPLAY}';
120       
121        {$ADDJS}
122</script>
123</form>
Note: See TracBrowser for help on using the repository browser.