Changeset 132 for dev

Show
Ignore:
Timestamp:
12/01/06 02:00:47 (14 years ago)
Author:
knifee
Message:

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.

Location:
dev
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • dev/common/generic.js

    r41 r132  
    2929        } 
    3030} 
     31<!-- 
     32function createRequestObject() { 
     33    var ro; 
     34    var browser = navigator.appName; 
     35    if(browser == "Microsoft Internet Explorer"){ 
     36        ro = new ActiveXObject("Microsoft.XMLHTTP"); 
     37    }else{ 
     38        ro = new XMLHttpRequest(); 
     39    } 
     40    return ro; 
     41} 
     42 
     43var http = createRequestObject(); 
     44 
     45function sndReq(action) { 
     46    http.open('get', action); 
     47    http.onreadystatechange = handleResponse; 
     48    http.send(null); 
     49} 
     50 
     51function handleResponse() { 
     52    if(http.readyState == 4){ 
     53        var response = http.responseText; 
     54        var update = new Array(); 
     55 
     56        if(response.indexOf('|' != -1)) { 
     57            update = response.split('|'); 
     58            document.getElementById(update[0]).innerHTML = update[1]; 
     59        } 
     60    } 
     61} 
     62//--> 
     63<!-- 
     64 
     65function ReverseContentDisplay(d) { 
     66if(d.length < 1) { return; } 
     67var dd = document.getElementById(d); 
     68if(dd.style.display == "none") { dd.style.display = "block"; } 
     69else { dd.style.display = "none"; } 
     70} 
     71//--> 
  • dev/common/kill_detail.php

    r130 r132  
    201201$menubox->setIcon("menu-item.gif"); 
    202202$menubox->addOption("caption", "View"); 
    203 $menubox->addOption("link", "Killmail", "javascript:openWindow( '?a=kill_mail&kll_id=" . $kill->getID() . "', null, 355, 430, '' );"); 
     203        $menubox->addOption("link","Killmail", "javascript:sndReq('index.php?a=kill_mail&kll_id=".$kill->getID()."');ReverseContentDisplay('popup')"); 
    204204if ($kill->relatedKillCount() > 1 || $kill->relatedLossCount() > 1) 
    205205{ 
  • dev/common/kill_mail.php

    r54 r132  
    88$kill = new Kill($kll_id); 
    99?> 
    10 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    11                       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    12 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
    13 <head> 
    14 <title>Rawmail - Kill ID <?php echo $kll_id; ?></title> 
    15 </head> 
    16 <style type="text/css"> 
    17 textarea 
    18 { 
    19     font-size: 10px; 
    20     font-family: Verdana, Arial, Helvetica, sans-serif; 
    21     color: #333333; 
    22 } 
    23 </style> 
    24 <body bgcolor="#222222"> 
    25 <form> 
    26 <table class="kb-table" width="1" height="100%"> 
    27 <tr><td valign="top"><textarea class="killmail" name="killmail" cols="60" rows="30" readonly="readonly"> 
     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"> 
    2821<?php echo $kill->getRawMail();?></textarea></td></tr> 
    29 <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="window.close();"></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 
    3025</table> 
    3126</form> 
    32 </body> 
    33 </html> 
     27 
     28 
  • dev/style/blue/style.css

    r68 r132  
    553553        font-family: Arial, Helvetica, sans-serif; 
    554554        } 
     555.popup-table 
     556{ 
     557filter: alpha(opacity=90); 
     558-moz-opacity: 0.9;  
     559background-color:#39475F; 
     560} 
  • dev/style/default/style.css

    r68 r132  
    553553        font-family: Arial, Helvetica, sans-serif; 
    554554        } 
     555.popup-table 
     556{ 
     557filter: alpha(opacity=90); 
     558-moz-opacity: 0.9;  
     559background-color:#333333; 
     560} 
  • dev/style/revelations/style.css

    r95 r132  
    588588  text-decoration: underline; 
    589589} 
     590.popup-table 
     591{ 
     592filter: alpha(opacity=90); 
     593-moz-opacity: 0.9;  
     594background-color:#999999; 
     595} 
  • dev/templates/index.tpl

    r86 r132  
    77<link rel="stylesheet" type="text/css" href="{$style_url}/{$style}/style.css"> 
    88<script language=javascript src="{$common_url}/generic.js"></script> 
     9 
     10<style type="text/css"> 
     11</style> 
    912</head> 
    1013<body bgcolor="#222222" {$on_load} style="height: 100%"> 
    11 <table class="main-table" height="100%" align="center" bgcolor="#111111" border="0" cellspacing="1" style="height: 100%"> 
     14<div align="center" id="popup" style="display:none;  
     15        position:absolute;  
     16    top:217px; width:99%;        
     17        z-index:3; 
     18    padding: 5px;"></div> 
     19        <table class="main-table" height="100%" align="center" bgcolor="#111111" border="0" cellspacing="1" style="height: 100%"> 
    1220<tr style="height: 100%"> 
    1321<td valign="top" height="100%" style="height: 100%">