コード例 #1
0
ファイル: show_search.php プロジェクト: 0xBADBEEF/cable-site
function showSearch()
{
    printStyle();
    generateGoods();
    showSearchPrintOnLoad();
    formText();
    printGoodsTable();
}
コード例 #2
0
ファイル: show_basket.php プロジェクト: 0xBADBEEF/cable-site
function showBasket()
{
    printStyle();
    generateGoods();
    showBasketPrintOnLoad();
    printGoodsTable();
    printTotal();
    printCustomerData();
}
コード例 #3
0
ファイル: admin.php プロジェクト: henrikvoss/Webprogrammering
                ?>
<h2>Styles with <?php 
                echo $_REQUEST["price"];
                ?>
 price</h2><?php 
                /* Liste aller varer for en priskategori: */
                foreach ($_SESSION["style"] as $key => $style) {
                    if ($gtPrice <= $style->getPrice() && $style->getPrice() <= $ltPrice) {
                        printStyle($style, $key);
                    }
                }
            } else {
                ?>
<h2>All styles</h2><?php 
                /* Liste alle varer: */
                foreach ($_SESSION["style"] as $key => $style) {
                    printStyle($style, $key);
                }
            }
        }
    }
}
?>

	</section><!-- End text class section. -->
	<?php 
printFooter();
?>
</body>
</html>
コード例 #4
0
ファイル: functions.php プロジェクト: vallejos/samples
function addDevicesToVariant($xml, $models)
{
    $xmlDevice = "";
    echo "Trying to match models...<br/>";
    foreach ($models as $i => $modelId) {
        printStyle("matching modelId={$modelId} with drutt list...");
        $migModel = getSuggestedDruttModelById($modelId);
        if ($migModel === FALSE) {
            printStyle("Not found: modelId=<b>{$modelId}</b>", "notice");
        } else {
            printStyle("Found: migModel={$migModel}", "ok");
            $xmlDevice .= "\t<device>{$migModel}</device>\n";
        }
    }
    if ($xmlDevice == "") {
        echo "- No devices found!<br/>";
    }
    return $xmlDevice;
}
コード例 #5
0
ファイル: pagestyle.php プロジェクト: Gawdess/Protean
    }
    if (isset($style['bannersubtitle_align'])) {
        printStyle('text-align: ', ';', $style['bannersubtitle_align']);
    }
    ?>
}
#post-banner-<?php 
    echo $id;
    ?>
 .protean_banner_fill span{
<?php 
    if (isset($style['bannerbutton_y'])) {
        printStyle('top: ', 'px;', $style['bannerbutton_y']);
    }
    if (isset($style['bannerbutton_x'])) {
        printStyle('left: ', 'px;', $style['bannerbutton_x']);
    }
    if (isset($style['bannerbutton_y']) && $style['bannerbutton_y'] != '' && (isset($style['bannerbutton_x']) && $style['bannerbutton_x'] != '')) {
        ?>
	right: auto;
	bottom: auto;
<?php 
    }
    ?>
}
<?php 
}
function printStyle($before, $after, $style, $fallback = null, $isFont = false)
{
    if ($style) {
        if ($isFont) {