Beispiel #1
0
} elseif ($action == 'display') {
///////////////////////////////////////////////////////////////////////////////
  $prefs = get_display_pref($obm['uid'], 'user', 1);
  $display['detail'] = dis_user_display_pref($prefs);

} else if ($action == 'dispref_display') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'user', 1);
  $display['detail'] = dis_user_display_pref($prefs);

} else if ($action == 'dispref_level') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'user', 1);
  $display['detail'] = dis_user_display_pref($prefs);
  
} else if ($action == 'search_batch_user') {
///////////////////////////////////////////////////////////////////////////////
  $display['search'] = html_batch_user_search_form($params);
  $display['msg'] .= display_info_msg($l_no_display);
  
} else if ($action == 'sel_batch_users') {
///////////////////////////////////////////////////////////////////////////////
  if($cgp_use['property']['delegation'] && !of_delegation_check_data($params['delegation'], $obm['delegation_target'])) {   
    $params['delegation'] = $obm['delegation_target'];
  }
  $display['search'] = html_batch_user_search_form($params);
  $setrows = $_SESSION['set_rows'];
  $_SESSION['set_rows'] = 250;   
Beispiel #2
0
 public function toCsv() {
   $csv = array();
   $fields = array_keys(get_display_pref($GLOBALS['obm']['uid'], 'contact'));
   foreach($fields as $field) {
     if (!is_array($this->$field)){
       if ($field == "country") {
         array_push($csv, "\"".$this->address[0]['country']."\"");
       } else if($field == "cellvoice") {
         $cellvoice = "";
         foreach($this->phone as $phone) {
           if($phone['label'][0] == 'CELL' && $phone['label'][1] == 'VOICE') {
             $cellvoice = $phone['number'];
           }
         }
         array_push($csv, "\"".$cellvoice."\"");
       } else if($field == "workvoice") {
         $workvoice = "";
         foreach($this->phone as $phone) {
           if($phone['label'][0] == 'WORK' && $phone['label'][1] == 'VOICE') {
             $workvoice = $phone['number'];
           }
         }
         array_push($csv, "\"".$workvoice."\"");
       } else if($field == "workfax") {
         $workfax = "";
         foreach($this->phone as $phone) {
           if($phone['label'][0] == 'WORK' && $phone['label'][1] == 'FAX') {
             $workfax = $phone['number'];
           }
         }
         array_push($csv, "\"".$workfax."\"");
       } else if($field == "homevoice") {
         $homevoice = "";
         foreach($this->phone as $phone) {
           if($phone['label'][0] == 'HOME' && $phone['label'][1] == 'VOICE') {
             $homevoice = $phone['number'];
           }
         }
         array_push($csv, "\"".$homevoice."\"");
       } else {
         array_push($csv,"\"".$this->$field."\"");
       }
     } else {
       if ($field == "email") {
         array_push($csv,"\"".$this->email[0]['address']."\"");
       } else if ($field == "address") {
         array_push($csv,"\"".$this->address[0]['street']." ".
           $this->address[0]['zipcode']." ".$this->address[0]['expresspostal']." ".
           $this->address[0]['town']." ".$this->address[0]['country']."\"");
       }
     }
   }
   return implode(";", $csv);
 }
Beispiel #3
0
if ($action == "index" || $action == "") {
///////////////////////////////////////////////////////////////////////////////

} elseif ($action == "bar") {
///////////////////////////////////////////////////////////////////////////////
  include_once("$obminclude/Artichow/BarPlot.class.php");
  $display["detail"] = dis_chart_bar($params);

} elseif ($action == "bar_multiple") {
///////////////////////////////////////////////////////////////////////////////
  include_once("$obminclude/Artichow/BarPlot.class.php");
  $display["detail"] = dis_chart_bar_multiple($params);

} elseif ($action == "display") {
///////////////////////////////////////////////////////////////////////////////
  $prefs = get_display_pref($uid, "invoice", 1);
  $display["detail"] = dis_invoice_display_pref($prefs);
}
  

//////////////////////////////////////////////////////////////////////////////
// Display the invoice dashboard
// Parameters:
//   - $invoice : invoice hash infos
//////////////////////////////////////////////////////////////////////////////
function dis_chart_bar($chart) {

  $values = $chart["values"];
  $labels = $chart["labels"];
  $title = $chart["title"];
  $xlabels = $chart["xlabels"];
Beispiel #4
0
  $prefs = get_display_pref($obm['uid'], 'group', 1);
  $prefs_u = get_display_pref($obm['uid'], 'group_user', 1);
  $display['detail'] = dis_group_display_pref($prefs, $prefs_u);

} else if ($action == 'dispref_display') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'group', 1);
  $prefs_u = get_display_pref($obm['uid'], 'group_user', 1);
  $display['detail'] = dis_group_display_pref($prefs, $prefs_u);

} else if ($action == 'dispref_level') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'group', 1);
  $prefs_u = get_display_pref($obm['uid'], 'group_user', 1);
  $display['detail'] = dis_group_display_pref($prefs, $prefs_u);

} elseif ($action == 'import') {
///////////////////////////////////////////////////////////////////////////////
  $display['detail'] = dis_group_import_index();

} elseif ($action == 'import_file') {
///////////////////////////////////////////////////////////////////////////////
  if ( !array_key_exists("fi_file", $_FILES) || !file_exists($_FILES["fi_file"]["tmp_name"])) {
    $display['msg'] .=  display_err_msg("$l_file_error");
    $display['detail'] = dis_group_import_index();
  } else {
    $display['detail'] = dis_group_import_file_run($params);
  }
} elseif ($action == 'admin') {
Beispiel #5
0
  $prefs = get_display_pref($obm['uid'], 'list', 1);
  $prefs_con = get_display_pref($obm['uid'], 'list_contact', 1);
  $display['detail'] = dis_list_display_pref($prefs, $prefs_con);

} else if ($action == 'dispref_display') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'list', 1);
  $prefs_con = get_display_pref($obm['uid'], 'list_contact', 1);
  $display['detail'] = dis_list_display_pref($prefs, $prefs_con);

} else if($action == 'dispref_level') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'list', 1);
  $prefs_con = get_display_pref($obm['uid'], 'list_contact', 1);
  $display['detail'] = dis_list_display_pref($prefs, $prefs_con);

