Flag if ($f_at_serialno == "" || count($f_at_serialno) == 0) : $f_at_serialno = "0"; else: $f_at_serialno = "1"; endif; if ($f_at_mountable == "" || count($f_at_mountable) == 0) : $f_at_mountable = "0"; else: $f_at_mountable = "1"; endif; // Init package factor if empty if ($f_at_stk_itemquantity == "") : $f_at_stk_itemquantity = "1"; endif; if ($f_at_stk_areaquantity == "") : $f_at_stk_areaquantity = "1"; endif; // Get EID prefix and reset EID only if equals prefix $constAtEidPrefix = getParameterValue("0", "AT_EID_PREFIX", $hq_id); if ($f_at_eid == $constAtEidPrefix) : $f_at_eid = ""; endif; // ******************************* // * Operations for the articles * // ******************************* // Generate log string if ($f_act != "") : $logString = makeLogString(array($f_at_eid,$f_at_name,$f_at_authenticated,$f_at_visible,$g_atg_id,$f_at_match,$f_at_description,$f_at_barcode,$f_at_bundlequantity,$f_at_bundlecode,$f_at_stk_itemquantity,$f_at_stk_areaquantity,$f_at_serialno,$f_at_mountable), ";", "0"); endif; // Insert new article if ($f_act == "newArticle") : if ($f_at_eid != "" && $f_at_name != "") : // Check existence of the article (all data) if ($db->getOne("SELECT at_eid FROM article WHERE at_eid = '" . $f_at_eid . "'")) : $statusMessage = getLngt("Die eindeutige " . wrapPhrase("Artikelnummer", $objecttypemode) . " (ExtID) ist bereits vergeben! Bitte wählen Sie eine andere"); elseif ($f_at_barcode != "" && $db->getOne("SELECT at_barcode FROM article WHERE at_barcode = '" . $f_at_barcode . "'")) : $statusMessage = getLngt("Der eindeutige Barcode ist bereits vergeben! Bitte prüfen Sie, ob der " . wrapPhrase("Artikel", $objecttypemode) . " schon existiert! Es erfolgte keine Änderung!"); elseif ($db->getOne("SELECT at_name FROM article WHERE at_name = '" . $f_at_name . "'")) : $statusMessage = getLngt("Die " . wrapPhrase("Artikelbezeichnung", $objecttypemode) . " existiert schon! Eine Identität scheint sehr wahrscheinlich, deshalb wird der Artikel unter dieser Bezeichnung nicht angelegt!"); else: TA("B"); $currentTime = getDateTime("0"); // Insert article // $f_at_discount = str_replace (",", ".", $f_at_discount); // $f_at_prov = str_replace (",", ".", $f_at_prov); insertStmt("article", array("at_eid", $f_at_eid, "at_name", $f_at_name, "hq_id", $hq_id, "at_match", $f_at_match, "at_description", $f_at_description, "at_barcode", $f_at_barcode, "at_createtime", $currentTime, "atg_id", $g_atg_id, "at_bundlequantity", $f_at_bundlequantity, "at_bundlecode", $f_at_bundlecode, "at_stk_itemquantity", $f_at_stk_itemquantity, "at_stk_areaquantity", $f_at_stk_areaquantity, "at_serialno", $f_at_serialno, "at_mountable", $f_at_mountable)); $at_id_new = getLastInsertId(); // Set special article group like a customer relation et al. if ($g_atg_id != "" && is_numeric($g_atg_id) && $g_atg_id > "0") : if (existsEntry("articlegroupitem",array("md_id", $md_id, "hq_id", "0", "at_id", $g_atg_id))) : insertStmt("articlegroupitem", array("md_id", $md_id, "hq_id", '0', "atg_id", $g_atg_id, "at_id", $at_id_new)); else : insertStmt("articlegroupitem", array("md_id", $md_id, "hq_id", $hq_id, "atg_id", $g_atg_id, "at_id", $at_id_new)); endif; $g_atg_id = ""; endif; // Write logdata into log database writeToLogDB("61",$hq_id,"",$usr_id,"","","","STATUS_NEW=" . $logString,$at_id_new); TA("C"); TA("E"); // Reset fields of form-parameters // clearParameters($httpVisualVars); // <= Moved to the end of the php-part of this script... $dbOperationCompleted = "1"; endif; else : $statusMessage = getLngt("Bitte geben Sie alle mit * gekennzeichneten Felder ein!"); endif; endif; // Modify article if ($f_act == "modifyArticle" && $articleId != "") : if ($f_at_eid != "" && $f_at_name != "") : if ($db->getOne("SELECT at_eid FROM article WHERE at_eid = '" . $f_at_eid . "' AND NOT (at_id = '" . $articleId . "')")) : $statusMessage = getLngt("Die eindeutige " . wrapPhrase("Artikelnummer", $objecttypemode) . " (ExtID) ist bereits vergeben! Bitte wählen Sie eine andere!"); elseif ($f_at_barcode != "" && $db->getOne("SELECT at_barcode FROM article WHERE at_barcode = '" . $f_at_barcode . "' AND NOT (at_id = '" . $articleId . "')")) : $statusMessage = getLngt("Der eindeutige Barcode ist bereits vergeben! Bitte prüfen Sie, ob " . wrapPhrase("der Artikel", $objecttypemode) . " schon existiert! Es erfolgte keine Änderung!"); else : // Get current state of the serial number $currAtSerialno = getFieldValueFromId("article", "at_id", $articleId, "at_serialno"); // Only check if state of the serial number will be changed !!! if ($currAtSerialno != $f_at_serialno) : // Check for switched flag for serial number ... if ($f_at_serialno == "1") : // 1. Check for existing quantity on any stockarticle if (quantityOfSpecialStockArticleOnAnyStock($articleId) > 0) : $f_at_serialno = "0"; $statusMessage = getLngt(wrapPhrase("Dieser Artikel", $objecttypemode) . " weist Lagerbestände aus (evtl. auch in einer anderen Niederlassung)! Das Kennzeichen kann deshalb zur Zeit leider nicht gesetzt werden!"); endif; // 2. Check for article being a bundle if (isBundledArticle($articleId)) : $f_at_serialno = "0"; $statusMessage = getLngt("Solange " . wrapPhrase("dieser Artikel", $objecttypemode) . " ein Gebinde ist, kann keine Seriennummer geführt werden!"); endif; // 3. Check for article being in any bundle if (existsEntry("articlebundle",array("at_id2",$articleId))) : $f_at_serialno = "0"; $statusMessage = getLngt("Solange " . wrapPhrase("dieser Artikel", $objecttypemode) . " Bestandteil eines Gebindes ist (evtl. auch in einer anderen Niederlassung), kann keine Seriennummer geführt werden!"); endif; else : // Check for existence of serial numbers if (existsEntry("articleitem",array("at_id",$articleId))) : $f_at_serialno = "1"; $statusMessage = getLngt(wrapPhrase("Dieser Artikel", $objecttypemode) . " besitzt noch eine eingetragene Seriennummern! Der Status bzgl. Seriennummer wurde nicht verändert!"); endif; endif; endif; TA("B"); // Get current state in at_modify_status because it is equal to "1" then do NOT change $modifyStatus = getFieldValueFromId("article", "at_id", $articleId, "at_modify_status"); if ($modifyStatus != "1") : $modifyStatus = "2"; endif; // Update article // $f_at_discount = str_replace (",", ".", $f_at_discount); // $f_at_prov = str_replace (",", ".", $f_at_prov); $defaultFields = array("at_eid", $f_at_eid, "at_name", $f_at_name, "at_match", $f_at_match, "at_description", $f_at_description, "at_barcode", $f_at_barcode, "at_bundlequantity", $f_at_bundlequantity, "at_bundlecode", $f_at_bundlecode, "at_stk_itemquantity", $f_at_stk_itemquantity, "at_stk_areaquantity", $f_at_stk_areaquantity, "at_serialno", $f_at_serialno, "at_mountable", $f_at_mountable); updateStmt("article","at_id",$articleId,$defaultFields); // Set special article group like a customer relation et al. if ($g_atg_id != "" && is_numeric($g_atg_id) && $g_atg_id > "0") : if (existsEntry("articlegroupitem",array("md_id", $md_id, "hq_id", "0", "at_id", $articleId))) : updateStmt("articlegroupitem","at_id",$articleId,array("atg_id",$g_atg_id), "md_id = '" . $md_id . "' AND hq_id = '0'"); elseif (existsEntry("articlegroupitem",array("hq_id",$hq_id,"at_id",$articleId))) : updateStmt("articlegroupitem","at_id",$articleId,array("atg_id",$g_atg_id), "md_id = '" . $md_id . "' AND hq_id = '" . $hq_id . "'"); else : insertStmt("articlegroupitem", array("md_id", $md_id, "hq_id", $hq_id, "atg_id", $g_atg_id, "at_id", $articleId)); endif; else : deleteStmt("articlegroupitem","md_id = '" . $md_id . "' AND hq_id = '" . $hq_id . "' AND at_id = '" . $articleId . "'"); endif; // Write logdata into log database writeToLogDB("62",$hq_id,"",$usr_id,"","","","STATUS_MODIFIED=" . $logString, $articleId); TA("C"); TA("E"); $dbOperationCompleted = "1"; endif; else : $statusMessage = getLngt("Bitte geben Sie alle mit * gekennzeichneten Felder ein!"); endif; endif; // Delete article if ($f_act == "removeArticle" && $articleId != "") : if (existsEntry("article",array("at_id",$articleId))) : // TA("B"); // deleteStmt("article","at_id = '".$articleId."'"); // Write logdata into log database // writeToLogDB("65",$hq_id,"",$usr_id,"","","","STATUS_DELETED",$articleId); // TA("C"); // TA("E"); else : $statusMessage = getLngt(wrapPhrase("Der Artikel", $objecttypemode) . " kann nicht entfernt werden!"); endif; endif; // Set status of authentication of the article if ($f_act == "setAuthentication") : // Check for company if ($articleId != "") : if (existsEntry("article",array("at_id",$articleId))) : // Update authentication-status updateStmt("article","at_id",$articleId,array("at_authenticated",$f_at_authenticated)); // Write logdata into log database writeToLogDB("63",$hq_id,"",$usr_id,"","","","STATUS_AUTHENTICATION=".$f_at_authenticated,$articleId); else : $statusMessage = getLngt(wrapPhrase("Der spezifizierte Artikel", $objecttypemode) . " ist nicht im Datenbestand erhalten!"); endif; else : $statusMessage = getLngt("Sie haben " . wrapPhrase("keinen Artikel", $objecttypemode) . " spezifiziert!"); endif; endif; // Set status of visibility of the article if ($f_act == "setVisibility") : // Check for company if ($articleId != "") : if (existsEntry("article",array("at_id",$articleId))) : // Update authentication-status updateStmt("article","at_id",$articleId,array("at_visible",$f_at_visible)); // Write logdata into log database writeToLogDB("64",$hq_id,"",$usr_id,"","","","STATUS_VISIBILITY=".$f_at_visible,$articleId); else : $statusMessage = getLngt(wrapPhrase("Der spezifizierte Artikel", $objecttypemode) . " ist nicht im Datenbestand erhalten!"); endif; else : $statusMessage = getLngt("Sie haben " . wrapPhrase("keinen Artikel", $objecttypemode) . " spezifiziert!"); endif; endif; // Remove bundle article if ($f_act == "removeBundleArticle") : // Check for company if ($articleId != "") : // Check for existence of a subarticle of the article to be removed if (!isBundledArticle($f_bundlearticle_remove)) : if (existsEntry("articlebundle",array("at_id",$articleId, "at_id2", $f_bundlearticle_remove))) : // Delete bundle article out of the bundle deleteStmt("articlebundle","at_id = '".$articleId."' AND at_id2 = '" . $f_bundlearticle_remove . "'"); // Write logdata into log database // writeToLogDB("64",$hq_id,"",$usr_id,"","","","STATUS_VISIBILITY=".$f_at_visible,$articleId); else : $statusMessage = getLngt(wrapPhrase("Der zu löschende Artikel") . " ist nicht im Gebinde erhalten!"); endif; else : $statusMessage = getLngt(wrapPhrase("Der zu löschende Artikel") . " ist ein Gebindeartikel! Bitte zuerst die ihm zugeordneten " . wrapPhrase("Artikel", $objecttypemode) . " entfernen!"); endif; else : $statusMessage = getLngt("Sie haben " . wrapPhrase("keinen Artikel", $objecttypemode) . " spezifiziert!"); endif; endif; // New bundle article if ($f_act == "newBundleArticle") : // Check for company if ($articleId != "") : if (existsEntry("article",array("at_id",$articleId)) && existsEntry("article",array("at_eid", $f_at_eid_new))) : // Perhaps it is possible to check existing item quantity on any stock before changing to bundled article ...?! // $tmpArticleItemQuantity = getStockArticleQuantitySubtree ($stkIdRoot, "0", stkat.stkat_itemquantity, "at.at_id = " . $tmpAtId . "'"); if ($f_atb_bundlequantity_new > 0) : // Get at_id of the EID in f_at_eid_new $atIdTmp = getFieldValueFromId("article", "at_eid", $f_at_eid_new, "at_id"); if ($atIdTmp != "") : $storeArticle = true; // Check for switch for serial numbers for the CURRENT article $tmpAtSerialNo = getFieldValueFromId("article", "at_id", $articleId, "at_serialno"); if ($storeArticle && $tmpAtSerialNo == "1") : $storeArticle = false; $statusMessage = getLngt(wrapPhrase("Dem Artikel", $objecttypemode) . " dürfen " . wrapPhrase("keine Artikel", $objecttypemode) . " oder Gebinde zugefügt werden, da " . wrapPhrase("für diesen Artikel", $objecttypemode) . " Seriennummern erfasst werden müssen!"); endif; // Check for switch for serial numbers for the CURRENT article $tmpAtSerialNo = getFieldValueFromId("article", "at_id", $atIdTmp, "at_serialno"); if ($storeArticle && $tmpAtSerialNo == "1") : $storeArticle = false; $statusMessage = getLngt(wrapPhrase("Der Artikel", $objecttypemode) . " darf nicht als Gebindebestandteil zugefügt werden, da " . wrapPhrase("für diesen Artikel", $objecttypemode) . " Seriennummern erfasst werden müssen!"); endif; // Check for identity if ($storeArticle && $articleId == $atIdTmp) : $storeArticle = false; $statusMessage = getLngt(wrapPhrase("Ein Artikel", $objecttypemode) . " darf nicht sich selbst zugefügt werden, also ein Gebinde kann nicht aus sich selbst bestehen!"); endif; // Check for cycle if article is a bundeled article if ($storeArticle && isBundledArticle($atIdTmp)) : $noCycle = true; $recurseCount = "0"; checkForCycle($articleId, $atIdTmp); if (!$noCycle) : // Cycle detected $storeArticle = false; $statusMessage = getLngt(wrapPhrase("Der Gebindeartikel", $objecttypemode) . " kann nicht zugefügt werden, da nach der Ausführung eine zyklische Abhängigkeit bestünde!"); endif; endif; // If current article in $articleId is NOT a bundle and shall become a bundle by association of an article in $atIdTmp // then check whether $articleId has currently a quantity on any stock! // Do NOT execute transformation from "item article" to "bundle article" if at least one item does exist on any stock! // ATTENTION: This has to be done on ALL stocks and therefore on all root stocks, too. The administration of articles is independent of a specisal headquarters!!! if ($storeArticle && !isBundledArticle($articleId)) : // Check for quantity on any stock if (quantityOfSpecialStockArticleOnAnyStock($articleId) > 0) : $storeArticle = false; $statusMessage = getLngt("Bitte buchen Sie vor der Umwandlung " . wrapPhrase("in einen Gebindeartikel", $objecttypemode) . " die bestehenden Stückmengen aus!"); endif; endif; // Insert new bundled article or update quantity of an existing bundled article if ($storeArticle) : // Check existence of a parent-child pair if (existsEntry("articlebundle",array("at_id",$articleId, "at_id2",$atIdTmp))) : updateQuantityOfExistingBundledArticle($articleId, $atIdTmp, $f_atb_bundlequantity_new); else : insertStmt("articlebundle", array("at_id", $articleId, "at_id2", $atIdTmp, "atb_bundlequantity", $f_atb_bundlequantity_new)); endif; endif; // Write logdata into log database // writeToLogDB("64",$hq_id,"",$usr_id,"","","","STATUS_VISIBILITY=".$f_at_visible,$articleId); else : $statusMessage = getLngt(wrapPhrase("Der Artikel", $objecttypemode) . " ist nicht bekannt!"); endif; else : $statusMessage = getLngt("Die Gebindemenge muss größer Null sein!"); endif; else : $statusMessage = getLngt(wrapPhrase("Der Artikel", $objecttypemode) . " existiert nicht!"); endif; else : $statusMessage = getLngt("Sie haben " . wrapPhrase("keinen Artikel", $objecttypemode) . " spezifiziert!"); endif; endif; // ********************************* // * Selection of the article-data * // ********************************* if ($articleId != "") : $sqlquery = "SELECT at.at_id, at.hq_id, at.at_eid, at.at_name, atgi.atg_id, at.at_match, at.at_description," . " at.at_barcode, at.at_authenticated, at.at_visible, at.at_serialno, at.at_mountable," . " at.at_bundlequantity, at.at_bundlecode, at.at_stk_itemquantity, at.at_stk_areaquantity" . " FROM article AS at LEFT JOIN articlegroupitem AS atgi ON at.at_id = atgi.at_id AND atgi.md_id = '" . $md_id . "' AND atgi.hq_id IN ('0','" . $hq_id . "')" . " WHERE at.at_id = '" . $articleId . "'" . getSQLMandatorPhrase($emp_id, " AND at.hq_id = '" . $hq_id . "' "); $result = $db->query($sqlquery); if (DB::isError($result)) die ("$PHP_SELF: " . $result->getMessage()); while ($row = $result->fetch_assoc()): $f_articleId = $row["at_id"]; $f_at_eid = $row["at_eid"]; $f_at_name = $row["at_name"]; $f_at_match = $row["at_match"]; $f_at_description = $row["at_description"]; $f_at_barcode = $row["at_barcode"]; $f_at_hq_id = $row["hq_id"]; $f_at_authenticated = $row["at_authenticated"]; $f_at_authenticated2 = 0; if ($f_at_authenticated != "1") : $f_at_authenticated = 0; $f_at_authenticated2 = 1; endif; $f_at_visible = $row["at_visible"]; $f_at_visible2 = 0; if ($f_at_visible != "1") : $f_at_visible = 0; $f_at_visible2 = 1; endif; $f_at_bundlequantity = $row["at_bundlequantity"]; $f_at_bundlecode = $row["at_bundlecode"]; $f_at_stk_itemquantity = $row["at_stk_itemquantity"]; $f_at_stk_areaquantity = $row["at_stk_areaquantity"]; $f_at_serialno = $row["at_serialno"]; $f_at_mountable = $row["at_mountable"]; $g_atg_id = $row["atg_id"]; endwhile; $result->free(); // *** BUNDLE *** // If the currrent article represents a bundle, there are one or more associated articles belonging to this bundle // The bundle is an article by itself !!! $sqlquery = "SELECT atb.at_id, atb.at_id2, at.at_eid, at.at_name, at2.at_eid AS at_eid2, at2.at_name AS at_name2," . " atb.atb_bundlequantity" . " FROM articlebundle AS atb, article AS at, article AS at2" . " WHERE atb.at_id = '" . $articleId . "' AND" . " atb.at_id = at.at_id AND" . " atb.at_id2 = at2.at_id"; $result = $db->query($sqlquery); if (DB::isError($result)) die ("$PHP_SELF: " . $result->getMessage()); $f_articlebundle = ""; $atCount = 0; $f_articlebundle .= "
"; while ($row = $result->fetch_assoc()): $atCount++; $f_articlebundle .= "
"; $f_articlebundle .= "
"; $f_articlebundle .= "   "; $f_articlebundle .= "   "; $f_articlebundle .= "   "; $f_articlebundle .= " "; $f_articlebundle .= "
"; endwhile; $result->free(); if ($atCount == 0) : $f_articlebundle .= "
"; $f_articlebundle .= "
"; $f_articlebundle .= getLngt("- Zur Zeit sind noch keine Gebindebestandteile eingetragen -"); $f_articlebundle .= "
"; endif; $f_articlebundle .= "
"; $f_articlebundle .= "
"; $f_articlebundle .= getLngt("EID:") . "   "; // $f_articlebundle .= "   "; $f_articlebundle .= getLngt("Menge:") . "   "; $f_articlebundle .= "
"; $f_articlebundle .= defineButtonType08(getLngt("Hinzufügen"), "action_new_bundlearticle", "newBundleArticle();", "90", "left", "3"); endif; // Get the data of the article group if ($g_atg_id != "") : // $g_atg_key = getFieldValueFromId("articlegroup", "atg_id", "$g_atg_id", "atg_key"); // $g_atg_name = getFieldValueFromId("articlegroup", "atg_id", "$g_atg_id", "atg_name"); $g_atg_key = getFieldValueFromClause("articlegroup","atg_key","md_id = '" . $md_id . "' AND atg_id = '" . $g_atg_id . "'"); $g_atg_name = getFieldValueFromClause("articlegroup","atg_name","md_id = '" . $md_id . "' AND atg_id = '" . $g_atg_id . "'"); endif; // Get max-value of the EID of the current article for inserting a new row // The constant value "AT_EID_GENERATION" contains the prefix of the SID [SPECIAL TREATMENT] $f_eid_maxval = ""; // $atEidGeneration = getParameterValue("0", "AT_EID_GENERATION"); if (AT_EID_GENERATION != "") : $f_eid_maxval = getMaxOfField("article", "at_eid", "at_eid < '" . AT_EID_GENERATION . "'"); // Check existence of at least one EID with requested prefix if (substr($f_eid_maxval, 0, strlen(AT_EID_PREFIX)) != AT_EID_PREFIX) : $f_eid_maxval = AT_EID_PREFIX . "100000"; endif; if (is_numeric($f_eid_maxval)) : ++$f_eid_maxval; // Increment because of the next free EID (Attention: Not TA-safe!) else : // Remove alphanumeric chars (e.g "HTHB123456" => "123456") $prefixChars = ereg_replace("[^[:alpha:]+]","",$f_eid_maxval); $f_eid_maxval = ereg_replace("[^[:digit:]+]","",$f_eid_maxval); ++$f_eid_maxval; $f_eid_maxval = $prefixChars . $f_eid_maxval; endif; endif; // Only for output $title = getLngt(wrapPhrase("NEUER ARTIKEL", $objecttypemode)); $buttonAuthentication = ""; $buttonVisibility = ""; $displayTextAuthentication = ""; $displayTextVisibility = ""; $confirmTextAuthentication = ""; $confirmTextVisibility = ""; if ($articleId != "") : $title = getLngt(wrapPhrase("ARTIKEL", $objecttypemode)) . ":  " . substr($f_at_name, 0, 100); // Check for being a bundled article if (isBundledArticle($articleId)) : $title .= "   [" . getLngt("GEBINDE") . "]   "; endif; // Show mandator /* if (authCheckEmployeeRights($emp_id, "10")) : // Name of the headquarter $hq_name = getFieldValueFromId("headquarters", "hq_id", $f_at_hq_id, "hq_name"); $title .= "          "; $title .= "[" . $hq_name . "]"; $title .= "          "; endif; */ $buttonAuthentication = defineButtonType08(getLngt("Sperren"), "action_lock", "authenticationFinishPage();", "90", "left", "3"); $confirmTextAuthentication = getLngt("Möchten Sie den Eintrag wirklich sperren?"); if ($f_at_authenticated != "1") : $buttonAuthentication = defineButtonType08(getLngt("Freischalten"), "action_lock", "authenticationFinishPage();", "90", "left", "3"); $displayTextAuthentication = getLngt("(gesperrt)"); $confirmTextAuthentication = getLngt("Möchten Sie den Eintrag wirklich freischalten?"); endif; $buttonVisibility = defineButtonType08(getLngt("Ausblenden"), "action_visible", "visibilityFinishPage();", "90", "left", "3"); $confirmTextVisibility = getLngt("Möchten Sie den Eintrag wirklich ausblenden?"); if ($f_at_visible != "1") : $buttonVisibility = defineButtonType08(getLngt("Einblenden"), "action_visible", "visibilityFinishPage();", "90", "left", "3"); $displayTextVisibility = getLngt("(ausgeblendet)"); $confirmTextVisibility = getLngt("Möchten Sie den Eintrag wirklich einblenden?"); endif; endif; // Only for output: // Check for updating the list $javaScriptOut = ""; if ($statusMessage == "" && $f_act != "" && $dbOperationCompleted == "1" && MASK_ARTICLE_SHOW_LIST == "1") : $javaScriptOut .= "opener.finishPage('".strWrapJs($f_at_eid)."','".strWrapJs($f_at_name)."','".strWrapJs($f_at_match)."','".strWrapJs($f_at_description)."','".strWrapJs($f_at_barcode)."');"; endif; if ($f_act == "newArticle" && $dbOperationCompleted == "1") : // Reset fields of form-parameters clearParameters($httpVisualVars); // Init package factor if ($f_at_stk_itemquantity == "") : $f_at_stk_itemquantity = "1"; endif; if ($f_at_stk_areaquantity == "") : $f_at_stk_areaquantity = "1"; endif; endif; // ****************************************************************************************************************** $f_at_eid = strWrapHtml($f_at_eid); $f_at_name = strWrapHtml($f_at_name); $f_at_match = strWrapHtml($f_at_match); $f_at_description = strWrapHtml($f_at_description); if ($articleId != "" || AT_EID_GENERATION == "") : $f_at_eid_out = ""; else : if ($f_at_eid == "") : $f_at_eid = $constAtEidPrefix; endif; $f_at_eid_out = "
 
