Masquage de la gestion des logs avec un compte non admin
This commit is contained in:
parent
5fe6a210de
commit
46444f5e69
|
@ -42,7 +42,7 @@
|
|||
<th>Type</th>
|
||||
<th>Date</th>
|
||||
<th>Texte</th>
|
||||
<th>Sélectionner</th>
|
||||
<?php if ($_SESSION['admin']) { ?><th>Sélectionner</th><?php } ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -55,7 +55,7 @@
|
|||
<td><span class="fa fa-fw <?php echo internalTools::eventTypeToIcon($event['type']); ?>"></span></td>
|
||||
<td><?php secho($event['at']); ?></td>
|
||||
<td><?php secho($event['text']); ?></td>
|
||||
<td><input type="checkbox" value="<?php secho($event['id']); ?>"></td>
|
||||
<?php if ($_SESSION['admin']) { ?><td><input type="checkbox" value="<?php secho($event['id']); ?>"></td><?php } ?>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
@ -64,15 +64,17 @@
|
|||
</table>
|
||||
</div>
|
||||
<nav>
|
||||
<div class="text-right col-xs-12 no-padding">
|
||||
<strong>Action groupée :</strong>
|
||||
<div class="btn-group action-dropdown" target="#table-events">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Action pour la sélection <span class="caret"></span></button>
|
||||
<ul class="dropdown-menu pull-right" role="menu">
|
||||
<li><a href="<?php echo $this->generateUrl('events', 'delete', [$_SESSION['csrf']]); ?>"><span class="fa fa-trash-o"></span> Supprimer</a></li>
|
||||
</ul>
|
||||
<?php if ($_SESSION['admin']) { ?>
|
||||
<div class="text-right col-xs-12 no-padding">
|
||||
<strong>Action groupée :</strong>
|
||||
<div class="btn-group action-dropdown" target="#table-events">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Action pour la sélection <span class="caret"></span></button>
|
||||
<ul class="dropdown-menu pull-right" role="menu">
|
||||
<li><a href="<?php echo $this->generateUrl('events', 'delete', [$_SESSION['csrf']]); ?>"><span class="fa fa-trash-o"></span> Supprimer</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<ul class="pager">
|
||||
<?php
|
||||
if ($page)
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
<th>Message</th>
|
||||
<th>Date</th>
|
||||
<th>Commande</th>
|
||||
<th>Sélectionner</th>
|
||||
<?php if ($_SESSION['admin']) { ?><th>Sélectionner</th><?php } ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -57,7 +57,7 @@
|
|||
<td><?php secho($received['content']); ?></td>
|
||||
<td><?php secho($received['at']); ?></td>
|
||||
<td><?php echo $received['is_command'] ? 'Oui' : 'Non'; ?></td>
|
||||
<td><input type="checkbox" value="<?php secho($received['id']); ?>"></td>
|
||||
<?php if ($_SESSION['admin']) { ?><td><input type="checkbox" value="<?php secho($received['id']); ?>"></td><?php } ?>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
@ -66,15 +66,17 @@
|
|||
</table>
|
||||
</div>
|
||||
<nav>
|
||||
<div class="text-right col-xs-12 no-padding">
|
||||
<strong>Action groupée :</strong>
|
||||
<div class="btn-group action-dropdown" target="#table-receiveds">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Action pour la sélection <span class="caret"></span></button>
|
||||
<ul class="dropdown-menu pull-right" role="menu">
|
||||
<li><a href="<?php echo $this->generateUrl('receiveds', 'delete', [$_SESSION['csrf']]); ?>"><span class="fa fa-trash-o"></span> Supprimer</a></li>
|
||||
</ul>
|
||||
<?php if ($_SESSION['admin']) { ?>
|
||||
<div class="text-right col-xs-12 no-padding">
|
||||
<strong>Action groupée :</strong>
|
||||
<div class="btn-group action-dropdown" target="#table-receiveds">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Action pour la sélection <span class="caret"></span></button>
|
||||
<ul class="dropdown-menu pull-right" role="menu">
|
||||
<li><a href="<?php echo $this->generateUrl('receiveds', 'delete', [$_SESSION['csrf']]); ?>"><span class="fa fa-trash-o"></span> Supprimer</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<ul class="pager">
|
||||
<?php
|
||||
if ($page)
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
<th>Message</th>
|
||||
<th>Date</th>
|
||||
<th>Statut</th>
|
||||
<th>Sélectionner</th>
|
||||
<?php if ($_SESSION['admin']) { ?><th>Sélectionner</th><?php } ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -57,7 +57,7 @@
|
|||
<td><?php secho($sended['content']); ?></td>
|
||||
<td><?php secho($sended['at']); ?></td>
|
||||
<td><?php secho($sended['delivered'] ? 'Délivré' : ($sended['failed'] ? 'Échoué' : 'Inconnu')); ?></td>
|
||||
<td><input type="checkbox" value="<?php secho($sended['id']); ?>"></td>
|
||||
<?php if ($_SESSION['admin']) { ?><td><input type="checkbox" value="<?php secho($sended['id']); ?>"></td><?php } ?>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
@ -66,15 +66,17 @@
|
|||
</table>
|
||||
</div>
|
||||
<nav>
|
||||
<div class="text-right col-xs-12 no-padding">
|
||||
<strong>Action groupée :</strong>
|
||||
<div class="btn-group action-dropdown" target="#table-sendeds">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Action pour la sélection <span class="caret"></span></button>
|
||||
<ul class="dropdown-menu pull-right" role="menu">
|
||||
<li><a href="<?php echo $this->generateUrl('sendeds', 'delete', [$_SESSION['csrf']]); ?>"><span class="fa fa-trash-o"></span> Supprimer</a></li>
|
||||
</ul>
|
||||
<?php if ($_SESSION['admin']) { ?>
|
||||
<div class="text-right col-xs-12 no-padding">
|
||||
<strong>Action groupée :</strong>
|
||||
<div class="btn-group action-dropdown" target="#table-sendeds">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Action pour la sélection <span class="caret"></span></button>
|
||||
<ul class="dropdown-menu pull-right" role="menu">
|
||||
<li><a href="<?php echo $this->generateUrl('sendeds', 'delete', [$_SESSION['csrf']]); ?>"><span class="fa fa-trash-o"></span> Supprimer</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<ul class="pager">
|
||||
<?php
|
||||
if ($page)
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
<tr>
|
||||
<th>#</th>
|
||||
<th>Numéro</th>
|
||||
<th>Sélectionner</th>
|
||||
<?php if ($_SESSION['admin']) { ?><th>Sélectionner</th><?php } ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -51,7 +51,7 @@
|
|||
<tr>
|
||||
<td><?php secho($smsStop['id']); ?></td>
|
||||
<td><?php secho($smsStop['number']); ?></td>
|
||||
<td><input type="checkbox" value="<?php secho($smsStop['id']); ?>"></td>
|
||||
<?php if ($_SESSION['admin']) { ?><td><input type="checkbox" value="<?php secho($smsStop['id']); ?>"></td><?php } ?>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
@ -60,15 +60,17 @@
|
|||
</table>
|
||||
</div>
|
||||
<nav>
|
||||
<div class="text-right col-xs-12 no-padding">
|
||||
<strong>Action groupée :</strong>
|
||||
<div class="btn-group action-dropdown" target="#table-smsstop">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Action pour la sélection <span class="caret"></span></button>
|
||||
<ul class="dropdown-menu pull-right" role="menu">
|
||||
<li><a href="<?php echo $this->generateUrl('smsstop', 'delete', [$_SESSION['csrf']]); ?>"><span class="fa fa-trash-o"></span> Supprimer</a></li>
|
||||
</ul>
|
||||
<?php if ($_SESSION['admin']) { ?>
|
||||
<div class="text-right col-xs-12 no-padding">
|
||||
<strong>Action groupée :</strong>
|
||||
<div class="btn-group action-dropdown" target="#table-smsstop">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Action pour la sélection <span class="caret"></span></button>
|
||||
<ul class="dropdown-menu pull-right" role="menu">
|
||||
<li><a href="<?php echo $this->generateUrl('smsstop', 'delete', [$_SESSION['csrf']]); ?>"><span class="fa fa-trash-o"></span> Supprimer</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<ul class="pager">
|
||||
<?php
|
||||
if ($page)
|
||||
|
|
Loading…
Reference in New Issue