Ejemplo n.º 1
0
 function __construct()
 {
     $this->serviceFlags = getServiceFlags();
 }
Ejemplo n.º 2
0
<?php

echo $this->_getSubmenu2('show');
function getCellEditor($ds, $fname)
{
    $cellId = 'c' . $ds['d_key'] . '_' . $fname;
    return '<span class="editable" id="' . $cellId . '" onclick="editCell(\'' . $cellId . '\');" data-key="' . $ds['d_key'] . '" data-field="' . $fname . '">' . htmlspecialchars($ds[$fname]) . '</span>';
}
function getCellCheckbox($ds, $fname)
{
    $cellId = 'c' . $ds['d_key'] . '_' . $fname;
    return '<input type="checkbox" value="Y" onchange="saveCheckbox(\'' . $cellId . '\')" data-key="' . $ds['d_key'] . '" data-field="' . $fname . '" id="' . $cellId . '" ' . ($ds[$fname] == 'Y' ? 'checked' : '') . '/>';
}
$deviceFlags = getServiceFlags();
$deviceIcons = array('default' => 'code-fork', 'LIGHT' => 'lightbulb-o', 'BLINDS' => 'arrows-v', 'MOTION_DETECTOR' => 'child', 'KEY' => 'keyboard-o', 'MAINTENANCE' => 'history', 'HM-TC-IT-WM-W-EU' => 'tasks', 'THERMALCONTROL_TRANSMIT' => 'tasks', 'WEATHER_TRANSMIT' => 'tasks');
?>
<table class="devicetable">
<thead>
  <tr>
    <th></th>
    <th>Type</th>
    <th>#</th>
    <th>Vis.</th>
    <th>Address</th>
    <th>Name</th>
    <th>Alias</th>
    <th>Room</th>
  </tr>
</thead><?php 
db()->get('UPDATE #devices SET d_added = ' . time() . ' WHERE d_added = 0');
foreach (o(db)->get('SELECT * FROM devices ORDER BY d_room,d_id') as $ds) {