///////////////////////////////////////////////////////////////////////////////
// External calls (main menu not displayed)                                  //
///////////////////////////////////////////////////////////////////////////////
} else if ($action == 'ext_get_ids') {
  $display['search'] = dis_list_search_form($params);
  if ($_SESSION['set_display'] == 'yes') {
    $display['detail'] = dis_list_search_list($params, $popup);
  } else {
    $display['msg'] .= display_ok_msg($l_no_display);
  }
}

Beispiel #6
0
} else if ($action == 'new') {
  ///////////////////////////////////////////////////////////////////////////////
  $display['detail'] = dis_campaign_form('insert', $params);

} else if ($action == 'detailupdate') {
  ///////////////////////////////////////////////////////////////////////////////
  $display['detail'] = dis_campaign_form('update',$params);

} else if ($action == 'admin') {
  ///////////////////////////////////////////////////////////////////////////////
  $display['detail'] = dis_campaign_admin_index();

} else if ($action == 'display') {
  ///////////////////////////////////////////////////////////////////////////////
  $prefs = get_display_pref($obm["uid"], 'campaign', 1);
  $display['detail'] = dis_campaign_display_pref($prefs);

//} else if ($action == 'monitor') {
//  ///////////////////////////////////////////////////////////////////////////////
//  run_query_campaign_import_sent_emails();
//  $display['detail'] = dis_campaign_monitor($params);

} else if ($action == 'test_module_admin') {
  ///////////////////////////////////////////////////////////////////////////////
  require('campaign_test.inc');

  test_campaign_module_admin();
}

