/ Published in: PHP

This is a formatted HTML output of the code for my cost minimization algo for USPS flat rate boxes. Marisolio.com
Expand |
Embed | Plain Text
<?php require_once("./include/MinimizeUSPSCost.php"); echo '<table align="center" border="1" cellspacing="1" cellpadding="3" rules="all">'; echo '<tr><td style="color:#3C3B1B;font-weight:bold;">Box #</td><td style="color:#3C3B1B;font-weight:bold;">Size</td><td style="color:#3C3B1B;font-weight:bold;"># of 750 ml bottles</td><td style="color:#3C3B1B;font-weight:bold;"># of 375 ml bottles</td><td style="color:#3C3B1B;font-weight:bold;"># of 250 ml bottles</td></tr>'; $boxCount = 1; foreach ( $boxSet[0] as $myBox ) { $boxSize = "Large"; if ( $myBox[3] == 10.7 ) { $boxSize = "Medium"; } $boxCount++; } echo '<tr><td colspan="5" style="color:#3C3B1B;" align="center"><b>Total Shipping Cost = ' . money_format( '%i', $boxSet[1] ) . '</b></td></tr></table>'; } ?>
You need to login to post a comment.