change_status::change("contacts","contacts");
common_main_header::get_header();
/* $context = array(
"alpha" => (empty($_GET['alpha'])) ? "all" : $_GET['alpha'],
"status" => $_GET['status'],
"order" => $_GET['order'],
"method" => $_GET['method'],
"avail_edit" => common_ref_status::check_edit("contacts",$_GET['status'],"contacts_people_edit"),
"avail_status" => acl::permission("contacts_people_edit"),
"link_view" => "contacts_people_details",
"link_edit" => "contacts_people_edit"
);
$obj = new list_contacts($context);
$obj->get_data();
$obj->show(); */
$context = array(
"status" => $_GET['status']
);
$context['list_config'] = array(
"method" => $_GET['method'],
"order" => $_GET['order'],
"avail_edit" => common_ref_status::check_edit("contacts",$_GET['status'],"contacts_people_edit"),
"avail_status" => acl::permission("contacts_people_edit"),
"link_view" => "contacts_people_details",
"link_edit" => "contacts_people_edit",
"show_search" => true,
"show_pagination" => false,
"sortable" => true
);
$context['columns']["name"] = array("title" => "Name","view" => true);
$context['columns']["company_name"] = array("title" => "Company");
$context['columns']["contact_type"] = array("title" => "Contact Type","wrapper_head" => '
',"wrapper_tail" => '
');
$context['columns']["email"] = array("title" => "Email");
$context['columns']["business_phone"] = array("title" => "Business Phone");
$context['columns']["mobile_phone"] = array("title" => "Mobile Phone");
$context['columns']["home_phone"] = array("title" => "Home Phone");
$context['columns']["fax"] = array("title" => "Fax");
$obj = new list_contacts($context);
$obj->get_data()->build_table_list();
?>