From 10f97a734823a1d081b6962f3e8f78c1647cb92b Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Wed, 11 Sep 2013 20:43:44 +0200 Subject: [PATCH] update faker, insert plenty of customers --- install/faker.php | 19 +++++++++++++++++++ templates/admin/default/customers.html | 3 ++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/install/faker.php b/install/faker.php index 5bb21d4fa..ae608bf7d 100755 --- a/install/faker.php +++ b/install/faker.php @@ -156,6 +156,25 @@ try { "azerty" ); + for($i = 0; $i < 50; $i++) { + $customer = new Thelia\Model\Customer(); + $customer->createOrUpdate( + 1, + "thelia".$i, + "thelia".$i, + "5 rue rochon", + "", + "", + "0102030405", + "0601020304", + "63000", + "clermont-ferrand", + 64, + sprintf("test%d@thelia.net", $i), + "azerty".$i + ); + } + //features and features_av $featureList = array(); for($i=0; $i<4; $i++) { diff --git a/templates/admin/default/customers.html b/templates/admin/default/customers.html index a43c59131..c0fe81973 100644 --- a/templates/admin/default/customers.html +++ b/templates/admin/default/customers.html @@ -128,12 +128,13 @@
  • {$PAGE}
  • {/if} + + {/pageloop} {if $PAGE == $LAST && $LAST != $CURRENT}
  • »
  • {else}
  • »
  • {/if} - {/pageloop}