Revision dfdfd0be
Added by Scott Ullrich almost 17 years ago
usr/local/www/guiconfig.inc | ||
---|---|---|
289 | 289 |
|
290 | 290 |
function print_info_box_np($msg, $name="apply",$value="Apply changes") { |
291 | 291 |
global $g; |
292 |
echo "<table height=\"32\" width=\"100%\">\n"; |
|
293 |
echo " <tr>\n"; |
|
294 |
echo " <td>\n"; |
|
295 |
echo " <div style='background-color:#990000' id='redbox'>\n"; |
|
296 |
echo " <table width='100%'><tr><td width='8%'>\n"; |
|
297 |
echo " <img style='vertical-align:middle' src=\"/themes/".$g['theme']."/images/icons/icon_exclam.gif\" width=\"28\" height=\"32\">\n"; |
|
298 |
echo " </td>\n"; |
|
299 |
echo " <td width='70%'><font color='white'><b>{$msg}</b></font>\n"; |
|
300 |
echo " </td>"; |
|
301 |
if(stristr($msg, "apply") == true || stristr($msg, "save") || stristr($msg, "create")) { |
|
302 |
echo " <td>"; |
|
303 |
echo " <input name=\"{$name}\" type=\"submit\" class=\"formbtn\" id=\"${name}\" value=\"{$value}\">\n"; |
|
304 |
echo " </td>"; |
|
305 |
} |
|
306 |
echo " </tr></table>\n"; |
|
307 |
echo " </div>\n"; |
|
308 |
echo " </td>\n"; |
|
309 |
echo "</table>\n"; |
|
310 |
echo "<script type=\"text/javascript\">\n"; |
|
311 |
echo "NiftyCheck();\n"; |
|
312 |
echo "Rounded(\"div#redbox\",\"all\",\"#FFF\",\"#990000\",\"smooth\");\n"; |
|
313 |
echo "Rounded(\"td#blackbox\",\"all\",\"#FFF\",\"#000000\",\"smooth\");\n"; |
|
314 |
echo "</script>\n"; |
|
315 |
echo "\n<br>\n"; |
|
292 |
|
|
293 |
if(stristr($msg, "apply") == true || stristr($msg, "save") || stristr($msg, "create")) |
|
294 |
$savebutton="<td><input name=\"{$name}\" type=\"submit\" class=\"formbtn\" id=\"${name}\" value=\"{$value}\"></td>"; |
|
295 |
|
|
296 |
$nifty_redbox = "#990000"; |
|
297 |
$nifty_blackbox = "#000000"; |
|
298 |
|
|
299 |
$themename = $g['theme']; |
|
300 |
|
|
301 |
if(file_exists("/usr/local/www/themes/{$themename}/tabcontrols.php")) { |
|
302 |
$toeval = file_get_contents("/usr/local/www/themes/{$themename}/tabcontrols.php"); |
|
303 |
eval($toeval); |
|
304 |
} |
|
305 |
|
|
306 |
echo <<<EOFnp |
|
307 |
<table id='infoboxnptable'> |
|
308 |
<tr> |
|
309 |
<td> |
|
310 |
<div style='infoboxnp' id='redbox'> |
|
311 |
<table id='infoboxnptable2'> |
|
312 |
<tr> |
|
313 |
<td id='infoboxnptd'> |
|
314 |
<img style='infoboxnpimg' src="/themes/{$g['theme']}/images/icons/icon_exclam.gif" > |
|
315 |
</td> |
|
316 |
<td id='infoboxnptd2'> |
|
317 |
<b>{$msg}</b></font> |
|
318 |
</td> |
|
319 |
{$savebutton} |
|
320 |
</tr> |
|
321 |
</table> |
|
322 |
</div> |
|
323 |
</td> |
|
324 |
</tr> |
|
325 |
</table> |
|
326 |
<script type="text/javascript"> |
|
327 |
NiftyCheck(); |
|
328 |
Rounded("div#redbox","all","#FFF","{$nifty_redbox}","smooth"); |
|
329 |
Rounded("td#blackbox","all","#FFF","{$nifty_blackbox}","smooth"); |
|
330 |
</script> |
|
331 |
EOFnp; |
|
332 |
|
|
316 | 333 |
} |
317 | 334 |
|
318 | 335 |
function print_info_box($msg) { |
usr/local/www/themes/metallic/all.css | ||
---|---|---|
4 | 4 |
font-size: 0.9em; |
5 | 5 |
} |
6 | 6 |
|
7 |
.infoboxnptd2 { |
|
8 |
width:70%; |
|
9 |
font-color:white; |
|
10 |
} |
|
11 |
|
|
12 |
.infoboxnptd { |
|
13 |
width:8%; |
|
14 |
} |
|
15 |
|
|
16 |
.infoboxnptable { |
|
17 |
height:32px; |
|
18 |
width:100%; |
|
19 |
} |
|
20 |
|
|
21 |
.infoboxnptable2 { |
|
22 |
height:32px; |
|
23 |
width:100%; |
|
24 |
} |
|
25 |
|
|
26 |
.infoboxnp { |
|
27 |
background-color:#990000; |
|
28 |
} |
|
29 |
|
|
30 |
.infoboxnpimg { |
|
31 |
vertical-align:middle; |
|
32 |
width:28px; |
|
33 |
height:32px; |
|
34 |
} |
|
35 |
|
|
7 | 36 |
.inputerrorsleft { |
8 | 37 |
background-color: #990000; |
9 | 38 |
width: 36px; |
usr/local/www/themes/nervecenter/all.css | ||
---|---|---|
5 | 5 |
|
6 | 6 |
} |
7 | 7 |
|
8 |
.infoboxnptd2 { |
|
9 |
width:70%; |
|
10 |
font-color:white; |
|
11 |
} |
|
12 |
|
|
13 |
.infoboxnptd { |
|
14 |
width:8%; |
|
15 |
} |
|
16 |
|
|
17 |
.infoboxnptable { |
|
18 |
height:32px; |
|
19 |
width:100%; |
|
20 |
} |
|
21 |
|
|
22 |
.infoboxnptable2 { |
|
23 |
height:32px; |
|
24 |
width:100%; |
|
25 |
} |
|
26 |
|
|
27 |
.infoboxnp { |
|
28 |
background-color:#990000; |
|
29 |
} |
|
30 |
|
|
31 |
.infoboxnpimg { |
|
32 |
vertical-align:middle; |
|
33 |
width:28px; |
|
34 |
height:32px; |
|
35 |
} |
|
36 |
|
|
8 | 37 |
.inputerrorsleft { |
9 | 38 |
background-color: #990000; |
10 | 39 |
width: 36px; |
usr/local/www/themes/pfsense-dropdown/all.css | ||
---|---|---|
4 | 4 |
font-size: 0.9em; |
5 | 5 |
} |
6 | 6 |
|
7 |
.infoboxnptd2 { |
|
8 |
width:70%; |
|
9 |
font-color:white; |
|
10 |
} |
|
11 |
|
|
12 |
.infoboxnptd { |
|
13 |
width:8%; |
|
14 |
} |
|
15 |
|
|
16 |
.infoboxnptable { |
|
17 |
height:32px; |
|
18 |
width:100%; |
|
19 |
} |
|
20 |
|
|
21 |
.infoboxnptable2 { |
|
22 |
height:32px; |
|
23 |
width:100%; |
|
24 |
} |
|
25 |
|
|
26 |
.infoboxnp { |
|
27 |
background-color:#990000; |
|
28 |
} |
|
29 |
|
|
30 |
.infoboxnpimg { |
|
31 |
vertical-align:middle; |
|
32 |
width:28px; |
|
33 |
height:32px; |
|
34 |
} |
|
35 |
|
|
7 | 36 |
.inputerrorsleft { |
8 | 37 |
background-color: #990000; |
9 | 38 |
width: 36px; |
usr/local/www/themes/pfsense/all.css | ||
---|---|---|
4 | 4 |
font-size: 0.9em; |
5 | 5 |
} |
6 | 6 |
|
7 |
.infoboxnptd2 { |
|
8 |
width:70%; |
|
9 |
font-color:white; |
|
10 |
} |
|
11 |
|
|
12 |
.infoboxnptd { |
|
13 |
width:8%; |
|
14 |
} |
|
15 |
|
|
16 |
.infoboxnptable { |
|
17 |
height:32px; |
|
18 |
width:100%; |
|
19 |
} |
|
20 |
|
|
21 |
.infoboxnptable2 { |
|
22 |
height:32px; |
|
23 |
width:100%; |
|
24 |
} |
|
25 |
|
|
26 |
.infoboxnp { |
|
27 |
background-color:#990000; |
|
28 |
} |
|
29 |
|
|
30 |
.infoboxnpimg { |
|
31 |
vertical-align:middle; |
|
32 |
width:28px; |
|
33 |
height:32px; |
|
34 |
} |
|
35 |
|
|
7 | 36 |
.inputerrorsleft { |
8 | 37 |
background-color: #990000; |
9 | 38 |
width: 36px; |
usr/local/www/themes/the_wall/all.css | ||
---|---|---|
5 | 5 |
|
6 | 6 |
} |
7 | 7 |
|
8 |
.infoboxnptd2 { |
|
9 |
width:70%; |
|
10 |
font-color:white; |
|
11 |
} |
|
12 |
|
|
13 |
.infoboxnptd { |
|
14 |
width:8%; |
|
15 |
} |
|
16 |
|
|
17 |
.infoboxnptable { |
|
18 |
height:32px; |
|
19 |
width:100%; |
|
20 |
} |
|
21 |
|
|
22 |
.infoboxnptable2 { |
|
23 |
height:32px; |
|
24 |
width:100%; |
|
25 |
} |
|
26 |
|
|
27 |
.infoboxnp { |
|
28 |
background-color:#990000; |
|
29 |
} |
|
30 |
|
|
31 |
.infoboxnpimg { |
|
32 |
vertical-align:middle; |
|
33 |
width:28px; |
|
34 |
height:32px; |
|
35 |
} |
|
36 |
|
|
8 | 37 |
.inputerrorsleft { |
9 | 38 |
background-color: #990000; |
10 | 39 |
width: 36px; |
Also available in: Unified diff
$nifty_redbox = "#990000";
$nifty_blackbox = "#000000";
... in /usr/local/www/themes/{$themename}/tabcontrols.php