Changeset 3bcb33f334d330b70ca074d6d076c5cadedfb18f

Show
Ignore:
Timestamp:
09/22/07 13:51:36 (1 year ago)
Author:
Christopher Jung <bktheg@web.de>
git-committer:
Christopher Jung <bktheg@web.de> 1190461896 +0200
git-parent:

[2193fdb03bec86da29b451687ac4f02530f867fd]

git-author:
Sebastian Gift <Madison@gt-knm.de> 1190461896 +0200
Message:

Einem Schiffstyp kann jetzt zugeordnet werden, ob er ein SRS hat oder nicht. Gleichzeitig sind die SRS gelandeter Schiffe abgeschaltet.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • db/tables/ship_types.sql

    r476c005 r3bcb33f  
    3636  `shipcount` tinyint(3) unsigned NOT NULL default '1', 
    3737  `hide` tinyint(1) NOT NULL default '0', 
     38  `srs` tinyint NOT NULL default '1', 
    3839  PRIMARY KEY  (`id`) 
    3940) ENGINE=InnoDB DEFAULT CHARSET=utf8;  
  • db/tables/ships_modules.sql

    r4f02618 r3bcb33f  
    3131  `werft` int(11) NOT NULL default '0', 
    3232  `ow_werft` smallint(6) NOT NULL default '0', 
     33  `srs` tinyint NOT NULL default '1', 
    3334  PRIMARY KEY  (`id`) 
    3435) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='modifizierte Schiffstypenwerte fuer "jedes" Schiff';  
  • db/updates.xml

    r2193fdb r3bcb33f  
    400400                ALTER TABLE `ships_modules` ADD `srs` TINYINT NOT NULL DEFAULT '1'; 
    401401        ]]></update> 
     402        <update type="structure" datum="2007-09-22"><![CDATA[ 
     403                ALTER TABLE `ship_types` ADD `srs` TINYINT NOT NULL DEFAULT '1'; 
     404                ALTER TABLE `ships_modules` ADD `srs` TINYINT NOT NULL DEFAULT '1'; 
     405        ]]></update> 
    402406</updates> 
  • src/net/driftingsouls/ds2/server/modules/schiffplugins/SensorsDefault.java

    rbe21079 r3bcb33f  
    9595                 
    9696                t.set_file("_PLUGIN_"+pluginid, "schiff.sensors.default.html"); 
     97                 
     98                //Kein SRS oder nicht nutzbar? Ende Gelaende. 
     99                if(!ship.canUseSrs()) 
     100                { 
     101                        t.set_var("has.srs", 0); 
     102                        return; 
     103                } 
     104                 
    97105                t.set_var(      "global.ship",                          ship.getId(), 
    98106                                        "global.pluginid",                      pluginid, 
  • src/net/driftingsouls/ds2/server/ships/AbstractShipTypeDataWrapper.java

    r4f02618 r3bcb33f  
    211211                return inner.getAblativeArmor(); 
    212212        } 
     213         
     214        public boolean hasSrs() { 
     215                return inner.hasSrs(); 
     216        } 
    213217} 
  • src/net/driftingsouls/ds2/server/ships/Ship.java

    r2193fdb r3bcb33f  
    33033303                return true; 
    33043304        } 
    3305          
    3306         /** 
    3307          * Bestimmt, ob ein Schiff sein SRS nutzen kann. 
    3308          *  
    3309          * @return <code>False</code>, wenn das Schiff kein SRS hat oder gelandet ist. <code>True</code> ansonsten. 
    3310          */ 
    3311         public boolean canUseSrs() 
    3312         { 
    3313                 if(!getTypeData().hasSrs()) 
    3314                 { 
    3315                         return false; 
    3316                 } 
    3317                  
    3318                 String motherShip = getDocked(); 
    3319                 if(motherShip != null && motherShip.startsWith("l")) 
    3320                 { 
    3321                         return false; 
    3322                 } 
    3323                  
    3324                 return true; 
    3325         } 
    33263305} 
  • src/net/driftingsouls/ds2/server/ships/ShipModules.java

    r4f02618 r3bcb33f  
    7979        private int oneWayWerft; 
    8080        private int ablativeArmor; 
     81        private boolean srs; 
    8182         
    8283        /** 
     
    523524                this.ablativeArmor = ablativeArmor; 
    524525        } 
     526 
     527        public boolean hasSrs() { 
     528                return srs; 
     529        } 
     530 
     531        /** 
     532         * Setzt, ob das Schiff SRS hat oder nicht 
     533         * @param srs <code>true</code>, falls es SRS haben soll 
     534         */ 
     535        public void setSrs(boolean srs) { 
     536                this.srs = srs; 
     537        } 
    525538} 
  • src/net/driftingsouls/ds2/server/ships/ShipType.java

    r4f02618 r3bcb33f  
    8484        private boolean hide; 
    8585        private int ablativeArmor; 
     86        private boolean srs; 
    8687         
    8788        /** 
     
    272273                return ablativeArmor; 
    273274        } 
     275 
     276        public boolean hasSrs() { 
     277                return srs; 
     278        } 
    274279} 
  • src/net/driftingsouls/ds2/server/ships/ShipTypeChangeset.java

    r7e4803e r3bcb33f  
    7272        private int oneWayWerft; 
    7373        private String pictureMod; 
     74        private boolean srs; 
    7475         
    7576        /** 
     
    472473        public String getPictureMods() { 
    473474                return pictureMod; 
     475        } 
     476         
     477        /** 
     478         * Gibt zurueck, ob SRS vorhanden sein sollen 
     479         * @return <code>true</code>, falls SRS vorhanden sein sollen 
     480         */ 
     481        public boolean hasSrs() { 
     482                return srs; 
    474483        } 
    475484         
     
    891900                        return value; 
    892901                } 
     902 
     903                public boolean hasSrs() { 
     904                        return inner.hasSrs() && ShipTypeChangeset.this.hasSrs(); 
     905                } 
    893906        } 
    894907} 
  • src/net/driftingsouls/ds2/server/ships/ShipTypeData.java

    r4f02618 r3bcb33f  
    259259         */ 
    260260        public int getAblativeArmor(); 
     261         
     262        /** 
     263         * Gibt zurueck, ob ein Schiff ein SRS besitzt. 
     264         *  
     265         * @return <code>True</code>, wenn es ein SRS hat, <code>false</code> ansonsten. 
     266         */ 
     267        public boolean hasSrs(); 
    261268         
    262269        /** 
  • templates/schiff.sensors.default.html

    rb3040ca r3bcb33f  
    1717        Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
    1818--> 
    19 <table width="95%" class="show" cellpadding="3" cellspacing="3"> 
    20 <tr> 
    21         <td class="schiff" valign="middle">Sensoren 
    22                 {if global.longscan} 
    23                         &nbsp;-&nbsp;<a href="./ds?module=scan&amp;sess={global.sess}&amp;ship={global.ship}"><img style="vertical-align:top" src="{URL}data/interface/schiffe/scan.gif" alt="Sensoren" /></a> 
    24                 {/endif} 
    25         </td> 
    26 </tr> 
    27 <tr><td class="Border"> 
    28 {if global.goodscan} 
    29         <span style="font-weight:bold; color:#ff0505">Scan von {ship.sensors.location}</span><br /> 
    30 {/endif} 
    31 {if global.badscan} 
    32         <span style="font-weight:bold; color:#ff0505">Basen in {ship.sensors.location}</span><br /> 
    33 {/endif} 
    34  
    35 {if global.scan} 
    36         <table class="show"> 
    37         <tr class="show"> 
    38         <td class="show" style="width:30px"><a class="forschinfo" href="./ds?module=schiff&amp;sess={global.sess}&amp;ship={global.ship}&amp;action=plugin&amp;plugin={global.pluginid}&amp;{global.pluginid}_ops[order]=id">ID</a></td> 
    39         <td class="show" style="width:150px"><a class="forschinfo" href="./ds?module=schiff&amp;sess={global.sess}&amp;ship={global.ship}&amp;action=plugin&amp;plugin={global.pluginid}&amp;{global.pluginid}_ops[order]=owner">Besitzer</a></td> 
    40         <td class="show" style="width:150px"><a class="forschinfo" href="./ds?module=schiff&amp;sess={global.sess}&amp;ship={global.ship}&amp;action=plugin&amp;plugin={global.pluginid}&amp;{global.pluginid}_ops[order]=name">Name</a></td> 
    41         <td class="show" style="width:100px"><a class="forschinfo" href="./ds?module=schiff&amp;sess={global.sess}&amp;ship={global.ship}&amp;action=plugin&amp;plugin={global.pluginid}&amp;{global.pluginid}_ops[order]=shiptype">Klasse</a></td> 
    42         <td class="show"><span class="smallfont">Zustand</span></td> 
    43         {if global.awac}<td class="show"><span class="smallfont">Info</span></td>{/endif} 
    44         <td class="show"><span class="smallfont">Aktionen</span></td></tr> 
    45  
    46         <!-- BEGIN bases.listitem --> 
    47                 <tr><td class="show2"><span class="smallfont"> 
    48                 {if base.ownbase} 
    49                         <a class="schiff" href="./ds?module=base&amp;sess={global.sess}&amp;col={base.id}">{base.id}</a> 
    50                 {else} 
    51                         {base.id} 
    52                 {/endif} 
    53                 </span></td> 
    54                 <td class="show2" style="width:150px"><span class="smallfont"> 
    55                 {if base.pm} 
    56                         <a class="profile" href="./ds?module=userprofile&amp;sess={global.sess}&amp;user={base.owner.id}">{base.owner.name}</a> 
    57                 {else} 
    58                         {base.owner.name} 
    59                 {/endif} 
    60                 </span></td> 
    61                 <td class="show2"><span class="smallfont">{base.name}</span> 
    62                 {if base.size} 
    63                         <br /><span class="verysmallfont">Gr&ouml;&szlig;e: {base.size}</span> 
    64                 {/endif} 
     19{if has.srs} 
     20        <table width="95%" class="show" cellpadding="3" cellspacing="3"> 
     21        <tr> 
     22                <td class="schiff" valign="middle">Sensoren 
     23                        {if global.longscan} 
     24                                &nbsp;-&nbsp;<a href="./ds?module=scan&amp;sess={global.sess}&amp;ship={global.ship}"><img style="vertical-align:top" src="{URL}data/interface/schiffe/scan.gif" alt="Sensoren" /></a> 
     25                        {/endif} 
    6526                </td> 
    66                 <td class="show2"><img src="{base.image}" alt="Kolonie" /></td> 
    67                 <td class="show2">&nbsp;</td> 
    68                 {if global.awac}<td class="show2">&nbsp;</td>{/endif} 
    69                 <td class="show2" align="left"> 
    70                 {if base.colonize} 
    71                         <a class="greenborder" onmouseover="return helpme('{base.name} kolonisieren');" onmouseout="return nd();" href="./ds?module=colonize&amp;sess={global.sess}&amp;col={base.id}&amp;ship={global.ship}"><img src="{URL}data/interface/schiffe/schiff_kolonisieren.gif" alt="" /></a> 
    72                 {/endif}{if base.transfer} 
    73                         <a class="greenborder" onmouseover="return helpme('mit {base.name} Waren austauschen');" onmouseout="return nd();" href="./ds?module=transport&amp;sess={global.sess}&amp;to={base.id}&amp;from={global.ship}&amp;way=stob"><img src="{URL}data/interface/schiffe/schiff_transport.gif" alt="" /></a> 
    74                 {/endif}{if base.ownbase} 
    75                         <a class="greenborder" onmouseover="return helpme('Crew mit {base.name} austauschen');" onmouseout="return nd();" href="./ds?module=crewtausch&amp;sess={global.sess}&amp;ship={global.ship}&amp;tar={base.id}&amp;mode=sb"><img src="{URL}data/interface/schiffe/schiff_bemannen.gif" alt="" /></a> 
    76                 {/endif}{if base.offiziere.transfer} 
    77                         <a class="greenborder" onmouseover="return helpme('Offizier nach {base.name} transferieren');" onmouseout="return nd();" href="./ds?module=tc&amp;sess={global.sess}&amp;action=shipToBase&amp;ship={global.ship}&amp;target={base.id}"><img src="{URL}data/interface/schiffe/schiff_captain_transfer.gif" alt="" /></a> 
    78                 {/endif}{if base.offiziere.set} 
    79                         <a class="greenborder" onmouseover="return helpme('Offizier von {base.name} transferieren');" onmouseout="return nd();" href="./ds?module=tc&amp;sess={global.sess}&amp;action=baseToShip&amp;ship={global.ship}&amp;target={base.id}"><img src="{URL}data/interface/schiffe/schiff_captain_zuweisen.gif" alt="" /></a> 
    80                 {/endif}{if base.action.repair} 
    81                         <a class="greenborder" onmouseover="return helpme('auf {base.name} in die Werkstatt fliegen');" onmouseout="return nd();" href="./ds?module=building&amp;sess={global.sess}&amp;ws={global.ship}&amp;col={base.id}&amp;field={base.werft.field}"><img src="{URL}data/interface/schiffe/schiff_repair.gif" alt="" /></a> 
    82                 {/endif} 
    83                 </td></tr> 
    84         <!-- END bases.listitem --> 
    85 {else} 
    86         <span class="smallfont" style="color:red">Scan nicht m&ouml;glich (Sensoren defekt)</span> 
    87 {/endif} 
    88  
    89 {if global.goodscan} 
    90         {if nebel} 
    91                 <tr> 
    92                         <td class="show2"></td> 
    93                         <td class="show2" style="width:150px">&nbsp;</td> 
    94                         <td class="show2">&nbsp;</td> 
    95                         <td class="show2"><img src="{URL}data/objects/nebel{nebel.type}.png" alt="Nebel" /></td> 
     27        </tr> 
     28        <tr><td class="Border"> 
     29        {if global.goodscan} 
     30                <span style="font-weight:bold; color:#ff0505">Scan von {ship.sensors.location}</span><br /> 
     31        {/endif} 
     32        {if global.badscan} 
     33                <span style="font-weight:bold; color:#ff0505">Basen in {ship.sensors.location}</span><br /> 
     34        {/endif} 
     35         
     36        {if global.scan} 
     37                <table class="show"> 
     38                <tr class="show"> 
     39                <td class="show" style="width:30px"><a class="forschinfo" href="./ds?module=schiff&amp;sess={global.sess}&amp;ship={global.ship}&amp;action=plugin&amp;plugin={global.pluginid}&amp;{global.pluginid}_ops[order]=id">ID</a></td> 
     40                <td class="show" style="width:150px"><a class="forschinfo" href="./ds?module=schiff&amp;sess={global.sess}&amp;ship={global.ship}&amp;action=plugin&amp;plugin={global.pluginid}&amp;{global.pluginid}_ops[order]=owner">Besitzer</a></td> 
     41                <td class="show" style="width:150px"><a class="forschinfo" href="./ds?module=schiff&amp;sess={global.sess}&amp;ship={global.ship}&amp;action=plugin&amp;plugin={global.pluginid}&amp;{global.pluginid}_ops[order]=name">Name</a></td> 
     42                <td class="show" style="width:100px"><a class="forschinfo" href="./ds?module=schiff&amp;sess={global.sess}&amp;ship={global.ship}&amp;action=plugin&amp;plugin={global.pluginid}&amp;{global.pluginid}_ops[order]=shiptype">Klasse</a></td> 
     43                <td class="show"><span class="smallfont">Zustand</span></td> 
     44                {if global.awac}<td class="show"><span class="smallfont">Info</span></td>{/endif} 
     45                <td class="show"><span class="smallfont">Aktionen</span></td></tr> 
     46         
     47                <!-- BEGIN bases.listitem --> 
     48                        <tr><td class="show2"><span class="smallfont"> 
     49                        {if base.ownbase} 
     50                                <a class="schiff" href="./ds?module=base&amp;sess={global.sess}&amp;col={base.id}">{base.id}</a> 
     51                        {else} 
     52                                {base.id} 
     53                        {/endif} 
     54                        </span></td> 
     55                        <td class="show2" style="width:150px"><span class="smallfont"> 
     56                        {if base.pm} 
     57                                <a class="profile" href="./ds?module=userprofile&amp;sess={global.sess}&amp;user={base.owner.id}">{base.owner.name}</a> 
     58                        {else} 
     59                                {base.owner.name} 
     60                        {/endif} 
     61                        </span></td> 
     62                        <td class="show2"><span class="smallfont">{base.name}</span> 
     63                        {if base.size} 
     64                                <br /><span class="verysmallfont">Gr&ouml;&szlig;e: {base.size}</span> 
     65                        {/endif} 
     66                        </td> 
     67                        <td class="show2"><img src="{base.image}" alt="Kolonie" /></td> 
    9668                        <td class="show2">&nbsp;</td> 
    9769                        {if global.awac}<td class="show2">&nbsp;</td>{/endif} 
    98                         <td class="show2"> 
    99                                 {if global.ship.deutfactor} 
    100                                         <a class="greenborder" onmouseover="return helpme('Deuterium sammeln');" onmouseout="return nd();" href="./ds?module=deutsammeln&amp;sess={global.sess}&amp;ship={global.ship}"><img src="{URL}data/interface/schiffe/schiff_deutsammeln.gif" alt="" /></a> 
    101                                 {/endif} 
    102                         </td> 
    103                 </tr> 
    104         {/endif} 
    105  
    106         {if node.id} 
    107                 <tr> 
    108                         <td class="show2"><span class="smallfont">{node.id}</span></td> 
    109                         <td class="show2" style="width:150px">&nbsp;</td> 
    110                         <td class="show2"><span class="smallfont">{node.name}{if node.blocked}<br />-Blockiert-{/endif}</span></td> 
    111                         <td class="show2"><img src="{URL}data/objects/node.png" alt="Sprungpunkt" /></td> 
    112                         <td class="show2">&nbsp;</td> 
    113                         {if global.awac}<td class="show2">&nbsp;</td>{/endif} 
    114                         <td class="show2"> 
    115                                 <a class="greenborder" onmouseover="return helpme('nach {node.name} springen');" onmouseout="return nd();" href="./ds?module=schiff&amp;sess={global.sess}&amp;action=jump&amp;node={node.id}&amp;ship={global.ship}"><img src="{URL}data/interface/schiffe/schiff_springen.gif" alt="" /></a> 
    116                         </td> 
    117                 </tr> 
    118         {/endif} 
    119  
    120         <!-- BEGIN battles.listitem --> 
    121                 <tr> 
    122                         <td class="show2"><span class="smallfont">{battle.id}</span></td> 
    123                         <td class="show2" style="width:150px; text-align:center"> 
    124                                 <span class="smallfont"> 
    125                                         Schlacht 
     70                        <td class="show2" align="left"> 
     71                        {if base.colonize} 
     72                                <a class="greenborder" onmouseover="return helpme('{base.name} kolonisieren');" onmouseout="return nd();" href="./ds?module=colonize&amp;sess={global.sess}&amp;col={base.id}&amp;ship={global.ship}"><img src="{URL}data/interface/schiffe/schiff_kolonisieren.gif" alt="" /></a> 
     73                        {/endif}{if base.transfer} 
     74                                <a class="greenborder" onmouseover="return helpme('mit {base.name} Waren austauschen');" onmouseout="return nd();" href="./ds?module=transport&amp;sess={global.sess}&amp;to={base.id}&amp;from={global.ship}&amp;way=stob"><img src="{URL}data/interface/schiffe/schiff_transport.gif" alt="" /></a> 
     75                        {/endif}{if base.ownbase} 
     76                                <a class="greenborder" onmouseover="return helpme('Crew mit {base.name} austauschen');" onmouseout="return nd();" href="./ds?module=crewtausch&amp;sess={global.sess}&amp;ship={global.ship}&amp;tar={base.id}&amp;mode=sb"><img src="{URL}data/interface/schiffe/schiff_bemannen.gif" alt="" /></a> 
     77                        {/endif}{if base.offiziere.transfer} 
     78                                <a class="greenborder" onmouseover="return helpme('Offizier nach {base.name} transferieren');" onmouseout="return nd();" href="./ds?module=tc&amp;sess={global.sess}&amp;action=shipToBase&amp;ship={global.ship}&amp;target={base.id}"><img src="{URL}data/interface/schiffe/schiff_captain_transfer.gif" alt="" /></a> 
     79                        {/endif}{if base.offiziere.set} 
     80                                <a class="greenborder" onmouseover="return helpme('Offizier von {base.name} transferieren');" onmouseout="return nd();" href="./ds?module=tc&amp;sess={global.sess}&amp;action=baseToShip&amp;ship={global.ship}&amp;target={base.id}"><img src="{URL}data/interface/schiffe/schiff_captain_zuweisen.gif" alt="" /></a> 
     81                        {/endif}{if base.action.repair} 
     82                                <a class="greenborder" onmouseover="return helpme('auf {base.name} in die Werkstatt fliegen');" onmouseout="return nd();" href="./ds?module=building&amp;sess={global.sess}&amp;ws={global.ship}&amp;col={base.id}&amp;field={base.werft.field}"><img src="{URL}data/interface/schiffe/schiff_repair.gif" alt="" /></a> 
     83                        {/endif} 
     84                        </td></tr> 
     85                <!-- END bases.listitem --> 
     86        {else} 
     87                <span class="smallfont" style="color:red">Scan nicht m&ouml;glich (Sensoren defekt)</span> 
     88        {/endif} 
     89         
     90        {if global.goodscan} 
     91                {if nebel} 
     92                        <tr> 
     93                                <td class="show2"></td> 
     94                                <td class="show2" style="width:150px">&nbsp;</td> 
     95                                <td class="show2">&nbsp;</td> 
     96                                <td class="show2"><img src="{URL}data/objects/nebel{nebel.type}.png" alt="Nebel" /></td> 
     97                                <td class="show2">&nbsp;</td> 
     98                                {if global.awac}<td class="show2">&nbsp;</td>{/endif} 
     99                                <td class="show2"> 
     100                                        {if global.ship.deutfactor} 
     101                                                <a class="greenborder" onmouseover="return helpme('Deuterium sammeln');" onmouseout="return nd();" href="./ds?module=deutsammeln&amp;sess={global.sess}&amp;ship={global.ship}"><img src="{URL}data/interface/schiffe/schiff_deutsammeln.gif" alt="" /></a> 
     102                                        {/endif} 
     103                                </td> 
     104                        </tr> 
     105                {/endif} 
     106         
     107                {if node.id} 
     108                        <tr> 
     109                                <td class="show2"><span class="smallfont">{node.id}</span></td> 
     110                                <td class="show2" style="width:150px">&nbsp;</td> 
     111                                <td class="show2"><span class="smallfont">{node.name}{if node.blocked}<br />-Blockiert-{/endif}</span></td> 
     112                                <td class="show2"><img src="{URL}data/objects/node.png" alt="Sprungpunkt" /></td> 
     113                                <td class="show2">&nbsp;</td> 
     114                                {if global.awac}<td class="show2">&nbsp;</td>{/endif} 
     115                                <td class="show2"> 
     116                                        <a class="greenborder" onmouseover="return helpme('nach {node.name} springen');" onmouseout="return nd();" href="./ds?module=schiff&amp;sess={global.sess}&amp;action=jump&amp;node={node.id}&amp;ship={global.ship}"><img src="{URL}data/interface/schiffe/schiff_springen.gif" alt="" /></a> 
     117                                </td> 
     118                        </tr> 
     119                {/endif} 
     120         
     121                <!-- BEGIN battles.listitem --> 
     122                        <tr> 
     123                                <td class="show2"><span class="smallfont">{battle.id}</span></td> 
     124                                <td class="show2" style="width:150px; text-align:center"> 
     125                                        <span class="smallfont"> 
     126                                                Schlacht 
     127                                                {if battle.quest} 
     128                                                        <br /><span class="verysmallfont">[Quest]</span> 
     129                                                {/endif} 
     130                                        </span> 
     131                                </td> 
     132                                <td class="show2" align="center"> 
     133                                        <span class="smallfont">{battle.party1}<br />vs<br />{battle.party2}</span> 
     134                                </td> 
     135                                <td class="show2"><img src="{URL}battle.png" alt="Schlacht" /></td> 
     136                                <td class="show2"><span class="smallfont">{battle.shipcount} Schiffe</span></td> 
     137                                {if global.awac}<td class="show2">&nbsp;</td>{/endif} 
     138                                <td class="show2"> 
    126139                                        {if battle.quest} 
    127                                                 <br /><span class="verysmallfont">[Quest]</span> 
    128                                         {/endif} 
    129                                 </span> 
    130                         </td> 
    131                         <td class="show2" align="center"> 
    132                                 <span class="smallfont">{battle.party1}<br />vs<br />{battle.party2}</span> 
    133                         </td> 
    134                         <td class="show2"><img src="{URL}battle.png" alt="Schlacht" /></td> 
    135                         <td class="show2"><span class="smallfont">{battle.shipcount} Schiffe</span></td> 
    136                         {if global.awac}<td class="show2">&nbsp;</td>{/endif} 
    137                         <td class="show2"> 
    138                                 {if battle.quest} 
     140                                        {else} 
     141                                                {if battle.joinable} 
     142                                                        {if battle.fixedjoin} 
     143                                                                <a class="redborder" href="./ds?module=angriff&amp;sess={global.sess}&amp;battle={battle.id}&amp;addship={global.ship}"><img src="{URL}data/interface/schiffe/schiff_battle.gif" alt="teilnehmen" /></a> 
     144                                                        {else} 
     145                                                                <a class="redborder" href="javascript:ask('Wollen sie wirklich auf Seiten der {battle.side1} angreifen?','./ds?module=angriff&amp;sess={global.sess}&amp;battle={battle.id}&amp;addship={global.ship}&amp;forcejoin=1')"><img src="{URL}data/interface/schiffe/schiff_battle_side1.gif" alt="teilnehmen auf Seite 2" /></a> 
     146                                                                <a class="redborder" href="javascript:ask('Wollen sie wirklich auf Seiten der {battle.side2} angreifen?','./ds?module=angriff&amp;sess={global.sess}&amp;battle={battle.id}&amp;addship={global.ship}&amp;forcejoin=2')"><img src="{URL}data/interface/schiffe/schiff_battle_side2.gif" alt="teilnehmen auf Seite 2" /></a> 
     147                                                        {/endif} 
     148                                                {/endif} 
     149                                                {if battle.viewable} 
     150                                                        <a class="greenborder" href="./ds?module=angriff&amp;sess={global.sess}&amp;battle={battle.id}"><img src="{URL}data/interface/schiffe/schiff_battle_view.gif" alt="ansehen" /></a> 
     151                                                {/endif} 
     152                                        {/endif} 
     153                                </td> 
     154                        </tr> 
     155                <!-- END battles.listitem --> 
     156         
     157                {if global.jumps} 
     158                        <tr> 
     159                                <td class="show2"><span class="smallfont">-</span></td> 
     160                                <td class="show2" style="width:150px">&nbsp;</td> 
     161                                <td class="show2"> 
     162                                        <span class="smallfont">{global.jumps} {global.jumps.name}</span> 
     163                                </td> 
     164                                <td class="show2"><img src="{URL}data/objects/subraumspalt.gif" alt="" /></td> 
     165                                <td class="show2">&nbsp;</td> 
     166                                {if global.awac}<td class="show2">&nbsp;</td>{/endif} 
     167                                <td class="show2">&nbsp;</td> 
     168                        </tr> 
     169                {/endif} 
     170                <script type="text/javascript"> 
     171                <!-- 
     172                        function createFleetFromSRSGroup(type,maxcount,fleetlesscount) 
     173                        { 
     174                                var count = prompt('Aus wievielen Schiffen soll die Flotte bestehen? (maximal: '+maxcount+')\nWenn sie mehr als '+fleetlesscount+' Schiff(e) auswÀhlen, mÃŒssen Schiffe aus bestehenden Flotten entfernt werden',fleetlesscount); 
     175                                if( count && (count <= maxcount) ) { 
     176                                        PopupWnd(1,'&action=createFromSRSGroup&sector={global.ship}&type='+type+'&count='+count); 
     177                                }                        
     178                        } 
     179                         
     180                        function addToFleetFromSRSGroup(type,maxcount,fleetlesscount) 
     181                        { 
     182                                var count = prompt('Wievielen Schiffen sollen der Flotte hinzugefÃŒgt werden? (maximal: '+maxcount+')\nWenn sie mehr als '+fleetlesscount+' Schiff(e) auswÀhlen, m&uuml;ssen Schiffe aus bestehenden Flotten entfernt werden',fleetlesscount); 
     183                                if( count && (count <= maxcount) ) { 
     184                                        PopupWnd(1,'&action=addFromSRSGroup&fleet={ship.fleet}&sector={global.ship}&type='+type+'&count='+count); 
     185                                }                        
     186                        } 
     187                // --> 
     188                </script> 
     189                <!-- BEGIN sshipgroup.listitem --> 
     190                        <tr> 
     191                                <td class="show2"><span class="smallfont">-</span></td> 
     192                                {if sshipgroup.ownship} 
     193                                        <td class="show2" style="width:150px"> 
     194                                                <span class="smallfont">{sshipgroup.owner.name}</span> 
     195                                        </td> 
    139196                                {else} 
    140                                         {if battle.joinable} 
    141                                                 {if battle.fixedjoin} 
    142                                                         <a class="redborder" href="./ds?module=angriff&amp;sess={global.sess}&amp;battle={battle.id}&amp;addship={global.ship}"><img src="{URL}data/interface/schiffe/schiff_battle.gif" alt="teilnehmen" /></a> 
     197                                        <td class="show2" style="width:150px"> 
     198                                                <span class="smallfont"><a class="profile" href="./ds?module=userprofile&amp;sess={global.sess}&amp;user={sshipgroup.owner.id}">{sshipgroup.owner.name}</a></span> 
     199                                        </td> 
     200                                {/endif}                 
     201                                <td class="show2"><span class="smallfont">{sshipgroup.name}</span></td> 
     202                                <td class="show2"> 
     203                                        <a onmouseover="return overlib('{sshipgroup.type.name}',TIMEOUT,0,DELAY,400,WIDTH,100);" onmouseout="return nd();" class="noborder" target="_blank" href="./ds?module=schiffinfo&amp;sess={global.sess}&amp;ship={sshipgroup.type.id}"><img src="{sshipgroup.type.image}" alt="" /></a> 
     204                                </td> 
     205                                <td class="show2"><span class="smallfont">-</span></td> 
     206                                <td class="show2" align="left"> 
     207                                        {if sshipgroup.sublist} 
     208                                                <a class="greenborder" onmouseover="return helpme('Zur&uuml;ck');" onmouseout="return nd();" href="./ds?module=schiff&amp;sess={global.sess}&amp;ship={global.ship}&amp;action=plugin&amp;plugin={global.pluginid}"><img src="{URL}data/interface/schiffe/schiff_zoom_in.gif" alt="rauszoomen" /></a>            
     209                                        {else}           
     210                                                <a class="greenborder" onmouseover="return helpme('Anzeigen');" onmouseout="return nd();" href="./ds?module=schiff&amp;sess={global.sess}&amp;ship={global.ship}&amp;action=plugin&amp;plugin={global.pluginid}&amp;{global.pluginid}_ops[showonly]={sshipgroup.type.id}&amp;{global.pluginid}_ops[showid]={sshipgroup.owner.id}"><img src="{URL}data/interface/schiffe/schiff_zoom_out.gif" alt="" /></a>               
     211                                        {/endif} 
     212                                        {if sshipgroup.own} 
     213                                                {if sshipgroup.count} 
     214                                                        {if ship.fleet} 
     215                                                                <a class="greenborder" onmouseover="return helpme('X Schiffe der Flotte hinzuf&uuml;gen');" onmouseout="return nd();" href="javascript:addToFleetFromSRSGroup({sshipgroup.type.id},{sshipgroup.count},{sshipgroup.fleetlesscount})"><img src="{URL}data/interface/schiffe/schiff_anschliessen.gif" alt="zur Flotte hinzuf&uuml;gen" /></a> 
     216                                                        {else} 
     217                                                                <a class="greenborder" onmouseover="return helpme('Eine neue Flotte aus x Schiffen erstellen');" onmouseout="return nd();" href="javascript:createFleetFromSRSGroup({sshipgroup.type.id},{sshipgroup.count},{sshipgroup.fleetlesscount})"><img src="{URL}data/interface/schiffe/schiff_anschliessen.gif" alt="Flotte bilden" /></a> 
     218                                                        {/endif} 
     219                                                {/endif} 
     220                                        {/endif} 
     221                                </td> 
     222                        </tr> 
     223                <!-- END sshipgroup.listitem --> 
     224         
     225                <!-- BEGIN sships.listitem --> 
     226                        <tr> 
     227                                <td class="show2"> 
     228                                        <span class="smallfont"> 
     229                                                {if sships.ownship} 
     230                                                        <a class="schiff" href="./ds?module=schiff&amp;sess={global.sess}&amp;ship={sships.id}">{sships.id}</a> 
    143231                                                {else} 
    144                                                         <a class="redborder" href="javascript:ask('Wollen sie wirklich auf Seiten der {battle.side1} angreifen?','./ds?module=angriff&amp;sess={global.sess}&amp;battle={battle.id}&amp;addship={global.ship}&amp;forcejoin=1')"><img src="{URL}data/interface/schiffe/schiff_battle_side1.gif" alt="teilnehmen auf Seite 2" /></a> 
    145                                                         <a class="redborder" href="javascript:ask('Wollen sie wirklich auf Seiten der {battle.side2} angreifen?','./ds?module=angriff&amp;sess={global.sess}&amp;battle={battle.id}&amp;addship={global.ship}&amp;forcejoin=2')"><img src="{URL}data/interface/schiffe/schiff_battle_side2.gif" alt="teilnehmen auf Seite 2" /></a> 
    146                                                 {/endif} 
    147                                         {/endif} 
    148                                         {if battle.viewable} 
    149                                                 <a class="greenborder" href="./ds?module=angriff&amp;sess={global.sess}&amp;battle={battle.id}"><img src="{URL}data/interface/schiffe/schiff_battle_view.gif" alt="ansehen" /></a> 
    150                                         {/endif} 
    151                                 {/endif} 
    152                         </td> 
    153                 </tr> 
    154         <!-- END battles.listitem --> 
    155  
    156         {if global.jumps} 
    157                 <tr> 
    158                         <td class="show2"><span class="smallfont">-</span></td> 
    159                         <td class="show2" style="width:150px">&nbsp;</td> 
    160                         <td class="show2"> 
    161                                 <span class="smallfont">{global.jumps} {global.jumps.name}</span> 
    162                         </td> 
    163                         <td class="show2"><img src="{URL}data/objects/subraumspalt.gif" alt="" /></td> 
    164                         <td class="show2">&nbsp;</td> 
    165                         {if global.awac}<td class="show2">&nbsp;</td>{/endif} 
    166                         <td class="show2">&nbsp;</td> 
    167                 </tr> 
    168         {/endif} 
    169         <script type="text/javascript"> 
    170         <!-- 
    171                 function createFleetFromSRSGroup(type,maxcount,fleetlesscount) 
    172                 { 
    173                         var count = prompt('Aus wievielen Schiffen soll die Flotte bestehen? (maximal: '+maxcount+')\nWenn sie mehr als '+fleetlesscount+' Schiff(e) auswÀhlen, mÃŒssen Schiffe aus bestehenden Flotten entfernt werden',fleetlesscount); 
    174                         if( count && (count <= maxcount) ) { 
    175                                 PopupWnd(1,'&action=createFromSRSGroup&sector={global.ship}&type='+type+'&count='+count); 
    176                         }                        
    177                 } 
    178                  
    179                 function addToFleetFromSRSGroup(type,maxcount,fleetlesscount) 
    180                 { 
    181                         var count = prompt('Wievielen Schiffen sollen der Flotte hinzugefÃŒgt werden? (maximal: '+maxcount+')\nWenn sie mehr als '+fleetlesscount+' Schiff(e) auswÀhlen, m&uuml;ssen Schiffe aus bestehenden Flotten entfernt werden',fleetlesscount); 
    182                         if( count && (count <= maxcount) ) { 
    183                                 PopupWnd(1,'&action=addFromSRSGroup&fleet={ship.fleet}&sector={global.ship}&type='+type+'&count='+count); 
    184                         }                        
    185                 } 
    186         // --> 
    187         </script> 
    188         <!-- BEGIN sshipgroup.listitem --> 
    189                 <tr> 
    190                         <td class="show2"><span class="smallfont">-</span></td> 
    191                         {if sshipgroup.ownship} 
    192                                 <td class="show2" style="width:150px"> 
    193                                         <span class="smallfont">{sshipgroup.owner.name}</span> 
    194                                 </td> 
    195                         {else} 
    196                                 <td class="show2" style="width:150px"> 
    197                                         <span class="smallfont"><a class="profile" href="./ds?module=userprofile&amp;sess={global.sess}&amp;user={sshipgroup.owner.id}">{sshipgroup.owner.name}</a></span> 
    198                                 </td> 
    199                         {/endif}                 
    200                         <td class="show2"><span class="smallfont">{sshipgroup.name}</span></td> 
    201                         <td class="show2"> 
    202                                 <a onmouseover="return overlib('{sshipgroup.type.name}',TIMEOUT,0,DELAY,400,WIDTH,100);" onmouseout="return nd();" class="noborder" target="_blank" href="./ds?module=schiffinfo&amp;sess={global.sess}&amp;ship={sshipgroup.type.id}"><img src="{sshipgroup.type.image}" alt="" /></a> 
    203                         </td> 
    204                         <td class="show2"><span class="smallfont">-</span></td> 
    205                         <td class="show2" align="left"> 
    206                                 {if sshipgroup.sublist} 
    207                                         <a class="greenborder" onmouseover="return helpme('Zur&uuml;ck');" onmouseout="return nd();" href="./ds?module=schiff&amp;sess={global.sess}&amp;ship={global.ship}&amp;action=plugin&amp;plugin={global.pluginid}"><img src="{URL}data/interface/schiffe/schiff_zoom_in.gif" alt="rauszoomen" /></a>            
    208                                 {else}           
    209                                         <a class="greenborder" onmouseover="return helpme('Anzeigen');" onmouseout="return nd();" href="./ds?module=schiff&amp;sess={global.sess}&amp;ship={global.ship}&amp;action=plugin&amp;plugin={global.pluginid}&amp;{global.pluginid}_ops[showonly]={sshipgroup.type.id}&amp;{global.pluginid}_ops[showid]={sshipgroup.owner.id}"><img src="{URL}data/interface/schiffe/schiff_zoom_out.gif" alt="" /></a>               
    210                                 {/endif} 
    211                                 {if sshipgroup.own} 
    212                                         {if sshipgroup.count} 
    213                                                 {if ship.fleet} 
    214                                                         <a class="greenborder" onmouseover="return helpme('X Schiffe der Flotte hinzuf&uuml;gen');" onmouseout="return nd();" href="javascript:addToFleetFromSRSGroup({sshipgroup.type.id},{sshipgroup.count},{sshipgroup.fleetlesscount})"><img src="{URL}data/interface/schiffe/schiff_anschliessen.gif" alt="zur Flotte hinzuf&uuml;gen" /></a> 
    215                                                 {else} 
    216                                                         <a class="greenborder" onmouseover="return helpme('Eine neue Flotte aus x Schiffen erstellen');" onmouseout="return nd();" href="javascript:createFleetFromSRSGroup({sshipgroup.type.id},{sshipgroup.count},{sshipgroup.fleetlesscount})"><img src="{URL}data/interface/schiffe/schiff_anschliessen.gif" alt="Flotte bilden" /></a> 
    217                                                 {/endif} 
    218                                         {/endif} 
    219                                 {/endif} 
    220                         </td> 
    221                 </tr> 
    222         <!-- END sshipgroup.listitem --> 
    223  
    224         <!-- BEGIN sships.listitem --> 
    225                 <tr>