diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/assignments-overview.php | 6 | ||||
-rw-r--r-- | include/clients-overview.php | 10 | ||||
-rw-r--r-- | include/contacts-overview.php | 10 |
3 files changed, 15 insertions, 11 deletions
diff --git a/include/assignments-overview.php b/include/assignments-overview.php index 4af041c..afb4389 100644 --- a/include/assignments-overview.php +++ b/include/assignments-overview.php @@ -22,11 +22,11 @@ <div class="panel panel-default"> <div class="panel-heading">Overview</div> <div class="panel-body table-responsive"> - <table class="table table-bordered table-striped mixitup" id="assignments-overview"> + <table class="table table-bordered table-striped mixitup" id="overview-assignments"> <thead> <tr> - <th class="mixitup-sort" data-sort="mixerOrderId:desc">#</th> - <th class="mixitup-sort" data-sort="mixerOrderOffer:desc">Offer</th> + <th class="mixitup-sort" data-sort="mixerOrderId:asc">#</th> + <th class="mixitup-sort" data-sort="mixerOrderOffer:asc">Offer</th> <th>Briefing</th> <th class="mixitup-sort" data-sort="mixerOrderTime:asc">Time</th> <th class="mixitup-sort" data-sort="mixerOrderPrice:asc">Price</th> diff --git a/include/clients-overview.php b/include/clients-overview.php index 523aeef..a238ab1 100644 --- a/include/clients-overview.php +++ b/include/clients-overview.php @@ -22,11 +22,11 @@ <div class="panel panel-default"> <div class="panel-heading">Overview</div> <div class="panel-body table-responsive"> - <table class="table table-bordered table-striped"> + <table class="table table-bordered table-striped mixitup" id="overview-clients"> <thead> <tr> - <th>#</th> - <th>Name</th> + <th class="mixitup-sort" data-sort="mixerOrderId:asc">#</th> + <th class="mixitup-sort" data-sort="mixerOrderName:asc">Name</th> <th>Tools</th> </tr> </thead> @@ -34,7 +34,9 @@ <?php $clients = BusinessAdmin::getClients($_pdo); foreach ($clients as $client) { - echo "<tr> + echo "<tr class='mix' + data-mixer-order-id='{$client->getId()}' + data-mixer-order-name='{$client->getName()}'> <td class='col-min-width'>{$client->getId()}</td> <td class='col-max-width'> <a href='#' class='editable' id='editable-client-{$client->getId()}-name' data-type='text' data-pk='{$client->getId()}' data-url='".constants::url_external."clients/edit' data-title='Enter new name'> diff --git a/include/contacts-overview.php b/include/contacts-overview.php index bad63ed..3fb1eb1 100644 --- a/include/contacts-overview.php +++ b/include/contacts-overview.php @@ -22,11 +22,11 @@ <div class="panel panel-default"> <div class="panel-heading">Overview</div> <div class="panel-body table-responsive"> - <table class="table table-bordered table-striped"> + <table class="table table-bordered table-striped mixitup" id="overview-contacts"> <thead> <tr> - <th>#</th> - <th>Name</th> + <th class="mixitup-sort" data-sort="mixerOrderId:asc">#</th> + <th class="mixitup-sort" data-sort="mixerOrderName:asc">Name</th> <th>Address</th> <th>Tools</th> </tr> @@ -35,7 +35,9 @@ <?php $contacts = BusinessAdmin::getContacts($_pdo); foreach ($contacts as $contact) { - echo "<tr> + echo "<tr class='mix' + data-mixer-order-id='{$contact->getId()}' + data-mixer-order-name='{$contact->getName()}'> <td class='col-min-width'>{$contact->getId()}</td> <td class='col-min-width'> <a href='#' class='editable' id='editable-contact-{$contact->getId()}-name' data-type='text' data-pk='{$contact->getId()}' data-url='".constants::url_external."contacts/edit'>{$contact->getName()}</a><br/> |