Example #1
0
     saveContact($task);
     break;
 case 'remove':
     removeContacts($cid);
     break;
 case 'publish':
     changeContact($cid, 1);
     break;
 case 'unpublish':
     changeContact($cid, 0);
     break;
 case 'orderup':
     orderContacts($cid[0], -1);
     break;
 case 'orderdown':
     orderContacts($cid[0], 1);
     break;
 case 'accesspublic':
     changeAccess($cid[0], 0);
     break;
 case 'accessregistered':
     changeAccess($cid[0], 1);
     break;
 case 'accessspecial':
     changeAccess($cid[0], 2);
     break;
 case 'saveorder':
     saveOrder($cid);
     break;
 case 'cancel':
     cancelContact();
Example #2
0
        saveContact($option);
        break;
    case 'remove':
        removeContacts($cid, $option);
        break;
    case 'publish':
        changeContact($cid, 1, $option);
        break;
    case 'unpublish':
        changeContact($cid, 0, $option);
        break;
    case 'orderup':
        orderContacts($cid[0], -1, $option);
        break;
    case 'orderdown':
        orderContacts($cid[0], 1, $option);
        break;
    case 'cancel':
        cancelContact();
        break;
    default:
        showContacts($option);
        break;
}
/**
* List the records
* @param string The current GET/POST option
*/
function showContacts($option)
{
    global $database, $mainframe, $mosConfig_list_limit;
Example #3
0
//$user_id = filter_input(INPUT_GET, 'user_id');
$user_id = $_SESSION['user_id'];
$contacts = getAddressByUser($user_id);
$getAllGroups = getAllGroups();
$action = filter_input(INPUT_GET, 'action');
$groupSelected = filter_input(INPUT_GET, 'group_id');
if (NULL != $groupSelected) {
    $contacts = getContactByGroupId($groupSelected, $user_id);
}
if (!$contacts) {
    $msg = 'No matching contacts found.';
}
if ($action == 'sort') {
    $orderByColumn = filter_input(INPUT_GET, 'orderByColumn');
    $sortOrder = filter_input(INPUT_GET, 'sortOrder');
    $contacts = orderContacts($orderByColumn, $sortOrder, $user_id);
}
if ($action === 'search') {
    /*  Gets search form name from URL
     *  Gets search value from ID in URL
     *  Sets results = results of the search function
     */
    $column = filter_input(INPUT_GET, 'searchColumn');
    $search = filter_input(INPUT_GET, 'searchQuery');
    $contacts = searchContacts($column, $search, $user_id);
}
// var_dump($user_id);
?>
        
     <div id="navUser">
            <img class="navimg" src="../images/logo4.png"/>
Example #4
0
        saveContact($option);
        break;
    case 'remove':
        removeContacts($cid, $option);
        break;
    case 'publish':
        changeContact($cid, 1, $option);
        break;
    case 'unpublish':
        changeContact($cid, 0, $option);
        break;
    case 'orderup':
        orderContacts(intval($cid[0]), -1, $option);
        break;
    case 'orderdown':
        orderContacts(intval($cid[0]), 1, $option);
        break;
    case 'cancel':
        cancelContact();
        break;
    default:
        showContacts($option);
        break;
}
/**
* List the records
* @param string The current GET/POST option
*/
function showContacts($option)
{
    global $database, $mainframe, $mosConfig_list_limit;