download multiple qrcodes at once feature

This commit is contained in:
0xRenegade
2022-09-24 15:14:20 -05:00
parent a18657994e
commit 9cf354910b
6 changed files with 162 additions and 1 deletions
+26
View File
@@ -1,10 +1,23 @@
<div class="row">
<div class="col-12">
<div class="bulk-action-wrapper">
<form id="bulk-action" action="/bulk_action.php" method="POST">
<button type="submit" class="btn btn-primary">Bulk Action</button>
<select name="bulk-action">
<option value="">------ Select Option -------</option>
<option value="download">Download QRCode(s)</option>
<input type="hidden" name="type" value="static">
</select>
</form>
</div>
</div>
<div class="col-12">
<div class="card">
<div class="card-body table-responsive p-0">
<table class="table table-striped table-bordered">
<thead>
<tr>
<th width="5%"><input type="checkbox" name="bulk-select" value="1"></th>
<th width="5%">ID</th>
<th width="12%">Filename</th>
<th width="7%">Type</th>
@@ -16,6 +29,7 @@
<tbody>
<?php foreach ($rows as $row): ?>
<tr>
<td><input type="checkbox" name="action[]" value="<?=$row['id']?>"></td>
<td><?php echo $row['id']; ?></td>
<td><?php echo htmlspecialchars($row['filename']); ?></td>
<td><?php echo htmlspecialchars($row['type']); ?></td>
@@ -71,4 +85,16 @@
</div><!-- /.Card -->
</div><!-- /.col -->
<div class="col-12">
<div class="bulk-action-wrapper">
<form id="bulk-action" action="/bulk_action.php" method="POST">
<button type="submit" class="btn btn-primary">Bulk Action</button>
<select name="bulk-action">
<option value="">------ Select Option -------</option>
<option value="download">Download QRCode(s)</option>
<input type="hidden" name="type" value="static">
</select>
</form>
</div>
</div>
</div><!-- /.row -->