Beispiel #1
0
/" onclick="return Aclick(this)">Комната</a><?php 
    echo $sort == 'room' ? $sort_dir == 'asc' ? '▲' : '▼' : '';
    ?>
</th>
        <?php 
}
?>
        <th>Операции</th>
    </tr>
    <?php 
$odd = false;
$prev_dep_id = -1;
$employee = new employee();
for ($i = 0; $i < count($employees); $i++) {
    $odd = !$odd;
    $employee->Init();
    $employee->LoadItem($employees[$i]);
    if ($sort == 'department' && $prev_dep_id != $employee->department_id) {
        $odd = true;
        ?>
            	<tr>
            	    <th align="left" colspan="<?php 
        echo $colspan;
        ?>
">
            	    <?php 
        $dl = '';
        for ($n = count($employees[$i]['department']) - 1; $n > 0; $n--) {
            $dl .= htmlspecialchars($employees[$i]['department'][$n]['dep']) . ' :: ';
        }
        $dl .= htmlspecialchars($employees[$i]['department'][0]['dep']);