///////////////////////////////////////////////////////////////////////////////
Beispiel #7
0
} elseif ($action == 'display') {
///////////////////////////////////////////////////////////////////////////////
  $prefs = get_display_pref($obm['uid'], 'people', 1);
  $display['detail'] = dis_people_display_pref($prefs);

} else if ($action == 'dispref_display') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'people', 1);
  $display['detail'] = dis_people_display_pref($prefs);

} else if ($action == 'dispref_level') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'people', 1);
  $display['detail'] = dis_people_display_pref($prefs);
}

of_category_user_action_switch($module, $action, $params);

///////////////////////////////////////////////////////////////////////////////
// Display
///////////////////////////////////////////////////////////////////////////////
$display['head'] = display_head($l_people);
if (! $params['popup']) {
  update_user_action();
  $display['header'] = display_menu($module);
}
$display['end'] = display_end();
Beispiel #8
0
}  elseif ($action == "display") {
///////////////////////////////////////////////////////////////////////////////
  $prefs = get_display_pref($obm["uid"], "document", 1);
  $display["detail"] = dis_document_display_pref($prefs);

} else if ($action == "dispref_display") {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm["uid"], "document", 1);
  $display["detail"] = dis_document_display_pref($prefs);

} else if ($action == "dispref_level") {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm["uid"], "document", 1);
  $display["detail"] = dis_document_display_pref($prefs);
}

of_category_user_action_switch($module, $action, $params);


///////////////////////////////////////////////////////////////////////////////
// Display
///////////////////////////////////////////////////////////////////////////////
$display["head"] = display_head($l_document);
$display["end"] = display_end();
if (! $params["popup"]) {
  update_document_action();
  $display["header"] = display_menu($module);
}
Beispiel #9
0
} elseif ($action == "display") {
///////////////////////////////////////////////////////////////////////////////
  $prefs = get_display_pref($obm["uid"], "incident", 1);
  $display["detail"] = dis_incident_display_pref($prefs); 

} else if($action == "dispref_display") {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm["uid"], "incident", 1);
  $display["detail"] = dis_incident_display_pref($prefs);

} else if($action == "dispref_level") {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm["uid"], "incident", 1);
  $display["detail"] = dis_incident_display_pref($prefs);
}

of_category_user_action_switch($module, $action, $params);


///////////////////////////////////////////////////////////////////////////////
// Display
///////////////////////////////////////////////////////////////////////////////
update_incident_action();
$display["head"] = display_head($l_incident);
$display["header"] = display_menu($module);
$display["end"] = display_end();
display_page($display);
Beispiel #10
0
  if ($ctu_sql_limit && ($nb_rows > $_SESSION['set_rows'])) {
    // We remove the limit clause
    $query = preg_replace("/(limit .*)$/i", '', $query);
  }
  
  // Check if banned words are included
  $excluded_words = array ('insert', 'update', 'delete', 'create', 'alter', 'drop', 'lock', 'userobm_password');
  while ( list($key, $value) = each($excluded_words) ) {
    if (preg_match("/\b$value\b/i", $query)) {
      $err['msg'] = "$l_err_query_banned $l_banned_word : $value";
      echo $err['msg'];
      return false;
    }
  }

  $prefs = get_display_pref($obm['uid'], $entity);
  
  display_debug_msg($query, $cdg_sql, 'export()');
  $obm_q = new DB_OBM;
  $obm_q->query($query);

  // Set separator (if not set in setting => ;)
  if (($_SESSION['set_csv_sep'] != $ccsvd_sc) && ($_SESSION['set_csv_sep'] != $ccsvd_tab)) {
    $sep = ';';
  } else if ($_SESSION['set_csv_sep'] == $ccsvd_tab) {
    $sep = "\t";
  } else {
    $sep = $_SESSION['set_csv_sep'];
  }

  $export_d = new OBM_DISPLAY('DATA', $prefs, $emodule);
