page.sheet.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. User::check_access('sms','read');
  3. ?>
  4. <div class="sms">
  5. <div id="sms-form" class="row sms-form justify-content-md-center" data-action="sms_send">
  6. <div class="col-md-4">
  7. <h3>Sms</h3>
  8. <p>Envois de SMS aux clients &amp; collaborateurs</p>
  9. <small class="text-muted">nb: les caractères suivants sont contre induqés '²','ç' et '°'</small><br>
  10. <label for="phone">N°Téléphone</label>
  11. <input id="phone" name="phone" class="form-control" data-type="phone" placeholder="" value="" type="tel"
  12. required>
  13. <label for="message">Message</label>
  14. <textarea id="message" name="message" class="form-control"></textarea>
  15. <br/>
  16. <div onclick="sms_send();" class="btn btn-success btn-send"><i class="fas fa-check"></i> Enregistrer</div>
  17. </div>
  18. <div class="col-md-4">
  19. <select id="filters" data-type="filter" data-label="Recherche" data-function="sms_histories_search">
  20. <option value="uid" data-filter-type="text">Téléphone</option>
  21. <option value="creator" data-filter-type="user">Auteur</option>
  22. <option value="created" data-filter-type="date">Envoyé le</option>
  23. </select>
  24. <h4 class="results-count"><span></span> sms envoyé(s)</h4>
  25. <ul class="list-group" id="histories" data-entity-search="sms_histories_search">
  26. <li class="list-group-item hidden">
  27. <span class="text-muted right" title="{{created}}"><i class="far fa-clock"></i> {{createdReadable}}</span>
  28. <img src="action.php?action=core_account_avatar_download&amp;user={{creator.login}}&amp;extension=jpg" class="avatar-mini avatar-rounded avatar-login" title="{{creator.login}}"> {{fullname}}<br> Envois sur <span class="font-weight-bold"><i class="fas fa-mobile-alt"></i> {{phone}}</span>
  29. </li>
  30. </ul>
  31. <!-- Pagination (data-range définit le nombre de pages max affichées avant et après la page courante) -->
  32. <ul class="pagination justify-content-center mt-2" data-range="5">
  33. <li class="page-item hidden" data-value="{{value}}" title="Voir la page {{label}}" onclick="$(this).parent().find('li').removeClass('active');$(this).addClass('active');sms_histories_search();">
  34. <span class="page-link">{{label}}</span>
  35. </li>
  36. </ul>
  37. </div>
  38. </div>
  39. </div>