Project

General

Profile

« Previous | Next » 

Revision e881d1f3

Added by Scott Ullrich over 18 years ago

Fixup color code

Suggested-by: DSH

View differences:

usr/local/www/wizard.php
65 65
sort($timezonelist);
66 66

  
67 67
/* kill carriage returns */
68
for($x=0; $x<count($timezonelist); $x++) 
68
for($x=0; $x<count($timezonelist); $x++)
69 69
		$timezonelist[$x] = str_replace("\n", "", $timezonelist[$x]);
70 70

  
71 71
if ($pkg['step'][$stepid]['includefile'])
......
116 116
		eval($text);
117 117
		return;
118 118
	}
119
	
119

  
120 120
	if($field_type == "interfaces_selection") {
121 121
		$text = "unset(\$config" . $field_conv . ");";
122 122
		eval($text);
......
124 124
		eval($text);
125 125
		return;
126 126
	}
127
	
127

  
128 128
	if($unset <> "") {
129 129
		$text = "unset(\$config" . $field_conv . ");";
130 130
		eval($text);
......
155 155
<script language="JavaScript">
156 156
<!--
157 157

  
158
function  FieldValidate(userinput,  regexp,  message) 
159
{ 
160
                if(!userinput.match(regexp)) 
161
                                alert(message); 
162
} 
158
function  FieldValidate(userinput,  regexp,  message)
159
{
160
                if(!userinput.match(regexp))
161
                                alert(message);
162
}
163 163

  
164 164
function enablechange() {
165 165
<?php
......
192 192
                                        $checkenablefield = strtolower($checkenablefield);
193 193
                                        print "\t\t" . 'document.iform.' . $checkenablefield . '.checked = 1;' . "\n";
194 194
                                }
195
                        }   
195
                        }
196 196
                        print "\t" . '}' . "\n";
197 197
                }
198 198
        }
......
220 220
	if($xml == "traffic_shaper_wizard.xml") {
221 221
		echo "<a href='/firewall_shaper.php?remove=remove'>";
222 222
	} else {
223
		echo "<a href='$ip'>"; 	
223
		echo "<a href='$ip'>";
224 224
	}
225 225
?>
226 226
<img border="0" src="./themes/<?= $g['theme']; ?>/images/logo.gif"></a>
......
284 284
			echo ">\n";
285 285

  
286 286

  
287
			
287

  
288 288
		    } else if ($field['type'] == "inputalias") {
289 289
			if(!$field['dontdisplayname']) {
290 290
				echo "<td width=\"22%\" align=\"right\" class=\"vncellreq\">\n";
......
297 297
			echo "<input  autocomplete='off' class='formfldalias' id='" . $name . "' name='" . $name . "' value='" . $value . "'";
298 298
			if($field['validate'])
299 299
				echo " onChange='FieldValidate(this.value, \"{$field['validate']}\", \"{$field['message']}\");'";
300
			echo ">\n";			
300
			echo ">\n";
301

  
301 302

  
302 303

  
303
		
304 304
		    } else if($field['type'] == "interfaces_selection") {
305 305
			$size = "";
306 306
			$multiple = "";
......
350 350
			  } else {
351 351
				$canecho = 1;
352 352
			  }
353
			  if($canecho == 1) 
353
			  if($canecho == 1)
354 354
				echo $to_echo;
355 355
			}
356 356
				echo "</select>\n";
......
509 509
</script>
510 510
<script type="text/javascript">
511 511
NiftyCheck();
512
Rounded("div#roundme","all","#333333","#FFFFFF","smooth");
512
var bgcolor = document.getElementsByTagName("body")[0].style.backgroundColor;
513
Rounded("div#roundme","all",bgcolor,"#FFFFFF","smooth");
513 514
</script>
514 515

  
515 516
<?php

Also available in: Unified diff