Example #1
0
        echo strlen($groupName) ? $groupName . "/" : "";
        echo strlen($rowName) ? $rowName : "<none>";
        ?>
</a></b>&nbsp;
				</td>
				<td><?php 
        echo $row['total'];
        ?>
</td>
				<td><?php 
        echo $row['average'];
        ?>
</td>
				<td width="1" class="check">
					<?php 
        if (isCgi()) {
            ?>
						<input type="checkbox" class="chk" name="chk[<?php 
            echo $row['item_id'];
            ?>
]" value="1"/>
					<?php 
        }
        ?>
				</td>
				<?php 
        foreach ($table['captions'] as $uniq => $interval) {
            ?>
					<?php 
            if (is_array($cell = $row["cells"][$uniq])) {
                ?>
Example #2
0
function isCurUrl($url, $isTopLevel)
{
    if (!isCgi()) {
        return false;
    }
    $curUri = preg_replace('{/(?=\\?|$)}s', '/index.php', $_SERVER['REQUEST_URI']);
    if (preg_match('/item.php\\?id=/s', $curUri)) {
        return false;
    }
    if ($isTopLevel) {
        return basename(preg_replace('/\\?.*/s', '', $curUri)) == basename(preg_replace('/\\?.*/s', '', $url));
    } else {
        return basename($curUri) == basename($url);
    }
}