예제 #1
0
<?php 
    if ($sql) {
        if ($sql->RecordCount() > 0) {
            while ($X = $sql->FetchRow()) {
                print "<form method=\"post\" name=\"delete_" . $X["l_id_s"] . "\" action=\"logged_history\">";
                print hidden("del_log", $X["l_id_s"]);
                print "</form>";
            }
        }
    }
    $sql->Move(0);
    if ($sql) {
        if ($sql->RecordCount() > 0) {
            while ($X = $sql->FetchRow()) {
                print "<tr><td class=\"p10\">" . $X["cu_login_c"] . "</td>";
                print "<td class=\"p10c\">";
                print todays_date($X["l_datetime_dt"]);
                print "</td>";
                print "<td class=\"p10c\">" . $X["l_ip_c"] . "</td>";
                print "<td class=\"p10c\"><a href=\"javascript:;\" onClick=\"if (confirm('Jesteś pewien?\\nUsuwasz tą pozycję')) {document.forms.delete_" . $X["l_id_s"] . ".submit();}\"><img src=\"img/del.png\" border=0></a></td>";
                print "</tr>";
            }
        }
    }
    ?>
</table>
<?php 
} else {
    $_SESSION['errors'][] = 'Musisz być zalogowany!';
    print "<script>go_to('loguj');</script>";
}
예제 #2
0
  <td class="p10c" width="10%">Kategoria</td>
  <td class="p10c">Operacja</td>
  </tr>
  <?php 
        if ($razem) {
            print "<tr><td colspan=\"5\" class=\"p10\">" . navigation($razem, $count, "sel", "", $offset, 0, 40, $action) . "</td></tr>";
        }
        if ($sql) {
            if ($sql->RecordCount() > 0) {
                $lp = $offset;
                while ($X = $sql->FetchRow()) {
                    print "<tr>";
                    print "<td class=\"p10c\" style=\"vertical-align: top;\">" . ++$lp . ".</td>";
                    print "<td class=\"p10\" style=\"vertical-align: top;\">" . $X["bho_user_c"] . "</td>";
                    print "<td class=\"p10c\" style=\"vertical-align: top;\">";
                    print todays_date($X["bho_datetime_d"]);
                    print "</td>";
                    print "<td class=\"p10c\" style=\"vertical-align: top;\">" . $X["bho_where_c"] . "</td>";
                    print "<td class=\"p10\" style=\"vertical-align: top;\">" . $X["bho_operation_c"] . "</td>";
                    print "</tr>";
                }
            }
        }
        if ($razem) {
            print "<tr><td colspan=\"5\" class=\"p10\">" . navigation($razem, $count, "sel", "", $offset, 0, 40, $action) . "</td></tr>";
        }
    }
    ?>
</table>
<p><center><a href="#top">[na górę strony]</a></center></p>
<?php