} $txt .= "</select>\n"; $txt .= WIDTH . "<input type='text' name='width' size=3 maxlength=3 value='" . (isset($width) ? $width : "") . "' onBlur='num_test(this);'>\n"; label_cell($txt); end_row(); } if (substr($id_new, 0, 1) != 'B') { // This is a report -> show block start_row(); $txt = "<input type='radio' name='sel_typ' value = 'Block' " . m_c("Block", $sel_typ) . ">Block\n"; label_cell($txt); $txt = "<select name='block' size='1'>\n"; $res = db_query("SELECT * FROM xx_reports WHERE typ = 'block'"); while ($f = db_fetch($res)) { $h = explode("|", $f["attrib"]); $txt .= "<option value=\"" . $h[0] . "\" " . m_s($h[0], $block) . " > " . $h[0] . "</option>\n"; } $txt .= "</select>\n"; label_cell($txt); end_row(); } end_table(1); start_table(); start_row(); label_cell(submit("insert", IT_STORE, false)); label_cell(submit("back", IT_BACK, false) . hidden("alternate", $alternate, false) . hidden("attriba", $attrib, false) . hidden("id_new", $id_new, false) . hidden("sql", $sql, false) . hidden("long", $long)); if (!(substr($id_new, 0, 1) == 'B' || substr($id_new, 0, 1) == 'F')) { // Only show test button for reports $txt = "<input name='druck' class='inputsubmit' type='button' value='" . IT_PRINT . "' onclick=\"displayReport('" . $id_new . "');\">\n"; label_cell($txt); }
} display_heading(ITEM_LINE); if (!empty($error)) { display_error($error); } display_note(IT_HELP, 0, 1); start_form(false, false, REPGENDIR . "/repgen_graphics.php", "graphics"); start_table(TABLESTYLE2, "width=80%"); start_row(); if ($report_type == "single") { $txt = "<td>" . IT_ART . " <select name='sel_art' size='1' >\n \t<option value='DE' selected>Detail</option>\n \t</select></td>"; } else { $txt = "<td>" . IT_ART . " <select name='sel_art' size='1' >\n <option value='RH' " . m_s("RH", $sel_art) . ">Report Header</option>\n <option value='PH' " . m_s("PH", $sel_art) . ">Page Header</option>\n <option value='GH' " . m_s("GH", $sel_art) . ">Group Header</option>\n <option value='DE' " . m_s("DE", $sel_art) . ">Detail</option>\n <option value='GF' " . m_s("GF", $sel_art) . ">Group Footer</option>\n <option value='PF' " . m_s("PF", $sel_art) . ">Page Footer</option>\n <option value='RF' " . m_s("RF", $sel_art) . ">Report Footer</option>\n </select></td>"; } echo $txt; $txt = "<td>Type <select name='sel_typ' size='1' >\n <option value='Line' " . m_s("Line", $sel_typ) . ">Line</option>\n <option value='Rect' " . m_s("Rect", $sel_typ) . ">Rectangle</option>\n"; $txt .= "</select></td>"; echo $txt; $txt = "<td>" . IT_X1 . " <input type='text' name='x1' size='4' maxlength='4' value='" . (isset($x1) ? $x1 : "") . "' onBlur='num_test(this);'></td>\n"; echo $txt; $txt = "<td>" . IT_Y1 . " <input type='text' name='y1' size='4' maxlength='4' value='" . (isset($y1) ? $y1 : "") . "' onBlur='num_test(this);'></td>\n"; echo $txt; $txt = "<td>" . IT_X2 . " <input type='text' name='x2' size='4' maxlength='4' value='" . (isset($x2) ? $x2 : "") . "' onBlur='num_test(this);'></td>\n"; echo $txt; $txt = "<td>" . IT_Y2 . " <input type='text' name='y2' size='4' maxlength='4' value='" . (isset($y2) ? $y2 : "") . "' onBlur='num_test(this);'></td>\n"; echo $txt; $txt = "<td>" . IT_WIDTH . " <input type='text' name='width' size='4' maxlength='4' value='" . (isset($width) ? $width : "") . "' onBlur='num_test(this);'></td>\n"; echo $txt; end_row(); end_table(1); start_table();
} start_form(false, false, "repgen_create.php", "edit"); start_table(TABLESTYLE2); label_row(ID, $id_new . hidden("id_new", $id_new, false)); text_row(SHORT, "short", $short, 10, 10); text_row(LONG, "long", $long, 40, 40); text_row(AUTHOR, "author", $author, 20, 20); label_row(DATE, today()); text_row(GROUP_NAME, "group", $group, 20, 30, "bgcolor='#eeeeee'"); $txt = "<select name='group_type' size='1'>\n\t<option value = 'nopage' " . m_s($group_type, "nopage") . ">" . NO_PAGE . "</option>\n\t<option value = 'newpage' " . m_s($group_type, "newpage") . ">" . NEW_PAGE . "</option>\n\t</select>"; label_row(GROUP_TYPE, $txt, "bgcolor='#eeeeee'"); textarea_row(SQL, "sql", strtr(urldecode(stripslashes($sql)), "^", "'"), 50, 10); $txt = "<input type='button' name='test_sel' value='" . TEST_SEL . "' onclick=\"openWindow2('" . REPGENDIR . "/repgen_test_sel.php" . "', 'SQL');\" >"; label_row(" ", $txt); label_row(" ", " "); $txt = "<select name='print_format' size='1'>\n\t<option value = 'portrait' " . m_s($print_format, "portrait") . ">Portrait</option>\n\t<option value = 'landscape' " . m_s($print_format, "landscape") . ">Landscape</option>\n\t</select>"; label_row(PRINT_FORMAT, $txt); $txt = "<select name='print_size' size='1'>\n\t<option value = 'letter' " . m_s($print_size, "letter") . ">Letter</option>\n\t<option value = 'a4' " . m_s($print_size, "a4") . ">A4</option>\n\t</select>"; label_row(A4FORMAT1, $txt); $txt = "<select name='report_type' size='1'>\n\t<option value = 'single' " . m_s($report_type, "single") . ">" . PAGE_REC . "</option>\n\t<option value = 'class' " . m_s($report_type, "class") . ">" . LINE_REC . "</option>\n\t<option value = 'classtable' " . m_s($report_type, "classtable") . ">" . GRID_REC . "</option>\n\t<option value = 'classbeam' " . m_s($report_type, "classbeam") . ">" . BEAM_REC . "</option>\n\t<option value = 'classgrid' " . m_s($report_type, "classgrid") . ">" . BEAMGRID_REC . "</option>\n\t</select>"; label_row(REPORT_TYPE, $txt . hidden("date_", date("Y-m-d"), false) . hidden("id", $id, false)); end_table(2); start_table(TABLESTYLE); start_row(); submit_cells("select", SELECT_CR); submit_cells("page_strings", PAGE_STRINGS); submit_cells("page_graphics", PAGE_GRAPHICS); end_row(); end_table(); end_form(); end_page();