Beispiel #11
0
}  elseif ($action == 'display') {
///////////////////////////////////////////////////////////////////////////////
  $prefs = get_display_pref($obm['uid'], 'publication', 1);
  $display['detail'] = dis_publication_display_pref($prefs);

} else if ($action == 'dispref_display') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'publication', 1);
  $display['detail'] = dis_publication_display_pref($prefs);

} else if ($action == 'dispref_level') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'publication', 1);
  $display['detail'] = dis_publication_display_pref($prefs);
}


///////////////////////////////////////////////////////////////////////////////
// Display
///////////////////////////////////////////////////////////////////////////////
$display['head'] = display_head($l_publication);
$display['end'] = display_end();
// Update actions url in case some values have been updated (id after insert) 
if (! $params['popup']) {
  update_publication_action();
  $display['header'] = display_menu($module);
}
Beispiel #12
0
} elseif ($action == 'display') {
///////////////////////////////////////////////////////////////////////////////
  $prefs = get_display_pref($obm['uid'], 'lead', 1);
  $display['detail'] = dis_lead_display_pref($prefs);

} elseif ($action == 'dispref_display') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'lead', 1);
  $display['detail'] = dis_lead_display_pref($prefs);

} elseif ($action == 'dispref_level') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'lead', 1);
  $display['detail'] = dis_lead_display_pref($prefs);
}


///////////////////////////////////////////////////////////////////////////////
// Display
///////////////////////////////////////////////////////////////////////////////
$display['head'] = display_head("$l_lead");
update_lead_action();
$display['header'] = display_menu($module);
$display['end'] = display_end();
display_page($display);


///////////////////////////////////////////////////////////////////////////////
Beispiel #13
0
} elseif ($action == "display") {
///////////////////////////////////////////////////////////////////////////////
  $prefs = get_display_pref($obm["uid"], "contract", 1);
  $display["detail"] = dis_contract_display_pref($prefs);
  
} elseif ($action == "dispref_display") {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm["uid"], "contract", 1);
  $display["detail"] = dis_contract_display_pref($prefs);
  
} elseif ($action == "dispref_level") {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm["uid"], "contract", 1);
  $display["detail"] = dis_contract_display_pref($prefs);
  
} elseif ($action == "admin")  {
//////////////////////////////////////////////////////////////////////////////
  $display["detail"] = dis_contract_admin_index();  
 
} elseif ($action == "type_insert")  {
///////////////////////////////////////////////////////////////////////////////
  $retour = run_query_contract_type_insert($params);
  if ($retour) {
    $display["msg"] .= display_ok_msg("$l_type : $l_insert_ok");
  } else {
    $display["msg"] .= display_err_msg("$l_type : $l_insert_error");
  }
  $display["detail"] = dis_contract_admin_index();  
Beispiel #14
0
}  elseif ($action == 'display') {
///////////////////////////////////////////////////////////////////////////////
  $prefs = get_display_pref($obm['uid'], 'project', 1);
  $display['detail'] = dis_project_display_pref($prefs);

} else if ($action == 'dispref_display') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'project', 1);
  $display['detail'] = dis_project_display_pref($prefs);

} else if ($action == 'dispref_level') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'project', 1);
  $display['detail'] = dis_project_display_pref($prefs);
}


