require "header.inc";
$bx = new box("80%", $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("80%", $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);
$bs = new box("100%", $th_strip_frame_color, $th_strip_frame_width, $th_strip_title_bgcolor, $th_strip_title_font_color, $th_strip_title_align, $th_strip_body_bgcolor, $th_strip_body_font_color, $th_strip_body_align);
?>

<!-- content -->
<?php 
if ($config_perm_admlang != "all" && (!isset($perm) || !$perm->have_perm($config_perm_admlang))) {
    $be->box_full($t->translate("Error"), $t->translate("Access denied"));
} else {
    $bx->box_begin();
    $bx->box_title($t->translate("Document Language Administration"));
    $bx->box_body_begin();
    // Insert a new Language
    $bs->box_strip($t->translate("Insert Language"));
    echo "<form action=\"" . $sess->url("inslang.php") . "\" method=\"POST\">\n";
    echo "<table border=0 cellspacing=0 cellpadding=3 width=100%>\n";
    echo "<tr><td align=right width=30%>" . $t->translate("New Language") . " (100):</td><td width=70%><input type=\"TEXT\" name=\"language\" size=40 maxlength=100>\n";
    echo "</td></tr>\n";
    echo "<tr><td>&nbsp;</td>\n";
    echo "<td><input type=\"submit\" value=\"" . $t->translate("Insert") . "\">";
    echo "</td></tr>\n";
    echo "</form>\n";
    echo "</table>\n";
    echo "<BR>\n";
    // Rename Language
    $bs->box_strip($t->translate("Rename Language"));
    echo "<form action=\"" . $sess->url("inslang.php") . "\" method=\"POST\">\n";
    echo "<table border=0 cellspacing=0 cellpadding=3 width=100%>\n";
    echo "<tr><td align=right width=30%>" . $t->translate("Language") . ":</td><td width=70%>\n";
    $be->box_full($t->translate("Error"), $t->translate("Access denied"));
} else {
    $db->query("SELECT * FROM faq WHERE language='{$la}'");
    $bx->box_begin();
    $bx->box_title($t->translate("Frequently Asked Questions Administration"));
    $bx->box_body_begin();
    echo "<table width=100% border=0><tr><td width=88%>\n";
    echo "<b>" . $t->translate("Enter a New Frequently Asked Question") . "</b>\n";
    echo "<form action=\"" . $sess->url("insfaq.php") . "\" method=\"POST\">\n";
    echo "</td><td width=12% align=right>\n";
    // Create Button
    echo "<input type=\"hidden\" name=\"create\" value=\"1\">\n";
    echo "<input type=\"submit\"value=\"" . $t->translate("Insert") . "\">\n";
    echo "</td></tr></form></table>\n";
    $i = 1;
    while ($db->next_record()) {
        $i++;
        $bs->box_strip($t->translate("Question") . ": " . $db->f("question"));
        echo "<table width=100% border=0><tr><td width=76%>";
        echo "<b>" . $t->translate("Answer") . ":</b> " . $db->f("answer");
        echo "</td><td width=12% align=right><form action=\"" . $sess->url("insfaq.php") . "\" method=\"POST\">" . "<input type=\"hidden\" name=\"modify\" value=\"1\">" . "<input type=\"hidden\" name=\"delete\" value=\"0\">" . "<input type=\"hidden\" name=\"faqid\" value=\"" . $db->f("faqid") . "\"><input type=\"submit\"value=\"" . $t->translate("Change") . "\">" . "</form>" . "</td><td width=12% align=right><form action=\"" . $sess->url("insfaq.php") . "\" method=\"POST\">" . "<input type=\"hidden\" name=\"modify\" value=\"0\">" . "<input type=\"hidden\" name=\"delete\" value=\"1\">" . "<input type=\"hidden\" name=\"faqid\" value=\"" . $db->f("faqid") . "\"><input type=\"submit\"value=\"" . $t->translate("Delete") . "\">" . "</form></td></tr></table>";
    }
    $bx->box_body_end();
    $bx->box_end();
}
?>
<!-- end content -->

<?php 
require "./include/footer.inc";
@page_close();
    case "Date":
        $order = "a.AENDERUNGSDATUM DESC, ID DESC";
        break;
    case "Name":
        $order = "a.TITEL ASC, a.AENDERUNGSDATUM DESC, a.ID DESC";
        break;
    default:
        $order = "a.AENDERUNGSDATUM DESC, ID DESC";
        break;
}
$limit = "{$iter},10";
$columns = " distinct a.TITEL AS titel, a.BESCHREIBUNG as beschreibung, a.COUNTER AS downloads, a.SPRACHE, f.SPRACHE as sprache, a.ERSTELLUNGSDATUM as erdatum, a.AENDERUNGSDATUM as aendatum, a.TYP, a.ID as id, d.NAME as TypName, a.BEWERTUNG AS bewertung, a.BEWVONANZP as bewvonanzpand, c.NAME as KategorieName, a.KATEGORIE as KATID ";
$tables = "DOKUMENT a, FORMAT b, KATEGORIE c, TYPDEF d, SPRACHEDEF f";
$where = "a.STATUS!='D' AND a.ID = b.DOKUID and a.TYP = d.ID AND a.TYP={$typ} and a.KATEGORIE = c.ID AND a.SPRACHE=f.ID";
$sort = "({$cnt}) " . $t->translate("sorted by") . ": " . "<a href=\"" . $sess->url("docbytyp.php") . $sess->add_query(array("typ" => $typ, "by" => "Date")) . "\">" . $t->translate("Date") . "</a>" . " | <a href=\"" . $sess->url("docbytyp.php") . $sess->add_query(array("typ" => $typ, "by" => "Category")) . "\">" . $t->translate("Category") . "</a>" . " | <a href=\"" . $sess->self_url() . $sess->add_query(array("typ" => $typ, "by" => "Name")) . "\">" . $t->translate("Title") . "</a>\n";
$bs->box_strip($sort);
if (!empty($typ)) {
    $query = "SELECT {$columns} FROM {$tables} WHERE {$where} ORDER BY {$order} LIMIT {$limit}";
    //echo $query;
    doccat($query, $t->translate("Type") . ": ", $iter + 1, "Typ");
    if ($numiter > 1) {
        $url = "docbytyp.php";
        $urlquery = array("typ" => $typ, "by" => $by);
        show_more($iter, $numiter, $url, $urlquery);
    }
}
?>
<!-- end content -->

