Commit caa25765 authored by Ad Schellevis's avatar Ad Schellevis

GUI update 2014/12/08

parent 7ef4a249

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

* {
}
body {
margin: 0em;
background-color: #FFFFFF;
background-image: url("fred-bg.gif");
background-repeat: no-repeat;
white-space: normal;
font-weight: bold;
color: navy;
font-family: 'Arial', 'Helvetica', 'Verdana', sans-serif;
}
div.mainness {
margin-top: 0em;
padding-top: 0em;
}
div.maintitle {
background: #DDEEDD;
font-style: italic;
padding-top: 1.0em;
padding-left: 4%;
font-size: large;
border-bottom: thin solid #000000;
}
div.title {
background: #EEEEEE;
font-weight: bold;
padding-top: 0.5em;
padding-left: 8%;
border-bottom: thin solid #AAAAAA;
}
div.textbox {
border: thin solid #000000;
margin-bottom: 0.5em;
margin-top: 1.5em;
margin-left: 10%; margin-right: 10%;
padding: 0.5em;
background: #FFFFFF;
text-align: center;
}
div.monospaced {
border: thin solid #000000;
margin-bottom: 0.5em;
margin-top: 1.5em;
margin-left: 10%; margin-right: 10%;
padding: 0.5em;
background: #FFFFFF;
white-space: pre;
font-family: monospace;
font-weight: normal;
font-size: 90%;
}
div.mainform {
text-align: center;
margin: 0.5em;
}
table.maintable {
text-align: left;
margin: 1em auto;
width: 50%;
}
td.colhead {
font-weight: bold;
text-align: center;
}
.note {
font-style: italic;
color: #AAAAAA;
font-size: smaller;
}
input.button {
font-weight: bold;
color: navy;
font-family: 'Arial', 'Helvetica', 'Verdana', sans-serif;
}
// Global Variables
var rowname = new Array(99);
var rowtype = new Array(99);
for (i = 0; i < 99; i++) {
rowname[i] = '';
rowtype[i] = '';
}
var field_counter_js = 0;
var loaded = 0;
var is_streaming_progress_bar = 0;
var temp_streaming_text = "";
var addRowTo = (function() {
return (function (tableId) {
var d, tbody, tr, td, bgc, i, ii, j;
d = document;
tbody = d.getElementById(tableId).getElementsByTagName("tbody").item(0);
tr = d.createElement("tr");
totalrows++;
for (i = 0; i < field_counter_js; i++) {
td = d.createElement("td");
if(rowtype[i] == 'textbox') {
td.innerHTML="<INPUT type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "'></input><input name='" + rowname[i] + "-" + totalrows + "'></input> ";
} else {
td.innerHTML="<INPUT type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "'></input><input type='checkbox' name='" + rowname[i] + "-" + totalrows + "'></input> ";
}
tr.appendChild(td);
}
td = d.createElement("td");
td.rowSpan = "1";
td.innerHTML = '<input type="button" value="Delete" onclick="removeRow(this)">';
tr.appendChild(td);
tbody.appendChild(tr);
});
})();
function removeRow(el) {
var cel;
while (el && el.nodeName.toLowerCase() != "tr")
el = el.parentNode;
if (el && el.parentNode) {
cel = el.getElementsByTagName("td").item(0);
el.parentNode.removeChild(el);
}
}
function find_unique_field_name(field_name) {
// loop through field_name and strip off -NUMBER
var last_found_dash = 0;
for (var i = 0; i < field_name.length; i++) {
// is this a dash, if so, update
// last_found_dash
if (field_name.substr(i,1) == "-" )
last_found_dash = i;
}
if (last_found_dash < 1)
return field_name;
return(field_name.substr(0,last_found_dash));
}
This diff is collapsed.
This diff is collapsed.
<?php
/*
pfSense_MODULE: header
*/
$g['theme'] = get_current_theme();
$pagetitle = gentitle( $pgtitle );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?=system_get_language_code();?>" xml:lang="<?=system_get_language_code();?>">
<head>
<title><?php echo($config['system']['hostname'] . "." . $config['system']['domain'] . " - " . $pagetitle); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?=system_get_language_codeset();?>" />
<link rel="apple-touch-icon" href="/themes/<?php echo $g['theme']; ?>/apple-touch-icon.png"/>
<link rel="shortcut icon" href="/themes/<?php echo $g['theme']; ?>/images/icons/favicon.ico"/>
<!-- START: NOT IN NEW -->
<?php
if (file_exists("{$g['www_path']}/themes/{$g['theme']}/table.css")):
echo "<link type=\"text/css\" rel=\"stylesheet\" href=\"/themes/{$g['theme']}/table.css\" />";
else:
echo "<link type=\"text/css\" rel=\"stylesheet\" href=\"/css/table.css\" media=\"all\" />";
endif;
?>
<?php if (strpos($_SERVER["SCRIPT_FILENAME"], "wizard.php") !== false &&
file_exists("{$g['www_path']}/themes/{$g['theme']}/wizard.css")): ?>
<?php echo "<link type=\"text/css\" rel=\"stylesheet\" href=\"/themes/{$g['theme']}/wizard.css\" />"; ?>
<?php else: ?>
<link type="text/css" rel="stylesheet" href="/themes/<?php echo $g['theme']; ?>/all.css" media="all" />
<?php endif; ?>
<link rel="stylesheet" type="text/css" href="/niftycssCode.css" />
<link rel="stylesheet" type="text/css" href="/niftycssprintCode.css" media="print" />
<link rel="stylesheet" type="text/css" href="/themes/<?=$g['theme']?>/new_tab_menu.css" media="all" />
<link rel="stylesheet" type="text/css" href="javascript/jquery/jquery-ui-1.11.1.css" />
<script type="text/javascript" src="/javascript/niftyjsCode.js"></script>
<script type="text/javascript" src="/javascript/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="/javascript/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="/javascript/jquery/jquery-ui-1.11.1.min.js"></script>
<script type="text/javascript">
//<![CDATA[
var theme = "<?php echo $g['theme']; ?>";
jQuery.noConflict();
//]]>
</script>
<!-- END: NOT IN NEW -->
<script type="text/javascript" src="/javascript/sorttable.js"></script>
<script type="text/javascript" src="/javascript/ticker.js"></script>
<!-- START: NOT IN NEW -->
<style type="text/css" id="antiClickjack">
/*<![CDATA[*/
body{display:none}
/*]]>*/
</style>
<script type="text/javascript">
//<![CDATA[
if (self === top) {
var antiClickjack = document.getElementById("antiClickjack"); antiClickjack.parentNode.removeChild(antiClickjack);
} else {
top.location = self.location;
}
//]]>
</script>
<!-- START: WHERE IS THIS FOR -->
<?php echo "\t<script type=\"text/javascript\" src=\"/themes/{$g['theme']}/loader.js\"></script>\n"; ?>
<?php
if($_GET['enablefirebuglite']) {
echo "\t<script type=\"text/javascript\" src=\"/javascript/pi.js\"></script>\n";
echo "\t<script type=\"text/javascript\" src=\"/javascript/firebug-lite.js\"></script>\n";
}
echo "\t<script type=\"text/javascript\" src=\"/javascript/scriptaculous/prototype.js\"></script>\n";
echo "\t<script type=\"text/javascript\" src=\"/javascript/scriptaculous/scriptaculous.js\"></script>\n";
echo "\t<script type=\"text/javascript\" src=\"/javascript/scriptaculous/effects.js\"></script>\n";
echo "\t<script type=\"text/javascript\" src=\"/javascript/scriptaculous/dragdrop.js\"></script>\n";
if(file_exists("{$g['www_path']}/javascript/global.js"))
echo "\t<script type=\"text/javascript\" src=\"/javascript/global.js\"></script>\n";
/*
* Find all javascript files that need to be included
* for this page ... from the arrays ... :)
* Coded by: Erik Kristensen
*/
$dir = trim(basename($_SERVER["SCRIPT_FILENAME"], '.php'));
$path = "{$g['www_path']}/javascript/" . $dir . "/";
if (is_dir($path)) {
if ($dh = opendir($path)) {
while (($file = readdir($dh)) !== false) {
if (is_dir($file))
continue;
echo "\t<script type=\"text/javascript\" src=\"/javascript/{$dir}/{$file}\"></script>\n";
}
closedir($dh);
}
}
?>
<!-- END: WHERE IS THIS FOR -->
<?php
if (!isset($closehead))
echo "</head>";
?>
<!-- START: IS THIS STILL NEEDED -->
<?
/* If this page is being remotely managed then do not allow the loading of the contents. */
if($config['remote_managed_pages']['item']) {
foreach($config['remote_managed_pages']['item'] as $rmp) {
if($rmp == $_SERVER['SCRIPT_NAME']) {
include("fbegin.inc");
print_info_box_np("This page is currently being managed by a remote machine.");
include("fend.inc");
exit;
}
}
}
?>
<!-- END: IS THIS STILL NEEDED -->
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment