public function testExtractNumericId() { $this->assertEquals("001", CommonFunctions::extractNumericId("SKI001")); $this->assertEquals("002", CommonFunctions::extractNumericId("SKI002")); $this->assertEquals("010", CommonFunctions::extractNumericId("SKI010")); $this->assertEquals("100", CommonFunctions::extractNumericId("SKI100")); $this->assertEquals("0", CommonFunctions::extractNumericId("SKI0")); }
} ?> </tr> <?php if (isset($list) && $list != '') { for ($j = 0; $j < count($list); $j++) { $cssClass = $j % 2 ? 'even' : 'odd'; ?> <tr> <td class="<?php echo $cssClass; ?> " width="50"> <?php if ($allowDelete) { if (CommonFunctions::extractNumericId($list[$j][0]) > 0) { ?> <input type='checkbox' class='checkbox' name='chkID[]' value='<?php echo $list[$j][0]; ?> ' /> <?php } } else { ?> <?php } ?> </td> <td class="<?php
<?php if (isset($message) && $message != '') { for ($j = 0; $j < count($message); $j++) { $cssClass = $j % 2 ? 'even' : 'odd'; $detailsUrl = "./CentralController.php?id=" . $message[$j][0] . "&uniqcode=" . $this->getArr['uniqcode'] . "&capturemode=updatemode" . $esp; ?> <tr> <td class="<?php echo $cssClass; ?> "> <?php if ($headingInfo[2] == 1) { ?> <?php if (!$readOnlyView && CommonFunctions::extractNumericId($message[$j][0]) > 0) { ?> <input type='checkbox' class='checkbox' name='chkLocID[]' value='<?php echo $message[$j][0]; ?> ' /> <?php } else { $terminatedStatusFlag = 1; } ?> <?php } else { ?> <?php