Exemple #1
0
</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&amp;action=list">' . $LANG['reset_view'] . '</a>';
}
echo '</div>';
if ($p['results']) {
    echo '<form action="?route=stores.php&amp;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;">

  <img src="' . \query\main::store_avatar($item->store_img) . '" alt="" style="width: 80px;" />

  <div class="info-div">

  <h2>' . (!empty($item->country) ? '<img src="../' . LBDIR . '/iptocountry/flags/' . strtolower($item->country) . '.png" alt="' . $item->country_full . '" title="' . $item->country_full . '" /> ' : '') . '<span style="color: ' . (!empty($item->user) ? '#990099' : '#003366') . ';" title="' . $item->browser . '">' . $item->IP . (!empty($item->user) && ($user = \query\main::user_infos($item->user)) ? ' / ' . $user->name : '') . '</span>
  <span class="fright date">' . date('Y.m.d, ' . (\query\main::get_option('hour_format') == 12 ? 'g:i A' : 'G:i'), strtotime($item->date)) . '</span></h2>
  <a href="?route=clicks.php&amp;store=' . $item->storeID . '">' . $item->store_name . '</a> ';
        if (!empty($item->couponID) && empty($item->productID)) {
            echo '(' . $LANG['clicksr_couponid'] . ': <a href="?route=clicks.php&amp;coupon=' . $item->couponID . '">' . $item->couponID . '</a>)';
        } else {
            if (empty($item->couponID) && !empty($item->productID)) {