Esempio n. 1
0
if (MySQL_Num_Rows($res)) {
    echo '<div id="obsah">
<table>
<thead>
	<tr>
	  <th>Název</th>
	  <th>Stav</th>
	  <th>Akce</th>
	</tr>
</thead>
<tbody>
';
    $even = 0;
    while ($rec = MySQL_Fetch_Assoc($res)) {
        if ($f_new == 0 || $f_new == 1 && searchRecord(3, $rec['id'])) {
            echo '<tr class="' . (searchRecord(3, $rec['id']) ? ' unread_record' : ($even % 2 == 0 ? 'even' : 'odd')) . ($rec['status'] ? ' solved' : '') . '">
                        <td>' . ($rec['secret'] ? '<span class="secret"><a href="readcase.php?rid=' . $rec['id'] . '&amp;hidenotes=0">' . StripSlashes($rec['title']) . '</a></span>' : '<a href="readcase.php?rid=' . $rec['id'] . '&amp;hidenotes=0">' . StripSlashes($rec['title']) . '</a>') . '</td>
                        <td>' . ($rec['status'] ? 'uzavřený' : 'otevřený') . '</td>
                        ' . ($usrinfo['right_text'] ? '	<td><a href="editcase.php?rid=' . $rec['id'] . '">upravit</a> | <a href="proccase.php?delete=' . $rec['id'] . '" onclick="' . "return confirm('Opravdu smazat případ &quot;" . StripSlashes($rec['title']) . "&quot;?');" . '">smazat</a></td>' : '<td><a href="newnote.php?rid=' . $rec['id'] . '&idtable=7">přidat poznámku</a></td>') . '
                        </tr>';
            $even++;
        }
    }
    echo '</tbody>
</table>
</div>
';
} else {
    echo '<div id="obsah"><p>Žádné případy neodpovídají výběru.</p></div>';
}
pageEnd();
Esempio n. 2
0
}
$res = MySQL_Query($sql);
if (MySQL_Num_Rows($res)) {
    echo '<div id="obsah">
<table>
<thead>
	<tr>
	  <th>Název</th>
	  <th>Akce</th>
	</tr>
</thead>
<tbody>
';
    $even = 0;
    while ($rec = MySQL_Fetch_Assoc($res)) {
        if ($f_new == 0 || $f_new == 1 && searchRecord(2, $rec['id'])) {
            echo '<tr class="' . (searchRecord(2, $rec['id']) ? ' unread_record' : ($even % 2 == 0 ? 'even' : 'odd')) . '">
                        <td>' . ($rec['secret'] ? '<span class="secret"><a href="readgroup.php?rid=' . $rec['id'] . '&amp;hidenotes=0">' . StripSlashes($rec['title']) . '</a></span>' : '<a href="readgroup.php?rid=' . $rec['id'] . '&amp;hidenotes=0">' . StripSlashes($rec['title']) . '</a>') . '</td>
                        ' . ($usrinfo['right_text'] ? '	<td><a href="editgroup.php?rid=' . $rec['id'] . '">upravit</a> | ' . ($rec['archived'] == 0 ? '<a href="procgroup.php?archive=' . $rec['id'] . '" onclick="' . "return confirm('Opravdu archivovat skupinu &quot;" . StripSlashes($rec['title']) . "&quot;?');" . '">archivovat</a>' : '<a href="procgroup.php?dearchive=' . $rec['id'] . '" onclick="' . "return confirm('Opravdu vyjmout z archivu skupinu &quot;" . StripSlashes($rec['title']) . "&quot;?');" . '">z archivu</a>') . ' | <a href="procgroup.php?delete=' . $rec['id'] . '" onclick="' . "return confirm('Opravdu smazat skupinu &quot;" . StripSlashes($rec['title']) . "&quot;?');" . '">smazat</a></td>' : '<td><a href="newnote.php?rid=' . $rec['id'] . '&idtable=6">přidat poznámku</a></td>') . '
                        </tr>';
            $even++;
        }
    }
    echo '</tbody>
</table>
</div>
';
} else {
    echo '<div id="obsah"><p>Žádné skupiny neodpovídají výběru.</p></div>';
}
pageEnd();