Exemple #1
0
	<table cellpadding="2" cellspacing="0" id="product_sku_box">
	<tbody id="product_sku_tbody">
	<tr class="bar"><td>SKU</td><td>Description</td><td>Sort</td></tr>
	<?php 
        $start = 1;
        if (isset($moddb) && !isset($error)) {
            $tempdb->query("select product_option.*, if(sort=0,1,0) as zero from product_option where product = '" . $moddb->result("id") . "' order by zero asc, sort asc, sku");
            while ($tempdb->loop()) {
                ?>
	<tr<?php 
                if ($start % 2) {
                    print " class=\"shade\"";
                }
                ?>
><td><input type="hidden" name="option_<?php 
                echo $tempdb->currentrow() + 1;
                ?>
" value="<?php 
                echo $tempdb->result("id");
                ?>
"><input type="text" size="12" name="sku_<?php 
                echo $tempdb->currentrow() + 1;
                ?>
" value="<?php 
                echo $tempdb->result("sku");
                ?>
"></td><td><input type="text" size="35" name="description_<?php 
                echo $tempdb->currentrow() + 1;
                ?>
" value="<?php 
                echo $tempdb->result("description");
Exemple #2
0
	<link rel="stylesheet" type="text/css" href="style.css">
</head>

<body>
<?php 
include "header.inc";
$db = new dbi();
$db->query("select * from ad_track order by timestamp desc limit 0,25");
?>
<table width="98%" align="center" cellpadding="3" cellspacing="0">
<tr class="bar"><td>Date/Time</td><td>Campaign</td><td>IP/HOST</td></tr>
<?php 
while ($db->loop()) {
    ?>
<tr bgcolor="#<?php 
    echo $db->currentrow() % 2 ? "DDDDDD" : "FFFFFF";
    ?>
"><td valign="top"><?php 
    echo date("n/d/Y", strtotime($db->result("timestamp")));
    ?>
 <?php 
    echo date("h:i a", strtotime($db->result("timestamp")));
    ?>
</td><td style="font-weight:bold;"><?php 
    echo $db->result("campaign");
    ?>
</td><td><?php 
    echo gethostbyaddr($db->result("ip"));
    ?>
</td></tr>
<tr bgcolor="#<?php