Version array can now be strings, created online css

This commit is contained in:
Travis Burtrum 2012-12-26 16:50:06 -06:00
parent ae637db6b8
commit 9610883c87
3 changed files with 7 additions and 2 deletions

View File

@ -670,6 +670,11 @@ img {
background: #ebebeb;
}
.online {
color: #00FF00;
font-weight: bold;
}
.offline {
color: #FF0000;
font-weight: bold;

View File

@ -358,7 +358,7 @@ function echoForm($name, $ip, $port, $version, $message, $pic_url, $edit = false
<td><select name="version">
<?php
$v_template = "<option>%d</option>\n";
$v_template = "<option>%s</option>\n";
if (isset($version))
printf($v_template, $version);
foreach ($g_versions as $v)

View File

@ -23,7 +23,7 @@ if (!defined('SS_PAGE'))
function search() {
forceLogin();
$chk_template = "\t\t" . '<input type="checkbox" checked="checked" name="versions[]" value="%d" /> %d <br />' . "\n";
$chk_template = "\t\t" . '<input type="checkbox" checked="checked" name="versions[]" value="%s" /> %s <br />' . "\n";
global $g_versions;
echo "Enter your search terms.<br />";