Beispiel #1
0
<?php

echo '<div class="page-toolbar">
' . sprintf($LANG['first_msg_v'], VERSION, \query\main::get_option('theme')) . ' <span class="right-text">' . $LANG['server_time'] . ': ' . date('Y.m.d, ' . (\query\main::get_option('hour_format') == 12 ? 'g:i A' : 'G:i')) . '</span>';
echo '</div>';
echo '<div class="form-table">

<div class="el-two">';
$alerts = array();
if (($a_suggs = admin_query::suggestions(array('show' => 'notread'))) > 0 && ab_to(array('suggestions' => 'view'))) {
    $alerts[] = '<a href="?route=suggestions.php&amp;action=list&amp;view=notread">' . sprintf($LANG['alerts_suggestions'], $a_suggs) . '</a>';
}
if (($a_rews = \query\main::reviews(array('show' => 'notvalid'))) > 0 && ab_to(array('reviews' => 'view'))) {
    $alerts[] = '<a href="?route=reviews.php&amp;action=list&amp;view=notvalid">' . sprintf($LANG['alerts_reviews'], $a_rews) . '</a>';
}
if (($a_clmreqs = \query\main::rewards_reqs(array('show' => 'notvalid'))) > 0 && ab_to(array('claim_reqs' => 'view'))) {
    $alerts[] = '<a href="?route=rewards.php&amp;action=requests&amp;view=notvalid">' . sprintf($LANG['alerts_rewardreq'], $a_clmreqs) . '</a>';
}
if (($a_coupons = \query\main::coupons(array('show' => 'notvisible'))) > 0 && ab_to(array('coupons' => 'view'))) {
    $alerts[] = '<a href="?route=coupons.php&amp;action=list&amp;view=notvisible">' . sprintf($LANG['alerts_unpubcoupons'], $a_coupons) . '</a>';
}
if (($a_products = \query\main::products(array('show' => 'notvisible'))) > 0 && ab_to(array('products' => 'view'))) {
    $alerts[] = '<a href="?route=products.php&amp;action=list&amp;view=notvisible">' . sprintf($LANG['alerts_unpubproducts'], $a_products) . '</a>';
}
if (($a_stores = \query\main::stores(array('show' => 'notvisible'))) > 0 && ab_to(array('claim_reqs' => 'view'))) {
    $alerts[] = '<a href="?route=stores.php&amp;action=list&amp;view=notvisible">' . sprintf($LANG['alerts_unpubstores'], $a_stores) . '</a>';
}
if (($a_payments = \query\payments::invoices(array('show' => 'undeliveredpayments'))) > 0 && ab_to(array('payments' => 'view'))) {
    $alerts[] = '<a href="?route=payments.php&amp;action=list&amp;view=undeliveredpayments">' . sprintf($LANG['alerts_undelipay'], $a_payments) . '</a>';
}
if (!empty($alerts)) {