function user_avatar($text) { return \query\main::user_avatar($text); }
foreach (array('claim' => $LANG['claim'], 'unclaim' => $LANG['unclaim']) as $k => $v) { echo '<option value="' . $k . '">' . $v . '</option>'; } echo '</select> <button class="btn" name="set_action">' . $LANG['set_all'] . '</button>'; } echo '</div>'; } foreach (\query\main::while_rewards_reqs(array_merge(array('orderby' => isset($_GET['orderby']) ? urldecode($_GET['orderby']) : 'date desc'), $options)) as $item) { $user = \query\main::user_infos($item->user); echo '<li> <input type="checkbox" name="id[' . $item->ID . ']" /> <div style="display: table;"> <img src="' . \query\main::user_avatar($user->avatar) . '" alt="" /> <div class="info-div"> <h2>' . ($item->claimed ? '<span class="msg-success">' . $LANG['claimed'] . '</span>' : '<span class="msg-error">' . $LANG['notclaimed'] . '</span>') . (empty($user->name) ? ' -' : ' <a href="?route=rewards.php&action=requests&user='******'">' . $user->name . '</a>') . ' <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> ' . ($item->reward_exists ? '<a href="?route=rewards.php&action=requests&reward=' . $item->reward . '">' . $item->name . '</a>' : $item->name) . ' / ' . $LANG['rewards_req_form_pused'] . ': <b>' . $item->points . '</b> </div></div> <div style="clear:both;"></div> <div class="options"> <a href="?route=rewards.php&action=view_rewardreq&id=' . $item->ID . '">' . $LANG['view'] . '</a>'; if ($ab_edt) {
<?php $json = array(); foreach (admin_query::while_chat_messages(array('max' => 5, 'orderby' => 'date DESC')) as $item) { $json[] = array('id' => $item->ID, 'avatar' => \query\main::user_avatar($item->user_avatar), 'name' => $item->user_name, 'text' => \site\utils::bbcodes($item->text), 'date' => $item->date, 'gfdate' => date('Y.m.d, ' . (\query\main::get_option('hour_format') == 12 ? 'g:i A' : 'G:i'), strtotime($item->date))); } echo json_encode($json);
echo $LANG['action'] . ': <select name="action">'; foreach (array('paid' => $LANG['paid'], 'unpaid' => $LANG['unpaid'], 'delivered' => $LANG['delivered'], 'undelivered' => $LANG['undelivered']) as $k => $v) { echo '<option value="' . $k . '">' . $v . '</option>'; } echo '</select> <button class="btn" name="set_action">' . $LANG['set_all'] . '</button>'; echo '</div>'; } foreach (\query\payments::while_invoices(array_merge(array('orderby' => isset($_GET['orderby']) ? urldecode($_GET['orderby']) : 'date desc'), $options)) as $item) { echo '<li> <input type="checkbox" name="id[' . $item->ID . ']" /> <div style="display: table;"> <img src="' . \query\main::user_avatar($item->user_avatar) . '" alt="" /> <div class="info-div"> <h2>' . ($item->paid ? '<span class="msg-success">' . $item->state . '</span>' : '<span class="msg-alert">' . $item->state . '</span>') . ' ' . $item->user_name . ' <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> <div class="info-bar">' . $LANG['form_amount'] . ': ' . $item->price_format . ' <span class="info"><span>' . $LANG['pmts_form_gateway'] . ': ' . $item->gateway . ' <br /> ' . $item->details . '</span></span> / ' . $LANG['pmts_form_delivered'] . ': ' . ($item->delivered ? '<span class="msg-success">' . $LANG['yes'] . '</span>' : '<span class="msg-error">' . $LANG['no'] . '</span>') . '</div> </div></div> <div style="clear:both;"></div> <div class="options"> <a href="?route=payments.php&action=invoice_view&id=' . $item->ID . '">' . $LANG['view'] . '</a>'; if ($ab_edt) {
<li><a href="//couponscms.com">CouponsCMS.com</a></li> </ul> <ul class="right-top"> <?php if (ab_to(array('mail' => 'send'))) { ?> <li><a href="?route=users.php&action=sendmail"></a></li> <?php } ?> <li><a href="<?php echo ab_to(array('users' => 'edit')) ? '?route=users.php&action=edit&id=' . $GLOBALS['me']->ID : '#'; ?> " class="avatar"><img src="<?php echo \query\main::user_avatar($GLOBALS['me']->Avatar); ?> " alt="" /> <?php echo $GLOBALS['me']->Name; ?> </a> <div class="profhov"><a href="?route=logout.php"><?php echo $LANG['logout']; ?> </a></div></li> </ul> </div> <?php $nav = array();