?> </i></td> <td width="25%"></td> </tr> <?php $Criterias = $rule->Criterias; $count = $Criterias->Count; for ($i = 0; $i < $count; $i++) { $criteria = $Criterias->Item($i); $criteriaid = $criteria->ID; if ($criteria->UsePredefined) { $fieldName = GetPredefinedFieldString($criteria->PredefinedField); } else { $fieldName = $criteria->HeaderField; } $matchType = GetMatchTypeString($criteria->MatchType); $matchValue = $criteria->MatchValue; ?> <tr> <td width="25%"><?php echo "<a href=\"?page=rule_criteria&action=edit&domainid={$domainid}&accountid={$accountid}&ruleid={$ruleid}&criteriaid={$criteriaid}\">{$fieldName}</a>"; ?> </td> <td width="25%"><?php echo PreprocessOutput($matchType); ?> </td> <td width="25%"><?php echo PreprocessOutput($matchValue); ?> </td>
$eMTEqualsSelected = $MatchType == eMTEquals ? "selected" : ""; $eMTContainsSelected = $MatchType == eMTContains ? "selected" : ""; $eMTLessThanSelected = $MatchType == eMTLessThan ? "selected" : ""; $eMTGreaterThanSelected = $MatchType == eMTGreaterThan ? "selected" : ""; $eMTRegExMatchSelected = $MatchType == eMTRegExMatch ? "selected" : ""; $eMTNotContainsSelected = $MatchType == eMTNotContains ? "selected" : ""; $eMTNotEqualsSelected = $MatchType == eMTNotEquals ? "selected" : ""; $eMTWildcardSelected = $MatchType == eMTWildcard ? "selected" : ""; echo "<option value= " . eMTEquals . " {$eMTEqualsSelected}>" . GetMatchTypeString(eMTEquals) . "</option>"; echo "<option value= " . eMTContains . " {$eMTContainsSelected}>" . GetMatchTypeString(eMTContains) . "</option>"; echo "<option value= " . eMTLessThan . " {$eMTLessThanSelected}>" . GetMatchTypeString(eMTLessThan) . "</option>"; echo "<option value= " . eMTGreaterThan . " {$eMTGreaterThanSelected}>" . GetMatchTypeString(eMTGreaterThan) . "</option>"; echo "<option value= " . eMTRegExMatch . " {$eMTRegExMatchSelected}>" . GetMatchTypeString(eMTRegExMatch) . "</option>"; echo "<option value= " . eMTNotContains . " {$eMTNotContainsSelected}>" . GetMatchTypeString(eMTNotContains) . "</option>"; echo "<option value= " . eMTNotEquals . " {$eMTNotEqualsSelected}>" . GetMatchTypeString(eMTNotEquals) . "</option>"; echo "<option value= " . eMTWildcard . " {$eMTWildcardSelected}>" . GetMatchTypeString(eMTWildcard) . "</option>"; ?> </select> </td> <td> <?php EchoTranslation("Value"); ?> <br/> <input type="text" name="MatchValue" value="<?php echo PreprocessOutput($MatchValue); ?> "> </td> </tr>