index d20f30abf7c699d1b0efc8c46f1ce8545d4028c1..05f4895141ed53d8f739a4e24f7e1888d3b6964b 100644 (file)
*******************/
case "true" :
- case "fasle" :
+ case "false" :
{
/* Can't fail anyway */
break;
}
/* Add allof/anyof tag */
- $script.= " ".$key." ( ";
+ if($Inverse){
+ $script .= "not ";
+ }
+ $script.= $key." ( ";
/* Add each test parameter */
foreach($data as $key2 => $dat){
$tmp= array(
"Inverse" => FALSE,
"Match_type" => ":over",
- "Value_List" => array(1,"M"));
+ "Value_List" => array("1M"));
$tmp['LastError'] = "";
$data[$type] = $tmp;
$Units = array( "M" => _("Megabyte") ,
"K" => _("Kilobyte"));
+ /* Toggle Inverse ? */
+ if(isset($_POST['toggle_inverse_'.$element_id])){
+ $parsed[$key]['Inverse'] = !$parsed[$key]['Inverse'];
+ }
+
/* Reset error */
$parsed[$key]['LastError'] ="";
}
default :
{
- $ret = "<table width='100%' cellspacing=0 cellpadding=0>
- <tr>
- <td style='background-color: #FEDCA9 ; border: solid 1px #EEEEEE'>";
- $ret.= $key."<br>";
- $ret.= " </td>
- </tr>
- </table>";
+ trigger_error(_("Unhandled switch type"));
}
}
}