Created
January 30, 2019 15:12
-
-
Save rafhaelhp/dc7ce1506157499e1d5cab34b2f8ad50 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="box box50"> | |
<div class="panel_header alert"> | |
<h2 class="icon-cart">ÚLTIMOS PEDIDOS MARKETPLACE:</h2> | |
</div> | |
<div class="panel dashboard_orders"> | |
<?php | |
$Read->ExeRead(DB_SKYHUB_ORDERS, "WHERE id IS NOT NULL ORDER BY id DESC LIMIT 4"); | |
if (!$Read->getResult()): | |
echo Erro("<span class='icon-info al_center'>Ainda não existem pedidos realizados através do Marketplace!</span>", E_USER_NOTICE); | |
else: | |
foreach ($Read->getResult() as $Order): | |
extract($Order); | |
echo "<p class='order'><span><a title='Detalhes do pedido' href='dashboard.php?wc=skyhub/order&id={$order_id}'>#" . str_pad($order_id, 6, 0, 0) . "</a></span><span>" . date("d/m/Y", strtotime($order_date)) . "</span><span>R$ " . number_format($order_total_ordered, '2', ',', '.') . "</span><span>" . getSkyhubOrderStatus($order_status) . "</span></p>"; | |
endforeach; | |
endif; | |
?> | |
<div class="clear"></div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment