prototype of message removal

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO
2019-07-16 21:31:48 +02:00
parent ea3b0c372b
commit 4b2eefb712
4 changed files with 76 additions and 10 deletions

View File

@ -1,5 +1,16 @@
<div id="sspinner" class="alert alert-info lead"><i class="icon-spinner icon-spin icon-2x pull-left"></i><?php print $text_working; ?></div>
<div id="resultscontainer" class="boxlistcontent<?php if($n <= 0) { ?> empty<?php } ?>" >
<div id="deleteconfirm-modal" class="modal hide fade">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" role="dialog" aria-hidden="true"><i class="icon-remove"></i></button>
<h3><?php print $text_confirm; ?> <?php print $text_delete; ?></h3>
</div>
<div class="modal-body">
<p>Remove message <span id="name">ERROR</span>?</p>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal" aria-hidden="true"><?php print $text_close; ?></a>
<a href="index.php?route=message/remove&amp;id=Error&amp;confirmed=0" class="btn btn-primary" id="id"><?php print $text_delete; ?></a>
</div>
</div>
<table id="resultstable" class="table table-striped table-condensed">
<thead id="resultstop">
@ -25,7 +36,9 @@
<th class="auditcell ref header">
<?php print $text_ref; ?>
</th>
<th class="auditcell removal header">
&nbsp;
</th>
</tr>
</thead>
@ -38,14 +51,10 @@
<td class="auditcell date"><?php print $d['deleted']; ?></td>
<td class="auditcell ip"><?php print $d['reason']; ?></td>
<td class="auditcell ref"><?php if($d['deleted'] == 0) { ?><a href="#" onclick="Piler.view_message(<?php print $d['id']; ?>);"><?php } print $d['id']; if($d['deleted'] == 0) { ?></a><?php } ?></td>
<td class="auditcell aaa"><a href="#" class="confirm-delete" data-id="<?php print $d['id']; ?>" data-name="<?php print $d['id']; ?>"><i class="icon-remove-sign"></i>&nbsp;<?php print $text_remove; ?></a></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<!--div id="messagelistfooter" class="boxfooter">
</div-->

View File

@ -0,0 +1,6 @@
<div>
<div class="alert alert-success"><?php print $x; ?>.</div>
<p><a href="index.php?route=audit/removal"><i class="icon-circle-arrow-left"></i>&nbsp;<?php print $text_back; ?></a></p>
</div>