widget.configure.php 1.0 KB

123456789101112131415161718192021
  1. <?php
  2. $service = empty( $widget->data('service')) ? '': $widget->data('service');
  3. $newHours = $widget->data('newHours');
  4. $newHours = empty($newHours) || !is_numeric($newHours) ? 24: $newHours;
  5. ?>
  6. <div id="glpi-widget-glpi-form">
  7. <div>
  8. <label class="m-0">Url</label><br>
  9. <input class="form-control" type="text" id="widget-glpi-service" value="<?php echo $service; ?>"/>
  10. <small class="text-muted" style="word-break: break-all;">Faites une recherche sur glpi et copier l'url dans ce champ,ex :<br>
  11. <?php echo $conf->get('glpi_host'); ?>/front/ticket.php?is_deleted=0&as_map=0&criteria%5B0%5D%5Blink%5D=AND&criteria%5B0%5D%5Bfield%5D=76665&criteria%5B0%5D%5Bsearchtype%5D=equals&criteria%5B0%5D%5Bvalue%5D=5&search=Rechercher&itemtype=Ticket&start=0&_glpi_csrf_token=79beba10aa8cba3a03ea608f957b6a99</small>
  12. <label class="m-0">Ticket marqué comme nouveau si datant de moins de x heures</label><br>
  13. <input class="form-control" type="text" id="widget-glpi-new-hours" value="<?php echo $newHours; ?>"/>
  14. </div>
  15. </div>