1 | <? /*************************** Module Header *******************************
|
---|
2 | *
|
---|
3 | * Module Name: formcode.php
|
---|
4 | *
|
---|
5 | * HTML form using the fields of edit.php and new.php
|
---|
6 | *
|
---|
7 | * Copyright (c) Netlabs EPM Distribution Project 2002
|
---|
8 | *
|
---|
9 | * $Id: formcode.inc 2417 2011-05-15 23:32:51Z aschn $
|
---|
10 | *
|
---|
11 | * ===========================================================================
|
---|
12 | *
|
---|
13 | * This file is part of the Netlabs EPM Distribution package and is free
|
---|
14 | * software. You can redistribute it and/or modify it under the terms of the
|
---|
15 | * GNU General Public License as published by the Free Software
|
---|
16 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
17 | * Netlabs EPM Distribution. This library is distributed in the hope that it
|
---|
18 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
---|
19 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | * General Public License for more details.
|
---|
21 | *
|
---|
22 | *************************************************************************/ ?>
|
---|
23 |
|
---|
24 | <html>
|
---|
25 | <body text=#000000 bgcolor=#FFFFFF link=#CC6633 vlink=#993300 alink=#6666CC>
|
---|
26 |
|
---|
27 | <form action="update.php" name="EditDbFile" method="post" enctype="text/plain">
|
---|
28 | <table width=90% border=0>
|
---|
29 | <input name=file type=hidden value="<?=$file?>">
|
---|
30 |
|
---|
31 | <tr><td align=right valign=center bgcolor=#dddddd>
|
---|
32 | file:
|
---|
33 | </td><td valign=center bgcolor=#dddddd>
|
---|
34 | <? echo "$file "; if ($newfile) echo "(new file)"; ?>
|
---|
35 | </td></tr>
|
---|
36 |
|
---|
37 | <tr><td align=right>
|
---|
38 | title:
|
---|
39 | </td><td>
|
---|
40 | <input name=title size=70 maxlength=256 value="<?=$title?>">
|
---|
41 | </td></tr>
|
---|
42 |
|
---|
43 | <tr><td align=right bgcolor=#dddddd><font size=-1>
|
---|
44 | category:
|
---|
45 | </font></td><td bgcolor=#dddddd><font size=-1>
|
---|
46 | <select name=category size=1>
|
---|
47 | <? addoptions( $category, "category.lst"); ?>
|
---|
48 | </select>
|
---|
49 |
|
---|
50 | prio:
|
---|
51 | <select name=prio size=1>
|
---|
52 | <? addoptions( $prio, "prio.lst"); ?>
|
---|
53 | </select>
|
---|
54 |
|
---|
55 | status:
|
---|
56 | <select name=status size=1>
|
---|
57 | <? addoptions( $status, "status.lst"); ?>
|
---|
58 | </select>
|
---|
59 |
|
---|
60 |
|
---|
61 | files:
|
---|
62 | <input name=filelist size=60 maxlength=256 value="<? echo trim( $filelist) ?>">
|
---|
63 | </font></td></tr>
|
---|
64 |
|
---|
65 | <input name=updated type=hidden value="<?=$updated?>">
|
---|
66 |
|
---|
67 | <tr><td valign=top align=right><font size=-1>
|
---|
68 | details:
|
---|
69 | </font></td><td><font size=-1>
|
---|
70 | <textarea name=details rows=6 cols=100>
|
---|
71 | <?=$details?>
|
---|
72 | </textarea>
|
---|
73 | </font></td></tr>
|
---|
74 |
|
---|
75 | <tr><td valign=top align=right bgcolor=#dddddd><font size=-1>
|
---|
76 | commit comment:
|
---|
77 | </font></td><td bgcolor=#dddddd><font size=-1>
|
---|
78 | <textarea name=comment rows=2 cols=100 <? if ($newfile) echo "readonly"; ?>>
|
---|
79 | <?=$comment?>
|
---|
80 | </textarea>
|
---|
81 | </font></td></tr>
|
---|
82 |
|
---|
83 | <tr><td>
|
---|
84 | </td><td><font size=-1>
|
---|
85 | <input type=submit value="Apply">
|
---|
86 |
|
---|
87 | <input type=reset value="Undo">
|
---|
88 |
|
---|
89 | <input type=button value="Cancel" onClick="self.location.href='details.php?file=<?=$entryfile?>'">
|
---|
90 | </font></td></tr>
|
---|
91 |
|
---|
92 | </table>
|
---|
93 | </body>
|
---|
94 | </html>
|
---|
95 |
|
---|