<?php 
require "./include/footer.inc";
        $order = "software.name ASC";
        break;
    case "Date":
    default:
        $where = "DATE_FORMAT(software.modification,'%Y-%m-%d')<=\"{$start}\" AND software.appid=counter.appid AND software.user=auth_user.username AND software.status='A' GROUP BY software.appid";
        $order = "software.modification DESC";
        break;
}
$limit = $cnt . "," . $config_show_appsperpage;
$time = $recent_time;
$timenext = $time + $days * 24 * 60 * 60;
$timeprev = $time - $days * 24 * 60 * 60;
$weeknext = $time + 7 * 24 * 60 * 60;
$weekprev = $time - 7 * 24 * 60 * 60;
$sort = $t->translate("sorted by") . ": " . "<a href=\"" . htmlentities($sess->self_url() . $sess->add_query(array("start" => strftime("%Y-%m-%d", $time), "days" => $days, "by" => "Date"))) . "\">" . $t->translate("Date") . "</a>" . " | <a href=\"" . htmlentities($sess->self_url() . $sess->add_query(array("start" => strftime("%Y-%m-%d", $time), "days" => $days, "by" => "Importance"))) . "\">" . $t->translate("Importance") . "</a>" . " | <a href=\"" . htmlentities($sess->self_url() . $sess->add_query(array("start" => strftime("%Y-%m-%d", $time), "days" => $days, "by" => "Urgency"))) . "\">" . $t->translate("Urgency") . "</a>" . " | <a href=\"" . htmlentities($sess->self_url() . $sess->add_query(array("start" => strftime("%Y-%m-%d", $time), "days" => $days, "by" => "Name"))) . "\">" . $t->translate("Name") . "</a>\n";
$bs->box_strip($sort);
$nav = "<a href=\"" . htmlentities($sess->self_url() . $sess->add_query(array("start" => strftime("%Y-%m-%d", $weekprev), "days" => $days, "by" => $by))) . "\">&lt;&nbsp;" . $t->translate("Week") . "</a>" . " | <a href=\"" . htmlentities($sess->self_url() . $sess->add_query(array("start" => strftime("%Y-%m-%d", $timeprev), "days" => $days, "by" => $by))) . "\">&lt;&nbsp;" . $t->translate("Day") . "</a>" . " | <a href=\"" . htmlentities($sess->self_url() . $sess->add_query(array("start" => strftime("%Y-%m-%d", $time), "days" => $days, "cnt" => $prev_cnt, "by" => $by))) . "\">&lt;&nbsp;{$config_show_appsperpage} " . $t->translate("Apps") . "</a>" . " | <a href=\"" . htmlentities($sess->self_url() . $sess->add_query(array("by" => "Date"))) . "\">" . $t->translate("Today") . "</a>";
if ($cnt > 0) {
    $nav .= " | <a href=\"" . htmlentities($sess->self_url() . $sess->add_query(array("start" => strftime("%Y-%m-%d", $time), "days" => $days, "cnt" => $next_cnt, "by" => $by))) . "\">{$config_show_appsperpage}&nbsp;" . $t->translate("Apps") . "&nbsp;&gt;</a>";
} else {
    $nav .= " | {$config_show_appsperpage}&nbsp;" . $t->translate("Apps") . "&nbsp;&gt;";
}
if ($timenext < time()) {
    $nav .= " | <a href=\"" . htmlentities($sess->self_url() . $sess->add_query(array("start" => strftime("%Y-%m-%d", $timenext), "days" => $days, "by" => $by))) . "\">" . $t->translate("Day") . "&nbsp;&gt;</a>";
} else {
    $nav .= " | " . $t->translate("Day") . "&nbsp;&gt;";
}
if ($weeknext < time()) {
    $nav .= " | <a href=\"" . htmlentities($sess->self_url() . $sess->add_query(array("start" => strftime("%Y-%m-%d", $weeknext), "days" => $days, "by" => $by))) . "\">" . $t->translate("Week") . "&nbsp;&gt;</a></b>";
} else {
    $nav .= " | " . $t->translate("Week") . "&nbsp;&gt;";
Exemple #5
0
require "./include/header.inc";
$bx = new box("80%", $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("80%", $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);
$bs = new box("100%", $th_strip_frame_color, $th_strip_frame_width, $th_strip_title_bgcolor, $th_strip_title_font_color, $th_strip_title_align, $th_strip_body_bgcolor, $th_strip_body_font_color, $th_strip_body_align);
?>

<!-- content -->
<?php 
if ($config_perm_admtype != "all" && (!isset($perm) || !$perm->have_perm($config_perm_admtype))) {
    $be->box_full($t->translate("Error"), $t->translate("Access denied"));
} else {
    $bx->box_begin();
    $bx->box_title($t->translate("Type Administration"));
    $bx->box_body_begin();
    // Insert a new Type
    $bs->box_strip($t->translate("Insert Type"));
    echo "<form action=\"" . $sess->url("instyp.php") . "\" method=\"POST\">\n";
    echo "<table border=0 cellspacing=0 cellpadding=3 width=100%>\n";
    echo "<tr><td align=right width=30%>" . $t->translate("New Type") . " (100):</td><td width=70%><input type=\"TEXT\" name=\"type\" size=40 maxlength=100>\n";
    echo "<tr><td align=right>" . $t->translate("Description") . " (255):</td><td><input type=\"TEXT\" name=\"description\" size=40 maxlength=255>\n";
    echo "</td></tr>\n";
    echo "<tr><td>&nbsp;</td>\n";
    echo "<td><input type=\"submit\" value=\"" . $t->translate("Insert") . "\">";
    echo "</td></tr>\n";
    echo "</form>\n";
    echo "</table>\n";
    echo "<BR>\n";
    // Rename Type
    $bs->box_strip($t->translate("Rename Type"));
    echo "<form action=\"" . $sess->url("instyp.php") . "\" method=\"POST\">\n";
    echo "<table border=0 cellspacing=0 cellpadding=3 width=100%>\n";
<!-- content -->
<?php 
if ($config_perm_users != "all" && (!isset($perm) || !$perm->have_perm($config_perm_users))) {
    $be->box_full($t->translate("Error"), $t->translate("Access denied"));
} else {
    if (!isset($by) || empty($by)) {
        $by = "A%";
    }
    $alphabet = array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z");
    $msg = "[ ";
    while (list(, $ltr) = each($alphabet)) {
        $msg .= "<a href=\"" . $sess->url("users.php") . $sess->add_query(array("by" => $ltr . "%")) . "\">{$ltr}</a> | ";
    }
    $msg .= "<a href=\"" . $sess->self_url() . $sess->add_query(array("by" => "%")) . "\">" . $t->translate("All") . "</a>&nbsp;]";
    $bs->box_strip($msg);
    $db->query("SELECT * FROM auth_user WHERE username LIKE '{$by}' ORDER BY username ASC");
    $bx->box_begin();
    if ($by && $by == "%") {
        $bystr = $t->translate("All");
    } else {
        $bystr = ereg_replace("%", "", $by);
    }
    $bx->box_title($t->translate("Users") . ": " . $bystr);
    $bx->box_body_begin();
    echo "<table border=0 align=center cellspacing=1 cellpadding=1 width=100%>\n";
    echo "<tr><td><b>" . $t->translate("No") . ".</b></td><td><b>#&nbsp;" . $t->translate("Docs") . "</b></td><td><b>" . $t->translate("Username") . "</b></td><td><b>" . $t->translate("Realname") . "</b></td><td><b>" . $t->translate("E-Mail") . "</b></td></tr>\n";
    $i = 1;
    while ($db->next_record()) {
        $username = $db->f("username");
        $db2 = new DB_DocsWell();
}
$iter *= 10;
if (isset($find) && !empty($find)) {
    $with = "%" . $find . "%";
}
if (!isset($with) || empty($with)) {
    $with = "%";
}
$alphabet = array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z");
$msg = "[ ";
while (list(, $ltr) = each($alphabet)) {
    $msg .= "<a href=\"" . htmlentities($sess->url("appbydev.php") . $sess->add_query(array("developer" => $developer, "email" => $email, "with" => $ltr . "%"))) . "\">{$ltr}</a>&nbsp;| ";
}
$msg .= "<a href=\"" . htmlentities($sess->url("appbydev.php") . $sess->add_query(array("developer" => $developer, "email" => $email, "with" => "%"))) . "\">" . $t->translate("All") . "</a>&nbsp;]";
$msg .= "<form action=\"" . $sess->url("appbydev.php") . "\">" . "<p>Search for <input TYPE=\"text\" SIZE=\"10\" NAME=\"find\" VALUE=\"" . $find . "\">" . "<input TYPE=\"hidden\" NAME= \"developer\" VALUE=\"{$developer}\">" . "<input TYPE=\"hidden\" NAME= \"email\" VALUE=\"{$email}\">" . "&nbsp;<input TYPE=\"submit\" NAME= \"Find\" VALUE=\"Go\"></form>";
$bs->box_strip($msg);
// We need to know the total number of apps inserted for this developer
$db->query("SELECT COUNT(*) FROM software WHERE developer='{$developer}' AND email='{$email}' AND status='A' AND name LIKE '{$with}'");
$db->next_record();
$numiter = $db->f("COUNT(*)") / 10;
$columns = "*,SUM(app_cnt+homepage_cnt+download_cnt+changelog_cnt+rpm_cnt+deb_cnt+tgz_cnt+cvs_cnt+screenshots_cnt+mailarch_cnt) AS sum_cnt";
$tables = "software,counter";
$where = "developer=\"{$developer}\" AND email=\"{$email}\" AND status=\"A\" AND software.appid=counter.appid AND name LIKE '{$with}' GROUP BY software.appid";
switch ($by) {
    case "Importance":
        $order = "sum_cnt DESC";
        break;
    case "Urgency":
        $order = "software.urgency DESC";
        break;
    case "Name":
Exemple #8
0
require "./include/header.inc";
$bx = new box("80%", $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("80%", $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);
$bs = new box("100%", $th_strip_frame_color, $th_strip_frame_width, $th_strip_title_bgcolor, $th_strip_title_font_color, $th_strip_title_align, $th_strip_body_bgcolor, $th_strip_body_font_color, $th_strip_body_align);
?>

<!-- content -->
<?php 
if ($config_perm_admcat != "all" && (!isset($perm) || !$perm->have_perm($config_perm_admcat))) {
    $be->box_full($t->translate("Error"), $t->translate("Access denied"));
} else {
    $bx->box_begin();
    $bx->box_title($t->translate("Category Administration"));
    $bx->box_body_begin();
    // Insert a new Category
    $bs->box_strip($t->translate("Insert Category"));
    echo "<form action=\"" . $sess->url("inscat.php") . "\" method=\"POST\">\n";
    echo "<table border=0 cellspacing=0 cellpadding=3 width=100%>\n";
    ?>
                   <TR>
        	                <TD align="right" valign="top"><B><?php 
    echo $t->translate("Category");
    ?>
:</B></TD>
          	              	<TD>
  				<a href="categories.php?mode=6"><?php 
    echo $t->translate("Select category");
    ?>
</a><br>
   				<?php 
    //############################# Kategorien holen ##################################
         $error .= " - " . $t->translate("Can not delete author because there are still active documents from this author");
         $error .= " (" . $db->num_rows() . ")<br>";
     } else {
         $query = "DELETE FROM AUTOR WHERE ID={$author_id}";
         $db->query($query);
         $error = " - " . $t->translate("Done successfully") . "<br>";
     }
 }
 $bx->box_begin();
 $bx->box_title($t->translate("Author Administration"));
 $bx->box_body_begin();
 if ($error) {
     $be->box_full($t->translate("Error"), $error);
 }
 // Insert a new Author
 $bs->box_strip($t->translate("Insert Author"));
 echo "<form action=\"" . $sess->url($PHP_SELF) . "\" method=\"POST\">\n";
 echo "<input type=\"hidden\" name=\"mode\" value=\"1\">";
 echo "<table border=0 cellspacing=0 cellpadding=3 width=100%>\n";
 echo "<tr><td align=right width=30%>" . $t->translate("Last name") . " (100):</td><td width=70%><input type=\"TEXT\" name=\"nachname\" size=40 maxlength=100 value=\"{$nachname}\"></td></tr>\n";
 echo "<tr><td align=right width=30%>" . $t->translate("First name") . " (100):</td><td width=70%><input type=\"TEXT\" name=\"vorname\" size=40 maxlength=100 value=\"{$vorname}\"></td></tr>\n";
 echo "<tr><td align=right width=30%>" . $t->translate("E-Mail") . " (100):</td><td width=70%><input type=\"TEXT\" name=\"email\" size=40 maxlength=100 value=\"{$email}\"></td></tr>\n";
 echo "<tr><td>&nbsp;</td>\n";
 echo "<td><input type=\"submit\" value=\"" . $t->translate("Insert") . "\">";
 echo "</td></tr>\n";
 echo "</form>\n";
 echo "</table>\n";
 echo "<BR>\n";
 // Change Author
 $bs->box_strip($t->translate("Change author"));
 echo "<form action=\"" . $sess->url($PHP_SELF) . "\" method=\"POST\">\n";
$bx = new box("100%", $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);
$bs = new box("100%", $th_strip_frame_color, $th_strip_frame_width, $th_strip_title_bgcolor, $th_strip_title_font_color, $th_strip_title_align, $th_strip_body_bgcolor, $th_strip_body_font_color, $th_strip_body_align);
?>

<!-- content -->
<?php 
if ($config_perm_admfaq != "all" && (!isset($perm) || !$perm->have_perm($config_perm_admfaq))) {
    $be->box_full($t->translate("Error"), $t->translate("Access denied"));
} else {
    $db->query("SELECT ID,TITEL, KATEGORIE FROM DOKUMENT WHERE STATUS !='D'");
    $dbKat = new DB_DocsWell();
    $bx->box_begin();
    $bx->box_title($t->translate("Document and category check"));
    $bx->box_body_begin();
    $bs->box_strip($t->translate("Documents with categories that have further sub-categories (documents should only hang on leaves)"));
    echo "<table width=100% border=0><tr><td>\n";
    $counter = 0;
    while ($db->next_record()) {
        $dbKat->query("SELECT count(*) as anz FROM KATEGORIE WHERE PARENT_ID=" . $db->f("KATEGORIE"));
        $dbKat->next_record();
        if ($dbKat->f("anz") > 0) {
            echo "<a href=\"update_online.php?ID=" . $db->f("ID") . "\">" . $db->f("TITEL") . "</a><br>";
            $counter++;
        }
    }
    if ($counter == 0) {
        echo $t->translate("No documents found");
    }
    echo "</td></tr>";
    echo "<tr><td colspan=\"2\">";
    page_close();
    page_open(array("sess" => "SourceAgency_Session", "auth" => "SourceAgency_Auth", "perm" => "SourceAgency_Perm"));
}
require "include/header.inc";
$bx = new box("80%", $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("80%", $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);
$bs = new box("100%", $th_strip_frame_color, $th_strip_frame_width, $th_strip_title_bgcolor, $th_strip_title_font_color, $th_strip_title_align, $th_strip_body_bgcolor, $th_strip_body_font_color, $th_strip_body_align);
start_content();
if ($config_perm_admlicens != "all" && (!isset($perm) || !$perm->have_perm($config_perm_admlicens))) {
    $be->box_full($t->translate("Error"), $t->translate("Access denied"));
} else {
    $bx->box_begin();
    $bx->box_title($t->translate("License Administration"));
    $bx->box_body_begin();
    // Insert a new License
    $bs->box_strip($t->translate("Insert a License"));
    echo "<form action=\"" . $sess->url("inslic.php") . "\" method=\"POST\">\n";
    echo "<table border=0 cellspacing=0 cellpadding=3 width=100%>\n";
    echo "<tr><td align=right width=30%>" . $t->translate("New License") . " (64):</td><td width=70%><input type=\"TEXT\" name=\"license\" " . "size=40 maxlength=64>\n";
    echo "<tr><td align=right>" . $t->translate("License URL") . " (255):</td><td><input type=\"TEXT\" name=\"url_lic\" size=40 " . "maxlength=255>\n";
    echo "</td></tr>\n";
    echo "<tr><td>&nbsp;</td>\n";
    echo "<td><input type=\"submit\" value=\"" . $t->translate("Insert") . "\">";
    echo "</td></tr>\n";
    echo "</form>\n";
    echo "</table>\n";
    echo "<BR>\n";
    // Rename a License
    $bs->box_strip($t->translate("Rename a License"));
    echo "<form action=\"" . $sess->url("inslic.php") . "\" method=\"POST\">\n";
    echo "<table border=0 cellspacing=0 cellpadding=3 width=100%>\n";
require "./include/header.inc";
$bx = new box("80%", $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("80%", $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);
$bs = new box("100%", $th_strip_frame_color, $th_strip_frame_width, $th_strip_title_bgcolor, $th_strip_title_font_color, $th_strip_title_align, $th_strip_body_bgcolor, $th_strip_body_font_color, $th_strip_body_align);
?>

<!-- content -->
<?php 
if ($config_perm_admsec != "all" && (!isset($perm) || !$perm->have_perm($config_perm_admsec))) {
    $be->box_full($t->translate("Error"), $t->translate("Access denied"));
} else {
    $bx->box_begin();
    $bx->box_title($t->translate("Section Administration"));
    $bx->box_body_begin();
    // Insert a new Section
    $bs->box_strip($t->translate("Insert a Section"));
    echo "<form action=\"" . $sess->url("inssec.php") . "\" method=\"POST\">\n";
    echo "<table border=0 cellspacing=0 cellpadding=3 width=100%>\n";
    echo "<tr><td align=right width=30%>" . $t->translate("New Section") . " (64):</td><td width=70%><input type=\"TEXT\" name=\"section\" size=40 maxlength=64>\n";
    echo "</td></tr>\n";
    echo "<tr><td>&nbsp;</td>\n";
    echo "<td><input type=\"submit\" value=\"" . $t->translate("Insert") . "\">";
    echo "</td></tr>\n";
    echo "</form>\n";
    echo "</table>\n";
    echo "<BR>\n";
    // Rename/Update a Section
    $bs->box_strip($t->translate("Rename a Section"));
    echo "<form action=\"" . $sess->url("inssec.php") . "\" method=\"POST\">\n";
    echo "<table border=0 cellspacing=0 cellpadding=3 width=100%>\n";
    echo "<tr><td align=right>" . $t->translate("Section") . ":</td><td>\n";
require "header.inc";
$bx = new box("80%", $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("80%", $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);
$bs = new box("100%", $th_strip_frame_color, $th_strip_frame_width, $th_strip_title_bgcolor, $th_strip_title_font_color, $th_strip_title_align, $th_strip_body_bgcolor, $th_strip_body_font_color, $th_strip_body_align);
?>

<!-- content -->
<?php 
if ($config_perm_admformat != "all" && (!isset($perm) || !$perm->have_perm($config_perm_admformat))) {
    $be->box_full($t->translate("Error"), $t->translate("Access denied"));
} else {
    $bx->box_begin();
    $bx->box_title($t->translate("Document Format Administration"));
    $bx->box_body_begin();
    // Insert a new Format
    $bs->box_strip($t->translate("Insert Format"));
    echo "<form action=\"" . $sess->url("insformat.php") . "\" method=\"POST\">\n";
    echo "<table border=0 cellspacing=0 cellpadding=3 width=100%>\n";
    echo "<tr><td align=right width=30%>" . $t->translate("New Format") . " (100):</td><td width=70%><input type=\"TEXT\" name=\"format\" size=40 maxlength=100>\n";
    echo "<tr><td align=right>" . $t->translate("Description") . " (255):</td><td><input type=\"TEXT\" name=\"description\" size=40 maxlength=255>\n";
    echo "</td></tr>\n";
    echo "<tr><td>&nbsp;</td>\n";
    echo "<td><input type=\"submit\" value=\"" . $t->translate("Insert") . "\">";
    echo "</td></tr>\n";
    echo "</form>\n";
    echo "</table>\n";
    echo "<BR>\n";
    // Rename Format
    $bs->box_strip($t->translate("Rename Format"));
    echo "<form action=\"" . $sess->url("insformat.php") . "\" method=\"POST\">\n";
    echo "<table border=0 cellspacing=0 cellpadding=3 width=100%>\n";
Exemple #14
0
        $order = "a.AENDERUNGSDATUM DESC, a.ID DESC";
        break;
}
$limit = $cnt . "," . $config_show_docsperpage;
$sort = $t->translate("sorted by") . ": " . "<a href=\"" . $sess->self_url() . $sess->add_query(array("by" => "Date")) . "\">" . $t->translate("Date") . "</a>" . " | <a href=\"" . $sess->self_url() . $sess->add_query(array("by" => "Category")) . "\">" . $t->translate("Category") . "</a>\n" . " | <a href=\"" . $sess->self_url() . $sess->add_query(array("by" => "Name")) . "\">" . $t->translate("Title") . "</a>\n";
$nav = "<a href=\"" . $sess->self_url() . $sess->add_query(array("cnt" => $prev_cnt, "by" => $by)) . "\">&lt;&nbsp;" . $t->translate("previous") . " {$config_show_docsperpage} " . $t->translate("Docs") . "</a>" . " | <a href=\"" . $sess->self_url() . $sess->add_query(array("by" => "Date")) . "\">" . $t->translate("Top") . "</a>";
if ($cnt > 0) {
    $nav .= " | <a href=\"" . $sess->self_url() . $sess->add_query(array("cnt" => $next_cnt, "by" => $by)) . "\">" . $t->translate("next") . " {$config_show_docsperpage}&nbsp;" . $t->translate("Docs") . "&nbsp;&gt;</a>";
} else {
    $nav .= " | " . $t->translate("next") . " {$config_show_docsperpage}&nbsp;" . $t->translate("Docs") . "&nbsp;&gt;";
}
$query = "SELECT {$columns} FROM {$tables} WHERE {$where} ORDER BY {$order} LIMIT {$limit}";
$query_cnt = "SELECT {$columns} FROM {$tables} WHERE {$where}";
$db->query($query_cnt);
$anz = $db->num_rows();
$bs->box_strip("({$anz}) " . $sort);
$bs->box_strip($nav);
#echo "$query\n";
docdat($query);
$bs->box_strip($nav);
$bs->box_strip($sort);
?>
</td><td width=20%>
<?php 
// Recent docs of each type
doctyp();
?>
</td></tr>
</table>
<!-- end content -->
}
require 'include/header.inc';
$be = new box('80%', $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);
$box_doco = new box('80%', $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);
start_content();
if (is_not_set_or_empty($page)) {
    generate_failed_box('Page not Specified', 'Page was not specified for ' . 'documentation is required');
} else {
    $basename = basename($page);
    /* remove any extensions that may be left over (inc, php, php3) */
    $basename = preg_replace('/[.](inc|php).?$/', '', $basename);
    $db->query("SELECT * FROM doco WHERE page='{$basename}' AND language='{$la}'");
    if ($db->num_rows() == 0) {
        /* no doc in that language */
        /* let's see if there is at least some documentation in English */
        $db->query("SELECT * FROM doco WHERE page='{$basename}' " . "AND language='English'");
        if ($db->num_rows() == 0) {
            $be->box_full($page, $t->translate('Has no documentation'));
        } else {
            $db->next_record();
            $box_doco->box_strip($t->translate('Our apologies. Documentation ' . 'only available in English.'));
            $box_doco->box_full($db->f('header'), $db->f('doco'));
        }
    } else {
        $db->next_record();
        $box_doco->box_full($db->f('header'), $db->f('doco'));
    }
}
end_content();
require 'include/footer.inc';
@page_close();