Menu

[r13]: / projects_site / docitemapproval.php  Maximize  Restore  History

Download this file

54 lines (43 with data), 2.1 kB

 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
<?php
#Application name: PhpCollab
#Status page: 0
$checkSession = "true";
include("../includes/library.php");
if ($action == "update") {
$commentField = convertData($commentField);
$tmpquery1 = "UPDATE ".$tableCollab["files"]." SET comments_approval='$commentField',date_approval='$dateheure',approver='$idSession',status='$statusField' WHERE id = '$id'";
connectSql("$tmpquery1");
$msg = "updateFile";
headerFunction("doclists.php?".session_name()."=".session_id());
exit;
}
$tmpquery = "WHERE fil.id = '$id'";
$fileDetail = new request();
$fileDetail->openFiles($tmpquery);
if ($fileDetail->fil_published[0] == "1" || $fileDetail->fil_project[0] != $projectSession) {
headerFunction("index.php");
}
$bouton[4] = "over";
$titlePage = $strings["approval_tracking"];
include ("include_header.php");
echo "<form accept-charset=\"UNKNOWN\" method=\"post\" action=\"../projects_site/docitemapproval.php?".session_name()."=".session_id()."&action=update\" name=\"documentitemapproval\" enctype=\"application/x-www-form-urlencoded\">";
echo "<table cellspacing=\"0\" width=\"90%\" border=\"0\" cellpadding=\"3\">
<tr><th colspan=\"2\">".$strings["approval_tracking"]." :</th></tr>
<tr><th>".$strings["document"]." :</th><td><a href=\"clientfiledetail.php?$transmitSid&id=".$fileDetail->fil_id[0]."\">".$fileDetail->fil_name[0]."</a></td></tr>
<tr><th>".$strings["status"]." :</th><td><select name=\"statusField\">";
$comptSta = count($statusFile);
for ($i=0;$i<$comptSta;$i++) {
if ($fileDetail->fil_status[0] == $i) {
echo "<option value=\"$i\" selected>$statusFile[$i]</option>";
} else {
echo "<option value=\"$i\">$statusFile[$i]</option>";
}
}
echo "</select></td></tr>
<tr><th>".$strings["comments"]." :</th><td><textarea rows=\"3\" name=\"commentField\" cols=\"43\">".$fileDetail->fil_comments_approval[0]."</textarea></td></tr>
<tr><th>&nbsp;</th><td><input name=\"submit\" type=\"submit\" value=\"".$strings["save"]."\"></td></tr>
</table>
<input name=\"id\" type=\"hidden\" value=\"$id\">
</form>";
include ("include_footer.php");
?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.