root/templates/base.html

Revision 3924571cbcbb46f262ef7a841ae1b4111999d308, 7.0 kB (checked in by Christopher Jung <bktheg@web.de>, 1 year ago)

Entwicklung Patch 7.09 begonnen

  • Property mode set to 100644
Line 
1 <!--
2         Drifting Souls 2
3         Copyright (c) 2006 Christopher Jung
4        
5         This library is free software; you can redistribute it and/or
6         modify it under the terms of the GNU Lesser General Public
7         License as published by the Free Software Foundation; either
8         version 2.1 of the License, or (at your option) any later version.
9  
10         This library is distributed in the hope that it will be useful,
11         but WITHOUT ANY WARRANTY; without even the implied warranty of
12         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13         Lesser General Public License for more details.
14  
15         You should have received a copy of the GNU Lesser General Public
16         License along with this library; if not, write to the Free Software
17         Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18 -->
19 <!-- BEGIN header -->
20         <style type="text/css">
21         <!--
22                 <!-- BEGIN tiles.listitem -->
23                         div.p{tile.id} {position: absolute; top:{tile.top}px; left:{tile.left}px; z-index: 2}
24                         div.o{tile.id} {position: absolute; top:{tile.top}px; left:{tile.left}px; z-index: 3}
25                 <!-- END tiles.listitem -->
26         -->
27         </style>
28 <!-- END header -->
29 {if base.message}
30         <div class="smallfont">
31                 {base.message}<br /><br />
32         </div>
33 {/endif}
34 <script type="text/javascript">
35         var basename = "{base.name}";
36 </script>
37 <div>
38         {base.system}:{base.x}/{base.y} - {base.name} ({base.id})
39         <a class="noborder" id="changename" name="changename" onclick="javascript:overlib('{base.renametooltip}',REF,'changename', WIDTH,'300',REFC,'UL',REFP,'UL',FGCLASS,'gfxtooltip',BGCLASS,'gfxtooltip',TEXTFONTCLASS,'tooltip',NOCLOSE,STICKY);" onmouseout="return nd();" href="#">
40                 <img style="vertical-align:middle; border:0px" src="{URL}data/interface/pen.gif" alt="Namen &auml;ndern" />
41         </a>
42         <br />
43         <br />
44         <span class="smallfont">
45                 Core:
46                 {if base.core}
47                         {if base.core.active}
48                                 {!link_to $core.name, default, css_class:ok, module:core, col:$base.id}
49                         {else}
50                                 {!link_to $core.name, default, css_class:error, module:core, col:$base.id}
51                         {/endif}
52                 {else}
53                         {!link_to leer, default, css_class:ok, module:core, col:$base.id}
54                 {/endif}
55         </span>
56         <br /><br />
57 </div>
58 <table class="noBorder" cellspacing="5" cellpadding="2" style="table-layout:fixed">
59 <tr>
60         <td style="width:{base.map.width}px" class="Border">Karte</td>
61         <td style="width:5px" class="noBorder"></td>
62         <td style="width:280px" class="Border">Cargo</td>
63         <td style="width:5px" class="noBorder"></td>
64         <td style="width:240px" class="Border">Aktionen</td>
65 </tr>
66 <tr>
67         <td class="schiffData" style="vertical-align:top; width:{base.map.width}px">
68                 <div style="z-index:2; position:relative; top:0px; left:0px; width:{base.map.width}px; height:{base.cargo.height}px; overflow:auto">
69                 <!-- +START+ Karte -->
70                 <!-- BEGIN base.map.listitem -->
71                         <div class="p{tile.id}">
72                                 {if ! tile.overlay}
73                                         {if tile.building}
74                                                 <a onmouseover="return overlib('{tile.building.name}',TIMEOUT,0,DELAY,600,WIDTH,100);" onmouseout="return nd();" href="./ds?module=building&amp;sess={global.sess}&amp;col={base.id}&amp;field={tile.field}">
75                                         {else}
76                                                 <a href="./ds?module=build&amp;sess={global.sess}&amp;col={base.id}&amp;field={tile.field}">
77                                         {/endif}
78                                 {/endif}
79                                 <img style="border:0px" src="{URL}{tile.building.image}" alt="" />
80                                 {if ! tile.overlay}</a>{/endif}
81                         </div>
82                         {if tile.overlay}
83                                 <div class="o{tile.id}">
84                                         {if tile.building}
85                                                 <a onmouseover="return overlib('{tile.building.name}',TIMEOUT,0,DELAY,600,WIDTH,100);" onmouseout="return nd();" href="./ds?module=building&amp;sess={global.sess}&amp;col={base.id}&amp;field={tile.field}">
86                                         {else}
87                                                 <a href="./ds?module=build&amp;sess={global.sess}&amp;col={base.id}&amp;field={tile.field}">
88                                         {/endif}
89                                         <img style="border:0px" src="{URL}data/buildings/{tile.overlay.image}" alt="" />
90                                         </a>
91                                 </div>
92                         {/endif}
93                 <!-- END base.map.listitem -->
94                 <!-- +END+ Karte -->
95                 </div>
96         </td>
97         <td class="noBorder" style="width:5px">&nbsp;</td>
98         <td style="vertical-align:top; width:280px" class="schiffWaren">
99                 <div style="padding:5px; height:{base.cargo.height}px; overflow:auto">
100                         <!-- +START+ Cargo -->
101                         <!-- BEGIN base.cargo.listitem -->
102                                 {if res.plaincount2 > 0}
103                                         <img style="vertical-align:middle" src="{res.image}" alt="" /><span style="color:#00ff00">{res.name} {res.cargo1} +{res.cargo2}</span>
104                                 {/endif}
105                                 {if res.plaincount2 == 0}
106                                         <img style="vertical-align:middle" src="{res.image}" alt="" />{res.name} {res.cargo1}
107                                 {/endif}
108                                 {if res.plaincount2 < 0}
109                                         <img style="vertical-align:middle" src="{res.image}" alt="" /><span style="color:#ff0000">{res.name} {res.cargo1} {res.cargo2}</span>
110                                 {/endif}
111                                 {if res.nahrungspeciallink}
112                                         <a class="noborder" id="transfernahrung" name="transfernahrung" onclick="javascript:void(overlib('{res.nahrungspeciallink}',REF,'transfernahrung', WIDTH,'300',REFC,'UL',REFP,'UL',FGCLASS,'gfxtooltip',BGCLASS,'gfxtooltip',TEXTFONTCLASS,'tooltip',NOCLOSE,STICKY));" onmouseout="return nd();" href="#">
113                                                 <img style="vertical-align:middle; border:0px" src="{URL}data/interface/right.gif" alt="Nahrung transferieren" />
114                                         </a>
115                                 {/endif}
116                                 <br />
117                         <!-- END base.cargo.listitem -->
118                         <img src="{URL}data/interface/leer.gif" alt="" />Leer {base.cargo.empty} {base.cstat}<br />
119                         <!-- +END+ Cargo -->
120                 </div>
121         </td>
122         <td class="noBorder" style="width:5px">&nbsp;</td>
123         <td style="vertical-align:top; width:240px" class="schiffWaren">
124                 <div style="padding:5px">
125                         <table class="noBorderS">
126                                 <!-- BEGIN base.massonoff.listitem -->
127                                         <tr>
128                                                 <td class="noBorderS" style="font-size:13px">{building.name}</td>
129                                                 <td class="noBorderS" align="right">
130                                                         {if building.allowoff}
131                                                                 {!image_link_to interface/nenergie.gif, changeBuildingStatus, css_class:noborder, col:$base.id, buildingonoff:$building.id, act:0}
132                                                         {/endif}
133                                                         {if building.allowon}
134                                                                 {!image_link_to interface/energie.gif, changeBuildingStatus, css_class:noborder, col:$base.id, buildingonoff:$building.id, act:1}
135                                                         {/endif}
136                                                 </td>
137                                         </tr>
138                                 <!-- END base.massonoff.listitem -->
139                         <tr>
140                                 <td colspan="2" class="noBorderS" align="center">
141                                         <hr style="height:1px; border:0px; background-color:#606060; color:#606060" />
142                                         {!link_to Alles aktivieren, default, css_style:font-size:14px, css_class:ok, module:activateall, col:$base.id}<br />
143                                         {!link_to Alles deaktivieren, default, css_style:font-size:14px, css_class:error, module:activateall, col:$base.id, deaconly:1}<br />
144                                 </td>
145                         </tr>
146                         </table>
147                 </div>
148         </td>
149 </tr>
150 <tr>
151         <td colspan="5" class="noBorderS">
152                 <br />
153                 {!table_begin 100%,left}
154                         Aktuelle Energie: {base.e}<br />
155                         Bilanz: {base.estat}
156                         <!-- BEGIN base.estat.listitem --><img style="vertical-align:middle" src="{estat.image}" alt="" /><!-- END base.estat.listitem -->
157                         <br />
158                         Bev&ouml;lkerung: {base.bewohner}<br />
159                         Arbeiter ben&ouml;tigt: {base.arbeiter.needed}<br />
160                         Wohnraum: {base.wohnraum}<br />
161                         <!-- BEGIN base.bev.listitem --><img style="border:0px" src=" {URL}data/interface/{bev.image}" alt="" /><!-- END base.bev.listitem -->
162                         <br /><br />
163                 {!table_end}
164         </td>
165 </tr>
166 </table>
Note: See TracBrowser for help on using the browser.