mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-23 01:46:27 +02:00
Update received & scheduled
This commit is contained in:
parent
f609fc175f
commit
23892f5983
20 changed files with 338 additions and 142 deletions
|
@ -14,7 +14,7 @@
|
|||
<?php if (ENV == 'dev') { ?>
|
||||
<script>
|
||||
<?php while ($message = \FlashMessage\FlashMessage::next()) { ?>
|
||||
alert('<?php echo $message['type'] . ' : ' . $message['text']; ?>');
|
||||
alert('<?php $this->s($message['type'] . ' : ' . $message['text']); ?>');
|
||||
<?php } ?>
|
||||
</script>
|
||||
<?php } ?>
|
||||
|
|
|
@ -78,6 +78,9 @@
|
|||
<li <?php echo $page == 'users' ? 'class="active"' : ''; ?>>
|
||||
<a href="<?php echo \descartes\Router::url('User', 'list'); ?>"><i class="fa fa-fw fa-user"></i> Utilisateurs</a>
|
||||
</li>
|
||||
<li <?php echo $page == 'phones' ? 'class="active"' : ''; ?>>
|
||||
<a href="<?php echo \descartes\Router::url('Phone', 'list'); ?>"><i class="fa fa-fw fa-phone"></i> Téléphones</a>
|
||||
</li>
|
||||
<?php if ($_SESSION['user']['admin']) { ?>
|
||||
<li <?php echo $page == 'settings' ? 'class="active"' : ''; ?>>
|
||||
<a href="<?php echo \descartes\Router::url('Setting', 'show'); ?>"><i class="fa fa-fw fa-cogs"></i> Réglages</a>
|
||||
|
|
|
@ -43,7 +43,8 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Numéro</th>
|
||||
<th>De</th>
|
||||
<th>À</th>
|
||||
<th>Message</th>
|
||||
<th>Date</th>
|
||||
<th>Commande</th>
|
||||
|
@ -55,6 +56,7 @@
|
|||
<tr>
|
||||
<td><?php $this->s($received['id']); ?></td>
|
||||
<td><?php $this->s($received['origin']); ?></td>
|
||||
<td><?php $this->s($received['destination']); ?></td>
|
||||
<td><?php $this->s($received['text']); ?></td>
|
||||
<td><?php $this->s($received['at']); ?></td>
|
||||
<td><?php echo $received['command'] ? 'Oui' : 'Non'; ?></td>
|
||||
|
|
|
@ -73,6 +73,15 @@
|
|||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="form-group">
|
||||
<label>Téléphone à employer : </label>
|
||||
<select name="origin" class="form-control">
|
||||
<option value="">N'importe lequel</option>
|
||||
<?php foreach ($phones as $phone) { ?>
|
||||
<option value="<?php $this->s($phone['number']); ?>"><?php $this->s($phone['number']); ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<a class="btn btn-danger" href="<?php echo \descartes\Router::url('Scheduled', 'list'); ?>">Annuler</a>
|
||||
<input type="submit" class="btn btn-success" value="Enregistrer le SMS" />
|
||||
</form>
|
||||
|
|
|
@ -76,6 +76,15 @@
|
|||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="form-group">
|
||||
<label>Téléphone à employer : </label>
|
||||
<select name="scheduleds[<?php $this->s($scheduled['id']); ?>][origin]" class="form-control">
|
||||
<option <?php echo ($scheduled['origin'] ? '' : 'selected="selected"'); ?> value="">N'importe lequel</option>
|
||||
<?php foreach ($phones as $phone) { ?>
|
||||
<option <?php echo ($scheduled['origin'] == $phone['number'] ? 'selected="selected"' : '' ); ?> value="<?php $this->s($phone['number']); ?>"><?php $this->s($phone['number']); ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<hr/>
|
||||
<?php } ?>
|
||||
<a class="btn btn-danger" href="<?php echo \descartes\Router::url('Scheduled', 'list'); ?>">Annuler</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue