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

Last change on this file since 15448 was 15448, checked in by psli, 12 years ago
File size: 6.0 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="hiddenpin" value="{$HIDDENPIN}" />
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 pin'|@translate}" style="width:140px;" />
26                        <br />
27                        <br />
28                </td>
29        </tr>
30        <tr>
31                <td align="right">
32                        {'Select a pin'|@translate} :
33                </td>
34                <td>
35                        <select name="pinSelected" style="width:300px;">
36                                {html_options options=$pin_select_selected}
37                                {html_options options=$pin_select}
38                        </select>
39                        <input type="submit" name="open" value="{'Open this pin'|@translate}" style="width:140px;" />
40                        <input type="submit" name="delete" value="{'Delete this pin'|@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>{'Entity field'|@translate} : {$TITLE}</legend>
52        <table style="margin-top:10px;width:95%;">
53                <colgroup>
54                        <col width="172px" >
55                        <col width="470px" >
56                        <col width="130px" >
57                        <col width="*" >
58                </colgroup>
59                <tr>
60                        <td align="right">{'Pin Title'|@translate} : </td>
61                        <td><input type="text" style="width:398px;" name="title" id="title" value="{$TITLE}" /></td>
62                        <td><input type="submit" name="save" value="{'Submit'|@translate}" style="width:100px;margin-bottom:5px;" /></td>
63                        <td rowspan="7" style="text-align:left;vertical-align:top;" >
64                                <fieldset style="height:100%">
65                                <legend>{'Associated map'|@translate}</legend>
66                                        <table style="width:100%;text-align:left;">
67                                                {$ASSOCIATEDMAP}
68                                        </table>
69                                </fieldset>
70                        <td>
71                </tr>
72                <tr>
73                        <td align="right">{'Latitude'|@translate}&nbsp;:</td>
74                        <td><input id="lat" type="text" name="lat" value="{$LAT}" style="width:398px;" maxlength="21" onChange="psli_AdminUpdateMap();" /></td>                                         
75                </tr>
76                <tr>
77                        <td align="right">{'Longitude'|@translate}&nbsp;:</td>
78                        <td><input id="lon" type="text" name="lon" value="{$LON}" style="width:398px;" maxlength="21" onChange="psli_AdminUpdateMap();" /></td>
79                </tr>
80                <tr>
81                        <td align="right">{'Zoom minimum'|@translate}&nbsp;:</td>
82                        <td>
83                                <input id="zoommin" type="text" name="zoommin" value="{$ZOOMMIN}" style="width:398px;margin-right:5px;" maxlength="2">
84                                <button type="button" onclick="psli_SetMinimum();">{'Set'|@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                </tr>
94                <tr>
95                        <td align="right">{'Action'|@translate}&nbsp;:</td>
96                        <td align="left">
97                                <select id="actionselect" name="actionselect" style="width:402px;" onchange="psli_ChangeActionMode()">
98                                        <option value="2">{'Open Category'|@translate}</option>
99                                        <option value="3">{'Open Picture'|@translate}</option>
100                                </select>
101                        </td>
102                </tr>           
103                <tr id="ActionAlbum" style="display:block;">
104                        <td align="right">{'Action Album'|@translate}&nbsp;:</td>
105                        <td>
106                                <select id="actionalbumselect" name="actionalbumselect" style="width:402px;" >
107                                        {html_options options=$actionalbum_select_selected}
108                                        {html_options options=$actionalbum_select}
109                                </select>
110                        </td>
111                </tr>
112                <tr id="ActionPicture" style="display:none;">
113                        <td align="right">{'Action Picture'|@translate}&nbsp;:</td>
114                        <td>
115                                <input id="actionpictureid" type="text" name="actionpictureid" value="{$ACTIONPICTURE}" style="width:398px;margin-right:5px;" />
116                        </td>
117                </tr>
118        </table>
119</fieldset>     
120
121        <!-- ***************************************************************************************************** -->
122        <!-- ***************************************************************************************************** -->
123        <!-- ***************************************************************************************************** -->
124        <!-- ***************************************************************************************************** -->         
125        <div id='myMap' style="position:relative; text-align:center; height:600px; margin:15px; border:2px solid white;"></div>
126        <script charset="UTF-8" type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"></script>                   
127        <script charset="UTF-8" type="text/javascript" src="{$JSPATH}"></script>                           
128        <script>
129                psli_g_BingKey = "{$KEY}";
130                psli_g_MapCenter = new Microsoft.Maps.Location(document.getElementById("lat").value, document.getElementById("lon").value);
131               
132                psli_g_MapOptions = {ldelim}
133                        credentials: psli_g_BingKey,
134                        showDashboard:false,
135                        showMapTypeSelector:false,
136                        showScalebar:false,
137                        mapTypeId: Microsoft.Maps.MapTypeId.road,
138                        center: psli_g_MapCenter,
139                        zoom: parseInt(document.getElementById("zoommin").value)
140                {rdelim};
141
142                psli_InitMap();
143               
144                document.getElementById("tableData").style.display='{$DISPLAY}';
145               
146                {$ADDJS}
147        </script>
148
149</form>
Note: See TracBrowser for help on using the repository browser.