Example #1
0
            ?>
									<?php 
            $ordlerLevels = get_nested();
            ?>
									<ul class="accordion">
									<li><a href="#<?php 
            echo $dealer->user_name;
            ?>
"><?php 
            echo $dealer->user_id == isLogin() ? "SELF: " . $dealer->user_fullname : "DEALER: " . $dealer->user_fullname;
            ?>
<span class ="pull-right"> Rs <?php 
            echo getOrderSum();
            ?>
</span><span class ="pull-right"> <?php 
            echo getOrderSum(null, 'qty') . " pcs, ";
            ?>
</span></a>
									<ul>
									<?php 
            foreach ($ordlerLevels as $key => $brand) {
                ?>
										<?php 
                if (in_array($brand['brand_id'], $ordered_ids['brand_id'])) {
                    ?>
											<li><a href="#<?php 
                    echo $brand['brand_slug'];
                    ?>
"> <span class="liTitle"><?php 
                    echo ucfirst($brand['brand_name']);
                    ?>
Example #2
0
            ?>
										<?php 
        }
        ?>
									<hr>
									<?php 
        if ($count == 0) {
            ?>
										<p>Sorry! there are no orders have been made.</p>
									<?php 
        } else {
            ?>
	
									<?php 
            $alltotal = getOrderSum(null, null, TRUE, null);
            $allpieces = getOrderSum(null, 'qty', TRUE, null);
            ?>
									<div class="finalTotal">All Total: <span class ="pull-right"> Rs <?php 
            echo $alltotal ? $alltotal : '0';
            ?>
</span><span class ="pull-right"> <?php 
            echo $allpieces ? $allpieces . " pcs, " : '0' . " pcs, ";
            ?>
</span></div>

									<?php 
        }
        ?>
								<?php 
    }
    ?>
Example #3
0
                    <td>
                        <?php 
    echo $do['name'];
    ?>
                    </td>
                    <td>
                        <?php 
    echo $do['company'];
    ?>
                    </td>
                    <td>
                        <?php 
    echo $do['comment'];
    ?>
                    </td>
                    <td align="right">
                        <b><?php 
    echo number_format(getOrderSum($do["id"]), 2, '.', '');
    ?>
</b>
                    </td>
                </tr>
                <?php 
}
?>
            </table>
        </div>
    </div>
</body>
</html>
Example #4
0
        ?>
									<?php 
    }
    ?>
									<hr>
									<?php 
    if ($count == 0) {
        ?>
										<p>Sorry! there are no orders have been made.</p>
									<?php 
    } else {
        ?>
	
									<?php 
        $alltotal = getOrderSum(null, null, TRUE, isLogin());
        $allpieces = getOrderSum(null, 'qty', TRUE, isLogin());
        ?>
									<div class="finalTotal">All Total: <span class ="pull-right"> Rs <?php 
        echo $alltotal ? $alltotal : '0';
        ?>
</span><span class ="pull-right"> <?php 
        echo $allpieces ? $allpieces . " pcs |&nbsp;  " : '0' . " pcs |&nbsp;  ";
        ?>
</span></div>
									<?php 
    }
    ?>
								</div>
								<?php 
}
?>