Beispiel #1
0
$consType = new consumptionType();
$consType->_ = $kwh;
//   KW/h
$consType->daytime = "h24";
$calParamCalc->consumption = $consType;
$calParam = new calculationParameterType();
$calParam->calculation = $calParamCalc;
$grReq->calculationparameter = $calParam;
$logos = array();
// Load supplier logos
$service = new GetListService("https://ecws.e-control.at/tkws/services/GetListService?wsdl", $options);
$req = new GetSupplierListRequest();
$req->authenticationToken = $token->authenticationToken;
$req->energyTypeId = $energyType;
$req->postcodeId = $postcodeId;
$resp = $service->GetSupplierList($req);
$arr = $resp->supplier;
foreach ($arr as $obj) {
    $logos[$obj->id] = $obj->logo->id;
}
// End logos
print '<script type="text/javascript" src="/sites/all/modules/custom_seg_rechner_helper/econtrol/js/vtip.js"></script>
';
print '<div class="topexplain">Gesamtpreis pro Jahr inkl. Netztarif, Steuern und Abgaben.</div> ';
function cmp($a, $b)
{
    if ($a->grossPrice == $b->grossPrice) {
        return 0;
    }
    return $a->grossPrice < $b->grossPrice ? -1 : 1;
}