| 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 |
<script type="text/javascript"> |
|---|
| 20 |
<!-- |
|---|
| 21 |
/* |
|---|
| 22 |
1 -> Flottenpopup |
|---|
| 23 |
2 -> Wichtige Objekte |
|---|
| 24 |
*/ |
|---|
| 25 |
function PopupWnd(popupnr,params) |
|---|
| 26 |
{ |
|---|
| 27 |
var script; |
|---|
| 28 |
var title; |
|---|
| 29 |
if( popupnr == 1 ) { |
|---|
| 30 |
script = "./ds?module=fleetmgnt"; |
|---|
| 31 |
title = "Flotten"; |
|---|
| 32 |
} |
|---|
| 33 |
|
|---|
| 34 |
F1 = window.open(script + "&sess={global.sess}" + params, title, |
|---|
| 35 |
"width=370,height=400,locationbar=0,menubar=0,scrollbars=1,statusbar=0,toolbar=0,resizeable=yes,directories=0"); |
|---|
| 36 |
} |
|---|
| 37 |
|
|---|
| 38 |
function helpme(helpstring) { |
|---|
| 39 |
{if user.tooltips} |
|---|
| 40 |
return overlib(helpstring,TIMEOUT,0,DELAY,400,WIDTH,100); |
|---|
| 41 |
{else} |
|---|
| 42 |
return false; |
|---|
| 43 |
{/endif} |
|---|
| 44 |
} |
|---|
| 45 |
// --> |
|---|
| 46 |
</script> |
|---|
| 47 |
<div class="verysmallfont"> |
|---|
| 48 |
{if ship.message} |
|---|
| 49 |
{ship.message}<br /> |
|---|
| 50 |
{/endif} |
|---|
| 51 |
</div> |
|---|
| 52 |
{if ship.showui} |
|---|
| 53 |
<table class="show" cellspacing="3" cellpadding="3"> |
|---|
| 54 |
<tr> |
|---|
| 55 |
<td class="schiff"> |
|---|
| 56 |
{ship.name} ({ship.id}) - {ship.location} |
|---|
| 57 |
</td> |
|---|
| 58 |
<td class="schiff">Navigation</td> |
|---|
| 59 |
<td class="schiff" style="width:10px" align="right"> |
|---|
| 60 |
<a id="systeminfo" name="systeminfo" class="noborder" onclick="javascript:overlib('{tooltip.systeminfo}',REF,'systeminfo', REFC,'LL',REFP,'UR',FGCLASS,'gfxtooltip',BGCLASS,'gfxtooltip',TEXTFONTCLASS,'gfxtooltip',NOCLOSE,STICKY);" onmouseout="return nd();" href="#"> |
|---|
| 61 |
<img src="{URL}data/interface/impobjects.gif" alt="?" /> |
|---|
| 62 |
</a> |
|---|
| 63 |
</td> |
|---|
| 64 |
<td class="schiff">Cargo</td> |
|---|
| 65 |
</tr> |
|---|
| 66 |
<tr> |
|---|
| 67 |
<td class="schiffData" style="width:360px" valign="top"> |
|---|
| 68 |
<a class="noborder" target="_blank" href="./ds?module=schiffinfo&sess={global.sess}&ship={ship.type}"> |
|---|
| 69 |
<img src="{shiptype.picture}" alt="{shiptype.name}" style="float:right; margin-right:5px; margin-left:15px;margin-bottom:5px" /> |
|---|
| 70 |
</a> |
|---|
| 71 |
Zustand: |
|---|
| 72 |
<span style="color:{ship.hull.color}"> |
|---|
| 73 |
{ship.hull}/{shiptype.hull} |
|---|
| 74 |
</span> |
|---|
| 75 |
{if shiptype.ablativearmor} |
|---|
| 76 |
<br /> |
|---|
| 77 |
Ablative Panzerung: |
|---|
| 78 |
<span style="color:{ship.ablativearmor.color}"> |
|---|
| 79 |
{ship.ablativearmor}/{shiptype.ablativearmor} |
|---|
| 80 |
</span> |
|---|
| 81 |
{/endif} |
|---|
| 82 |
{if shiptype.shields} |
|---|
| 83 |
<br /> |
|---|
| 84 |
Schilde: |
|---|
| 85 |
<span style="color:{ship.shields.color}"> |
|---|
| 86 |
{ship.shields}/{shiptype.shields} |
|---|
| 87 |
</span> |
|---|
| 88 |
{/endif} |
|---|
| 89 |
<br />Subsysteme:<br /> |
|---|
| 90 |
{if shiptype.cost} |
|---|
| 91 |
+ Antrieb: |
|---|
| 92 |
<span style="color:{ship.engine.color}"> |
|---|
| 93 |
{ship.engine} |
|---|
| 94 |
</span><br /> |
|---|
| 95 |
{/endif} |
|---|
| 96 |
{if shiptype.weapons} |
|---|
| 97 |
+ Waffen: |
|---|
| 98 |
<span style="color:{ship.weapons.color}"> |
|---|
| 99 |
{ship.weapons} |
|---|
| 100 |
</span><br /> |
|---|
| 101 |
{/endif} |
|---|
| 102 |
+ Kommunikation: |
|---|
| 103 |
<span style="color:{ship.comm.color}"> |
|---|
| 104 |
{ship.comm} |
|---|
| 105 |
</span><br /> |
|---|
| 106 |
+ Sensoren: |
|---|
| 107 |
<span style="color:{ship.sensors.color}"> |
|---|
| 108 |
{ship.sensors} |
|---|
| 109 |
</span><br /> |
|---|
| 110 |
{if shiptype.crew} |
|---|
| 111 |
Crew: |
|---|
| 112 |
<span style="color:{ship.crew.color}"> |
|---|
| 113 |
{ship.crew}/{shiptype.crew} |
|---|
| 114 |
</span><br /> |
|---|
| 115 |
{/endif} |
|---|
| 116 |
{if shiptype.marines} |
|---|
| 117 |
Marines: |
|---|
| 118 |
<span style="color:{ship.marines.color}"> |
|---|
| 119 |
{ship.marines}/{shiptype.marines} |
|---|
| 120 |
</span><br /> |
|---|
| 121 |
{/endif} |
|---|
| 122 |
Energie: |
|---|
| 123 |
<span style="color:{ship.e.color}"> |
|---|
| 124 |
{ship.e}/{shiptype.eps} |
|---|
| 125 |
</span><br /> |
|---|
| 126 |
{if shiptype.cost} |
|---|
| 127 |
Triebwerksüberhitzung: |
|---|
| 128 |
<span style="color:{ship.s.color}"> |
|---|
| 129 |
{ship.s}/100 |
|---|
| 130 |
</span><br /> |
|---|
| 131 |
{/endif} |
|---|
| 132 |
{if offiziere.list} |
|---|
| 133 |
Offizier: |
|---|
| 134 |
<!-- BEGIN offiziere.listitem --> |
|---|
| 135 |
{if offiziere.list}, {/endif} |
|---|
| 136 |
<span class="nobr"><img src="{offizier.picture}" alt="Rang {offizier.rang}" /> {!link_to $offizier.name, default, module:choff, off:$offizier.id}</span> |
|---|
| 137 |
<!-- END offiziere.listitem --> |
|---|
| 138 |
<br /> |
|---|
| 139 |
{/endif} |
|---|
| 140 |
{if ship.fleet} |
|---|
| 141 |
Flotte: <a class="forschinfo" href="javascript:PopupWnd(1,'&fleet={fleet.id}&act=show')">{fleet.name}</a> |
|---|
| 142 |
{if ! ship.lock} |
|---|
| 143 |
{!link_to (X), join, css_class:error, ship:$ship.id} |
|---|
| 144 |
{/endif} |
|---|
| 145 |
<br /> |
|---|
| 146 |
{/endif} |
|---|
| 147 |
<a class="noborder" href="./ds?module=schiff&action=destroy&sess={global.sess}&ship={ship.id}"> |
|---|
| 148 |
<img src="{URL}data/interface/schiffe/schiff_selfdest.gif" alt="Selbstzerst&ouml;rung" /> |
|---|
| 149 |
</a> |
|---|
| 150 |
{if shiptype.werft} |
|---|
| 151 |
<a class="forschinfo" href="./ds?module=werft&sess={global.sess}&ship={ship.id}"> |
|---|
| 152 |
<img src="{URL}data/interface/schiffe/werft.gif" alt="Werftfunktionen" /> |
|---|
| 153 |
</a> |
|---|
| 154 |
{/endif} |
|---|
| 155 |
{if sector.handel} |
|---|
| 156 |
<a class="noborder" onmouseover="return helpme('mit {sector.handel.name} handeln');" onmouseout="return nd();" href="./ds?module=trade&sess={global.sess}&ship={ship.id}&tradepost={sector.handel}"> |
|---|
| 157 |
<img src="{URL}data/interface/schiffe/schiff_handel.gif" alt="Handeln" /> |
|---|
| 158 |
</a> |
|---|
| 159 |
{/endif} |
|---|
| 160 |
{if tooltip.execnotes} |
|---|
| 161 |
<script type="text/javascript"> |
|---|
| 162 |
<!-- |
|---|
| 163 |
function scripttooltip() { |
|---|
| 164 |
var tooltiptext = ""; |
|---|
| 165 |
tooltiptext += "{tooltip.execnotes.begin}"; |
|---|
| 166 |
tooltiptext += "<span style='text-decoration:underline'>Scripteingabe</span> (<a class='error' onclick='return nd();' href='javascript:void(0)'>X</a>)<br />"; |
|---|
| 167 |
tooltiptext += "<form action='./ds' method='post'><div>"; |
|---|
| 168 |
tooltiptext += "<input type='hidden' name='sess' value='{global.sess}' />"; |
|---|
| 169 |
tooltiptext += "<input type='hidden' name='module' value='schiff' />"; |
|---|
| 170 |
tooltiptext += "<input type='hidden' name='ship' value='{ship.id}' />"; |
|---|
| 171 |
tooltiptext += "<input type='hidden' name='action' value='script' />"; |
|---|
| 172 |
tooltiptext += "<textarea name='script' rows='12' cols='27' style='width:360px'>{tooltip.execnotes.script}</textarea><br />"; |
|---|
| 173 |
tooltiptext += "<input type='checkbox' id='script_reset' name='reset' value='1' /><label for='script_reset'>Reset</label><br />"; |
|---|
| 174 |
tooltiptext += "<input type='submit' value='speichern' />"; |
|---|
| 175 |
tooltiptext += "</div></form>"; |
|---|
| 176 |
tooltiptext += "{tooltip.execnotes.end}"; |
|---|
| 177 |
overlib(tooltiptext,REF,'shipscripttip', REFC,'UL',REFP,'UL',FGCLASS,'gfxtooltip',BGCLASS,'gfxtooltip',TEXTFONTCLASS,'gfxtooltip',STICKY); |
|---|
| 178 |
} |
|---|
| 179 |
// --> |
|---|
| 180 |
</script> |
|---|
| 181 |
|
|---|
| 182 |
<a id="shipscripttip" name="shipscripttip" class="noborder" onclick="scripttooltip();" href="#"> |
|---|
| 183 |
<img src="{URL}data/interface/computer.png" alt="?" /> |
|---|
| 184 |
</a> |
|---|
| 185 |
{/endif} |
|---|
| 186 |
{if tooltip.admin} |
|---|
| 187 |
<a id="shipstatustip" name="shipstatustip" class="noborder" onmouseover="javascript:overlib('{tooltip.admin}',REF,'shipstatustip', REFC,'LR',REFP,'UL',FGCLASS,'gfxtooltip',BGCLASS,'gfxtooltip',TEXTFONTCLASS,'gfxtooltip',TIMEOUT,0);" onmouseout="return nd();" href="#"> |
|---|
| 188 |
<img src="{URL}data/interface/admin.png" alt="?" /> |
|---|
| 189 |
</a> |
|---|
| 190 |
{/endif} |
|---|
| 191 |
{if ship.show.respawn} |
|---|
| 192 |
{if ship.hasrespawn} |
|---|
| 193 |
<a id="shiprespawntip" name="shiprespawntip" class="noborder" onmouseover="javascript:overlib('Respawn-Dauer: {ship.respawn}',REF,'shiprespawntip', REFC,'LR',REFP,'UL',TIMEOUT,0);" onmouseout="return nd();" href="./ds?module=schiff&sess={global.sess}&ship={ship.id}&action=respawn"> |
|---|
| 194 |
<img src="{URL}data/interface/respawn_yes.png" alt="" /> |
|---|
| 195 |
</a> |
|---|
| 196 |
{else} |
|---|
| 197 |
<script type="text/javascript"> |
|---|
| 198 |
<!-- |
|---|
| 199 |
function respawntooltip() { |
|---|
| 200 |
var tooltiptext = ""; |
|---|
| 201 |
tooltiptext += "{tooltip.respawn.begin}"; |
|---|
| 202 |
tooltiptext += "<span style='text-decoration:underline'>Respawn-Daten</span> (<a class='error' onclick='return nd();' href='javascript:void(0)'>X</a>)<br />"; |
|---|
| 203 |
tooltiptext += "<form action='./ds' method='post'><div>"; |
|---|
| 204 |
tooltiptext += "<input type='hidden' name='sess' value='{global.sess}' />"; |
|---|
| 205 |
tooltiptext += "<input type='hidden' name='module' value='schiff' />"; |
|---|
| 206 |
tooltiptext += "<input type='hidden' name='ship' value='{ship.id}' />"; |
|---|
| 207 |
tooltiptext += "<input type='hidden' name='action' value='respawn' />"; |
|---|
| 208 |
tooltiptext += "Zeit: <input type='text' name='respawntime' value='{ship.respawn}' size='5' /><br />"; |
|---|
| 209 |
tooltiptext += "<input type='submit' value='anlegen' />"; |
|---|
| 210 |
tooltiptext += "</div></form>"; |
|---|
| 211 |
tooltiptext += "{tooltip.respawn.end}"; |
|---|
| 212 |
overlib(tooltiptext,REF,'shiprespawntip', REFC,'UL',REFP,'UL',FGCLASS,'gfxtooltip',BGCLASS,'gfxtooltip',TEXTFONTCLASS,'gfxtooltip',STICKY); |
|---|
| 213 |
} |
|---|
| 214 |
// --> |
|---|
| 215 |
</script> |
|---|
| 216 |
|
|---|
| 217 |
<a id="shiprespawntip" name="shiprespawntip" class="noborder" onclick="respawntooltip();" href="#"> |
|---|
| 218 |
<img src="{URL}data/interface/respawn.png" alt="?" /> |
|---|
| 219 |
</a> |
|---|
| 220 |
{/endif} |
|---|
| 221 |
{/endif} |
|---|
| 222 |
{if ship.npcislandlink} |
|---|
| 223 |
<a class="noborder" onmouseover="return helpme('zur Insel');" onmouseout="return nd();" href="./ds?module=schiff&sess={global.sess}&ship={ship.id}&action=insel"> |
|---|
| 224 |
<img src="{URL}data/interface/schiffe/tunnel.png" alt="Insel der Glücksehligkeit" /> |
|---|
| 225 |
</a> |
|---|
| 226 |
{/endif} |
|---|
| 227 |
{if tooltip.module} |
|---|
| 228 |
<a id="shipmoduletip" name="shipmoduleetip" class="noborder" onmouseover="javascript:overlib('{tooltip.module}',REF,'shipmoduletip', REFC,'LR',REFP,'UL',FGCLASS,'gfxtooltip',BGCLASS,'gfxtooltip',TEXTFONTCLASS,'gfxtooltip',TIMEOUT,0);" onmouseout="return nd();" href="#"> |
|---|
| 229 |
<img src="{URL}data/interface/info.png" alt="?" /> |
|---|
| 230 |
</a> |
|---|
| 231 |
{/endif} |
|---|
| 232 |
{if tooltip.moduleext} |
|---|
| 233 |
<a id="shipmoduletip" name="shipmoduleetip" class="noborder" onmouseover="javascript:overlib('{tooltip.moduleext}',REF,'shipmoduletip', REFC,'LR',REFP,'UL',FGCLASS,'gfxtooltip',BGCLASS,'gfxtooltip',TEXTFONTCLASS,'gfxtooltip',TIMEOUT,0,STICKY,NOCLOSE);" onmouseout="return nd();" href="#"> |
|---|
| 234 |
<img src="{URL}data/interface/info.png" alt="?" /> |
|---|
| 235 |
</a> |
|---|
| 236 |
{/endif} |
|---|
| 237 |
<br /> |
|---|
| 238 |
<hr style="height:1px; border:0px; background-color:#606060; color:#606060" /> |
|---|
| 239 |
{if ship.shields.reloade} |
|---|
| 240 |
<form action="./ds" method="post"> |
|---|
| 241 |
<div> |
|---|
| 242 |
<label for="shup">Schilde:</label> |
|---|
| 243 |
<input id="shup" name="shup" type="text" size="5" value="{ship.shields.reloade}" /> |
|---|
| 244 |
{!form_create_hidden shup, ship:$ship.id} |
|---|
| 245 |
<input type="submit" value="aufladen" /> |
|---|
| 246 |
</div> |
|---|
| 247 |
</form> |
|---|
| 248 |
{/endif} |
|---|
| 249 |
{if ship.showalarm} |
|---|
| 250 |
<form action="./ds" method="post"> |
|---|
| 251 |
<div> |
|---|
| 252 |
<label for="alarm">Befehle:</label> |
|---|
| 253 |
<select id="alarm" name="alarm"> |
|---|
| 254 |
<!-- BEGIN ship.alarms.listitem --> |
|---|
| 255 |
<option {if alarm.selected}selected="selected"{/endif} value="{alarm.id}">{alarm.name}</option> |
|---|
| 256 |
<!-- END ship.alarms.listitem --> |
|---|
| 257 |
</select> |
|---|
| 258 |
{!form_create_hidden alarm, ship:$ship.id} |
|---|
| 259 |
<input type="submit" value="ok" /> |
|---|
| 260 |
</div> |
|---|
| 261 |
</form> |
|---|
| 262 |
{/endif} |
|---|
| 263 |
|
|---|
| 264 |
<form action="./ds" method="post"> |
|---|
| 265 |
<div> |
|---|
| 266 |
<label for="newname">Name:</label> |
|---|
| 267 |
<input id="newname" name="newname" type="text" size="15" value="{ship.name}" /> |
|---|
| 268 |
{!form_create_hidden rename, ship:$ship.id} |
|---|
| 269 |
<input type="submit" value="rename" /> |
|---|
| 270 |
</div> |
|---|
| 271 |
</form> |
|---|
| 272 |
|
|---|
| 273 |
{if ship.consignable} |
|---|
| 274 |
<form action="./ds" method="post"> |
|---|
| 275 |
<div> |
|---|
| 276 |
<label for="newowner">An User</label> |
|---|
| 277 |
<input id="newowner" name="newowner" type="text" size="5" value="0" /> |
|---|
| 278 |
{!form_create_hidden consign, ship:$ship.id} |
|---|
| 279 |
<input type="submit" value="übergeben" /> |
|---|
| 280 |
</div> |
|---|
| 281 |
</form> |
|---|
| 282 |
{/endif} |
|---|
| 283 |
</td> |
|---|
| 284 |
<td class="schiff" style="width:230px" valign="top" align="center" colspan="2"> |
|---|
| 285 |
{plugin.navigation} |
|---|
| 286 |
</td> |
|---|
| 287 |
<td class="schiffWaren" style="width:260px" valign="top"> |
|---|
| 288 |
{plugin.cargo} |
|---|
| 289 |
</td> |
|---|
| 290 |
</tr> |
|---|
| 291 |
</table> |
|---|
| 292 |
<div> |
|---|
| 293 |
<br /> |
|---|
| 294 |
|
|---|
| 295 |
{if ship.scriptparseroutput} |
|---|
| 296 |
{!table_begin 850,left} |
|---|
| 297 |
{ship.scriptparseroutput} |
|---|
| 298 |
{!table_end} |
|---|
| 299 |
<br /> |
|---|
| 300 |
{/endif} |
|---|
| 301 |
<!-- BEGIN plugins.listitem --> |
|---|
| 302 |
{plugin.output} |
|---|
| 303 |
<br /> |
|---|
| 304 |
<!-- END plugins.listitem --> |
|---|
| 305 |
<br /> |
|---|
| 306 |
</div> |
|---|
| 307 |
{else} |
|---|
| 308 |
{if ship.scriptparseroutput} |
|---|
| 309 |
{!table_begin 850,left} |
|---|
| 310 |
{ship.scriptparseroutput} |
|---|
| 311 |
{!table_end} |
|---|
| 312 |
<div> |
|---|
| 313 |
<br /> |
|---|
| 314 |
</div> |
|---|
| 315 |
{/endif} |
|---|
| 316 |
{/endif} |
|---|