/
proj_doc_edit_page.php
79 lines (75 loc) · 1.99 KB
/
proj_doc_edit_page.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
# Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
# Copyright (C) 2002 Mantis Team - mantisbt-dev@lists.sourceforge.net
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
?>
<?php include( 'core_API.php' ) ?>
<?php login_cookie_check() ?>
<?php
check_access( MANAGER );
$c_id = (integer)$f_id;
$query = "SELECT *
FROM $g_mantis_project_file_table
WHERE id='$c_id'";
$result = db_query( $query );
$row = db_fetch_array( $result );
extract( $row, EXTR_PREFIX_ALL, 'v' );
$v_title = string_edit_text( $v_title );
$v_description = string_edit_textarea( $v_description );
?>
<?php print_page_top1() ?>
<?php print_page_top2() ?>
<p>
<div align="center">
<table class="width75" cellspacing="1">
<tr>
<td class="form-title">
<form method="post" action="proj_doc_update.php">
<input type="hidden" name="f_id" value="<?php echo $f_id ?>">
<?php echo $s_upload_file_title ?>
</td>
<td class="right">
<?php print_doc_menu() ?>
</td>
</tr>
<tr class="row-1">
<td class="category" width="20%">
<?php echo $s_title ?>
</td>
<td width="80%">
<input type="text" name="f_title" size="70" maxlength="250" value="<?php echo $v_title ?>">
</td>
</tr>
<tr class="row-2">
<td class="category">
<?php echo $s_description ?>
</td>
<td>
<textarea name="f_description" cols="60" rows="7" wrap="virtual"><?php echo $v_description ?></textarea>
</td>
</tr>
<tr class="row-1">
<td class="category">
<?php echo $s_filename ?>
</td>
<td>
<?php echo $v_filename ?>
</td>
</tr>
<tr>
<td class="left">
<input type="submit" value="<?php echo $s_file_update_button ?>">
</form>
</td>
<td class="right">
<form method="post" action="proj_doc_delete_page.php">
<input type="hidden" name="f_id" value="<?php echo $f_id ?>">
<input type="submit" value="<?php echo $s_file_delete_button ?>">
</form>
</td>
</tr>
</table>
</div>
<?php print_page_bot1( __FILE__ ) ?>