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