Beispiel #1
0
print $sensor['name'];
?>
      <br />
      <label>device description:</label>
      <?php 
print $sensor['beschreibung'];
?>
      <br />
      <label>connect interval:</label>
       <?php 
print Funclib::secondsToPeriods($sensor['intervall']);
?>
       <br />
      <label>device data max age:</label>
       <?php 
print Funclib::secondsToPeriods($sensor['maxage']);
?>
      <div class="var">
         <table cellpadding="0">
            <colgroup>
               <col width="120"/>
               <col width="110"/>
               <col width="300"/>
            </colgroup>
            <thead>
               <tr>
                  <th>name of variable</th>
                  <th>type of value</th>
                  <th>variable description</th>
               </tr>
            </thead>
Beispiel #2
0
        ?>
         <tr>
            <td><?php 
        print DB::result('name');
        ?>
</td>
            <td><?php 
        print DB::resultIsEmpty('zeit') ? 'no message received' : DB::result('zeit');
        ?>
</td>
            <td class="center"><?php 
        print Funclib::secondsToPeriods(DB::result('intervall'));
        ?>
</td>
            <td class="center"><?php 
        print Funclib::secondsToPeriods(DB::result('maxage'));
        ?>
</td>
            <td><a href="<?php 
        print HTTP_HOST . '/sensors/sensor/' . DB::result('sensorid') . ($this->_getExists('editmode') ? '/editmode' : '');
        ?>
" title="edit settings">show details</a></td>
            <td>
<?php 
        if ($this->_getExists('editmode')) {
            ?>
            <img src="<?php 
            print REL_PATH;
            ?>
/img/edit.png" name="edit" onclick="editSensor('<?php 
            print DB::result('sensorid');