root/dev/common/kill_mail.php @ 132

Revision 132, 0.9 KB (checked in by knifee, 14 years ago)

Changed how the Killmail link works, no longer loads a popup window but rather fetches the killmail and loads it into a div. Also added a new style class for popup.

Line 
1<?php
2require_once("db.php");
3require_once("class.page.php");
4require_once("class.kill.php");
5require_once("globals.php");
6
7$kll_id = intval($_GET['kll_id']);
8$kill = new Kill($kll_id);
9?>
10popup|<form>
11<table class="popup-table" height="100%" width="355px">
12<tr>
13        <td align="center"><strong>Original Killmail</strong></td>
14</tr>
15<tr>
16        <td align="center"><input type="button" value="Close" onClick="ReverseContentDisplay('popup');"></td>
17</tr>
18<tr>
19<td valign="top" align="center">
20<textarea class="killmail" name="killmail" cols="60" rows="30" readonly="readonly">
21<?php echo $kill->getRawMail();?></textarea></td></tr>
22<tr><td align="center"><input type="button" value="Select All" onClick="this.form.killmail.select();this.form.killmail.focus(); document.execCommand('Copy')">&nbsp;<input type="button" value="Close" onClick="ReverseContentDisplay('popup');"></td>
23</tr>
24
25</table>
26</form>
27
28
Note: See TracBrowser for help on using the browser.