"; $f_at_eid_out .= defineButtonType08("...", "action_eid", "searchMaxEID();", "20", "left", "2"); endif; // Generate Output if ($articleId != "") : $f_actText = "modifyArticle"; else : $f_actText = "newArticle"; endif; $f_at_id = $articleId; // Serial number $f_at_serialno_0 = ""; if ($f_at_serialno == "1") : $f_at_serialno_0 = "checked"; endif; // Article mountable $f_at_mountable_0 = ""; if ($f_at_mountable == "1") : $f_at_mountable_0 = "checked"; endif; /* $f_at_fixprice_discount_0 = ""; if ($f_at_fixprice_discount == "1") : $f_at_fixprice_discount_0 = "checked"; endif; $f_at_xxx_0 = ""; $f_at_xxx_1 = ""; if ($f_at_xxx == "1" || $f_at_xxx == "3") : $f_at_xxx_0 = "checked"; endif; if ($f_at_xxx == "2" || $f_at_xxx == "3") : $f_at_xxx_1 = "checked"; endif; $f_at_commission_no_0 = ""; $f_at_commission_no_1 = ""; if ($f_at_commission_no == "0" || $f_at_commission_no == "") : $f_at_commission_no_0 = "checked"; endif; if ($f_at_commission_no == "1") : $f_at_commission_no_1 = "checked"; endif; */ ?> <?php echo $pageTitel . " " . $f_at_name ?>
   
>*:
      *: 
>
>
>
 
 
>
  
>
>
>
>
>
       */ ?>
>
1) : ?>  ( )    *