示例#1
0
  }
  $display['detail'] = dis_deal_admin_index();
  
} elseif ($action == 'role_update') {
///////////////////////////////////////////////////////////////////////////////
  $retour = of_category_query_update('DealCompany', 'role', $params);
  if ($retour) {
    $display['msg'] .= display_ok_msg("$l_role : $l_update_ok");
  } else {
    $display['msg'] .= display_err_msg("$l_role : $l_update_error");
  }
  $display['detail'] = dis_deal_admin_index();
  
} elseif ($action == 'role_checklink') {
///////////////////////////////////////////////////////////////////////////////
  $display['detail'] .= of_category_dis_links('DealCompany', 'role', $params, 'mono');
  
} elseif ($action == 'role_delete') {
///////////////////////////////////////////////////////////////////////////////
  $retour = of_category_query_delete('DealCompany', 'role', $params);
  if ($retour) {
    $display['msg'] .= display_ok_msg("$l_role : $l_delete_ok");
  } else {
    $display['msg'] .= display_err_msg("$l_role : $l_delete_error");
  }
  $display['detail'] = dis_deal_admin_index();


///////////////////////////////////////////////////////////////////////////////
// -- Actions about ParentDeal -- 
///////////////////////////////////////////////////////////////////////////////
示例#2
0
  }
  $display['detail'] = dis_admin_ref_region_index();
  
} elseif ($action == 'region_update') {
///////////////////////////////////////////////////////////////////////////////
  $retour = of_category_query_update('', 'region', $params);
  if ($retour) {
    $display['msg'] .= display_ok_msg("$l_region : $l_update_ok");
  } else {
    $display['msg'] .= display_err_msg("$l_region : $l_update_error");
  }
  $display['detail'] = dis_admin_ref_region_index();
  
} elseif ($action == 'region_checklink') {
///////////////////////////////////////////////////////////////////////////////
  $display['detail'] .= of_category_dis_links(array('deal'), 'region', $params, 'mono');
  
} elseif ($action == 'region_delete') {
///////////////////////////////////////////////////////////////////////////////
  $retour = of_category_query_delete('', 'region', $params);
  if ($retour) {
    $display['msg'] .= display_ok_msg("$l_region : $l_delete_ok");
  } else {
    $display['msg'] .= display_err_msg("$l_region : $l_delete_error");
  }
  $display['detail'] = dis_admin_ref_region_index();
}

