<button class="btn">' . $LANG['view'] . '</button> </form> <form action="#" method="GET" autocomplete="off"> <input type="hidden" name="route" value="clicks.php" />'; if (isset($_GET['orderby'])) { echo '<input type="hidden" name="orderby" value="' . htmlspecialchars($_GET['orderby']) . '" />'; } echo '<input type="search" name="search" value="' . (isset($_GET['search']) ? htmlspecialchars($_GET['search']) : '') . '" placeholder="' . $LANG['clicksr_search_input'] . '" /> <button class="btn">' . $LANG['search'] . '</button> </form> </div>'; $p = admin_query::have_clicks($options = array('per_page' => 10, 'store' => isset($_GET['store']) ? $_GET['store'] : '', 'coupon' => isset($_GET['coupon']) ? $_GET['coupon'] : '', 'product' => isset($_GET['product']) ? $_GET['product'] : '', 'search' => isset($_GET['search']) ? urldecode($_GET['search']) : '')); echo '<div class="results">' . ((int) $p['results'] === 1 ? sprintf($LANG['result'], $p['results']) : sprintf($LANG['results'], $p['results'])); if (!empty($_GET['coupon']) || !empty($_GET['product']) || !empty($_GET['search'])) { echo ' / <a href="?route=clicks.php&action=list">' . $LANG['reset_view'] . '</a>'; } echo '</div>'; if ($p['results']) { echo '<form action="?route=stores.php&action=list" method="POST"> <ul class="elements-list">'; $ab_edtu = ab_to(array('users' => 'edit')); $ab_edts = ab_to(array('stores' => 'edit')); foreach (admin_query::while_clicks(array_merge(array('orderby' => isset($_GET['orderby']) ? urldecode($_GET['orderby']) : 'date desc'), $options)) as $item) { echo '<li> <div style="display: table;">