Update Global Search Documents to reference actual document
This commit is contained in:
+7
-7
@@ -222,23 +222,23 @@ if (isset($_GET['query'])) {
|
|||||||
<tr>
|
<tr>
|
||||||
<th>Document</th>
|
<th>Document</th>
|
||||||
<th>Client</th>
|
<th>Client</th>
|
||||||
<th>Updated</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
while ($row = mysqli_fetch_array($sql_documents)) {
|
while ($row = mysqli_fetch_array($sql_documents)) {
|
||||||
|
$document_id = intval($row['document_id']);
|
||||||
$document_name = htmlentities($row['document_name']);
|
$document_name = htmlentities($row['document_name']);
|
||||||
$document_client_id = intval($row['document_client_id']);
|
$client_id = intval($row['document_client_id']);
|
||||||
$document_client = htmlentities($row['client_name']);
|
$client_name = htmlentities($row['client_name']);
|
||||||
$document_updated = htmlentities($row['document_updated_at']);
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="client_documents.php?client_id=<?php echo $document_client_id ?>&q=<?php echo $q ?>"><?php echo $document_name; ?></a></td>
|
<td><a href="client_document_details.php?client_id=<?php echo $client_id ?>&document_id=<?php echo $document_id; ?>"><?php echo $document_name; ?></a></td>
|
||||||
<td><?php echo $document_client ?></td>
|
<td>
|
||||||
<td><?php echo $document_updated ?></td>
|
<a href="client_documents.php?client_id=<?php echo $client_id; ?>"><?php echo $client_name; ?></a>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user