0) : if ($f_act == "setGroup" && $itemId != "") : TA("B"); // Group (Groups can be associated to other groups) if ($itemType == "grp") : updateStmt("groups","grp_id",$itemId,array("grp_group", $f_group2)); writeToLogDB("83",$hq_id,"",$usr_id,"","","","GROUPS=".$f_group2); endif; // Courier if ($itemType == "cr") : updateStmt("courier","cr_id",$itemId,array("cr_group", $f_group2)); writeToLogDB("77",$hq_id,"",$usr_id,$itemId,"","","GROUPS=".$f_group2); endif; // Customer if ($itemType == "cs") : updateStmt("customer","cs_id",$itemId,array("cs_group", $f_group2)); writeToLogDB("78",$hq_id,"",$usr_id,"","",$itemId,"GROUPS=".$f_group2); endif; // Article if ($itemType == "at") : updateStmt("article","at_id",$itemId,array("at_group", $f_group2)); writeToLogDB("79",$hq_id,"",$usr_id,"","","","GROUPS=".$f_group2,$itemId); endif; // Branch if ($itemType == "br") : updateStmt("branch","br_id",$itemId,array("br_group", $f_group2)); writeToLogDB("80",$hq_id,"",$usr_id,"","","","GROUPS=".$f_group2,"",$itemId); endif; // Vehicle if ($itemType == "crvh") : updateStmt("couriervehicle","crvh_id",$itemId,array("crvh_group", $f_group2)); writeToLogDB("81",$hq_id,"",$usr_id,"","","","GROUPS=".$f_group2); endif; // Employee if ($itemType == "emp") : updateStmt("employee","emp_id",$itemId,array("emp_group", $f_group2)); writeToLogDB("82",$hq_id,"",$usr_id,"","","","GROUPS=".$f_group2,"","",$itemId); endif; // Service if ($itemType == "srv") : updateStmt("service","srv_id",$itemId,array("srv_group", $f_group2)); // writeToLogDB("83",$hq_id,"",$usr_id,"","","","GROUPS=".$f_group2,"","",$itemId); endif; // Servicetype if ($itemType == "srvt") : updateStmt("servicetype","srvt_id",$itemId,array("srvt_group", $f_group2)); // writeToLogDB("84",$hq_id,"",$usr_id,"","","","GROUPS=".$f_group2,"","",$itemId); endif; // Metafieldcategory if ($itemType == "mtfc") : updateStmt("metafieldcategory","mtfc_id",$itemId,array("mtfc_group", $f_group2)); // writeToLogDB("xx",$hq_id,"",$usr_id,"","","","GROUPS=".$f_group2,"","",$itemId); endif; // Metafieldtemplate if ($itemType == "mtft") : updateStmt("metafieldtemplate","mtft_id",$itemId,array("mtft_group", $f_group2)); // writeToLogDB("xx",$hq_id,"",$usr_id,"","","","GROUPS=".$f_group2,"","",$itemId); endif; TA("C"); TA("E"); endif; endif; // Get group membership of the current item $f_group = ""; $title = ""; if ($itemType == "grp") : $f_group = getFieldValueFromId("groups", "grp_id", $itemId, "grp_group"); $tmp_grp_name = getFieldValueFromId("groups", "grp_id", $itemId, "grp_name"); $title .= "" . getLngt("Gruppe") . "   " . $tmp_grp_name; endif; if ($itemType == "cr") : $f_group = getFieldValueFromId("courier", "cr_id", $itemId, "cr_group"); $tmp_usr_id = getFieldValueFromId("courier", "cr_id", $itemId, "usr_id"); $tmpFields = getFieldsValueFromId("user","usr_id",$tmp_usr_id,array("usr_name","usr_firstname")); $title .= "" . getLngt("Transporteur") . "   " . $tmpFields[1] . " " . $tmpFields[0]; endif; if ($itemType == "cs") : $f_group = getFieldValueFromId("customer", "cs_id", $itemId, "cs_group"); $tmp_cmp_id = getFieldValueFromId("customer", "cs_id", $itemId, "cmp_id"); $tmpFields = getFieldsValueFromId("company","cmp_id",$tmp_cmp_id,array("cmp_comp","cmp_comp2")); $title .= "" . getLngt("Kunde") . "   " . $tmpFields[0] . " " . $tmpFields[1]; endif; if ($itemType == "at") : $f_group = getFieldValueFromId("article", "at_id", $itemId, "at_group"); $tmp_at_name = getFieldValueFromId("article", "at_id", $itemId, "at_name"); $title .= "" . getLngt("Artikel") . "   " . $tmp_at_name; endif; if ($itemType == "br") : $f_group = getFieldValueFromId("branch", "br_id", $itemId, "br_group"); $tmpFields = getFieldsValueFromId("branch","br_id",$itemId,array("br_key","br_name")); $title .= "" . getLngt("Branche") . "   " . $tmpFields[0] . " " . $tmpFields[1]; endif; if ($itemType == "crvh") : $f_group = getFieldValueFromId("couriervehicle", "crvh_id", $itemId, "crvh_group"); $tmp_crvh_sid = getFieldValueFromId("couriervehicle", "crvh_id", $itemId, "crvh_sid"); $title .= "" . getLngt("Fahrzeug") . "   " . $tmp_crvh_sid; endif; if ($itemType == "emp") : $f_group = getFieldValueFromId("employee", "emp_id", $itemId, "emp_group"); $tmp_usr_id = getFieldValueFromId("employee", "emp_id", $itemId, "usr_id"); $tmpFields = getFieldsValueFromId("user","usr_id",$tmp_usr_id,array("usr_name","usr_firstname")); $title .= "" . getLngt("Mitarbeiter") . "   " . $tmpFields[1] . " " . $tmpFields[0]; endif; if ($itemType == "srv") : $f_group = getFieldValueFromId("service", "srv_id", $itemId, "srv_group"); $tmp_srv_name = getFieldValueFromId("service", "srv_id", $itemId, "srv_name"); $title .= "" . getLngt("Preistyp") . "   " . $tmp_srv_name; endif; if ($itemType == "srvt") : $f_group = getFieldValueFromId("servicetype", "srvt_id", $itemId, "srvt_group"); $tmp_srvt_name = getFieldValueFromId("servicetype", "srvt_id", $itemId, "srvt_name"); $title .= "" . getLngt("Leistungstyp") . "   " . $tmp_srvt_name; endif; if ($itemType == "mtfc") : $f_group = getFieldValueFromId("metafieldcategory", "mtfc_id", $itemId, "mtfc_group"); $tmp_mtfc_name = getFieldValueFromId("metafieldcategory", "mtfc_id", $itemId, "mtfc_description"); $title .= "" . getLngt("Kategorie") . "   " . $tmp_mtfc_name; endif; if ($itemType == "mtft") : $f_group = getFieldValueFromId("metafieldtemplate", "mtft_id", $itemId, "mtft_group"); $tmp_mtft_name = getFieldValueFromId("metafieldtemplate", "mtft_id", $itemId, "mtft_name"); $title .= "" . getLngt("Template") . "   " . $tmp_mtft_name; endif; $f_group = substr($f_group, 1, (strlen($f_group) - 2) ); $f_group = spliti(",",$f_group); $output = addCheckboxesFromTable("f_group", "groups", "grp_id", "grp_name", "grp_name", "md_id = '" . $md_id . "' AND (hq_id = '" . $hq_id . "' OR hq_id = '0')", $f_group, "

"); $pageHeadline = "" . strtoupper($pageTitel) . "" . "     " . $title; ?> <?php echo $pageTitel ?>