Beispiel #1
0
                <option value="all">{{Tous}}</option>
                <?php 
foreach (eqLogic::all() as $eqLogic) {
    echo '<option value="' . $eqLogic->getId() . '" >' . $eqLogic->getHumanName() . '</option>';
}
?>
           </select>
       </div>
   </div>
   <div class="form-group">
    <label class="col-sm-6 control-label">{{Limiter au plugin}}</label>
    <div class="col-sm-4">
        <select class='interactAttr form-control' data-l1key='filtres' data-l2key='plugin'>
            <option value="all">{{Tous}}</option>
            <?php 
foreach (eqLogic::allType() as $type) {
    echo '<option value="' . $type['type'] . '" >' . $type['type'] . '</option>';
}
?>
       </select>
   </div>
</div>

<div class="form-group">
    <label class="col-sm-6 control-label">{{Limiter à la catégorie}}</label>
    <div class="col-sm-4">
        <select class='interactAttr form-control' data-l1key='filtres' data-l2key='eqLogic_category'>
            <option value="all">{{Toutes}}</option>
            <?php 
foreach (jeedom::getConfiguration('eqLogic:category') as $key => $value) {
    echo '<option value="' . $key . '">{{' . $value['name'] . '}}</option>';