| 1 |
<span class="smallfont"> |
|---|
| 2 |
{if fleetmgnt.message} |
|---|
| 3 |
{fleetmgnt.message}<br /><br /> |
|---|
| 4 |
{/endif} |
|---|
| 5 |
{if show.create} |
|---|
| 6 |
<span style="font-weight:bold; font-style:italic">Flotte erstellen</span><br /><br /> |
|---|
| 7 |
<form action="ds" method="post"> |
|---|
| 8 |
{!form_create_hidden create2, shiplist:$create.shiplist} |
|---|
| 9 |
Name der Flotte: <input type="text" name="fleetname" value="Neue Flotte" /><br /> |
|---|
| 10 |
<input type="submit" value="Flotte erstellen" /> |
|---|
| 11 |
</form> |
|---|
| 12 |
{/endif} |
|---|
| 13 |
{if show.rename} |
|---|
| 14 |
{!table_begin 355, center} |
|---|
| 15 |
<span style="font-weight:bold; font-style: italic">Flotte umbenennen</span><br /> |
|---|
| 16 |
<span style="font-style:italic">> {fleet.name} <</span><br /><br /> |
|---|
| 17 |
<form action="ds" method="post"> |
|---|
| 18 |
{!form_create_hidden rename2, fleet:$fleet.id} |
|---|
| 19 |
<table class="noBorder"> |
|---|
| 20 |
<tr> |
|---|
| 21 |
<td class="noBorderX">Name: <input type="text" name="fleetname" value="{fleet.name}" /></td> |
|---|
| 22 |
</tr> |
|---|
| 23 |
<tr> |
|---|
| 24 |
<td class="noBorderX" align="center"><input type="submit" value="Flotte umbenennen" /></td> |
|---|
| 25 |
</tr> |
|---|
| 26 |
</table> |
|---|
| 27 |
</form> |
|---|
| 28 |
{!table_end} |
|---|
| 29 |
{/endif} |
|---|
| 30 |
{if show.export} |
|---|
| 31 |
[{fleet.name}]<br /> |
|---|
| 32 |
<!-- BEGIN exportships.listitem --> |
|---|
| 33 |
{ship.id},{ship.name}<br /> |
|---|
| 34 |
<!-- END exportships.listitem --> |
|---|
| 35 |
{/endif} |
|---|
| 36 |
{if show.kill} |
|---|
| 37 |
{!table_begin 355, center} |
|---|
| 38 |
<span style="font-weight:bold; font-style: italic">Flotte auflösen</span><br /> |
|---|
| 39 |
<span style="font-style:italic">> {fleet.name} <</span><br /><br /> |
|---|
| 40 |
Wollen sie die Flotte wirklich auflösen?<br /> |
|---|
| 41 |
{!link_to Nein, default, css_class:ok, fleet:$fleet.id} - |
|---|
| 42 |
{!link_to Ja, kill2, css_class:error, fleet:$fleet.id} |
|---|
| 43 |
{!table_end} |
|---|
| 44 |
{/endif} |
|---|
| 45 |
{if show.newowner} |
|---|
| 46 |
{!table_begin 355, center} |
|---|
| 47 |
<span style="font-weight:bold; font-style: italic">Flotte übergeben</span><br /> |
|---|
| 48 |
<span style="font-style:italic">> {fleet.name} <</span><br /><br /> |
|---|
| 49 |
<form action="ds" method="post"> |
|---|
| 50 |
{!form_create_hidden newowner2, fleet:$fleet.id} |
|---|
| 51 |
Neuer Besitzer: <input type="text" name="ownerid" value="0" size="4" /> |
|---|
| 52 |
<input type="submit" value="ok" /> |
|---|
| 53 |
</form> |
|---|
| 54 |
{!table_end} |
|---|
| 55 |
{/endif} |
|---|
| 56 |
{if show.newowner2} |
|---|
| 57 |
{!table_begin 355, center} |
|---|
| 58 |
<span style="font-weight:bold; font-style:italic">Flotte übergeben</span><br /> |
|---|
| 59 |
<span style="font-style:italic">> {fleet.name} <</span><br /><br /> |
|---|
| 60 |
Wollen sie die Flotte wirklich an {newowner.name} übergeben?<br /> |
|---|
| 61 |
{!link_to Nein, default, css_class:ok, fleet:$fleet.id} - |
|---|
| 62 |
{!link_to Ja, newowner3, css_class:error, fleet:$fleet.id, ownerid:$newowner.id} |
|---|
| 63 |
{!table_end} |
|---|
| 64 |
{/endif} |
|---|
| 65 |
{if show.renameShips} |
|---|
| 66 |
{!table_begin 355, center} |
|---|
| 67 |
<h3>Schiffe umbenennen</h3> |
|---|
| 68 |
<span style="font-style:italic">> {fleet.name} <</span><br /><br /> |
|---|
| 69 |
<form action="ds" method="post"> |
|---|
| 70 |
{!form_create_hidden renameShips2, fleet:$fleet.id} |
|---|
| 71 |
Namensmuster: <input type="text" name="name" value="{fleet.name} $(number)" maxlength="50" /> |
|---|
| 72 |
<input type="submit" value="ok" /> |
|---|
| 73 |
</form> |
|---|
| 74 |
<br /> |
|---|
| 75 |
<h3>Platzhalter</h3> |
|---|
| 76 |
<ul> |
|---|
| 77 |
<li>$(number) - Gibt jedem Schiff eine individuelle Nummer beginnend bei 1</li> |
|---|
| 78 |
<li>$(roman) - Gibt jedem Schiff eine individuelle Nummer in Form einer römischen Ziffer beginnend bei I (1)</li> |
|---|
| 79 |
</ul> |
|---|
| 80 |
{!table_end} |
|---|
| 81 |
{/endif} |
|---|
| 82 |
{if show.view} |
|---|
| 83 |
{!table_begin 355,center} |
|---|
| 84 |
<span style="font-style:italic">{fleet.name}</span><br /><br /> |
|---|
| 85 |
<table class="noBorderX"> |
|---|
| 86 |
<tr> |
|---|
| 87 |
<td class="noBorderX" style="text-align:center; width:50px">ID</td> |
|---|
| 88 |
<td class="noBorderX" style="text-align:center; width:150px">Name</td> |
|---|
| 89 |
<td class="noBorderX" style="text-align:center; width:150px">Typ</td> |
|---|
| 90 |
<td class="noBorderX"></td> |
|---|
| 91 |
</tr> |
|---|
| 92 |
<!-- BEGIN ships.listitem --> |
|---|
| 93 |
<tr> |
|---|
| 94 |
<td class="noBorderX"> |
|---|
| 95 |
<a class="forschinfo" href="javascript:showShip('{ship.id}')">{ship.id}</a> |
|---|
| 96 |
</td> |
|---|
| 97 |
|
|---|
| 98 |
<td class="noBorderX"> |
|---|
| 99 |
{if ship.showwarning} |
|---|
| 100 |
<img src="{URL}data/interface/warnung.png" alt="Warnung" /> |
|---|
| 101 |
{/endif} |
|---|
| 102 |
{if ship.showbattle} |
|---|
| 103 |
<a href="javascript:showBattle('{ship.showbattle}','{ship.id}')"> |
|---|
| 104 |
<img src="{URL}battle_small.gif" alt="Schlacht" /> |
|---|
| 105 |
</a> |
|---|
| 106 |
{/endif} |
|---|
| 107 |
<a class="forschinfo" href="javascript:showShip('{ship.id}')"> |
|---|
| 108 |
{ship.name} |
|---|
| 109 |
</a> |
|---|
| 110 |
</td> |
|---|
| 111 |
|
|---|
| 112 |
<td class="noBorderX">{ship.type.name}</td> |
|---|
| 113 |
<td class="noBorderX"> |
|---|
| 114 |
<a class="error" href="javascript:removeShip('{ship.id}')">[x]</a> |
|---|
| 115 |
</td> |
|---|
| 116 |
</tr> |
|---|
| 117 |
<!-- END ships.listitem --> |
|---|
| 118 |
</table> |
|---|
| 119 |
<br /> |
|---|
| 120 |
<hr noshade="noshade" size="1" style="color:#cccccc" /> |
|---|
| 121 |
<div align="left"> |
|---|
| 122 |
<script type="text/javascript"> |
|---|
| 123 |
<!-- |
|---|
| 124 |
function actionSelectChange(action) { |
|---|
| 125 |
{if jaegertypes.list} |
|---|
| 126 |
if( action == "jland" ) { |
|---|
| 127 |
document.getElementById("jaegertype").style.display = 'inline'; |
|---|
| 128 |
} |
|---|
| 129 |
else { |
|---|
| 130 |
document.getElementById("jaegertype").style.display = 'none'; |
|---|
| 131 |
} |
|---|
| 132 |
{/endif} |
|---|
| 133 |
{if fleetcombine.list} |
|---|
| 134 |
if( action == "fleetcombine" ) { |
|---|
| 135 |
document.getElementById("fleetcombine").style.display = 'inline'; |
|---|
| 136 |
} |
|---|
| 137 |
else { |
|---|
| 138 |
document.getElementById("fleetcombine").style.display = 'none'; |
|---|
| 139 |
} |
|---|
| 140 |
{/endif} |
|---|
| 141 |
if( action == "alarm" ) { |
|---|
| 142 |
document.getElementById("alarm").style.display = 'inline'; |
|---|
| 143 |
} |
|---|
| 144 |
else { |
|---|
| 145 |
document.getElementById("alarm").style.display = 'none'; |
|---|
| 146 |
} |
|---|
| 147 |
|
|---|
| 148 |
if(action == "getCrew") |
|---|
| 149 |
{ |
|---|
| 150 |
document.getElementById("crewinpercent").style.display = 'inline'; |
|---|
| 151 |
document.getElementById("percent").style.display = 'inline'; |
|---|
| 152 |
} |
|---|
| 153 |
else |
|---|
| 154 |
{ |
|---|
| 155 |
document.getElementById("crewinpercent").style.display = 'none'; |
|---|
| 156 |
document.getElementById("percent").style.display = 'none'; |
|---|
| 157 |
} |
|---|
| 158 |
|
|---|
| 159 |
if( action == "build" ) { |
|---|
| 160 |
document.getElementById("buildcount").style.display = 'inline'; |
|---|
| 161 |
document.getElementById("buildid").style.display = 'inline'; |
|---|
| 162 |
} |
|---|
| 163 |
else { |
|---|
| 164 |
document.getElementById("buildcount").style.display = 'none'; |
|---|
| 165 |
document.getElementById("buildid").style.display = 'none'; |
|---|
| 166 |
} |
|---|
| 167 |
|
|---|
| 168 |
} |
|---|
| 169 |
--> |
|---|
| 170 |
</script> |
|---|
| 171 |
|
|---|
| 172 |
<span style="font-style:italic">Aktionen:</span><br /> |
|---|
| 173 |
<form action="./ds" method="post"> |
|---|
| 174 |
<input type="hidden" name="sess" value="{global.sess}" /> |
|---|
| 175 |
<input type="hidden" name="fleet" value="{fleet.id}" /> |
|---|
| 176 |
<input type="hidden" name="module" value="fleetmgnt" /> |
|---|
| 177 |
<select name="action" size="1" onchange="actionSelectChange(this.options[this.options.selectedIndex].value)"> |
|---|
| 178 |
<option value="shup">Schilde aufladen</option> |
|---|
| 179 |
<option value="chargeBatteries">Batterien aufladen</option> |
|---|
| 180 |
<option value="dischargeBatteries">Batterien entladen</option> |
|---|
| 181 |
<option value="alarm">Alarmstufe ändern</option> |
|---|
| 182 |
<option value="show">---------</option> |
|---|
| 183 |
<option value="jstart">Jäger starten</option> |
|---|
| 184 |
{if jaegertypes.list} |
|---|
| 185 |
<option value="jland">Jäger aufsammeln</option> |
|---|
| 186 |
{/endif} |
|---|
| 187 |
<option value="undock">Schiffe abdocken</option> |
|---|
| 188 |
<option value="redock">Container aufsammeln</option> |
|---|
| 189 |
<option value="show">---------</option> |
|---|
| 190 |
{if fleetcombine.list} |
|---|
| 191 |
<option value="fleetcombine">Flotten zusammenlegen</option> |
|---|
| 192 |
{/endif} |
|---|
| 193 |
{if buildableships.list} |
|---|
| 194 |
<option value="build">Schiffe bauen</option> |
|---|
| 195 |
{/endif} |
|---|
| 196 |
{if astiinsector} |
|---|
| 197 |
<option value="getCrew">Schiffe bemannen</option> |
|---|
| 198 |
{/endif} |
|---|
| 199 |
<option value="rename">Flotte umbenennen</option> |
|---|
| 200 |
<option value="kill">auflösen</option> |
|---|
| 201 |
<option value="newowner">übergeben</option> |
|---|
| 202 |
<option value="renameShips">Schiffe umbenennen</option> |
|---|
| 203 |
<option value="show">---------</option> |
|---|
| 204 |
<option value="export">exportieren</option> |
|---|
| 205 |
</select> |
|---|
| 206 |
{if jaegertypes.list} |
|---|
| 207 |
<select id="jaegertype" name="jaegertype" size="1" style="display:none"> |
|---|
| 208 |
<option value="-1">alle</option> |
|---|
| 209 |
<!-- BEGIN jaegertypes.listitem --> |
|---|
| 210 |
<option value="{jaegertype.id}">{jaegertype.name}</option> |
|---|
| 211 |
<!-- END jaegertypes.listitem --> |
|---|
| 212 |
</select> |
|---|
| 213 |
{/endif} |
|---|
| 214 |
{if fleetcombine.list} |
|---|
| 215 |
<select id="fleetcombine" name="fleetcombine" size="1" style="display:none"> |
|---|
| 216 |
<!-- BEGIN fleetcombine.listitem --> |
|---|
| 217 |
<option value="{fleetcombine.id}">{fleetcombine.name} - {fleetcombine.shipcount} Schiffe</option> |
|---|
| 218 |
<!-- END fleetcombine.listitem --> |
|---|
| 219 |
</select> |
|---|
| 220 |
{/endif} |
|---|
| 221 |
<select id="alarm" name="alarm" size="1" style="display:none"> |
|---|
| 222 |
<option value="0">gelb</option> |
|---|
| 223 |
<option value="1">rot</option> |
|---|
| 224 |
</select> |
|---|
| 225 |
<input type="text" id="crewinpercent" name="crewinpercent" style="display:none" size="3" maxlength="3" /><span id="percent" name="percent" style="display:none">%</span> |
|---|
| 226 |
{if buildableships.list} |
|---|
| 227 |
<input type="text" id="buildcount" name="buildcount" style="display:none" size="3" maxlength="3" /> |
|---|
| 228 |
<select id="buildid" name="buildid" size="1" style="display:none"> |
|---|
| 229 |
<!-- BEGIN buildableships.listitem --> |
|---|
| 230 |
<option value="{buildableships.id}">{buildableships.name}</option> |
|---|
| 231 |
<!-- END buildableships.listitem --> |
|---|
| 232 |
</select> |
|---|
| 233 |
{/endif} |
|---|
| 234 |
<input type="submit" value="ok" /> |
|---|
| 235 |
</form> |
|---|
| 236 |
</div> |
|---|
| 237 |
{!table_end} |
|---|
| 238 |
{/endif} |
|---|
| 239 |
</span> |
|---|
| 240 |
|
|---|
| 241 |
<script type="text/javascript"> |
|---|
| 242 |
<!-- |
|---|
| 243 |
function showShip( ship ) { |
|---|
| 244 |
opener.parent.frames['main'].location.href = './ds?module=schiff&sess={global.sess}&ship='+ship; |
|---|
| 245 |
} |
|---|
| 246 |
|
|---|
| 247 |
function refreshOwn() { |
|---|
| 248 |
window.location.href = './ds?module=fleetmgnt&sess={global.sess}&fleet={fleet.id}'; |
|---|
| 249 |
} |
|---|
| 250 |
|
|---|
| 251 |
function removeShip( ship ) { |
|---|
| 252 |
opener.parent.frames['main'].location.href = './ds?module=schiff&sess={global.sess}&ship='+ship+'&action=join&join=0'; |
|---|
| 253 |
window.setTimeout("refreshOwn()", 1000); |
|---|
| 254 |
} |
|---|
| 255 |
|
|---|
| 256 |
function showBattle( battle, ship ) { |
|---|
| 257 |
opener.parent.frames['main'].location.href = './ds?module=angriff&sess={global.sess}&battle='+battle+'&ship='+ship; |
|---|
| 258 |
window.close(); |
|---|
| 259 |
} |
|---|
| 260 |
|
|---|
| 261 |
var sessid; |
|---|
| 262 |
|
|---|
| 263 |
function reloadMainpage(sess) { |
|---|
| 264 |
sessid = sess; |
|---|
| 265 |
window.setTimeout("reloadMainpage2()", 1000); |
|---|
| 266 |
} |
|---|
| 267 |
|
|---|
| 268 |
{if jscript.reloadmain} |
|---|
| 269 |
var shipid = {jscript.reloadmain.ship}; |
|---|
| 270 |
|
|---|
| 271 |
function reloadMainpage2() { |
|---|
| 272 |
var szUrl = opener.parent.frames['main'].location.href; |
|---|
| 273 |
if( (szUrl.search(/\?/) == -1) && (szUrl.search(/ship=/) == -1) && (shipid > 0) ) { |
|---|
| 274 |
szUrl = szUrl + '?sess='+sessid+'&ship='+shipid; |
|---|
| 275 |
} |
|---|
| 276 |
szUrl = szUrl + "&tmp=1"; |
|---|
| 277 |
|
|---|
| 278 |
var szUrl2 = szUrl.replace(/plugin=(.*)\&/,"&"); |
|---|
| 279 |
szUrl2 = szUrl2.replace(/join=(.*)\&/,"&"); |
|---|
| 280 |
szUrl2 = szUrl2.replace(/node=(.*)\&/,"&"); |
|---|
| 281 |
szUrl2 = szUrl2.replace(/newname=(.*)\&/,"&"); |
|---|
| 282 |
szUrl2 = szUrl2.replace(/shup=(.*)\&/,"&"); |
|---|
| 283 |
szUrl2 = szUrl2.replace(/land=(.*)\&/,"&"); |
|---|
| 284 |
szUrl2 = szUrl2.replace(/newowner=(.*)\&/,"&"); |
|---|
| 285 |
szUrl2 = szUrl2.replace(/land=(.*)\&/,"&"); |
|---|
| 286 |
szUrl2 = szUrl2.replace(/shiplist=(.*)\&/,"&"); |
|---|
| 287 |
szUrl2 = szUrl2.replace(/\&tmp=(.*)1/,""); |
|---|
| 288 |
szUrl2 = szUrl2.replace(/\&action=(.*)\&/,"&action=default&"); |
|---|
| 289 |
|
|---|
| 290 |
opener.parent.frames['main'].location = szUrl2; |
|---|
| 291 |
} |
|---|
| 292 |
{else} |
|---|
| 293 |
function reloadMainpage2() { |
|---|
| 294 |
} |
|---|
| 295 |
{/endif} |
|---|
| 296 |
--> |
|---|
| 297 |
</script> |
|---|