diff options
Diffstat (limited to 'include/contacts-overview.php')
-rw-r--r-- | include/contacts-overview.php | 10 |
1 files changed, 6 insertions, 4 deletions
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/> |