Пример #1
0
function display_clim($info)
{
    $display = '<h3 class="title margin-top">' . $info->name . '</h3>';
    if (!empty($info->device_opt->{12})) {
        $display .= display_OnOff($info);
    }
    if (!empty($info->device_opt->{388})) {
        $display .= display_minusplus($info);
    }
    return $display;
}
Пример #2
0
 }
 if (!empty($device->device_opt->{406})) {
     echo '<button onclick="changeSpeedFan(' . $device->room_device_id . ', 1, 406)" class="btn btn-info">' . _('6') . '</button> ';
 }
 if (!empty($device->device_opt->{400}) || !empty($device->device_opt->{401}) || !empty($device->device_opt->{402}) || !empty($device->device_opt->{403}) || !empty($device->device_opt->{404}) || !empty($device->device_opt->{405}) || !empty($device->device_opt->{406})) {
     echo '<br/>';
 }
 $display = '';
 if (!empty($device->device_opt->{12})) {
     $display .= '<br/>';
     $display .= display_OnOff($device, 1);
     $display .= '<div class="clearfix"></div>';
 }
 if (!empty($device->device_opt->{388})) {
     $display .= '<div class="col-lg-offset-3 col-lg-6 col-md-offset-2 col-md-8 col-sm-offset-1 col-sm-10 col-xs-12">';
     $display .= display_minusplus($device, 1);
     $display .= '<br/></div>';
     $display .= '<div class="clearfix"></div>';
 }
 $display = strtr($display, "\n", '');
 echo $display;
 if (!empty($device->device_opt->{412})) {
     echo '<button onclick="launchGeneric(' . $device->room_device_id . ', 412)" class="btn btn-info">' . _('Comfort') . '</button> ';
 }
 if (!empty($device->device_opt->{413})) {
     echo '<button onclick="launchGeneric(' . $device->room_device_id . ', 413)" class="btn btn-info">' . _('Night') . '</button> ';
 }
 if (!empty($device->device_opt->{414})) {
     echo '<button onclick="launchGeneric(' . $device->room_device_id . ', 414)" class="btn btn-info">' . _('Eco') . '</button> ';
 }
 if (!empty($device->device_opt->{415})) {
Пример #3
0
function display_clim($info)
{
    $display = '';
    $display .= '<div class="info-widget foreground-widget">
					<button title="' . _('More') . '" onclick="HandlePopup(4, ' . $info->room_device_id . ')"
					        class="btn btn-greenleaf" type="button">
						<span class="fa fa-plus md"></span>
					</button>
				</div>
				<h3 class="title foreground-widget">' . $info->name . '</h3>';
    if (!empty($info->device_opt->{12})) {
        $display .= display_OnOff($info);
    }
    if (!empty($info->device_opt->{400}) || !empty($info->device_opt->{401}) || !empty($info->device_opt->{402}) || !empty($info->device_opt->{403}) || !empty($info->device_opt->{404})) {
        $display .= '<div class="center foreground-widget">';
    }
    if (!empty($info->device_opt->{400})) {
        $display .= '<button onclick="changeSpeedFan(' . $info->room_device_id . ', 1, 400)" class="btn btn-info">' . _('0') . '</button> ';
    }
    if (!empty($info->device_opt->{401})) {
        $display .= '<button onclick="changeSpeedFan(' . $info->room_device_id . ', 1, 401)" class="btn btn-info">' . _('1') . '</button> ';
    }
    if (!empty($info->device_opt->{402})) {
        $display .= '<button onclick="changeSpeedFan(' . $info->room_device_id . ', 1, 402)" class="btn btn-info">' . _('2') . '</button> ';
    }
    if (!empty($info->device_opt->{403})) {
        $display .= '<button onclick="changeSpeedFan(' . $info->room_device_id . ', 1, 403)" class="btn btn-info">' . _('3') . '</button> ';
    }
    if (!empty($info->device_opt->{404})) {
        $display .= '<button onclick="changeSpeedFan(' . $info->room_device_id . ', 1, 404)" class="btn btn-info">' . _('4') . '</button> ';
    }
    if (!empty($info->device_opt->{400}) || !empty($info->device_opt->{401}) || !empty($info->device_opt->{402}) || !empty($info->device_opt->{403}) || !empty($info->device_opt->{404})) {
        $display .= '</div><br/>';
    }
    if (!empty($info->device_opt->{388})) {
        $display .= display_minusplus($info);
    }
    return $display;
}