echo "<form method='post' action='" . $_SERVER['PHP_SELF'] . "'>";
        ?>
		<input type="hidden" name="selected_pixels" value="<?php 
        echo $_REQUEST['selected_pixels'];
        ?>
">
		<input type="hidden" name="order_id" value="<?php 
        echo $_REQUEST['order_id'];
        ?>
">
		<input type="hidden" name="BID" value="<?php 
        echo $_REQUEST['BID'];
        ?>
">
		<?php 
        display_package_options_table($BID, $_REQUEST['pack'], true);
        echo "<input class='big_button' type='button' value='" . $label['advertiser_pack_prev_button'] . "' onclick='window.location=\"write_ad.php?&BID={$BID}&ad_id=" . $order_row['ad_id'] . "\"' >";
        echo "&nbsp; <input class='big_button' type='submit' value='" . $label['advertiser_pack_select_button'] . "'>";
        echo "<form>";
        if ($cannot_get_package) {
            $sql = "SELECT * from packages where package_id='" . $selected_pack . "'";
            $p_result = mysql_query($sql) or die(mysql_error());
            $p_row = mysql_fetch_array($p_result);
            $p_max_ord = $p_row['max_orders'];
            $label['pack_cannot_select'] = str_replace("%MAX_ORDERS%", $p_row['max_orders'], $label['pack_cannot_select']);
            echo "<p>" . $label['pack_cannot_select'] . "</p>";
        }
    } else {
        display_order(session_id(), $BID);
        $sql = "select * from users where ID='" . $_SESSION['MDS_ID'] . "'";
        $result = mysql_query($sql) or die(mysql_error() . $sql);
示例#2
0
<p>
<?php 
    display_banner_selecton_form($BID, $_SESSION['MDS_order_id'], $res);
    ?>
</p>
<?php 
}
if ($order_exists) {
    echo "<p>" . $label['advertiser_order_not_confirmed'] . "</p>";
}
?>

<?php 
$has_packages = banner_get_packages($BID);
if ($has_packages) {
    display_package_options_table($BID, '', false);
} else {
    display_price_table($BID);
}
?>
<div class="fancy_heading" width="85%"><?php 
echo $label['advertiser_select_pixels_head'];
?>
</div>
<?php 
$label['advertiser_select_instructions2'] = str_replace('%PIXEL_C%', BLK_HEIGHT * BLK_WIDTH, $label['advertiser_select_instructions2']);
$label['advertiser_select_instructions2'] = str_replace('%BLK_HEIGHT%', BLK_HEIGHT, $label['advertiser_select_instructions2']);
$label['advertiser_select_instructions2'] = str_replace('%BLK_WIDTH%', BLK_WIDTH, $label['advertiser_select_instructions2']);
echo $label['advertiser_select_instructions2'];
?>