Changeset fed890a27561ed88e66a8e3b7ec311dd0693fe21
- Timestamp:
- 05/23/08 11:10:47
(3 months ago)
- Author:
- Christopher Jung <bktheg@web.de>
- git-committer:
- Christopher Jung <bktheg@web.de> 1211533847 +0200
- git-parent:
[91559284cc965d5bc4bb284b11a817fd67399002]
- git-author:
- Christopher Jung <bktheg@web.de> 1211533847 +0200
- Message:
[ref] Die Astiwerft fuegt nun kein sess mehr zu URLs hinzu
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r6f3057d |
rfed890a |
|
| 87 | 87 | public String echoShortcut(Context context, Base base, int field, int building) { |
|---|
| 88 | 88 | org.hibernate.Session db = context.getDB(); |
|---|
| 89 | | |
|---|
| 90 | | String sess = context.getSession(); |
|---|
| 91 | | |
|---|
| | 89 | |
|---|
| 92 | 90 | StringBuilder result = new StringBuilder(200); |
|---|
| 93 | 91 | |
|---|
| … | … | |
| 98 | 96 | werft.setBaseField(field); |
|---|
| 99 | 97 | if( !werft.isBuilding() ) { |
|---|
| 100 | | result.append("<a class=\"back\" href=\"./ds?module=building&sess="); |
|---|
| 101 | | result.append(sess); |
|---|
| | 98 | result.append("<a class=\"back\" href=\"./ds?module=building"); |
|---|
| 102 | 99 | result.append("&col="); |
|---|
| 103 | 100 | result.append(base.getId()); |
|---|
| … | … | |
| 144 | 141 | result.append("_"); |
|---|
| 145 | 142 | result.append(field); |
|---|
| 146 | | result.append("',REFY,22,NOJUSTY,FGCLASS,'gfxtooltip',BGCLASS,'gfxtooltip',TEXTFONTCLASS,'gfxtooltip',TIMEOUT,0,DELAY,150,WIDTH,430);\" onmouseout=\"return nd();\" href=\"./ds?module=building&sess="); |
|---|
| 147 | | result.append(sess); |
|---|
| | 143 | result.append("',REFY,22,NOJUSTY,FGCLASS,'gfxtooltip',BGCLASS,'gfxtooltip',TEXTFONTCLASS,'gfxtooltip',TIMEOUT,0,DELAY,150,WIDTH,430);\" onmouseout=\"return nd();\" href=\"./ds?module=building"); |
|---|
| 148 | 144 | result.append("&col="); |
|---|
| 149 | 145 | result.append(base.getId()); |
|---|
| … | … | |
| 178 | 174 | org.hibernate.Session db = context.getDB(); |
|---|
| 179 | 175 | |
|---|
| 180 | | String sess = context.getSession(); |
|---|
| 181 | 176 | StringBuilder response = new StringBuilder(500); |
|---|
| 182 | 177 | |
|---|
| … | … | |
| 185 | 180 | .uniqueResult(); |
|---|
| 186 | 181 | if( werft == null ) { |
|---|
| 187 | | response.append("<a href=\"./ds?module=basen&sess="+sess+"\"><span style=\"color:#ff0000; font-weight:bold\">Fehler: Die angegebene Kolonie hat keine Werft</span></a>\n"); |
|---|
| | 182 | response.append("<a href=\"./ds?module=basen\"><span style=\"color:#ff0000; font-weight:bold\">Fehler: Die angegebene Kolonie hat keine Werft</span></a>\n"); |
|---|
| 188 | 183 | return response.toString(); |
|---|
| 189 | 184 | } |
|---|