Project

General

Profile

« Previous | Next » 

Revision f31489e5

Added by Scott Ullrich about 15 years ago

Allow overriding the Nifty corners background color

View differences:

usr/local/www/guiconfig.inc
278 278
}
279 279

  
280 280
function print_info_box_np($msg, $name="apply",$value="Apply changes") {
281
	global $g;
282
	
281
	global $g, $nifty_redbox, $nifty_blackbox, $nifty_background;
282

  
283
	// Set the Nifty background color if one is not set already (defaults to white)
284
	if(!$nifty_background)
285
		$nifty_background = "#FFF";
286

  
283 287
	if(stristr($msg, "apply") != false || stristr($msg, "save") != false || stristr($msg, "create") != false) {
284 288
		$savebutton = "<td class='infoboxsave'>";
285 289
		$savebutton .= "<input name=\"{$name}\" type=\"submit\" class=\"formbtn\" id=\"${name}\" value=\"{$value}\">";
......
331 335
	</table>
332 336
	<script type="text/javascript">
333 337
		NiftyCheck();
334
		Rounded("div#redbox","all","#FFF","{$nifty_redbox}","smooth");
335
		Rounded("td#blackbox","all","#FFF","{$nifty_blackbox}","smooth");
338
		Rounded("div#redbox","all","#{$nifty_background}","{$nifty_redbox}","smooth");
339
		Rounded("td#blackbox","all","#{$nifty_background}","{$nifty_blackbox}","smooth");
336 340
	</script>
337 341
EOFnp;
338 342

  

Also available in: Unified diff