Example #1
0
                        <h3>Please Select Market</h3>
                        <form action="product.php?p=<?php 
        echo $product->product_id;
        ?>
" method="post">
                        <?php 
        $markets = $product->getMarkets();
        foreach ($markets as $market) {
            ?>
                        <div class="market_pr" >
                        <div class="market_name"><?php 
            echo $market->market_name;
            ?>
</div>
                        <div class="price">Rs. <?php 
            echo $product->getMarketPrice($market->market_id);
            ?>
</div>
                        <br>
                        <div class="details">Details : <?php 
            echo $market->market_details;
            ?>
</div><br>
                        <input type="hidden" id="" class="hidden_fld" name="market_<?php 
            echo $market->market_id;
            ?>
" value="-1"/>
<br>
<br>                        
                        </div>
                        	
Example #2
0
    ?>
<br><br><br>
<form action="index.php?products=<?php 
    echo $product->product_id;
    ?>
" method="post">    

<div class="CSSTableGenerator" ><table border="0" >
    <tr>
        <td>Market Name</td>
        <td>Market Details</td>
        <td>product price in the market</td>
    </tr>    
<?php 
    foreach ($collection as $market) {
        $product_market_price = $product->getMarketPrice($market->market_id);
        ?>
    <tr>
        <td><?php 
        echo $market->market_name;
        ?>
</td>
        <td><?php 
        echo $market->market_details;
        ?>
</td>
        <td style="padding:0px">
            <input type="text" name="price_<?php 
        echo $market->market_id;
        ?>
" value="<?php