value="<?php 
        echo $center->id;
        ?>
"><?php 
        echo $center->name;
        ?>
</option>
                    <?php 
    }
}
?>
        </select>
    </div>
    <div class="filter-item">
        <?php 
echo Show::multiSelect('station', isset($_GET['station']) ? $_GET['station'] : [], $stationList, 'id', 'name', '', ['class' => 'stations', 'style' => 'height: 300px;']);
?>
    </div>
    <div class="filter-item">
        <button type="submit" class="btn btn-primary btn-xs">Tìm kiếm</button>
    </div>
</form>
<style type="text/css">
    .filter-item {
        margin-bottom: 15px;
    }
    .filter-item input, .filter-item select {
        padding: 2px 5px;
        width: 90%;
    }
</style>
Exemple #2
0
?>

    <?php 
echo Show::activeDropDownList($model, 'type', $attributeLabels, $types, ['class' => 'form-select'], $errors);
?>

    <?php 
echo Show::multiSelect('equipments', $equipmentIds, $equipments, 'id', 'name', $attributeLabels, ['style' => 'height: 150px;']);
?>

    <?php 
echo Show::multiSelect('power_equipments', $powerEquipmentIds, $powerEquipments, 'id', 'name', $attributeLabels);
?>

    <?php 
echo Show::multiSelect('dc_equipments', $dcEquipmentIds, $dcEquipments, 'id', 'name', $attributeLabels);
?>

    <?php 
echo $form->field($model, 'staff')->textInput();
?>

    <?php 
echo $form->field($model, 'firmware')->textInput(['maxlength' => 255]);
?>

    <?php 
echo $form->field($model, 'picture_url')->textInput(['maxlength' => 255]);
?>

    <?php