예제 #1
0
<?php

defined('IN_DESTOON') or exit('Access Denied');
$edition = edition(1);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=<?php 
echo DT_CHARSET;
?>
"/>
<title>管理中心 - <?php 
echo $DT['sitename'];
?>
 - Powered By DESTOON B2B <?php 
echo $edition;
?>
 V<?php 
echo DT_VERSION;
?>
 R<?php 
echo DT_RELEASE;
?>
 <?php 
echo strtoupper(DT_CHARSET);
?>
 <?php 
echo strtoupper(DT_LANG);
?>
</title>
예제 #2
0
        delete_doc();
        break;
    case "edit_doc":
        edit_doc();
        break;
        // Affichage des propositions
    // Affichage des propositions
    case "display_post":
        display_post();
        break;
        // Nouvelle proposition
    // Nouvelle proposition
    case "new_post":
        new_post();
        break;
        // Suppression
    // Suppression
    case "remove_post":
        deletion();
        break;
        // Edition
    // Edition
    case "edit_post":
        edition();
        break;
        // Message d'erreur
    // Message d'erreur
    default:
        unexistent_page();
        break;
}
예제 #3
0
$edit_id = getpost_variable('edit_id', 0);
/*************************************/
if ($user_login != $_SESSION['userlogin'] && !is_hr($_SESSION['userlogin']) && !is_resp_of_user($_SESSION['userlogin'], $user_login)) {
    redirect(ROOT_PATH . 'deconnexion.php');
    exit;
}
/************************************/
$css = '<link href="' . TEMPLATE_PATH . 'style_calendar_edition.css" rel="stylesheet" type="text/css">';
header_popup(_('editions_etat_conges') . ' : ' . $user_login, $css);
$session = session_id();
if ($edit_id == 0) {
    // si c'est une nouvelle édition, on insert dans la base avant d'éditer et on renvoit l'id de l'édition
    $edit_id = enregistrement_edition($user_login, $DEBUG);
}
if ($edit_id != "0101010") {
    edition($user_login, $edit_id, $session, $DEBUG);
} else {
    edition_year($user_login, $edit_id, $session, $DEBUG);
}
$comment_log = "edition papier (num_edition = {$edit_id}) ({$user_login}) ";
log_action(0, "", $user_login, $comment_log, $DEBUG);
?>
<br>
<script type="text/javascript" language="javascript1.2">
<!--
// Do print the page
if (typeof(window.print) != 'undefined') {
    window.print();
}
//-->
</script>