4 * FusionForge Notepad Facility
6 * Copyright 2003 FUJITSU PRIME SOFTWARE TECHNOLOGIES LIMITED
7 * http://www.pst.fujitsu.com/
9 * This file is part of FusionForge. FusionForge is free software;
10 * you can redistribute it and/or modify it under the terms of the
11 * GNU General Public License as published by the Free Software
12 * Foundation; either version 2 of the Licence, or (at your option)
15 * FusionForge is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License along
21 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 * FusionForge Notepad Window
26 * By Hidenari Miwa, FUJITSU PRIME SOFTWARE TECHNOLOGIES LIMITED, 09/2003
28 require_once('env.inc.php');
29 require_once $gfcommon.'include/pre.php';
32 * form: Input form name
33 * wrap: Wrap attribute
38 $form = getStringFromRequest('form');
39 $wrap = getStringFromRequest('wrap');
40 $rows = getIntFromRequest('rows');
41 $cols = getIntFromRequest('cols');
44 $wrap = htmlspecialchars("SOFT");
54 $pform = "opener.".$form;
60 <title>FusionForge Notepad</title>
61 <script language="JavaScript" type="text/javascript">/* <![CDATA[ */
62 function load_initial_value() {
64 aform = <?php echo $pform ?>;
65 document.forms[0].details.value = aform.value;
71 function set_value() {
73 aform = eval("<?php echo $pform ?>");
74 aform.value = document.forms[0].details.value;
79 function set_and_close() {
86 <body onLoad="load_initial_value();" >
87 <form name="form1" action="">
88 <table class="fullwidth">
90 <td><input type="button" name="ok" value="OK"
91 onClick="set_and_close()"/>
92 <input type="reset" value="Clear" />
93 <input type="button" value="Cancel"
94 onClick="window.close()" />
99 <textarea name="details" ROWS="<?php echo $rows ?>"
100 COLS="<?php echo $cols ?>"
101 WRAP="<?php echo $wrap ?>"></textarea>
105 <td><input type="button" name="ok" value="OK"
106 onClick="set_and_close()"/>
107 <input type="reset" value="Clear" />
108 <input type="button" value="Cancel"
109 onClick="window.close()" />
122 // c-file-style: "bsd"