///////////////////////////////////////////////////////////////////////////////
// Display
///////////////////////////////////////////////////////////////////////////////
$display['head'] = display_head($l_project);
$display['end'] = display_end();
if (! $params['popup']) {
  // Update actions url in case some values have been updated (id after insert)
  update_project_action();
  $display['header'] = display_menu($module);
}
Beispiel #15
0
} elseif ($action == 'display') {
///////////////////////////////////////////////////////////////////////////////
  $prefs = get_display_pref($obm['uid'], 'time', 1);
  $display['detail'] = dis_time_display_pref($prefs);

} else if ($action == 'dispref_display') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'time', 1);
  $display['detail'] = dis_time_display_pref($prefs);

} else if ($action == 'dispref_level') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'time', 1);
  $display['detail'] = dis_time_display_pref($prefs);

} else if ($action == 'activity_report') {
///////////////////////////////////////////////////////////////////////////////
  global $l_pdf_no_project_selected;
  global $l_pdf_bad_date;
  if (isset($params['pdf_form'])) {
    if (empty($params['projects']))
      $display['msg'] = display_err_msg($l_pdf_no_project_selected);
    elseif ($params['interval'] === 'date') {
      $elms = array('d', 'm', 'Y');
      $repl = array('(?P<day>\d{2})', '(?P<month>\d{2})', '(?P<year>\d{4})');
      $patt = '#'.str_replace($elms, $repl, $_SESSION['set_date_upd']).'#';
      preg_match($patt, $params['int_date'], $arr);
      $date = $arr['year'].'-'.$arr['month'].'-'.$arr['day'];
Beispiel #16
0
  $prefs = get_display_pref($obm["uid"], "resourcegroup", 1);
  $prefs_r = get_display_pref($obm["uid"], "resourcegroup_resource", 1);
  $display["detail"] = dis_resourcegroup_display_pref($prefs, $prefs_r);

} else if ($action == "dispref_display") {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm["uid"], "resourcegroup", 1);
  $prefs_r = get_display_pref($obm["uid"], "resourcegroup_resource", 1);
  $display["detail"] = dis_resourcegroup_display_pref($prefs, $prefs_r);

} else if($action == "dispref_level") {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm["uid"], "resourcegroup", 1);
  $prefs_r = get_display_pref($obm["uid"], "resourcegroup_resource", 1);
  $display["detail"] = dis_resourcegroup_display_pref($prefs, $prefs_r);

///////////////////////////////////////////////////////////////////////////////
// External calls (main menu not displayed)                                  //
///////////////////////////////////////////////////////////////////////////////
} else if ($action == "ext_get_ids") {
  $display["search"] = html_resourcegroup_search_form($params);
  if ($_SESSION['set_display'] == "yes") {
    $display["result"] = dis_resourcegroup_search_resourcegroup($params);
  } else {
    $display["msg"] .= display_info_msg($l_no_display);
  }

} else if ($action == "get_json_resource_group") {
///////////////////////////////////////////////////////////////////////////////
Beispiel #17
0
} elseif ($action == 'display') {
///////////////////////////////////////////////////////////////////////////////
  $prefs = get_display_pref($obm['uid'], 'profile', 1);
  $display['detail'] = dis_profile_display_pref($prefs);

} else if ($action == 'dispref_display') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($entity, $fieldname, $fieldstatus);
  $prefs = get_display_pref($obm['uid'], 'profile', 1);
  $display['detail'] = dis_profile_display_pref($prefs);

} else if ($action == 'dispref_level') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($entity, $fieldname, $fieldstatus, $fieldorder);
  $prefs = get_display_pref($obm['uid'], 'profile', 1);
  $display['detail'] = dis_profile_display_pref($prefs);
}

///////////////////////////////////////////////////////////////////////////////
// Display
///////////////////////////////////////////////////////////////////////////////
$display['head'] = display_head($l_profile);
if (! $params['popup']) {
  update_profile_action();
  $display['header'] = display_menu($module);
}
$display['end'] = display_end();
display_page($display);

Beispiel #18
0
    exit();    
  } else {
    contact_export_js_labels();
    $template = new OBM_Template('main');
    if(!$current['addressbook']) $current['addressbook'] = $addressbooks->getMyContacts()->id;
    if(!$contacts) $contacts = $addressbooks->searchContacts("addressbookId:$current[addressbook] -is:archive"); 
    $template->set('searchpattern', $params['searchpattern']);
    $template->set('contactfilter', $params['contactfilter']);
    $template->set('contacts', $contacts);
    $template->set('contact', $contact);
    $template->set('addressbooks', $addressbooks);
    $template->set('current', $current);
    $template->set('searchfields', OBM_Contact::fieldsMap());
    $template->set('customFields', OBM_Contact::getUserCategory());
    //FIXME :  Already set in some actions
    $template->set('fields', get_display_pref($GLOBALS['obm']['uid'], 'contact'));
    $template->set('template', $subTemplate);    
    $display['detail'] = $template->render();
  }
}


