Example #1
0
function draw_html($message = '')
{
    global $character;
    global $params;
    global $DEBUG;
    global $lang_area;
    global $js_info_eol;
    if ($DEBUG >= 1) {
        $message .= "<p>** DEBUG - Location: " . $character->location . "<br>";
    }
    //if ($DEBUG >= 1) { $message.= "<p>** DEBUG - whos_here: ".print_r($list,true); }
    // FFIXME:  had to change this to NONE.css or link/input squares have css background !
    ?>
<script language="JavaScript" type="text/JavaScript"><!--
function displayInfo(info){
    var infoDiv= document.getElementById("info");
    var re = /<?php 
    echo $js_info_eol;
    ?>
/g;
    info = info.replace(re,"<br>");
    infoDiv.innerHTML= info;
}
//-->
</script>
<html>
<head>
<link href="styles/NONE.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
A,A:visited,A:link,A:active {
	color: white;
	font-family: Arial, Gothic;
	font-size: 12px;
	font-weight: bold;
	text-decoration: none;
}

A:hover {
	color: white;
	font-family: Arial, Gothic;
	font-size: 12px;
	font-weight: bold;
	text-decoration: underline;
}

form {
	margin: 0px;
}
//
-->
</style>
</head>
	<?php 
    print '<body  bgcolor=black text=white>
			   <table border="0" cellspacing="0" cellpadding="0" width="100%">
				  <tr>
					 <td align="center" valign="top">
						<table border="0" cellspacing="0" cellpadding="0">
						   <tr>
							  <td align="center" colspan="2">
								' . $message . '<br>';
    //print '<div style="z-Index:30;position:absolute;top:20px;left:20px;">';
    // build and print map
    list($out_loc, $marker_loc) = data_collect();
    draw_all($out_loc);
    //print '</div>'."\n";
    //print '<div style="z-Index:40;position:absolute;top:20px;left:20px;">';
    //    draw_all($marker_loc);
    //print '</div>'."\n";
    print '<br></td>
						   </tr><tr>
						   <td>';
    if (!isset($params['name'])) {
        $params['name'] = '';
    }
    if ($params["buildings"] == "y" and $params["one_building"] > "1") {
        echo "<a href='town.php' target='content'>\n\t\t\t\t\t<img src='images/icons/enter.gif' alt='{$lang_area['enter']}' border=0 align=left> {$lang_area['enter']}<br> {$params['name']}</a><br>";
    }
    if ($params["buildings"] == "y" and $params["one_building"] == "1") {
        echo "<a href='town.php' target='content'>\n\t\t\t\t\t<img src='images/icons/enter.gif' alt='{$lang_area['enter']}' border=0 align=left> {$lang_area['enter']}<br> {$params['name']}</a><br>";
    }
    if ($params["explore"] != "") {
        echo "<table border=0 cellspacing=0 cellpadding=0>";
        echo "<form action='travel.php' method='post'>\n\t\t      \t    <tr>\n\t\t\t    <td align=left>\n\t\t\t    <input type='hidden' name='explorable' value='yes'>\n\t\t\t    <input type='hidden' name='destination' value='{$params['explore']}'>\n\t\t\t   <input type=button class=input style='background:#000000;border:none;color:#FFFFFF;' type=submit value='Войти город' onclick='top.frames[\"main\"].location = \"../street6.php\"'>\n\t\t\t   \n\t\t\t    </td>\n\t\t\t    </tr>\n\t\t\t    </form>";
        echo "</table>";
    }
    if ($params["special_id"] > 0) {
        echo "<a href=\"area.php\" target=\"content\">";
        echo "<img src=\"images/icons/invest.gif\" alt=\"" . $lang_trav["invest"] . "\" border=\"0\"></a>";
    }
    if (@$params['rune_gate'] == "yes") {
        echo "<table border=0 cellspacing=0 cellpadding=0>\n\t\t\t<tr><td align=left><b>Gate Travel:</b></td></tr>";
        $result = mysql_query("SELECT * FROM phaos_locations WHERE name LIKE 'Rune Gate%' AND id != '{$character->location}' ORDER BY name ASC");
        while ($row = mysql_fetch_array($result)) {
            echo "<form action='travel.php' method='post'>\n\t\t        <tr>\n\t\t\t    <td align=left>\n\t\t\t    <input type='hidden' name='destination' value='{$row['id']}'>\n\t\t\t    <input type='hidden' name='rune_gate' value='yes'>\n\t\t\t    <input type='submit' style='text-align:left;background:#000000;color:#FFFFFF;border:none;' value='{$row['name']}'>\n\t\t\t    </td>\n\t\t\t    </tr>\n\t\t\t    </form>";
        }
        echo "</table>";
    }
    if (@$_COOKIE['_timing']) {
        echo "time F=" . endTiming();
    }
    print '
								  </td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
        ';
    ?>
<center>
<div id="info"
	style="overflow: auto; height: 180px; width: 420px; z-Index: 20;"></div>
	<?php 
    include "trailer.php";
    ?>
</center>
	<?php 
    print '
			</body>
			</html>';
}
Example #2
0
function draw_html($message = '')
{
    global $character;
    global $params;
    global $DEBUG;
    global $lang_area;
    global $js_info_eol;
    if ($DEBUG >= 1) {
        $message .= "<p>** DEBUG - Location: " . $character->location . "<br>";
    }
    //if ($DEBUG >= 1) { $message.= "<p>** DEBUG - whos_here: ".print_r($list,true); }
    // FFIXME:  had to change this to NONE.css or link/input squares have css background !
    ?>
<script language="JavaScript" type="text/JavaScript"><!--
function displayInfo(info){
    var infoDiv= document.getElementById("info");
    var re = /<?php 
    echo $js_info_eol;
    ?>
/g;
    info = info.replace(re,"<br>");
    infoDiv.innerHTML= info;
}
//-->
</script>
<html>
<head>
<link href="styles/NONE.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
A,A:visited,A:link,A:active {
	color: white;
	font-family: Arial, Gothic;
	font-size: 12px;
	font-weight: bold;
	text-decoration: none;
}

A:hover {
	color: white;
	font-family: Arial, Gothic;
	font-size: 12px;
	font-weight: bold;
	text-decoration: underline;
}

form {
	margin: 0px;
}
//
-->
</style>
</head>
	<?php 
    print '<body bgcolor=#EBEDEC text=black>
			   <table border="0" cellspacing="0" cellpadding="0" width="100%">
				  <tr>
					 <td align="center" valign="top">
						<table border="0" cellspacing="0" cellpadding="0">
						   <tr>
							  <td align="center" colspan="2">
								' . $message . '<br>';
    //print '<div style="z-Index:30;position:absolute;top:20px;left:20px;">';
    // build and print map
    list($out_loc, $marker_loc) = data_collect();
    draw_all($out_loc);
    //print '</div>'."\n";
    //print '<div style="z-Index:40;position:absolute;top:20px;left:20px;">';
    //    draw_all($marker_loc);
    //print '</div>'."\n";
    print '<br></td>
						   </tr><tr>
						   <td>';
    if (!isset($params['name'])) {
        $params['name'] = '';
    }
    if ($params["buildings"] == "y" and $params["one_building"] > "1") {
        echo "<a href='town.php' target='content'>\n\t\t\t\t\t<img src='images/icons/enter.gif' alt='{$lang_area['enter']}' border=0 align=left> {$lang_area['enter']}<br> {$params['name']}</a><br>";
    }
    if ($params["buildings"] == "y" and $params["one_building"] == "1") {
        echo "<a href='town.php' target='content'>\n\t\t\t\t\t<img src='images/icons/enter.gif' alt='{$lang_area['enter']}' border=0 align=left> {$lang_area['enter']}<br> {$params['name']}</a><br>";
    }
    if ($params["explore"] != "") {
        echo "<table border=0 cellspacing=0 cellpadding=0>";
        echo "<form action='travel.php' method='post'>\n\t\t      \t    <tr>\n\t\t\t    <td align=left>\n\t\t\t    <input type='hidden' name='explorable' value='yes'>\n\t\t\t    <input type='hidden' name='destination' value='{$params['explore']}'>\n\t\t\t   <input type=button class=input style='background:#000000;border:none;color:#FFFFFF;' type=submit value='Войти город' onclick='top.frames[\"main\"].location = \"../street6.php\"'>\n\t\t\t   \n\t\t\t    </td>\n\t\t\t    </tr>\n\t\t\t    </form>";
        echo "</table>";
    }
    if ($params["special_id"] > 0) {
        echo "<a href=\"area.php\" target=\"content\">";
        echo "<img src=\"images/icons/invest.gif\" alt=\"" . $lang_trav["invest"] . "\" border=\"0\"></a>";
    }
    if (@$params['rune_gate'] == "yes") {
        echo "<table border=0 cellspacing=0 cellpadding=0>\n\t\t\t<tr><td align=left><b>Gate Travel:</b></td></tr>";
        $result = mysql_query("SELECT * FROM phaos_locations WHERE name LIKE 'Rune Gate%' AND id != '{$character->location}' ORDER BY name ASC");
        while ($row = mysql_fetch_array($result)) {
            echo "<form action='travel.php' method='post'>\n\t\t        <tr>\n\t\t\t    <td align=left>\n\t\t\t    <input type='hidden' name='destination' value='{$row['id']}'>\n\t\t\t    <input type='hidden' name='rune_gate' value='yes'>\n\t\t\t    <input type='submit' style='text-align:left;background:#000000;color:#FFFFFF;border:none;' value='{$row['name']}'>\n\t\t\t    </td>\n\t\t\t    </tr>\n\t\t\t    </form>";
        }
        echo "</table>";
    }
    if (@$_COOKIE['_timing']) {
        echo "time F=" . endTiming();
    }
    print '
								  </td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
        ';
    ?>
<center><?php 
    include '../inc/aligns.php';
    $psel = mysql_query("SELECT * FROM players WHERE location = '{$character->location}' and user != '{$character->user}' and room = '300' and lpv > " . (time() - 60) . " order by level DESC ");
    while ($pl = mysql_fetch_array($psel)) {
        if ($pl['invisible'] > $ctime) {
            echo "<IMG SRC='../i/align/align0.gif' BORDER=0 ALT='" . $alignstr[0] . "' width=15 height=15><a href=\"javascript:top.to('Тень')\"><font color=gray><i>Тень</i></font></a> [99] <a href=\"inf.php?99\" target=_blank><IMG SRC=\"../i/inf.gif\" BORDER=0 ALT=\"Информация о Тени\" width=11 height=11></a><BR>";
        } else {
            if ($pl['rank'] == 60 || $pl['user'] == $stat['user']) {
                $pl['ignore_him'] = 0;
            }
            // Can't ignore BOTS or myself
            echo "\n\t<IMG SRC='../i/skl" . $pl['skl'] . ".gif' BORDER=0 ALT='" . $alignstr[$pl['skl']] . "' width=15 height=15>                   \n\t\n\t<IMG SRC='../i/align/align" . $pl['rank'] . ".gif' BORDER=0 ALT='" . $alignstr[$pl['rank']] . "' width=15 height=15>" . $klan . "<a href=\"javascript:top.to('" . $pl['user'] . "')\">";
            $userbuf = "<FONT COLOR=black>" . $pl['user'] . "</FONT>";
            if ($pl['battle'] && $pl['rank'] != 60) {
                echo "<S>" . $userbuf . "</S>";
            } else {
                echo $userbuf;
            }
            echo "</a> [" . $pl['level'] . "] <a href=\"inf.php?" . $pl['id'] . "\" target=_blank><IMG SRC=\"../i/inf.gif\" BORDER=0 ALT=\"Информация о " . $pl['user'] . "\" width=11 height=11></a>";
            echo "<BR>";
        }
        $num++;
    }
    ?>
</center>


<?php 
    print '
			</body>
			</html>';
}