[go: up one dir, main page]

Menu

[r10]: / docsTable.php  Maximize  Restore  History

Download this file

32 lines (27 with data), 982 Bytes

 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
<?php
include('includes/databaseLogin.php');
include('includes/installedLanguage.php');
echo "<!DOCTYPE html>";
?>
<html>
<head>
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<?php
if(isset($_POST[sCode])){
$visit = ($_POST[visit]);
echo "<table width=\"100%\">";
$getDocs = mysql_query("SELECT * FROM docs WHERE docs.docOwner='$visit'");
if(mysql_num_rows($getDocs)) {
while($row = mysql_fetch_array($getDocs)) {
echo "<tr><td><a class=\"aDocName\" name=\"" . $row[docName] . "_" . $row[docPath] . "_" . $row[docMime] . "\" href=\"#\">" . $row[docTitle] . "</a></td><td><input class=\"iDocModify\" name=\"" . $row[docID]. "\" type=\"button\" value=\"" . _T("Modify") . "\"></td><td><input class=\"iDocDelete\" name=\"" . $row[docID]. "_" . $row[docTitle] . "_" . $visitID . "\" type=\"button\" value=\"" . _T("Delete") . "\"></td></tr>";
}
}
echo "</table>";
}else{
//Error
}
?>
</body>
</html>