///////////////////////////////////////////////////////////////////////////////
// Display
///////////////////////////////////////////////////////////////////////////////
$display['head'] = display_head($l_contact);
$display['end'] = display_end();
if (! $params['popup']) {
  update_contact_action();
  $display['header'] = display_menu($module);
}
Beispiel #19
0
} elseif ($action == 'display') {
///////////////////////////////////////////////////////////////////////////////
  $prefs = get_display_pref($obm['uid'], 'resource', 1);
  $display['detail'] = dis_resource_display_pref($prefs);

} else if ($action == 'dispref_display') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'resource', 1);
  $display['detail'] = dis_resource_display_pref($prefs);

} else if ($action == 'dispref_level') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'resource', 1);
  $display['detail'] = dis_resource_display_pref($prefs);
}

///////////////////////////////////////////////////////////////////////////////
// Display
///////////////////////////////////////////////////////////////////////////////
$display['head'] = display_head($l_resource);
if (! $params['popup']) {
  update_resource_action();
  $display['header'] = display_menu($module);
}
$display['end'] = display_end();

display_page($display);
Beispiel #20
0
}else if($action == 'reminder_company'){

 $inv_q = reminder_by_company($params['company_id']);
 $display['detail'] = dis_invoice_reminder_company($inv_q);

} else if ($action == 'dispref_display') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'invoice', 1);
  $display['detail'] = dis_invoice_display_pref($prefs);
  
} else if($action == 'dispref_level') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'invoice', 1);
  $display['detail'] = dis_invoice_display_pref($prefs);
}
  

///////////////////////////////////////////////////////////////////////////////
// Display
///////////////////////////////////////////////////////////////////////////////
$display['head'] = display_head("$l_invoice");
$display['end'] = display_end();
if (! $params['popup']) {
  update_invoice_action();
  $display['header'] = display_menu($module);
}
display_page($display);
Beispiel #21
0
}  elseif ($action == 'display') {
///////////////////////////////////////////////////////////////////////////////
  $prefs = get_display_pref($obm['uid'], 'company', 1);
  $display['detail'] = dis_company_display_pref($prefs);

} else if ($action == 'dispref_display') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'company', 1);
  $display['detail'] = dis_company_display_pref($prefs);

} else if ($action == 'dispref_level') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'company', 1);
  $display['detail'] = dis_company_display_pref($prefs);

} elseif ($action == 'document_add') {
///////////////////////////////////////////////////////////////////////////////
  $params['company_id'] = $params['ext_id'];
  if ($params['doc_nb'] > 0) {
    $nb = run_query_global_insert_documents_links($params, 'company');
    $display['msg'] .= display_ok_msg("$nb $l_document_added");
  } else {
    $display['msg'] .= display_err_msg($l_no_document_added);
  }
  $display['detail'] = dis_company_consult($params);
}

of_category_user_action_switch($module, $action, $params);
Beispiel #22
0
}  elseif ($action == 'display') {
///////////////////////////////////////////////////////////////////////////////
  $prefs = get_display_pref($obm['uid'], 'todo', 1);
  $display['detail'] = dis_todo_display_pref($prefs);

} else if ($action == 'dispref_display') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'todo', 1);
  $display['detail'] = dis_todo_display_pref($prefs);

} else if ($action == 'dispref_level') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'todo', 1);
  $display['detail'] = dis_todo_display_pref($prefs);
}

///////////////////////////////////////////////////////////////////////////////
// Todo top list (same as the bookmarks : id and titles are registered)
///////////////////////////////////////////////////////////////////////////////
// If the todo list was updated, we reload the todo in session
if (in_array($action, array('insert', 'update', 'delete', 'delete_unique')))
  global_session_load_user_todos();


