| 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 |
//<![CDATA[ |
|---|
| 22 |
function PlayerList() { |
|---|
| 23 |
fenster1=window.open(getDsUrl()+"?module=plist&sess={global.sess}&compopup=1", |
|---|
| 24 |
"Spielerliste", |
|---|
| 25 |
"width=350,height=400,locationbar=0,menubar=0,scrollbars=1,statusbar=0,toolbar=0,resizeable=yes,directories=0"); |
|---|
| 26 |
} |
|---|
| 27 |
|
|---|
| 28 |
function BBCodeInfo() { |
|---|
| 29 |
fenster2=window.open(getDsUrl()+"?module=bbcodeview&sess={global.sess}", |
|---|
| 30 |
"BBCodes", |
|---|
| 31 |
"width=550,height=400,locationbar=0,menubar=0,scrollbars=1,statusbar=0,toolbar=0,resizeable=yes,directories=0"); |
|---|
| 32 |
} |
|---|
| 33 |
|
|---|
| 34 |
function insertRealTime(){ |
|---|
| 35 |
var Jetzt = new Date(); |
|---|
| 36 |
var Hours = appendZero(Jetzt.getHours()); |
|---|
| 37 |
var Minutes = appendZero(Jetzt.getMinutes()); |
|---|
| 38 |
var Seconds = appendZero(Jetzt.getSeconds()); |
|---|
| 39 |
document.getElementById('msg').value = document.getElementById('msg').value + Hours + ':' + Minutes + ':' + Seconds; |
|---|
| 40 |
document.getElementById('msg').focus(); |
|---|
| 41 |
} |
|---|
| 42 |
|
|---|
| 43 |
function appendZero(subject){ |
|---|
| 44 |
if(subject < 10){ |
|---|
| 45 |
subject = "0"+subject; |
|---|
| 46 |
} |
|---|
| 47 |
return subject; |
|---|
| 48 |
} |
|---|
| 49 |
|
|---|
| 50 |
function insertTickTime(){ |
|---|
| 51 |
document.getElementById('msg').value = document.getElementById('msg').value + "{system.time}"; |
|---|
| 52 |
document.getElementById('msg').focus(); |
|---|
| 53 |
} |
|---|
| 54 |
|
|---|
| 55 |
function insertSignature(){ |
|---|
| 56 |
document.getElementById('msg').value = document.getElementById('msg').value + document.getElementById('signature').value; |
|---|
| 57 |
document.getElementById('msg').focus(); |
|---|
| 58 |
} |
|---|
| 59 |
//]]> |
|---|
| 60 |
// --> |
|---|
| 61 |
</script> |
|---|
| 62 |
{if show.message} |
|---|
| 63 |
<div class="smallfont"> |
|---|
| 64 |
{show.message} |
|---|
| 65 |
<br /> |
|---|
| 66 |
<br /> |
|---|
| 67 |
</div> |
|---|
| 68 |
{/endif} |
|---|
| 69 |
{if show.preview} |
|---|
| 70 |
{!table_begin 710,left} |
|---|
| 71 |
<div style="position:relative; width:635px; height:240px; margin: 0px; position: relative; top: 0px; left: 0px; overflow:auto"> |
|---|
| 72 |
{if pm.bgimage} |
|---|
| 73 |
<div style="position:absolute; top:0px; left:0px; margin:0px; padding:0px; width:570px; overflow:hidden; background-image: url('{URL}data/interface/pms/{pm.bgimage}');'"> |
|---|
| 74 |
<img src="{URL}data/interface/pms/{pm.bgimage}" width="570" alt="" /> |
|---|
| 75 |
</div> |
|---|
| 76 |
{/endif} |
|---|
| 77 |
<div style="width:570px; position:absolute; z-index:0; top:0px; left:0px; top:0px; left:0px; margin:0px; padding:0px;"> |
|---|
| 78 |
<div style="text-align:center; width:570px"> |
|---|
| 79 |
<table class="show2" style="width:500px; margin-left:auto; margin-right:auto"> |
|---|
| 80 |
{if pm.title} |
|---|
| 81 |
<tr> |
|---|
| 82 |
<td {if pm.flags.admin}style="color:orange"{/endif} class="BorderX" align="center"> |
|---|
| 83 |
{pm.title} |
|---|
| 84 |
</td> |
|---|
| 85 |
</tr> |
|---|
| 86 |
{/endif} |
|---|
| 87 |
<tr> |
|---|
| 88 |
<td class="BorderX"> |
|---|
| 89 |
Von: {!link_to $pm.sender.name, default, css_class:profile, link_target:main, module:userprofile, user:$pm.sender} |
|---|
| 90 |
Datum: {pm.time}<br /> |
|---|
| 91 |
</td> |
|---|
| 92 |
</tr> |
|---|
| 93 |
</table> |
|---|
| 94 |
<br /> |
|---|
| 95 |
</div> |
|---|
| 96 |
{pm.text} |
|---|
| 97 |
</div> |
|---|
| 98 |
</div> |
|---|
| 99 |
</div> |
|---|
| 100 |
{!table_end} |
|---|
| 101 |
<br> |
|---|
| 102 |
{/endif} |
|---|
| 103 |
{if show.write} |
|---|
| 104 |
{!table_begin 710,left} |
|---|
| 105 |
<form action="./ds" method="post"> |
|---|
| 106 |
<table class="noBorderX" cellspacing="2" cellpadding="4"> |
|---|
| 107 |
<tr> |
|---|
| 108 |
<td class="noBorderX">An</td> |
|---|
| 109 |
<td class="noBorderX"><input name="to" type="text" size="5" value="{write.to}" /> "ally" oder User-ID (<a class="forschinfo" href="javascript:PlayerList()">Liste</a>)</td> |
|---|
| 110 |
</tr> |
|---|
| 111 |
<tr> |
|---|
| 112 |
<td class="noBorderX">Betreff</td> |
|---|
| 113 |
<td class="noBorderX"><input name="title" type="text" size="30" maxlength="30" value="{write.title}" /></td> |
|---|
| 114 |
</tr> |
|---|
| 115 |
{if write.specialui.list} |
|---|
| 116 |
<tr> |
|---|
| 117 |
<td class="noBorderX">Spezial</td> |
|---|
| 118 |
<td class="noBorderX"> |
|---|
| 119 |
<select name="special" size="1"> |
|---|
| 120 |
<!-- BEGIN write.specialui.listitem --> |
|---|
| 121 |
<option value="{specialui.value}" {if specialui.selected}selected="selected"{/endif}>{specialui.name}</option> |
|---|
| 122 |
<!-- END write.specialui.listitem --> |
|---|
| 123 |
</select> |
|---|
| 124 |
</td> |
|---|
| 125 |
</tr> |
|---|
| 126 |
{/endif} |
|---|
| 127 |
<tr> |
|---|
| 128 |
<td class="noBorderX" valign="top">Nachricht<br /><br /> |
|---|
| 129 |
<input type="button" value="RL Zeit" onclick="insertRealTime()" style="width:80px" /><br /><br /> |
|---|
| 130 |
<input type="button" value="Tick Zeit" onclick="insertTickTime()" style="width:80px"/><br /><br /> |
|---|
| 131 |
<!-- <input type="button" value="Signatur" onclick="insertSignature()" style="width:80px" /> |
|---|
| 132 |
<textarea id="signature" style="display:none;">{user.signature}</textarea> --></td> |
|---|
| 133 |
<td class="noBorderX"><textarea id="msg" name="msg" cols="65" rows="18" style="width:500px">{write.message}</textarea></td> |
|---|
| 134 |
</tr> |
|---|
| 135 |
<tr> |
|---|
| 136 |
<td class="noBorderX"> |
|---|
| 137 |
</td> |
|---|
| 138 |
</tr> |
|---|
| 139 |
<tr> |
|---|
| 140 |
<td class="noBorderX" valign="top"> </td> |
|---|
| 141 |
<td align="center" class="noBorderX"> |
|---|
| 142 |
{!form_create_hidden send} |
|---|
| 143 |
<input type="submit" name="Vorschau" value="Vorschau" style="width:200px" onclick="this.form.action.value = 'preview'" /> |
|---|
| 144 |
<input type="submit" name="Senden" value="Nachricht senden" style="width:200px" onclick="this.form.action.value = 'send'" /><br /> |
|---|
| 145 |
</td> |
|---|
| 146 |
</tr> |
|---|
| 147 |
</table> |
|---|
| 148 |
</form> |
|---|
| 149 |
<hr noshade="noshade" size="1" style="color:#cccccc" /> |
|---|
| 150 |
<span style="font-weight:bold">Hinweis:</span><br /> |
|---|
| 151 |
Es können in der Nachricht die <a class="forschinfo" href="javascript:BBCodeInfo()">BBCodes</a> verwendet werden<br /><br /> |
|---|
| 152 |
<span style="font-weight:bold">Mögliche Empfänder:</span><br /> |
|---|
| 153 |
"ally" - Alle Mitglieder der Allianz<br /> |
|---|
| 154 |
User-ID - Der Spieler mit dieser ID (<a class="forschinfo" href="javascript:PlayerList()">Liste</a>) |
|---|
| 155 |
{!table_end} |
|---|
| 156 |
{/endif} |
|---|
| 157 |
{if show.inbox} |
|---|
| 158 |
<script type="text/javascript"> |
|---|
| 159 |
<!-- |
|---|
| 160 |
function showpm(pmid) { |
|---|
| 161 |
pmviewer.location.href = getDsUrl()+"?module=comm&sess={global.sess}&action=showPm&pmid="+pmid; |
|---|
| 162 |
|
|---|
| 163 |
if( $('pm'+pmid) != null ) { |
|---|
| 164 |
$('pm'+pmid).firstChild.nodeValue = ""; |
|---|
| 165 |
} |
|---|
| 166 |
} |
|---|
| 167 |
|
|---|
| 168 |
function setRenameAction(id) { |
|---|
| 169 |
actionSelectChange(""); |
|---|
| 170 |
document.getElementById("form_ordnername").style.display = "inline"; |
|---|
| 171 |
document.getElementById("rename").disabled = false; |
|---|
| 172 |
document.getElementById("select_action").value = "rename"; |
|---|
| 173 |
document.getElementById("subject").value = id; |
|---|
| 174 |
} |
|---|
| 175 |
|
|---|
| 176 |
var movePMID = 0; |
|---|
| 177 |
var movePMToID = 0; |
|---|
| 178 |
|
|---|
| 179 |
function finishMovePM( response ) { |
|---|
| 180 |
$("inbox_waiter").style.display = "none"; |
|---|
| 181 |
|
|---|
| 182 |
if( parseInt(response.responseText) > 0 ) { |
|---|
| 183 |
$("inbox_pm"+movePMID).style.display="none"; |
|---|
| 184 |
$("inbox_pm"+movePMID+"_row").parentNode.removeChild($("inbox_pm"+movePMID+"_row")); |
|---|
| 185 |
$("inbox_ordner"+movePMToID+"_count").innerHTML = parseInt($("inbox_ordner"+movePMToID+"_count").innerHTML)+1; |
|---|
| 186 |
} |
|---|
| 187 |
else if( parseInt(response.responseText) == 0 ) { |
|---|
| 188 |
alert("Der Server konnte die Nachricht nicht finden"); |
|---|
| 189 |
} |
|---|
| 190 |
else { |
|---|
| 191 |
alert(response.responseText); |
|---|
| 192 |
} |
|---|
| 193 |
movePMID = 0; |
|---|
| 194 |
movePMToID = 0; |
|---|
| 195 |
} |
|---|
| 196 |
|
|---|
| 197 |
function movePM( pmid, ordnerid ) { |
|---|
| 198 |
pmid = pmid.substr("inbox_pm".length); |
|---|
| 199 |
|
|---|
| 200 |
if( !Ajax.getTransport() ) { |
|---|
| 201 |
alert("Sorry, aber dein Browser kann kein Ajax"); |
|---|
| 202 |
return; |
|---|
| 203 |
} |
|---|
| 204 |
|
|---|
| 205 |
movePMID = pmid; |
|---|
| 206 |
movePMToID = ordnerid; |
|---|
| 207 |
|
|---|
| 208 |
$("inbox_waiter").style.display = "block"; |
|---|
| 209 |
|
|---|
| 210 |
var url = getDsUrl(); |
|---|
| 211 |
// Oh ich liebe das toooolle caching vom *piep* ie |
|---|
| 212 |
var params = 'module={global.module}&sess={global.sess}&action=move&ordner={ordner.parent}&moveto='+ordnerid+"&pm_"+pmid+"="+pmid+"&antiiecachingtimestamp="+(new Date().getTime()); |
|---|
| 213 |
|
|---|
| 214 |
var myAjax = new Ajax.Request( url, |
|---|
| 215 |
{ |
|---|
| 216 |
method: 'get', |
|---|
| 217 |
parameters: params, |
|---|
| 218 |
onComplete: finishMovePM |
|---|
| 219 |
}); |
|---|
| 220 |
} |
|---|
| 221 |
|
|---|
| 222 |
var oldHoverStyles = new Array(); |
|---|
| 223 |
|
|---|
| 224 |
function ordnerHover(drag, drop, overlap) { |
|---|
| 225 |
nodes = drop.childNodes; |
|---|
| 226 |
for( i=0; i < nodes.length; i++ ) { |
|---|
| 227 |
if( nodes[i].nodeName.toUpperCase() != 'TD' ) { |
|---|
| 228 |
continue; |
|---|
| 229 |
} |
|---|
| 230 |
oldHoverStyles['ordner'] = new Array(); |
|---|
| 231 |
oldHoverStyles['ordner']['bgcolor'] = nodes[i].style.backgroundColor; |
|---|
| 232 |
oldHoverStyles['ordner']['bgimage'] = nodes[i].style.backgroundImage; |
|---|
| 233 |
nodes[i].style.backgroundColor = '#557755'; |
|---|
| 234 |
nodes[i].style.backgroundImage = "none"; |
|---|
| 235 |
} |
|---|
| 236 |
} |
|---|
| 237 |
|
|---|
| 238 |
function ordnerExit(drop) { |
|---|
| 239 |
nodes = drop.childNodes; |
|---|
| 240 |
for( i=0; i < nodes.length; i++ ) { |
|---|
| 241 |
if( nodes[i].nodeName.toUpperCase() != 'TD' ) { |
|---|
| 242 |
continue; |
|---|
| 243 |
} |
|---|
| 244 |
nodes[i].style.backgroundColor = oldHoverStyles['ordner']['bgcolor']; |
|---|
| 245 |
nodes[i].style.backgroundImage = oldHoverStyles['ordner']['bgimage']; |
|---|
| 246 |
} |
|---|
| 247 |
} |
|---|
| 248 |
|
|---|
| 249 |
var draggablePms = new Array(); |
|---|
| 250 |
// --> |
|---|
| 251 |
</script> |
|---|
| 252 |
|
|---|
| 253 |
<form action="./ds" method="post"> |
|---|
| 254 |
{!table_begin 710,left} |
|---|
| 255 |
<div style="position:relative; width:100%; height:240px"> |
|---|
| 256 |
<!-- Waiter Div --> |
|---|
| 257 |
<div style="position:absolute; top:0px; left:0px; height:240px; width:100%; z-index:2; display:none" id="inbox_waiter"> |
|---|
| 258 |
<div style="position:absolute; top:0px; left:0px; height:240px; width:100%; text-align:center; vertical-align:middle; background-color:black; opacity:.6"></div> |
|---|
| 259 |
<div style="position:absolute; top:0px; left:0px; height:240px; width:100%; text-align:center; vertical-align:middle; background-color:transparent"> |
|---|
| 260 |
<div style=" margin-top:100px; opacity:.9; font-size:200%">Bitte warten</div> |
|---|
| 261 |
</div> |
|---|
| 262 |
</div> |
|---|
| 263 |
<!-- Inhalt --> |
|---|
| 264 |
<div style="position:absolute; top:0px; left:0px; width:100%; height:240px; overflow:auto; overflow-x:hidden"> |
|---|
| 265 |
<table class="noBorderX" width="95%"> |
|---|
| 266 |
<tr> |
|---|
| 267 |
<td class="noBorderX"></td> |
|---|
| 268 |
<td class="noBorderX"></td> |
|---|
| 269 |
<td class="noBorderX">Titel</td> |
|---|
| 270 |
<td class="noBorderX">Von</td> |
|---|
| 271 |
<td class="noBorderX">Am</td> |
|---|
| 272 |
<td class="noBorderX">Aktionen</td> |
|---|
| 273 |
</tr> |
|---|
| 274 |
<!-- BEGIN ordner.listitem --> |
|---|
| 275 |
<tr id="inbox_ordner{ordner.id}"> |
|---|
| 276 |
<td class="noBorderX"> |
|---|
| 277 |
<script type="text/javascript" language="javascript"> |
|---|
| 278 |
Droppables.add('inbox_ordner{ordner.id}', { |
|---|
| 279 |
accept: 'inbox_pm', |
|---|
| 280 |
hoverclass: 'inboxOrdnerHover', |
|---|
| 281 |
onDrop: function(element) |
|---|
| 282 |
{ movePM(element.id,{ordner.id}); }, |
|---|
| 283 |
onHover: ordnerHover, |
|---|
| 284 |
onExit: ordnerExit |
|---|
| 285 |
}); |
|---|
| 286 |
</script> |
|---|
| 287 |
|
|---|
| 288 |
{if ! ordner.flags.trash} |
|---|
| 289 |
{if ! ordner.flags.up} |
|---|
| 290 |
<input type="checkbox" name="ordner_{ordner.id}" value="{ordner.id}" /> |
|---|
| 291 |
{/endif} |
|---|
| 292 |
{/endif} |
|---|
| 293 |
</td> |
|---|
| 294 |
<td class="noBorderX"> |
|---|
| 295 |
<img style="border:0px" src="{URL}data/interface/pms/{if ! ordner.flags.trash}ordner{/endif}{if ordner.flags.trash}trash{if ordner.pms}-full{/endif}{/endif}.png" /> |
|---|
| 296 |
|
|---|
| 297 |
</td> |
|---|
| 298 |
<td class="noBorderX"> |
|---|
| 299 |
<a class="profile" href="./ds?module=comm&sess={global.sess}&action=showInbox&ordner={ordner.id}"> |
|---|
| 300 |
{ordner.name} |
|---|
| 301 |
</a> |
|---|
| 302 |
</td> |
|---|
| 303 |
<td class="noBorderX" {if pm.flags.admin}style="color:orange"{/endif}> |
|---|
| 304 |
<div id="inbox_ordner{ordner.id}_count" style="display:inline">{ordner.pms}</div> mails |
|---|
| 305 |
</td> |
|---|
| 306 |
<td class="noBorderX" {if pm.flags.admin}style="color:orange"{/endif}> |
|---|
| 307 |
{if ordner.name.real} |
|---|
| 308 |
({ordner.name.real}) |
|---|
| 309 |
{/endif} |
|---|
| 310 |
</td> |
|---|
| 311 |
<td class="noBorderX"> |
|---|
| 312 |
<a href="./ds?module=comm&sess={global.sess}&action=showInbox&ordner={ordner.id}" > |
|---|
| 313 |
<img style="border:0px" src="{URL}data/interface/text.png" alt="öffnen" title="öffnen" /> |
|---|
| 314 |
</a> |
|---|
| 315 |
{if ordner.flags.trash} |
|---|
| 316 |
<a href="javascript:ask('Wollen sie wirklich alle gelöschten PMs wiederherstellen?','./ds?module=comm&sess={global.sess}&action=recoverAll&ordner={ordner.parent}')"> |
|---|
| 317 |
<img style="border:0px" src="{URL}data/interface/pms/recover.png" alt="wiederherstellen" title="wiederherstellen" /> |
|---|
| 318 |
</a> |
|---|
| 319 |
{/endif} |
|---|
| 320 |
{if ! ordner.flags.trash} |
|---|
| 321 |
{if ! ordner.flags.up} |
|---|
| 322 |
<a href="javascript:setRenameAction({ordner.id});" > |
|---|
| 323 |
<img style="border:0px" src="{URL}data/interface/pen.gif" alt="umbenennen" title="umbenennen" /> |
|---|
| 324 |
</a> |
|---|
| 325 |
<a href="javascript:ask('Wollen sie wirklich diesen Ordner samt enthaltener PMs und Unterordner löschen?','./ds?module=comm&sess={global.sess}&action=delete&ordner={ordner.parent}&delord={ordner.id}')"> |
|---|
| 326 |
<img style="border:0px" src="{URL}data/interface/delete.gif" alt="umbenennen" title="Löschen" /></a> |
|---|
| 327 |
{/endif} |
|---|
| 328 |
{/endif} |
|---|
| 329 |
</td> |
|---|
| 330 |
</tr> |
|---|
| 331 |
<!-- END ordner.listitem --> |
|---|
| 332 |
<!-- BEGIN pms.listitem --> |
|---|
| 333 |
<tr id="inbox_pm{pm.id}_row"> |
|---|
| 334 |
<td class="noBorderX"> |
|---|
| 335 |
{if ! pm.trash} |
|---|
| 336 |
<input type="checkbox" name="pm_{pm.id}" value="{pm.id}" /> |
|---|
| 337 |
{/endif} |
|---|
| 338 |
</td> |
|---|
| 339 |
<td class="noBorderX"> |
|---|
| 340 |
{if pm.new}<span id="pm{pm.id}" style="color:yellow; font-size:10px">NEU</span>{/endif} |
|---|
| 341 |
{if pm.kommentar}<span style="color:yellow; font-size:10px">[K]</span>{/endif} |
|---|
| 342 |
</td> |
|---|
| 343 |
<td class="noBorderX"> |
|---|
| 344 |
<div id="inbox_pm{pm.id}" style=";width:100%" class="inbox_pm"> |
|---|
| 345 |
<a class="profile" {if pm.flags.admin}style="color:orange"{/endif} href="javascript:showpm({pm.id});"> |
|---|
| 346 |
{pm.title} |
|---|
| 347 |
</a> |
|---|
| 348 |
</div> |
|---|
| 349 |
<script type="text/javascript" language="javascript"> |
|---|
| 350 |
draggablePms.push('{pm.id}'); |
|---|
| 351 |
</script> |
|---|
| 352 |
</td> |
|---|
| 353 |
<td class="noBorderX" {if pm.flags.admin}style="color:orange"{/endif}> |
|---|
| 354 |
{!link_to $pm.sender.name, default, css_class:profile, module:userprofile, user:$pm.sender.id} |
|---|
| 355 |
</td> |
|---|
| 356 |
<td class="noBorderX" {if pm.flags.admin}style="color:orange"{/endif}> |
|---|
| 357 |
{pm.time} |
|---|
| 358 |
</td> |
|---|
| 359 |
<td class="noBorderX"> |
|---|
| 360 |
<a href="javascript:showpm({pm.id});" ><img style="border:0px" src="{URL}data/interface/text.png" alt="lesen" /></a> |
|---|
| 361 |
{!image_link_to interface/pen.gif, default, reply:$pm.id} |
|---|
| 362 |
{if ! pm.trash} |
|---|
| 363 |
{!image_link_to interface/delete.gif, delete, ordner:$ordner.parent, delete:$pm.id} |
|---|
| 364 |
{else} |
|---|
| 365 |
{!image_link_to interface/pms/recover.png, recover, ordner:$ordner.parent, recover:$pm.id} |
|---|
| 366 |
{/endif} |
|---|
| 367 |
</td> |
|---|
| 368 |
</tr> |
|---|
| 369 |
<!-- END pms.listitem --> |
|---|
| 370 |
</table> |
|---|
| 371 |
</div> |
|---|
| 372 |
</div> |
|---|
| 373 |
<input id="subject" type="hidden" name="subject" /> |
|---|
| 374 |
<script type="text/javascript"> |
|---|
| 375 |
<!-- |
|---|
| 376 |
function actionSelectChange( newval ) { |
|---|
| 377 |
if( newval == "deletePlayer" ) { |
|---|
| 378 |
$('form_playerid').style.display = "inline"; |
|---|
| 379 |
$('form_ordnername').style.display = "none"; |
|---|
| 380 |
$('form_moveto').style.display = "none"; |
|---|
| 381 |
} |
|---|
| 382 |
else{ |
|---|
| 383 |
if (newval == "newOrdner"){ |
|---|
| 384 |
$('form_playerid').style.display = "none"; |
|---|
| 385 |
$('form_ordnername').style.display = "inline"; |
|---|
| 386 |
$('form_moveto').style.display = "none"; |
|---|
| 387 |
} |
|---|
| 388 |
else { |
|---|
| 389 |
if(newval == "moveAll" || newval == "moveSelected"){ |
|---|
| 390 |
$('form_playerid').style.display = "none"; |
|---|
| 391 |
$('form_ordnername').style.display = "none"; |
|---|
| 392 |
$('form_moveto').style.display = "inline"; |
|---|
| 393 |
} |
|---|
| 394 |
else{ |
|---|
| 395 |
$('form_playerid').style.display = "none"; |
|---|
| 396 |
$('form_ordnername').style.display = "none"; |
|---|
| 397 |
$('form_moveto').style.display = "none"; |
|---|
| 398 |
} |
|---|
| 399 |
} |
|---|
| 400 |
} |
|---|
| 401 |
$('rename').disabled = true; |
|---|
| 402 |
} |
|---|
| 403 |
--> |
|---|
| 404 |
</script> |
|---|
| 405 |
<div style="position:relative; top:0px; left:0px; display:inline"> |
|---|
| 406 |
Aktionen: <select id="select_action" name="action" size="1" onchange="actionSelectChange(this.options[this.options.selectedIndex].value)"> |
|---|
| 407 |
<optgroup label="'alle' Aktionen"> |
|---|
| 408 |
<option value="deleteAll">alle löschen</option> |
|---|
| 409 |
<option value="readAll">alle als gelesen markieren</option> |
|---|
| 410 |
<option value="deletePlayer">alle von Spieler # löschen</option> |
|---|
| 411 |
<option value="moveAll">alle verschieben</option> |
|---|
| 412 |
</optgroup> |
|---|
| 413 |
<optgroup label="'ausgewählte' Aktionen"> |
|---|
| 414 |
<option value="readSelected">ausgewählte als gelesen markieren</option> |
|---|
| 415 |
<option value="deleteSelected">ausgewählte löschen</option> |
|---|
| 416 |
<option value="moveSelected">ausgewählte verschieben</option> |
|---|
| 417 |
</optgroup> |
|---|
| 418 |
<optgroup label="'Ordner' Aktionen"> |
|---|
| 419 |
<option value="newOrdner">Ordner erstellen</option> |
|---|
| 420 |
<option id="rename" disabled="disabled" value="rename">Ordner umbenennen</option> |
|---|
| 421 |
</optgroup> |
|---|
| 422 |
</select> |
|---|
| 423 |
<input id="form_playerid" style="width:50px; display:none" type="text" name="playerid" value="ID" size="5" /> |
|---|
| 424 |
<div style="margin:0px; padding:0px; border:0px; display:inline"> |
|---|
| 425 |
<input id="form_ordnername" style="display:none; width:150px" type="text" name="ordnername" value="" size="5" /> |
|---|
| 426 |
</div> |
|---|
| 427 |
<div style="margin:0px; padding:0px; border:0px; display:inline"> |
|---|
| 428 |
<select name="moveto" id="form_moveto" style="display:none; width:150px"> |
|---|
| 429 |
<!-- BEGIN availordner.listitem --> |
|---|
| 430 |
<option value="{availordner.id}">{availordner.name}</option> |
|---|
| 431 |
<!-- END availordner.listitem --> |
|---|
| 432 |
</select> |
|---|
| 433 |
<input style="display:none; width:0px" type="text" name="ordner" value="{ordner.parent}"/> |
|---|
| 434 |
</div> |
|---|
| 435 |
{!form_create_hidden -, ordner:$currentordner.id} |
|---|
| 436 |
<div style="display:inline; margin:0px; padding:0px; border:0px" id="form_submit"> |
|---|
| 437 |
<input style="" type="submit" value="ok" /> |
|---|
| 438 |
</div> |
|---|
| 439 |
</div> |
|---|
| 440 |
</form> |
|---|
| 441 |
<br /> |
|---|
| 442 |
{!table_end} |
|---|
| 443 |
<br /> |
|---|
| 444 |
{!table_begin 710,left} |
|---|
| 445 |
<iframe src="./ds?module=comm&sess={global.sess}&action=showPm" name="pmviewer" width="630" height="240" scrolling="auto" marginheight="0" marginwidth="0" frameborder="0"> |
|---|
| 446 |
Dein Browser unterstützt leider keine iframes. Am besten installierst du einen Browser neueren Datums wie z.B. den <a class="forschinfo" href="http://www.mozilla.org">Mozilla Firefox</a> |
|---|
| 447 |
</iframe> |
|---|
| 448 |
{!table_end} |
|---|
| 449 |
|
|---|
| 450 |
<script type="text/javascript"> |
|---|
| 451 |
<!-- |
|---|
| 452 |
for( var i=0; i < draggablePms.length; i++ ) { |
|---|
| 453 |
new Draggable('inbox_pm'+draggablePms[i],{ revert:true }); |
|---|
| 454 |
} |
|---|
| 455 |
draggablePms = null; |
|---|
| 456 |
//--> |
|---|
| 457 |
</script> |
|---|
| 458 |
{/endif} |
|---|
| 459 |
{if show.outbox} |
|---|
| 460 |
<script type="text/javascript"> |
|---|
| 461 |
<!-- |
|---|
| 462 |
function showpm(pmid) { |
|---|
| 463 |
pmviewer.location.href = getDsUrl()+"?module=comm&sess={global.sess}&action=showPm&pmid="+pmid; |
|---|
| 464 |
} |
|---|
| 465 |
--> |
|---|
| 466 |
</script> |
|---|
| 467 |
{!table_begin 710,left} |
|---|
| 468 |
<div style="height:240px; overflow:auto"> |
|---|
| 469 |
<table class="noBorderX" width="100%"> |
|---|
| 470 |
<tr> |
|---|
| 471 |
<td class="noBorderX">Titel</td> |
|---|
| 472 |
<td class="noBorderX">An</td> |
|---|
| 473 |
<td class="noBorderX">Am</td> |
|---|
| 474 |
<td class="noBorderX">Aktionen </td> |
|---|
| 475 |
</tr> |
|---|
| 476 |
<!-- BEGIN pms.out.listitem --> |
|---|
| 477 |
<tr> |
|---|
| 478 |
<td class="noBorderX"> |
|---|
| 479 |
<a class="profile" {if pm.flags.admin}style="color:orange"{/endif} href="javascript:showpm({pm.id});"> |
|---|
| 480 |
{pm.title} |
|---|
| 481 |
</a> |
|---|
| 482 |
|
|---|
| 483 |
</td> |
|---|
| 484 |
<td class="noBorderX"> |
|---|
| 485 |
{!link_to $pm.empfaenger.name, default, css_class:profile, module:userprofile, user:$pm.empfaenger} |
|---|
| 486 |
</td> |
|---|
| 487 |
<td class="noBorderX" {if pm.flags.admin}style="color:orange"{/endif}> |
|---|
| 488 |
{pm.time} |
|---|
| 489 |
</td> |
|---|
| 490 |
<td class="noBorderX"> |
|---|
| 491 |
<a href="javascript:showpm({pm.id});"> |
|---|
| 492 |
<img style="border:0px" src="{URL}data/interface/text.png" alt="lesen" /> |
|---|
| 493 |
</a> |
|---|
| 494 |
{!image_link_to interface/pen.gif, default, reply:$pm.id} |
|---|
| 495 |
</td> |
|---|
| 496 |
</tr> |
|---|
| 497 |
<!-- END pms.out.listitem --> |
|---|
| 498 |
</table> |
|---|
| 499 |
</div> |
|---|
| 500 |
Hinweis: Diese PMs werden mit der Zeit automatisch gelöscht<br /><br /> |
|---|
| 501 |
{!table_end} |
|---|
| 502 |
<br /> |
|---|
| 503 |
{!table_begin 710,left} |
|---|
| 504 |
<iframe src="./ds?module=comm&sess={global.sess}&action=showPm" name="pmviewer" width="630" height="240" scrolling="auto" marginheight="0" marginwidth="0" frameborder="0"> |
|---|
| 505 |
Dein Browser unterstützt leider keine iframes. Am besten installierst du einen Browser neueren Datums wie z.B. den <a class="forschinfo" href="http://www.mozilla.org">Mozilla Firefox</a> |
|---|
| 506 |
</iframe> |
|---|
| 507 |
{!table_end} |
|---|
| 508 |
{/endif} |
|---|
| 509 |
{if show.pm} |
|---|
| 510 |
{if pm.bgimage} |
|---|
| 511 |
<div style="z-index:1; position:absolute; top:0px; left:0px; margin:0px; padding:0px; width:570px; overflow:hidden; background-image: url('{URL}data/interface/pms/{pm.bgimage}');'"> |
|---|
| 512 |
<img src="{URL}data/interface/pms/{pm.bgimage}" width="570" alt="" /> |
|---|
| 513 |
</div> |
|---|
| 514 |
{/endif} |
|---|
| 515 |
<table class="noBorderX" width="100%"> |
|---|
| 516 |
<tr> |
|---|
| 517 |
<td class="noBorderX"> |
|---|
| 518 |
{if pm.id} |
|---|
| 519 |
<div style="z-index:2; position:absolute; top:0px; left:0px"> |
|---|
| 520 |
<div style="text-align:center; width:570px"> |
|---|
| 521 |
<table class="show2" style="width:500px; margin-left:auto; margin-right:auto"> |
|---|
| 522 |
{if pm.title} |
|---|
| 523 |
<tr> |
|---|
| 524 |
<td {if pm.flags.admin}style="color:orange"{/endif} class="BorderX" align="center"> |
|---|
| 525 |
{pm.title} |
|---|
| 526 |
</td> |
|---|
| 527 |
</tr> |
|---|
| 528 |
{/endif} |
|---|
| 529 |
<tr> |
|---|
| 530 |
<td class="BorderX"> |
|---|
| 531 |
{if pm.sender} |
|---|
| 532 |
Von: {!link_to $pm.sender.name, default, css_class:profile, link_target:main, module:userprofile, user:$pm.sender} |
|---|
| 533 |
{else} |
|---|
| 534 |
An: {!link_to $pm.empfaenger.name, default, css_class:profile, link_target:main, module:userprofile, user:$pm.empfaenger} |
|---|
| 535 |
{/endif} |
|---|
| 536 |
{!image_link_to interface/pen.gif, default, image_css_style:vertical-align:middle, link_target:main, reply:$pm.id} |
|---|
| 537 |
{!image_link_to interface/pms/edit-comment.png, editComment, image_css_style:vertical-align:middle, link_target:main, pm:$pm.id, ordner:$ordner.parent}<br /> |
|---|
| 538 |
Datum: {pm.time}<br /> |
|---|
| 539 |
</td> |
|---|
| 540 |
</tr> |
|---|
| 541 |
</table> |
|---|
| 542 |
<br /> |
|---|
| 543 |
</div> |
|---|
| 544 |
{pm.text} |
|---|
| 545 |
{if pm.kommentar} |
|---|
| 546 |
<hr> |
|---|
| 547 |
{pm.kommentar} |
|---|
| 548 |
{/endif} |
|---|
| 549 |
</div> |
|---|
| 550 |
{else} |
|---|
| 551 |
<div align="center">Keine Nachricht ausgewählt</div> |
|---|
| 552 |
{/endif} |
|---|
| 553 |
</td> |
|---|
| 554 |
</tr> |
|---|
| 555 |
</table> |
|---|
| 556 |
{/endif} |
|---|
| 557 |
{if show.comment} |
|---|
| 558 |
{!table_begin 710,left} |
|---|
| 559 |
<form action="./ds" method="post"> |
|---|
| 560 |
<table class="noBorderX" cellspacing="2" cellpadding="4"> |
|---|
| 561 |
<tr> |
|---|
| 562 |
<td class="noBorderX" valign="top">Von:</td> |
|---|
| 563 |
<td class="noBorderX">{pm.sender.name}</td> |
|---|
| 564 |
</tr> |
|---|
| 565 |
<tr> |
|---|
| 566 |
<td class="noBorderX" valign="top">An:</td> |
|---|
| 567 |
<td class="noBorderX">{pm.empfaenger.name}</td> |
|---|
| 568 |
</tr> |
|---|
| 569 |
<tr> |
|---|
| 570 |
<td class="noBorderX" valign="top">Betreff:</td> |
|---|
| 571 |
<td class="noBorderX">{pm.title}</td> |
|---|
| 572 |
</tr> |
|---|
| 573 |
<tr> |
|---|
| 574 |
<td class="noBorderX" valign="top">Text:</td> |
|---|
| 575 |
<td class="noBorderX">{pm.text}</td> |
|---|
| 576 |
</tr> |
|---|
| 577 |
<tr> |
|---|
| 578 |
<td class="noBorderX" valign="top">Kommentar<br /><br /> |
|---|
| 579 |
<input type="button" value="RL Zeit" onclick="insertRealTime()" style="width:80px" /><br /><br /> |
|---|
| 580 |
<input type="button" value="Tick Zeit" onclick="insertTickTime()" style="width:80px" /><br /><br /> |
|---|
| 581 |
<!-- <input type="button" value="Signatur" onclick="insertSignature()" style="width:80px" /> |
|---|
| 582 |
<textarea id="signature" style="display:none;">{user.signature}</textarea>--></td> |
|---|
| 583 |
<td class="noBorderX"><textarea id="msg" name="msg" cols="65" rows="18" style="width:500px">{comment.text}</textarea></td> |
|---|
| 584 |
</tr> |
|---|
| 585 |
<tr> |
|---|
| 586 |
<td class="noBorderX" valign="top"> </td> |
|---|
| 587 |
<td align="center" class="noBorderX"> |
|---|
| 588 |
{!form_create_hidden send} |
|---|
| 589 |
<input type="hidden" name="pmid" value="{pm.id}" /> |
|---|
| 590 |
<input type="hidden" name="ordner" value="{ordner.id}" /> |
|---|
| 591 |
<input type="submit" name="Senden" value="Kommentar aktualisieren" style="width:200px" onclick="this.form.action.value = 'sendComment'" /><br /> |
|---|
|
|---|