$spaction = '<a href="readcase.php?rid=' . $_REQUEST['rid'] . '&hidenotes=0&hidesymbols=0">zobrazit poznámky</a>; <a href="readcase.php?rid=' . $_REQUEST['rid'] . '&hidenotes=1&hidesymbols=1">skrýt symboly</a>'; $backurl = 'readcase.php?rid=' . $_REQUEST['rid'] . '&hidenotes=1&hidesymbols=0'; } else { if ($hn == 1 && $hs == 1) { $spaction = '<a href="readcase.php?rid=' . $_REQUEST['rid'] . '&hidenotes=0&hidesymbols=1">zobrazit poznámky</a>; <a href="readcase.php?rid=' . $_REQUEST['rid'] . '&hidenotes=1&hidesymbols=0">zobrazit symboly</a>'; $backurl = 'readcase.php?rid=' . $_REQUEST['rid'] . '&hidenotes=1&hidesymbols=1'; } } } } if ($usrinfo['right_text'] && ($rec['secret'] == 0 || $usrinfo['right_power'] || $rec_a['iduser'])) { $editbutton = '; <a href="editcase.php?rid=' . $_REQUEST['rid'] . '">upravit případ</a>'; } else { $editbutton = ''; } deleteUnread(3, $_REQUEST['rid']); sparklets('<a href="./cases.php">případy</a> » <strong>' . StripSlashes($rec['title']) . '</strong>', $spaction . $editbutton); if ($rec['secret'] == 1 && !$usrinfo['right_power'] && !$rec_a['iduser']) { echo '<div id="obsah"><p>Hezký pokus.</p></div>'; goto end; } ?> <div id="obsah"> <h1><?php echo StripSlashes($rec['title']); ?> </h1> <fieldset><legend><h2>Obecné informace</h2></legend> <div id="info"> <?php if ($rec['secret'] == 1) {
<?php require_once './inc/func_main.php'; auditTrail(7, 1, 0); pageStart('Symboly'); mainMenu(5); deleteUnread(7, 'none'); sparklets('<a href="persons.php">osoby</a> » <strong>nepřiřazené symboly</strong>', '<a href="newsymbol.php">nový symbol</a>; <a href="symbol_search.php">vyhledat symbol</a>'); // symbolu $sql = "SELECT * FROM " . DB_PREFIX . "symbols WHERE " . DB_PREFIX . "symbols.deleted=0 AND " . DB_PREFIX . "symbols.assigned=0 ORDER BY " . DB_PREFIX . "symbols.created DESC"; $res = MySQL_Query($sql); if (MySQL_Num_Rows($res)) { echo '<div id="obsah"> <table> <thead> <tr><th>Symbol</th> <th>Poznámky</th> <th>Výskyt</th> <th>Akce</th> </tr> </thead> <tbody> '; $even = 0; while ($rec = MySQL_Fetch_Assoc($res)) { echo '<tr class="' . (searchRecord(7, $rec['id']) ? ' unread_record' : ($even % 2 == 0 ? 'even' : 'odd')) . '"> <td><a href="readsymbol.php?rid=' . $rec['id'] . '"><img src="getportrait.php?nrid=' . $rec['id'] . '" alt="symbol chybí" /></a></td> <td>' . StripSlashes($rec['desc']) . '<br />'; // generování poznámek echo '<br /><strong>Poznámky:</strong>'; $backurl = 'symbols.php';
<?php require_once './inc/func_main.php'; backupDB(); if (isset($_SESSION['sid'])) { auditTrail(5, 1, 0); } // ############ Kontrola zalogování //echo 'login ='******'login'] ; // ############ pageStart('Aktuality'); mainMenu(1); deleteUnread(5, 0); sparklets('<strong>aktuality</strong>', $usrinfo['right_power'] ? '<a href="dashboard.php">zobrazit nástěnku</a>; <a href="newnews.php">přidat aktualitu</a>' : '<a href="dashboard.php">zobrazit nástěnku</a>'); // zpracovani filtru if (!isset($_REQUEST['kategorie'])) { $f_cat = 0; } else { $f_cat = $_REQUEST['kategorie']; } if (!isset($_REQUEST['sort'])) { $f_sort = 1; } else { $f_sort = $_REQUEST['sort']; } switch ($f_cat) { case 0: $fsql_cat = ''; break; case 1: $fsql_cat = ' AND ' . DB_PREFIX . 'news.kategorie=1 ';
<?php require_once './inc/func_main.php'; auditTrail(6, 1, 0); pageStart('Nástěnka'); mainMenu(1); deleteUnread(6, 0); sparklets('<strong>nástěnka</strong>', $usrinfo['right_power'] ? '<a href="index.php">zobrazit aktuality</a>; <a href="editdashboard.php">upravit nástěnku</a>' : '<a href="index.php">zobrazit aktuality</a>'); // dashboard ?> <div id="dashboard"> <fieldset><legend><h2>Osobní nástěnka</h2></legend> <table><tr><td> <h3>Rozpracovaná nedokončená hlášení: <?php $sql_r = "SELECT " . DB_PREFIX . "reports.secret AS 'secret', " . DB_PREFIX . "reports.label AS 'label', " . DB_PREFIX . "reports.id AS 'id' FROM " . DB_PREFIX . "reports WHERE " . DB_PREFIX . "reports.iduser="******" AND " . DB_PREFIX . "reports.status=0 AND " . DB_PREFIX . "reports.deleted=0 ORDER BY " . DB_PREFIX . "reports.label ASC"; $res_r = MySQL_Query($sql_r); $rec_count = MySQL_Num_Rows($res_r); echo $rec_count; ?> </h3><p> <?php if (MySQL_Num_Rows($res_r)) { $reports = array(); while ($rec_r = MySQL_Fetch_Assoc($res_r)) { $reports[] = '<a href="./readactrep.php?rid=' . $rec_r['id'] . '&hidenotes=0&truenames=0">' . StripSlashes($rec_r['label']) . '</a>'; } echo implode($reports, '<br />'); } else { echo 'Nemáte žádná nedokončená hlášení.'; } ?>