///////////////////////////////////////////////////////////////////////////////
// Display
///////////////////////////////////////////////////////////////////////////////
if (! $popup) {
Beispiel #23
0
  $prefs = get_display_pref($obm['uid'],'deal',1);
  $prefs_parent = get_display_pref($obm['uid'],'parentdeal',1);
  $display['detail'] = dis_deal_display_pref($prefs, $prefs_parent);
  
} else if ($action == 'dispref_display') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'],'deal',1);
  $prefs_parent = get_display_pref($obm['uid'],'parentdeal',1);
  $display['detail'] = dis_deal_display_pref($prefs, $prefs_parent);

} else if ($action == 'dispref_level') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'],'deal',1);
  $prefs_parent = get_display_pref($obm['uid'],'parentdeal',1);
  $display['detail'] = dis_deal_display_pref($prefs, $prefs_parent);
}

of_category_user_action_switch($module, $action, $params);


///////////////////////////////////////////////////////////////////////////////
// Display
///////////////////////////////////////////////////////////////////////////////
// Update actions url in case some values have been updated (id after insert) 
update_deal_action();
if (! $popup) {
  $display['header'] = display_menu($module);
}
$display['head'] = display_head($l_deal);
Beispiel #24
0
  $display["detail"] = dis_admin_index();
} elseif ($action == "display") {
///////////////////////////////////////////////////////////////////////////////
  $prefs = get_display_pref($obm["uid"], "cv", 1);
  $display["detail"] = dis_cv_display_pref($prefs);
  
} elseif ($action == "dispref_display") {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm["uid"], "cv", 1);
  $display["detail"] = dis_cv_display_pref($prefs);
 
 } elseif ($action == "dispref_level") {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm["uid"], "cv", 1);
  $display["detail"] = dis_cv_display_pref($prefs);
 } 

//Display
update_cv_action();
if (! $popup) {
  $display["header"] = display_menu($module);
}
$display["head"] = display_head($l_cv);
$display["end"] = display_end();

display_page($display);


/**
Beispiel #25
0
  $prefs = get_display_pref($obm['uid'], 'account',1);
  $prefs_p = get_display_pref ($obm['uid'], 'payment',1);
  $display['detail'] = dis_account_display_pref ($prefs, $prefs_p); 

} else if($action =='dispref_display') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'account',1);
  $prefs_p = get_display_pref ($obm['uid'], 'payment',1);
  $display['detail'] = dis_account_display_pref ($prefs, $prefs_p); 

} else if($action == 'dispref_level') {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($params);
  $prefs = get_display_pref($obm['uid'], 'account',1);
  $prefs_p = get_display_pref ($obm['uid'], 'payment',1);
  $display['detail'] = dis_account_display_pref ($prefs, $prefs_p); 
}


///////////////////////////////////////////////////////////////////////////////
// Display
///////////////////////////////////////////////////////////////////////////////
update_account_action();
$display['header'] = display_menu($module);
$display['head'] = display_head("$l_account");
$display['end'] = display_end();
display_page($display);


///////////////////////////////////////////////////////////////////////////////
} elseif ($action == "display") {
///////////////////////////////////////////////////////////////////////////////
  $prefs = get_display_pref($obm["uid"], "organizationalchart", 1);
  $display["detail"] = dis_organizationalchart_display_pref($prefs);

} else if ($action == "dispref_display") {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($entity, $fieldname, $fieldstatus);
  $prefs = get_display_pref($obm["uid"], "organizationalchart", 1);
  $display["detail"] = dis_organizationalchart_display_pref($prefs);

} else if ($action == "dispref_level") {
///////////////////////////////////////////////////////////////////////////////
  update_display_pref($entity, $fieldname, $fieldstatus, $fieldorder);
  $prefs = get_display_pref($obm["uid"], "organizationalchart", 1);
  $display["detail"] = dis_organizationalchart_display_pref($prefs);

}

///////////////////////////////////////////////////////////////////////////////
// Display
///////////////////////////////////////////////////////////////////////////////
if (!$params["ajax"]) {
  $display["head"] = display_head($l_organizationalchart);
  if (! $params["popup"]) {
    update_organizationalchart_action();
    $display["header"] = display_menu($module);
  }
  $display["end"] = display_end();
}