///////////////////////////////////////////////////////////////////////////////
// Display
///////////////////////////////////////////////////////////////////////////////
示例#3
0
  }
  $display['detail'] .= dis_company_admin_index();

} elseif ($action == 'activity_update') {
///////////////////////////////////////////////////////////////////////////////
  $retour = of_category_query_update('company', 'activity', $params);
  if ($retour) {
    $display['msg'] .= display_ok_msg("$l_activity : $l_update_ok");
  } else {
    $display['msg'] .= display_err_msg("$l_activity : $l_update_error");
  }
  $display['detail'] .= dis_company_admin_index();

} elseif ($action == 'activity_checklink') {
///////////////////////////////////////////////////////////////////////////////
  $display['detail'] .= of_category_dis_links('company', 'activity', $params, 'mono');

} elseif ($action == 'activity_delete') {
///////////////////////////////////////////////////////////////////////////////
  $retour = of_category_query_delete('company', 'activity', $params);
  if ($retour) {
    $display['msg'] .= display_ok_msg("$l_activity : $l_delete_ok");
  } else {
    $display['msg'] .= display_err_msg("$l_activity : $l_delete_error");
  }
  $display['detail'] .= dis_company_admin_index();

} elseif ($action == 'nafcode_insert') {
///////////////////////////////////////////////////////////////////////////////
  $retour = run_query_company_nafcode_insert($params);
  if ($retour) {
示例#4
0
  $display['detail'] .= dis_calendar_admin_index($tags_q);

} elseif ($action == 'category1_update')  {
///////////////////////////////////////////////////////////////////////////////
  $retour = of_category_query_update('event', 'category1', $params);
  if ($retour) {
    $display['msg'] .= display_ok_msg("$l_category1 : $l_update_ok");
  } else {
    $display['msg'] .= display_err_msg("$l_category1 : $l_update_error");
  }
  $tags_q = run_query_calendar_get_alltags($obm['uid']) ;
  $display['detail'] .= dis_calendar_admin_index($tags_q);

} elseif ($action == 'category1_checklink')  {
///////////////////////////////////////////////////////////////////////////////
  $display['detail'] .= of_category_dis_links('event', 'category1', $params, 'mono');

} elseif ($action == 'category1_delete')  {
///////////////////////////////////////////////////////////////////////////////
  $retour = of_category_query_delete('event', 'category1', $params);
  if ($retour) {
    $display['msg'] .= display_ok_msg("$l_category1 : $l_delete_ok");
  } else {
    $display['msg'] .= display_err_msg("$l_category1 : $l_delete_error");
  }
  $tags_q = run_query_calendar_get_alltags($obm['uid']) ;
  $display['detail'] .= dis_calendar_admin_index($tags_q);
  
} elseif ($action == 'reset')  {
///////////////////////////////////////////////////////////////////////////////
  if(!$params['force']) {
示例#5
0
  }
  $display['detail'] .= dis_contact_admin_index();

} elseif ($action == 'function_update') {
///////////////////////////////////////////////////////////////////////////////
  $retour = of_category_query_update('contact', 'function', $params);
  if ($retour) {
    $display['msg'] .= display_ok_msg("$l_function : $l_update_ok");
  } else {
    $display['msg'] .= display_err_msg("$l_function : $l_update_error");
  }
  $display['detail'] .= dis_contact_admin_index();

} elseif ($action == 'function_checklink') {
///////////////////////////////////////////////////////////////////////////////
  $display['detail'] .= of_category_dis_links('contact', 'function', $params, 'mono');

} elseif ($action == 'function_delete') {
///////////////////////////////////////////////////////////////////////////////
  $retour = of_category_query_delete('contact', 'function', $params);
  if ($retour) {
    $display['msg'] .= display_ok_msg("$l_function : $l_delete_ok");
  } else {
    $display['msg'] .= display_err_msg("$l_function : $l_delete_error");
  }
  $display['detail'] .= dis_contact_admin_index();

} elseif ($action == 'kind_insert') {
///////////////////////////////////////////////////////////////////////////////
  $retour = run_query_contact_kind_insert($params);
  if ($retour) {
示例#6
0
  }
  $display["detail"] .= dis_incident_admin_index();

} elseif ($action == "resolutiontype_update") {
///////////////////////////////////////////////////////////////////////////////
  $retour = of_category_query_update("incident", "resolutiontype", $params,"IncidentResolutionType");
  if ($retour) {
    $display["msg"] .= display_ok_msg("$l_resolutiontype : $l_update_ok");
  } else {
    $display["msg"] .= display_err_msg("$l_resolutiontype : $l_update_error");
  }
  $display["detail"] .= dis_incident_admin_index();

} elseif ($action == "resolutiontype_checklink") {
///////////////////////////////////////////////////////////////////////////////
  $display["detail"] .= of_category_dis_links("incident", "resolutiontype", $params, "mono","IncidentResolutionType");

} elseif ($action == "resolutiontype_delete") {
///////////////////////////////////////////////////////////////////////////////
  $retour = of_category_query_delete("incident", "resolutiontype", $params,"IncidentResolutionType");
  if ($retour) {
    $display["msg"] .= display_ok_msg("$l_resolutiontype : $l_delete_ok");
  } else {
    $display["msg"] .= display_err_msg("$l_resolutiontype : $l_delete_error");
  }
  $display["detail"] .= dis_incident_admin_index();

} elseif ($action == "document_add") {
///////////////////////////////////////////////////////////////////////////////
  $params["incident_id"] = $params["ext_id"];
  if ($params["doc_nb"] > 0) {
示例#7
0
  }
  $display['detail'] .= dis_lead_admin_index();

} elseif ($action == 'status_update') {
///////////////////////////////////////////////////////////////////////////////
  $retour = of_category_query_update('lead', 'status', $params);
  if ($retour) {
    $display['msg'] .= display_ok_msg("$l_status : $l_update_ok");
  } else {
    $display['msg'] .= display_err_msg("$l_status : $l_update_error");
  }
  $display['detail'] .= dis_lead_admin_index();

} elseif ($action == 'status_checklink') {
///////////////////////////////////////////////////////////////////////////////
  $display['detail'] .= of_category_dis_links('lead', 'status', $params, 'mono');

} elseif ($action == 'status_delete') {
///////////////////////////////////////////////////////////////////////////////
  $retour = of_category_query_delete('lead', 'status', $params);
  if ($retour) {
    $display['msg'] .= display_ok_msg("$l_status : $l_delete_ok");
  } else {
    $display['msg'] .= display_err_msg("$l_status : $l_delete_error");
  }
  $display['detail'] .= dis_lead_admin_index();

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