Example #1
0
 public function orderAction()
 {
     $field = get_request('field');
     if (get_claxx('field') != $field) {
         set_claxx('field', $field);
     } else {
         if (get_claxx('seq') != 'ASC') {
             set_claxx('seq', 'ASC');
         } else {
             set_claxx('seq', 'DESC');
         }
     }
     $this->_redirect(get_session('contr') . '/index?page=' . get_claxx('page'));
 }
Example #2
0
function put_search($new_link, $index, $first, $previous, $next)
{
    if (HAS_TAGS and get_session('contr') == 'users') {
        $s_tags = NL . '<div style="position:relative; top:18px; left:0px;">' . NL . '<input type="text" id="s_tags" name="s_tags" value="' . get_claxx('s_tags') . '" onchange="submit()" size="30" />' . NL . '<span style="position:relative; top:-20px; left:-15px;">Tags:</span></div>';
    } else {
        $s_tags = '';
    }
    return '' . NL . '<div class=left  style="margin-top:5px;">' . NL . $new_link . NL . '</div>' . NL . '<div class=right style="margin-top:10px; width:280px;">' . NL . '<form action="' . INDEX . get_session('contr') . '/index" method="post">' . NL . '<input type="text" id="search" name="search" value="' . get_claxx('search') . '" onchange="submit()" size="30" />' . NL . '<img align="absbottom" alt="search.png" border="0" src="' . SERVER_NAME . IMAGES . 'search.png" />' . $s_tags . NL . '</form>' . NL . '</div>' . NL . '<div class=right>' . NL . '<div class=left   style="margin-top:5px; width:220px;">' . NL . link_to_button('First', $first) . NL . link_to_button('Previous', $previous) . NL . link_to_button('Next', $next) . NL . ' &nbsp; ' . $index . NL . '</div>' . NL . '</div>' . NL . '<div class=clear></div>' . NL . '<script>document.getElementById( "search" ).focus() </script>';
}