示例#1
0
 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"));
 }
示例#2
0
}
?>
			</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 {
            ?>
									&nbsp;
							<?php 
        }
        ?>
							</td>
						<td class="<?php 
示例#3
0
文件: view.php 项目: THM068/orangehrm
    		<?php 
if (isset($message) && $message != '') {
    for ($j = 0; $j < count($message); $j++) {
        $cssClass = $j % 2 ? 'even' : 'odd';
        $detailsUrl = "./CentralController.php?id=" . $message[$j][0] . "&amp;uniqcode=" . $this->getArr['uniqcode'] . "&amp;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 {
            ?>
						&nbsp;
					<?php