" name="barcode_drawer" method="post"> <?php $table = new LSTable(8, 2, '500', $null); $table->setTitle('Configs for ' . $filename); $table->addRowAttribute(0, 'class', 'table_title'); $table->addCellAttribute(0, 0, 'colspan', '2'); $table->addCellAttribute(0, 0, 'align', 'center'); $table->setText(0, 0, '<font color="#ffffff"><b>General Configs</b></font>'); $table->addCellAttribute(1, 0, 'width', '100'); $table->setText(1, 0, 'Type'); $table->setText(1, 1, display_select($filename)); $table->setText(2, 0, 'Output'); $table->setText(2, 1, display_output($output)); $table->setText(3, 0, 'Thickness'); $table->setText(3, 1, display_thickness($thickness)); $table->setText(4, 0, 'Resolution'); $table->setText(4, 1, display_res($res)); $table->setText(5, 0, 'Font Size'); $table->setText(5, 1, display_font($font)); $table->setText(6, 0, 'Text'); $table->setText(6, 1, display_text($text2display)); $table->addCellAttribute(7, 0, 'align', 'center'); $table->addCellAttribute(7, 0, 'colspan', '2'); $table->setText(7, 0, '<input type="submit" value="Generate" />'); if (!empty($text2display)) { $table->insertRows(8, 1); $table->addCellAttribute(8, 0, 'align', 'center'); $table->addCellAttribute(8, 0, 'colspan', '2'); $table->addRowAttribute(8, 'style', 'background-color: #ffffff'); $table->setText(8, 0, '<img src="image.php?code=' . $filename . '&o=' . $output . '&t=' . $thickness . '&r=' . $res . '&text=' . urlencode($text2display) . '&f=' . $font . '&a1=' . $a1 . '&a2=' . $a2 . '" alt="Error? Can\'t display image!" />'); }
$table->addRowAttribute(0, 'class', 'table_title'); $table->addCellAttribute(0, 0, 'colspan', '2'); $table->addCellAttribute(0, 0, 'align', 'center'); $table->setText(0, 0, '<font color="#ffffff"><b>General Configs</b></font>'); $table->addCellAttribute(1, 0, 'width', '100'); $table->setText(1, 0, 'Type'); $table->setText(1, 1, display_select($filename)); $table->setText(2, 0, 'Output'); $table->setText(2, 1, display_output($output, $dpi)); $table->setText(3, 0, 'DPI'); $table->setText(3, 1, display_dpi($output, $dpi)); $table->setText(4, 0, 'Thickness'); $table->setText(4, 1, display_thickness($thickness)); $table->setText(5, 0, 'Resolution'); $table->setText(5, 1, display_res($res)); $table->setText(6, 0, 'Rotation'); $table->setText(6, 1, display_rotation($rotation)); $table->setText(7, 0, 'Font'); $table->setText(7, 1, display_font($font_family, $font_size)); $table->setText(8, 0, 'Text'); $table->setText(8, 1, display_text($text2display)); $table->addCellAttribute(9, 0, 'align', 'center'); $table->addCellAttribute(9, 0, 'colspan', '2'); $table->setText(9, 0, '<input type="submit" value="Generate" />'); if (!empty($text2display)) { $table->insertRows(10, 1); $table->addCellAttribute(10, 0, 'align', 'center'); $table->addCellAttribute(10, 0, 'colspan', '2'); $table->addRowAttribute(10, 'style', 'background-color: #ffffff'); $table->setText(10, 0, '<img src="image.php?code=' . $filename . '&o=' . $output . '&dpi=' . $dpi . '&t=' . $thickness . '&r=' . $res . '&rot=' . $rotation . '&text=' . urlencode($text2display) . '&f1=' . $font_family . '&f2=' . $font_size . '&a1=' . $a1 . '&a2=' . $a2 . '&a3=' . $a3 . '" alt="Barcode Image" />'); }