コード例 #1
0
ファイル: report.inc.php プロジェクト: Kloadut/noalyss_ynh
    $menu = 1;
}
if (isset($_POST['upload'])) {
    $rap->upload();
    $menu = 1;
}
if (isset($_REQUEST["action"]) && $menu == 0) {
    $action = $_REQUEST["action"];
    $rap->id = isset($_REQUEST['fr_id']) ? $_REQUEST['fr_id'] : 0;
    if ($action == "add" && !isset($_REQUEST['fr_id'])) {
        echo '<DIV class="content">';
        echo '<h1>' . _('Définition') . '</h1>';
        echo '<form method="post" >';
        echo dossier::hidden();
        $rap->id = 0;
        echo $rap->form(15);
        echo HtmlInput::submit("record", _("Sauve"));
        echo '</form>';
        echo '<span class="notice">' . _("Les lignes vides seront effacées") . '</span>';
        echo "</DIV>";
        echo '<DIV class="content">';
        echo '<form method="post" enctype="multipart/form-data">';
        echo '<h1> Importation</h1>';
        echo dossier::hidden();
        $rap->id = 0;
        $wUpload = new IFile();
        $wUpload->name = 'report';
        $wUpload->value = 'report_value';
        echo _('Importer ce rapport') . ' ';
        echo $wUpload->input();
        echo HtmlInput::submit("upload", _("Sauve"));