diff options
Diffstat (limited to 'include/offers-overview.php')
-rw-r--r-- | include/offers-overview.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/offers-overview.php b/include/offers-overview.php index 090a036..09b8cfd 100644 --- a/include/offers-overview.php +++ b/include/offers-overview.php @@ -37,7 +37,7 @@ require_once(__DIR__ . '/../login.php'); </thead> <tbody> <?php - $offers = BusinessAdmin::getOffers($_pdo); + $offers = Offer::search($_pdo); foreach ($offers as $offer) { $invoiceFile = $offer->getInvoiceFile(); @@ -122,7 +122,7 @@ require_once(__DIR__ . '/../login.php'); <label>Contact:</label> <select name="contactId" class="form-control"> <?php - foreach (BusinessAdmin::getContacts($_pdo) as $contact) { + foreach (Contact::search($_pdo) as $contact) { echo "<option value='{$contact->id}'>{$contact->name} ({$contact->getClient()->name})</option>"; } ?> |