<?php

//$debug  = true;
require_once 'request-handler-function-definition.php';
$debug = FALSE;
$url = "http://google.com";
$url = "http://www.e-control.at/portal/pls/portal/ec_tarif.tk_webservice.GetWebService?p_Type=GetDocument&p_Var1=34";
$url = 'http://www.e-control.at/portal/pls/portal/ec_tarif.tk_webservice.GetWebService?p_Type=GetDocument&p_Var1=1004038&p_debug=false';
//$url = "http://ecx.images-amazon.com/images/I/31gmpDYXvbL.jpg";
request_handler_get($url, "imagefile", $debug);
//echo '<img src="' . request_handler_get( $url , "url", $debug ) . '" />';
示例#2
0
 if ($pos == TRUE) {
     $infotext = '<div class="greendetail vtip resultdetailsrow" title="' . $infotextraw . '"><img src="css/images/info-icon.png" class="resultdetailsrowimg"> ' . $infotextraw . '</div>';
 }
 if (strlen($AllePartner[$item->supplier->id]['hotline']) > 1) {
     $criterionhotline = '<div class="vtip reddetail resultdetailsrow" title="<b>' . $AllePartner[$item->supplier->id]['hotline'] . '</b> "><img src="/sites/all/modules/custom_seg_rechner_helper/econtrol/css/images/info-icon.png" class="resultdetailsrowimg"> <b>' . $AllePartner[$item->supplier->id]['hotline'] . '</b> </div>';
 }
 echo "<div class='tariff-row {$item->ranking}' class='{$item->supplier->id}' pid='{$item->product->id}' id='{$item->product->id}'>";
 //echo "<td class='ranking'>{$r}</td>";
 echo '<div class="compare">';
 //echo "<input type='checkbox' name='compare' class='vtip' title='W&auml;hlen Sie 2 Anbieter um diese zu vergleichen' value='{$item->product->id}'/>";
 if (!$logos[$item->supplier->id]) {
     echo "<span class='sName " . $item->supplier->id . "'>{$item->supplier->name}</span>";
 } elseif ($item->supplier->id == 16 or $item->supplier->id == 6 or $item->supplier->id == 1011983 or $item->supplier->id == 114 or $item->supplier->id == 1012022 or $item->supplier->id == 1006215 or $item->supplier->id == 1012062) {
     echo "<span class='sName " . $item->supplier->id . "'>{$item->supplier->name}</span>";
 } else {
     echo "<img class='vtip " . $item->supplier->id . "' title='{$item->supplier->name}' src='" . request_handler_get("http://www.e-control.at/portal/pls/portal/ec_tarif.tk_webservice.GetWebService?p_Type=GetDocument&p_Var1=" . $logos[$item->supplier->id] . "&p_debug=false") . "' />";
 }
 print $eco;
 echo '</div>';
 echo "<div  valign='top' class='supplier" . ($item->supplier->localPlayer ? " localplayer" : "") . "'> {$antragnichtmoeglich}\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<!-- <div class='vtip resultdetailsrow' title='<b>Tarif</b>: {$item->product->name}'><img src='/sites/all/modules/custom_seg_rechner_helper/econtrol/css/images/info-icon.png' class='resultdetailsrowimg'> Tarif: {$item->product->name}</div> -->\n\t\t\t\t{$BindingPeriod}\n\t\t\t\t{$infotext}\n\t\t\t\t{$criterionhotline}\n\n\t\t\t\t\n\t\t\t\t";
 /*
 
 print '<div id="energy-bar" style="float:left;">
                   <table style="border-collapse:collapse; width:100%; padding:0;">
                     <tr>';
                   if($item->supplier->labeling->labelingComponentGroup!=null) {
                     foreach($item->supplier->labeling->labelingComponentGroup as $edt) { if($edt->total > 0) {
             print '<td style="background-image:url(/sites/all/modules/custom_seg_rechner_helper/econtrol/css/images/etc'. $edt->id .'.gif)" width="' . $edt->total .'%" class="etype" height="6"/>';
                   } }}
                     print '</tr>
                   </table>
示例#3
0
        echo $kwh;
        ?>
&nbsp;kWh
            </td>
            <?php 
        foreach ($tariffs as $tariff) {
            $supplier = $tariff->supplier;
            ?>


              <td id="tariff-provider" width="200" style="text-align:right;">
                <?php 
            if ($supplier->logo->id) {
                ?>
                  <img id="tariff-logo" alt="Logo" src="<?php 
                echo request_handler_get('http://www.e-control.at/portal/pls/portal/ec_tarif.tk_webservice.GetWebService?p_Type=GetDocument&p_Var1=' . $supplier->logo->id . '&p_debug=false');
                ?>
" border="0"
                       style="display:inline-block;padding: 5px 0px;"><br>
                <?php 
            }
            ?>

                <?php 
            echo $supplier->name;
            ?>
</td>
            <?php 
        }
        ?>




<?php 
$i = 1;
//echo getcwd();
$tariff = '


<link rel="stylesheet" href="css/styles.css" type="text/css" media="screen" />
<div id="tariff-details-content">

<div id="tariff-box" class="tariff-content">
	<img id="tariff-logo" alt="Logo" src="' . request_handler_get('http://www.e-control.at/portal/pls/portal/ec_tarif.tk_webservice.GetWebService?p_Type=GetDocument&p_Var1=' . $supplier->logo->id . '&p_debug=false') . '" border="0" style="padding: 5px 0px;">
	<table cellpadding="1" cellspacing="0">
	<tbody>
		<tr>
			<td width="65">Anbieter:</td>
			<td id="tariff-provider" width="200">' . $supplier->name . '</td>
			<td width="140"></td>
			<td><b>Ihre Angaben</b></td>
			<td></td>
		</tr>
		<tr>
			<td><b>Tarif:</b></td>
			<td><b id="tariff-product">' . $product->name . '</b></td>
			<td></td><td>Postleitzahl:</td>
			<td id="tariff-postcode">' . $postcode . '</td>
		</tr>
示例#5
0
$result = preg_replace('!\)\),\s*(\n|$)!', '),', $result);
$result = preg_replace('!\)\)\s*(\n|$)!', ')', $result);
$result = eval('return '  . $result . ';');
*/
$supplier = $result->supplier;
$kwh = $_SESSION['current-tariff-kwh'];
$postcode = $_SESSION['current-tariff-postcode'];
$productname = $_SESSION['current-tariff-name'];
$productbindingperiod = $_SESSION['current-tariff-binding'];
$productcancellationperiod = $_SESSION['current-tariff-cancellation'];
$energytype = $_SESSION['current-tariff-et'];
$product = $result->product;
$cost = $product->costs->priceComponentGroup;
$prices = $product->calculationComponents;
$tarifflogo = 'http://www.e-control.at/portal/pls/portal/ec_tarif.tk_webservice.GetWebService?p_Type=GetDocument&p_Var1=' . $supplier->logo->id . '&p_debug=false';
$tarifflogo = request_handler_get($tarifflogo, 'url');
//$tarifflogo = "http://www.e-control.at/portal/pls/portal/ec_tarif.tk_webservice.GetWebService?p_Type=GetDocument&p_Var1=34";
/* sourced from settings.php:
$site_owner_postal_address
$tel
$fax
$email_angebot
$email_office
$base_absolute_path
*/
// we have $o - the order obj
if (!function_exists("__custom_contract_printing_replace_newline_with_br")) {
    function __custom_contract_printing_replace_newline_with_br($str)
    {
        return str_replace("\n", "<br />\n", $str);
    }