Ejemplo n.º 1
0
        $hrefAuto = $changeUrl . '?part=equip&id=' . $equipment['id'] . '&station_id=' . $model->id . '&configure=' . EquipmentStatus::CONFIGURE_AUTO . '&status=' . $equipment['status'];
        ?>
            <tr>
                <th style="text-align: center"><?php 
        echo $no;
        ?>
</th>
                <td>
                    <div class="kv-attribute"><?php 
        echo $equipment['name'];
        ?>
</div>
                </td>
                <td>
                    <div class="kv-attribute"><?php 
        echo EquipmentStatus::getStatus($equipment['status']);
        ?>
</div>
                </td>
                <td>
                    <div id="equip-<?php 
        echo $equipment['id'];
        ?>
" class="kv-attribute">
                        <?php 
        $underOn = 0;
        $underOff = 0;
        $underAuto = 0;
        if ($equipment['configure'] == EquipmentStatus::CONFIGURE_AUTO) {
            $underAuto = 1;
        }