Exemplo n.º 1
0
require "cmtlib.inc";
$bx = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
?>

<!-- content -->
<?php 
if ($perm->have_perm("user_pending")) {
    $be->box_full($t->translate("Error"), $t->translate("Access denied"));
} else {
    if (isset($id)) {
        $query = "SELECT * FROM DOKUMENT WHERE ID='{$id}'";
        $db->query($query);
        $db->next_record();
        // If application in table ask for comment
        if ($db->num_rows() > 0) {
            cmtform($query);
            // If application is not in table or pending
        } else {
            $be->box_full($t->translate("Error"), $t->translate("Document") . " <b>" . $db->f("TITEL") . "</b> " . $t->translate("has not yet been reviewed by a {$sys_name} Editor.<BR> Please, be patient. It will be surely done in the next time."));
        }
    } else {
        $be->box_full($t->translate("Error"), $t->translate("No Document ID specified"));
    }
}
?>
<!-- end content -->

<?php 
require "footer.inc";
@page_close();
Exemplo n.º 2
0
<?php 
if ($perm->have_perm("user_pending")) {
    $be->box_full($t->translate("Error"), $t->translate("Access denied"));
    $auth->logout();
} else {
    if (isset($id)) {
        // Look if enterprise is already in table
        $columns = "*";
        $tables = "enterprise";
        $where = "entid='{$id}'";
        if (!$db->query("SELECT {$columns} FROM {$tables} WHERE {$where}")) {
            mysql_die($db);
        } else {
            // If enterprise in table ask for comment
            if ($db->next_record()) {
                cmtform($db);
                // If enterprise is not in table
            } else {
                $be->box_full($t->translate("Error"), $t->translate("Enterprise") . " (ID: {$id}) " . $t->translate("does not exist") . ".");
            }
        }
    } else {
        $be->box_full($t->translate("Error"), $t->translate("No Enterprise ID specified"));
    }
}
?>
<!-- end content -->

<?php 
require "./include/footer.inc";
page_close();