Merge branch 'master' of github.com:crunchbutton/crunchbutton
This commit is contained in:
commit
3e62c945bc
@ -25,7 +25,7 @@ class Controller_home extends Crunchbutton_Controller_Account {
|
||||
|
||||
$justMineOrders = ( c::db()->escape( c::getPagePiece( 0 ) ) == 'mine' );
|
||||
|
||||
$hours = c::getPagePiece( 1 ) ? c::getPagePiece( 1 ) : 24;
|
||||
$hours = c::getPagePiece( 1 ) ? c::getPagePiece( 1 ) : 12;
|
||||
|
||||
$orders = Order::deliveryOrders( $hours, ( c::db()->escape( c::getPagePiece( 0 ) ) == 'all' ) );
|
||||
|
||||
|
||||
@ -717,7 +717,7 @@ class Crunchbutton_Order extends Cana_Table {
|
||||
|
||||
$where .= ' AND o.delivery_service = 1 ';
|
||||
$where .= ' AND date > DATE_SUB( NOW(), INTERVAL ' . $interval . ' )';
|
||||
$query = 'SELECT DISTINCT( o.id_order ) id, o.* FROM `order` o ' . $where . ' ORDER BY o.id_order DESC LIMIT 30';
|
||||
$query = 'SELECT DISTINCT( o.id_order ) id, o.* FROM `order` o ' . $where . ' ORDER BY o.id_order';
|
||||
return Order::q( $query );
|
||||
}
|
||||
|
||||
|
||||
@ -45,6 +45,13 @@ input[type="submit"]::-moz-focus-inner, input[type="button"]::-moz-focus-inner,
|
||||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
.show-more{
|
||||
font-size: 1.5em;
|
||||
background: #F5F5F5;
|
||||
}
|
||||
.show-more a{
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.control {
|
||||
background-image: -moz-linear-gradient( 90deg, rgb(203,203,203) 0%, rgb(232,232,232) 100%);
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
<div class="control top-bar">
|
||||
<div class="wrap order-status-init">
|
||||
<div class="status-control control-accept-reject">
|
||||
@ -500,4 +500,11 @@
|
||||
|
||||
} );
|
||||
|
||||
</script>
|
||||
</script>
|
||||
<br/>
|
||||
<br/>
|
||||
<div>
|
||||
<div class="wrap show-more">
|
||||
<b><a href="/">Show more orders</a></b>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
x
Reference in New Issue
Block a user