Esempio n. 1
0
function payment_plans($category = array())
{
    return \query\payments::while_plans($category);
}
Esempio n. 2
0
<li class="head"><input type="checkbox" checkall /> ' . $LANG['name'] . '</li>

<div class="bulk_options">

  <button class="btn" name="delete" data-delete-msg="' . $LANG['delete_msg'] . '">' . $LANG['delete_all'] . '</button> ';
            echo $LANG['action'] . ': ';
            echo '<select name="action">';
            foreach (array('publish' => $LANG['publish'], 'unpublish' => $LANG['unpublish']) as $k => $v) {
                echo '<option value="' . $k . '">' . $v . '</option>';
            }
            echo '</select>
  <button class="btn" name="set_action">' . $LANG['set_all'] . '</button>

</div>';
            foreach (\query\payments::while_plans(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::payment_plan_avatar($item->image) . '" alt="" />
  <div class="info-div"><h2>' . ($item->visible ? '<span class="msg-success">' . $LANG['published'] . '</span>' : '<span class="msg-error">' . $LANG['notpublished'] . '</span>') . ' ' . $item->name . ' (' . $item->price_format . ')</h2>
  ' . $LANG['form_credits'] . ': <b>' . $item->credits . '</b>
  </div></div>

  <div style="clear:both;"></div>

  <div class="options">
  <a href="?route=payments.php&amp;action=plan_edit&amp;id=' . $item->ID . '">' . $LANG['edit'] . '</a>
  <a href="' . \site\utils::update_uri('', array('type' => !$item->visible ? 'publish' : 'unpublish', 'id' => $item->ID, 'token' => $csrf)) . '">' . (!$item->visible ? $LANG['publish'] : $LANG['unpublish']) . '</a>