mirror of
https://github.com/itflow-org/itflow
synced 2026-03-04 21:04:50 +00:00
When deleting quote from the client or global list view redirect quote delete back to the correct corresponsing list view also make Delete Quote Functional on quote details
This commit is contained in:
@@ -133,7 +133,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
</a>
|
</a>
|
||||||
<div class="dropdown-divider"></div>
|
<div class="dropdown-divider"></div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<a class="dropdown-item text-danger text-bold" href="post.php?delete_quote=<?php echo $quote_id; ?>">
|
<a class="dropdown-item text-danger text-bold" href="post.php?delete_quote=<?php echo $quote_id; ?>&client_id=<?php echo $client_id; ?>">
|
||||||
<i class="fas fa-fw fa-trash mr-2"></i>Delete
|
<i class="fas fa-fw fa-trash mr-2"></i>Delete
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
7
post.php
7
post.php
@@ -3298,7 +3298,12 @@ if(isset($_GET['delete_quote'])){
|
|||||||
|
|
||||||
$_SESSION['alert_message'] = "Quotes deleted";
|
$_SESSION['alert_message'] = "Quotes deleted";
|
||||||
|
|
||||||
header("Location: " . $_SERVER["HTTP_REFERER"]);
|
if(isset($_GET['client_id'])) {
|
||||||
|
$client_id = intval($_GET['client_id']);
|
||||||
|
header("Location: client_quotes.php?client_id=$client_id");
|
||||||
|
} else {
|
||||||
|
header("Location: quotes.php");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -176,8 +176,8 @@ if (isset($_GET['quote_id'])) {
|
|||||||
<i class="fa fa-fw fa-link text-secondary mr-2"></i>Guest URL
|
<i class="fa fa-fw fa-link text-secondary mr-2"></i>Guest URL
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-divider"></div>
|
<div class="dropdown-divider"></div>
|
||||||
<a class="dropdown-item text-danger" href="#">
|
<a class="dropdown-item text-danger text-bold" href="post.php?delete_quote=<?php echo $quote_id; ?>">
|
||||||
<i class="fa fa-fw fa-times text-danger text-bold mr-2"></i>Delete
|
<i class="fa fa-fw fa-times mr-2"></i>Delete
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user