- BSPrinterTableElement::RowSubmit() now will ignore buttons if they're null
[isso.git] / printer.php
1 <?php
2 /*=====================================================================*\
3 || ###################################################################
4 || # Blue Static ISSO Framework
5 || # Copyright ©2002-[#]year[#] Blue Static
6 || #
7 || # This program is free software; you can redistribute it and/or modify
8 || # it under the terms of the GNU General Public License as published by
9 || # the Free Software Foundation; version [#]gpl[#] of the License.
10 || #
11 || # This program is distributed in the hope that it will be useful, but
12 || # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 || # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 || # more details.
15 || #
16 || # You should have received a copy of the GNU General Public License along
17 || # with this program; if not, write to the Free Software Foundation, Inc.,
18 || # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 || ###################################################################
20 \*=====================================================================*/
21
22 /**
23 * Printer
24 * printer.php
25 *
26 * @package ISSO
27 */
28
29 require_once('ISSO/PrinterElement.php');
30 require_once('ISSO/PrinterBaseElement.php');
31 require_once('ISSO/PrinterLabelElement.php');
32 require_once('ISSO/PrinterRootElement.php');
33 require_once('ISSO/PrinterRootElementPage.php');
34 require_once('ISSO/PrinterRootElementTable.php');
35 require_once('ISSO/PrinterRootElementForm.php');
36 require_once('ISSO/PrinterTableElement.php');
37
38 /**
39 * Printer
40 *
41 * This framework generates standard HTML through various functions. The purpose
42 * is generally so that things like the admin system can be created without templates.
43 *
44 * Constants:
45 * ISSO_PRINTER_DONE_HEADER - An internal constant that is used to check to see
46 * if the page header has already been printed
47 * ISSO_PRINTER_HIDE_SETUP - Will stop the page footer data (copyright and debug
48 * box) from being printed
49 * ISSO_PRINTER_NO_NAVIGATION - Do not show the navigation frame from ISSO.Printer.Navigation
50 *
51 * @author Blue Static
52 * @copyright Copyright ©2002 - [#]year[#], Blue Static
53 * @version $Revision$
54 * @package ISSO
55 *
56 */
57 class Printer
58 {
59 // ###################################################################
60 /**
61 * Creates a table row with a <textarea> as the value column
62 *
63 * @param string Label text
64 * @param string Name of the <textarea>
65 * @param string Value of the <textarea>
66 * @param integer Colspan attribute
67 * @param integer Number of rows in the <textarea>
68 * @param integer Number of colums in the <textarea>
69 * @param bool Whether or not to use monospacing font
70 * @param string Extra style attributes to apply to the <textarea>
71 */
72 public function row_textarea($label, $name, $value = '', $colspan = 2, $rows = 7, $cols = 50, $code = false, $style = '')
73 {
74 $this->row_text($label, "<textarea name=\"$name\" class=\"" . ($code ? 'code' : 'input') . "\" rows=\"$rows\" cols=\"$cols\"" . ($style ? ' style="' . $style . '"' : '') . ">$value</textarea>", 'top', $colspan);
75 }
76 }
77
78 /*=====================================================================*\
79 || ###################################################################
80 || # $HeadURL$
81 || # $Id$
82 || ###################################################################
83 \*=====================================================================*/
84 ?>