Ejemplo n.º 1
0
                echo '<div class="bulk_options">';
                if ($ab_del) {
                    echo '<button class="btn" name="delete" data-delete-msg="' . $LANG['delete_msg'] . '">' . $LANG['delete_all'] . '</button> ';
                }
                if ($ab_edt) {
                    echo $LANG['action'] . ':
    <select name="action">';
                    foreach (array('read' => $LANG['read'], 'unread' => $LANG['unread']) as $k => $v) {
                        echo '<option value="' . $k . '">' . $v . '</option>';
                    }
                    echo '</select>
    <button class="btn" name="set_action">' . $LANG['set_all'] . '</button>';
                }
                echo '</div>';
            }
            foreach (admin_query::while_suggestions(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;">

  <div style="display: table-cell; content: \' \'; width:10px;"></div>

  <div class="info-div">

  <h2>' . ($item->read ? '<span class="msg-error">' . $LANG['read'] . '</span> ' : '<span class="msg-success">' . $LANG['unread'] . '</span> ') . $item->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">' . template::suggestion_intent($item->type) . '</div>

  </div></div>