Exemplo n.º 1
0
		<p>Det er ingen' . ($all ? '' : ' ubehandlede') . ' søknader.</p>';
} else {
    echo '
		<table class="table tablemt center" style="width: 100%">
			<thead>
				<tr>
					<th>Type</th>
					<th>Innsender</th>
					<th>Tidspunkt</th>' . ($all ? '
					<th>Resultat</th>' : '') . '
				</tr>
			</thead>
			<tbody>';
    $i = 0;
    while ($row = $result->fetch()) {
        $type = soknader::get_type($row['ds_type']);
        $link = htmlspecialchars($type['title']);
        if (access::has($type['access'])) {
            $link = '<a href="soknader?ds_id=' . $row['ds_id'] . '" title="Vis søknad">' . $link . '</a>';
        } else {
            $link .= ' (' . access::name($type['access']) . ')';
        }
        echo '
				<tr' . (++$i % 2 == 0 ? ' class="color"' : '') . '>
					<td>' . $link . '</td>
					<td><user id="' . $row['ds_up_id'] . '" /></td>
					<td>' . $_base->date->get($row['ds_time'])->format() . '</td>' . ($all ? '
					<td>' . ($row['ds_reply_decision'] == 1 ? 'Innvilget' : ($row['ds_reply_decision'] == -1 ? 'Avslått' : 'Under behandling')) . '</td>' : '') . '
				</tr>';
    }
    echo '