mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 06:00:28 +01:00
reimplemented module artikeltexte
This commit is contained in:
parent
52b64ef8bc
commit
a5f5f4aede
@ -1921,8 +1921,17 @@ class YUI {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$this->app->erp->RunHook('AARLGPositionenSprache', 6, $module, $id, $artikel_id, $sprache, $bezeichnung, $beschreibung);
|
||||
|
||||
// OpenXE artikel_texte
|
||||
$language = $this->app->erp->GetSpracheBeleg($module,$id);
|
||||
$sql = "SELECT * FROM artikel_texte WHERE artikel = '".$artikel_id."' AND sprache = '".$language."'";
|
||||
$uebersetzung = $this->app->DB->SelectRow($sql);
|
||||
if ($uebersetzung) {
|
||||
$bezeichnung = $uebersetzung['name'];
|
||||
$beschreibung = $uebersetzung['beschreibung'];
|
||||
}
|
||||
|
||||
$bezeichnung = $this->app->DB->real_escape_string($bezeichnung);
|
||||
$beschreibung = $this->app->DB->real_escape_string($beschreibung);
|
||||
|
||||
|
@ -31396,15 +31396,15 @@ function Firmendaten($field,$projekt="")
|
||||
$variante_von = $this->app->DB->Select("SELECT variante_von FROM artikel WHERE id = '$artikel' LIMIT 1");
|
||||
if($variante_von)$beschreibung = $this->app->DB->real_escape_string($this->app->DB->Select("SELECT anabregs_text FROM artikel WHERE id='$variante_von' LIMIT 1"));
|
||||
}
|
||||
if($this->ModulVorhanden('artikel_texte')){
|
||||
if(array_key_exists($belegsprache,$adresssprachen)){
|
||||
|
||||
if(array_key_exists($belegsprache,$adresssprachen)){
|
||||
$belegsprache = $adresssprachen[$belegsprache];
|
||||
}
|
||||
$artikelbeschreibung = $this->app->DB->Select("SELECT beschreibung FROM artikel_texte WHERE artikel=$artikel AND sprache='$belegsprache'");
|
||||
if($artikelbeschreibung){
|
||||
$beschreibung = $artikelbeschreibung;
|
||||
}
|
||||
}
|
||||
$artikelbeschreibung = $this->app->DB->Select("SELECT beschreibung FROM artikel_texte WHERE artikel=$artikel AND sprache='$belegsprache'");
|
||||
if($artikelbeschreibung){
|
||||
$beschreibung = $artikelbeschreibung;
|
||||
}
|
||||
|
||||
}
|
||||
//$vpe = $this->app->DB->Select("SELECT vpe FROM verkaufspreise WHERE id='$verkauf' LIMIT 1");
|
||||
$sort = $this->app->DB->Select("SELECT MAX(sort) FROM ".$typ."_position WHERE $typ='$id' LIMIT 1");
|
||||
@ -31419,20 +31419,19 @@ function Firmendaten($field,$projekt="")
|
||||
if($this->app->DB->Select("SELECT adr.id FROM auftrag auf INNER JOIN adresse adr ON auf.adresse = adr.id AND adr.sprache = 'englisch' WHERE auf.id = '$id' LIMIT 1"))
|
||||
$name = $this->app->DB->Select("SELECT name_en FROM artikel WHERE id = '$artikel'");
|
||||
if($name === '')$name = $this->app->DB->Select("SELECT name_de FROM artikel WHERE id = '$artikel'");
|
||||
if($this->ModulVorhanden('artikel_texte')){
|
||||
if(array_key_exists($belegsprache,$adresssprachen)){
|
||||
|
||||
if(array_key_exists($belegsprache,$adresssprachen)){
|
||||
$belegsprache = $adresssprachen[$belegsprache];
|
||||
}
|
||||
$artikelbezeichnung = $this->app->DB->Select(
|
||||
}
|
||||
$artikelbezeichnung = $this->app->DB->Select(
|
||||
"SELECT name
|
||||
FROM artikel_texte
|
||||
WHERE artikel=$artikel AND sprache='$belegsprache'
|
||||
ORDER BY name <> '' DESC
|
||||
LIMIT 1"
|
||||
);
|
||||
if($artikelbezeichnung){
|
||||
);
|
||||
if($artikelbezeichnung){
|
||||
$name = $artikelbezeichnung;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1177,11 +1177,7 @@ class Remote
|
||||
}
|
||||
$shopexportarr = $this->app->DB->SelectRow("SELECT * FROM shopexport WHERE id='$id' LIMIT 1");
|
||||
$artikelexport = $shopexportarr['artikelexport'];
|
||||
$translationpossible = false;
|
||||
if($this->app->erp->ModulVorhanden('artikel_texte'))
|
||||
{
|
||||
$translationpossible = true;
|
||||
}
|
||||
|
||||
$loadElements = [
|
||||
'foreign_numbers' => true,
|
||||
'article_descriptions' => true,
|
||||
@ -1811,7 +1807,7 @@ class Remote
|
||||
foreach ($db->yieldAll($query) as $matrixdaten) {
|
||||
$data[$i]['matrix_varianten']['gruppen'][$matrixdaten['gruppe']][$matrixdaten['wert']] = true;
|
||||
|
||||
if ($translationpossible && !empty($loadElements['translations'])) {
|
||||
if (!empty($loadElements['translations'])) {
|
||||
if (empty($gruppenuebersetzung[$matrixdaten['gruppe']])) {
|
||||
$gruppennamen = $this->app->DB->SelectArr("SELECT
|
||||
IF(name_external_from<>'',name_external_from,name_from) AS name_from,
|
||||
@ -2092,17 +2088,16 @@ class Remote
|
||||
$variantennettopreis = $this->app->erp->GetVerkaufspreis($v['id'], 1, 0);
|
||||
}
|
||||
}
|
||||
if(!empty($loadElements['translations']) && $this->app->erp->ModulVorhanden('artikel_texte')){
|
||||
$sprachen = ['de','en'];
|
||||
foreach ($sprachen as $sprache){
|
||||
$sprachen = ['de','en'];
|
||||
foreach ($sprachen as $sprache){
|
||||
$query = sprintf("SELECT * FROM artikel_texte WHERE shop=%d AND sprache='%s' AND artikel=%d AND aktiv=1 LIMIT 1",
|
||||
$id,strtoupper($sprache),$v['id']);
|
||||
$id,strtoupper($sprache),$v['id']);
|
||||
$ersetzeStandardbeschreibung = $this->app->DB->SelectRow($query);
|
||||
if(!empty($ersetzeStandardbeschreibung)){
|
||||
$v['name_'.$sprache] = $ersetzeStandardbeschreibung['name'];
|
||||
if(!empty($ersetzeStandardbeschreibung)) {
|
||||
$v['name_'.$sprache] = $ersetzeStandardbeschreibung['name'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->app->erp->RunHook('remote_send_article_list_pseudostorage', 3, $id, $v['id'], $v['pseudolager']);
|
||||
if(is_numeric($v['pseudolager']) && $v['pseudolager'] < 0) {
|
||||
$v['pseudolager'] = 0;
|
||||
|
@ -7333,6 +7333,10 @@ class Artikel extends GenArtikel {
|
||||
$this->app->erp->MenuEintrag('index.php?module=artikel&action=eigenschaften&id='.$id, 'Eigenschaften');
|
||||
}
|
||||
|
||||
$this->app->erp->MenuEintrag("index.php?module=artikeltexte&action=list&artikel=$id",'Übersetzung');
|
||||
|
||||
$this->app->erp->MenuEintrag("index.php?module=artikel&action=baum&id=$id",'Artikelbaum');
|
||||
|
||||
if($rabatt!='1'){
|
||||
$this->app->erp->MenuEintrag("index.php?module=artikel&action=einkauf&id=$id",'Einkauf');
|
||||
if($this->app->erp->RechteVorhanden('einkaufabgleich','einkaufapi'))
|
||||
@ -7393,7 +7397,7 @@ class Artikel extends GenArtikel {
|
||||
}
|
||||
|
||||
$this->app->erp->MenuEintrag('index.php?module=artikel&action=list','Zurück zur Übersicht');
|
||||
$this->app->erp->InsertMenuAfter("index.php?module=artikel&action=baum&id=$id",'Artikelbaum','artikel','eigenschaften');
|
||||
|
||||
}
|
||||
}
|
||||
$this->app->erp->MenuEintrag('index.php?module=artikel&action=create','Neuen Artikel anlegen');
|
||||
|
270
www/pages/artikeltexte.php
Normal file
270
www/pages/artikeltexte.php
Normal file
@ -0,0 +1,270 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Copyright (c) 2022 OpenXE project
|
||||
*/
|
||||
|
||||
use Xentral\Components\Database\Exception\QueryFailureException;
|
||||
|
||||
class Artikeltexte {
|
||||
|
||||
function __construct($app, $intern = false) {
|
||||
$this->app = $app;
|
||||
if ($intern)
|
||||
return;
|
||||
|
||||
$this->app->ActionHandlerInit($this);
|
||||
$this->app->ActionHandler("list", "artikel_texte_list");
|
||||
$this->app->ActionHandler("create", "artikel_texte_edit"); // This automatically adds a "New" button
|
||||
$this->app->ActionHandler("edit", "artikel_texte_edit");
|
||||
$this->app->ActionHandler("delete", "artikel_texte_delete");
|
||||
$this->app->DefaultActionHandler("list");
|
||||
$this->app->ActionHandlerListen($app);
|
||||
}
|
||||
|
||||
public function Install() {
|
||||
/* Fill out manually later */
|
||||
}
|
||||
|
||||
static function TableSearch(&$app, $name, $erlaubtevars) {
|
||||
switch ($name) {
|
||||
case "artikel_texte_list":
|
||||
$allowed['artikel_texte_list'] = array('list');
|
||||
$heading = array('','','Nummer','Artikel','Sprache', 'Name', 'Kurztext', 'Beschreibung', 'Beschreibung_online', 'Meta title', 'Meta description', 'Meta keywords', 'Katalogartikel', 'Katalogbezeichnung', 'Katalogtext', 'Shop', 'Aktiv', 'Menü');
|
||||
$width = array('1%','1%','1%'); // Fill out manually later
|
||||
|
||||
$artikel = $app->User->GetParameter('artikeltexte_artikel');
|
||||
|
||||
// columns that are aligned right (numbers etc)
|
||||
// $alignright = array(4,5,6,7,8);
|
||||
|
||||
$findcols = array('a.id','a.id','art.nummer', 'art.name_de', 'a.sprache', 'a.name', 'a.kurztext', 'a.beschreibung', 'a.beschreibung_online', 'a.meta_title', 'a.meta_description', 'a.meta_keywords', 'a.katalogartikel', 'a.katalog_bezeichnung', 'a.katalog_text', 'a.shop', 'a.aktiv');
|
||||
$searchsql = array('a.artikel', 'a.sprache', 'a.name', 'a.kurztext', 'a.beschreibung', 'a.beschreibung_online', 'a.meta_title', 'a.meta_description', 'a.meta_keywords', 'a.katalogartikel', 'a.katalog_bezeichnung', 'a.katalog_text', 'a.shop', 'a.aktiv');
|
||||
|
||||
$defaultorder = 1;
|
||||
$defaultorderdesc = 0;
|
||||
$aligncenter = array();
|
||||
$alignright = array();
|
||||
$numbercols = array();
|
||||
$sumcol = array();
|
||||
|
||||
$dropnbox = "'<img src=./themes/new/images/details_open.png class=details>' AS `open`, CONCAT('<input type=\"checkbox\" name=\"auswahl[]\" value=\"',a.id,'\" />') AS `auswahl`";
|
||||
|
||||
// $moreinfo = true; // Allow drop down details
|
||||
// $moreinfoaction = "lieferschein"; // specify suffix for minidetail-URL to allow different minidetails
|
||||
// $mencol = 11; // Set id col for moredata/menu
|
||||
|
||||
$menu = "<table cellpadding=0 cellspacing=0><tr><td nowrap>" . "<a href=\"index.php?module=artikeltexte&action=edit&id=%value%\"><img src=\"./themes/{$app->Conf->WFconf['defaulttheme']}/images/edit.svg\" border=\"0\"></a> <a href=\"#\" onclick=DeleteDialog(\"index.php?module=artikeltexte&action=delete&id=%value%\");>" . "<img src=\"themes/{$app->Conf->WFconf['defaulttheme']}/images/delete.svg\" border=\"0\"></a>" . "</td></tr></table>";
|
||||
|
||||
$sql = "
|
||||
SELECT SQL_CALC_FOUND_ROWS a.id, $dropnbox,
|
||||
art.nummer,
|
||||
art.name_de,
|
||||
a.sprache,
|
||||
a.name,
|
||||
a.kurztext,
|
||||
a.beschreibung,
|
||||
a.beschreibung_online,
|
||||
a.meta_title,
|
||||
a.meta_description,
|
||||
a.meta_keywords,
|
||||
a.katalogartikel,
|
||||
a.katalog_bezeichnung,
|
||||
a.katalog_text,
|
||||
a.shop,
|
||||
a.aktiv,
|
||||
a.id FROM artikel_texte a
|
||||
INNER JOIN artikel art ON art.id = a.artikel
|
||||
";
|
||||
|
||||
$where = "1";
|
||||
|
||||
if ($artikel) {
|
||||
// $where .= " AND a.artikel = '".$artikel."'";
|
||||
}
|
||||
|
||||
$count = "SELECT count(DISTINCT id) FROM artikel_texte a WHERE $where";
|
||||
// $groupby = "";
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
$erg = false;
|
||||
|
||||
foreach ($erlaubtevars as $k => $v) {
|
||||
if (isset($$v)) {
|
||||
$erg[$v] = $$v;
|
||||
}
|
||||
}
|
||||
return $erg;
|
||||
}
|
||||
|
||||
function artikel_texte_list() {
|
||||
|
||||
$this->app->erp->MenuEintrag("index.php?module=artikeltexte&action=list", "Übersicht");
|
||||
$this->app->erp->MenuEintrag("index.php?module=artikeltexte&action=create", "Neu anlegen");
|
||||
|
||||
$this->app->erp->MenuEintrag("index.php", "Zurück");
|
||||
|
||||
$artikel = $this->app->Secure->GetGET('artikel');
|
||||
$this->app->User->SetParameter('artikeltexte_artikel', $artikel);
|
||||
|
||||
$this->app->YUI->TableSearch('TAB1', 'artikel_texte_list', "show", "", "", basename(__FILE__), __CLASS__);
|
||||
$this->app->Tpl->Parse('PAGE', "artikeltexte_list.tpl");
|
||||
}
|
||||
|
||||
public function artikel_texte_delete() {
|
||||
$id = (int) $this->app->Secure->GetGET('id');
|
||||
$this->app->DB->Delete("DELETE FROM `artikel_texte` WHERE `id` = '{$id}'");
|
||||
$this->app->Tpl->addMessage('error', 'Der Eintrag wurde gelöscht');
|
||||
$this->artikel_texte_list();
|
||||
}
|
||||
|
||||
/*
|
||||
* Edit artikel_texte item
|
||||
* If id is empty, create a new one
|
||||
*/
|
||||
|
||||
function artikel_texte_edit() {
|
||||
$id = $this->app->Secure->GetGET('id');
|
||||
// Check if other users are editing this id
|
||||
/* if($this->app->erp->DisableModul('artikel_texte',$id))
|
||||
{
|
||||
return;
|
||||
} */
|
||||
|
||||
$this->app->Tpl->Set('ID', $id);
|
||||
|
||||
$this->app->erp->MenuEintrag("index.php?module=artikeltexte&action=edit&id=$id", "Details");
|
||||
$this->app->erp->MenuEintrag("index.php?module=artikeltexte&action=list", "Zurück zur Übersicht");
|
||||
$id = $this->app->Secure->GetGET('id');
|
||||
$input = $this->GetInput();
|
||||
$submit = $this->app->Secure->GetPOST('submit');
|
||||
|
||||
if (empty($id)) {
|
||||
// New item
|
||||
$id = 'NULL';
|
||||
}
|
||||
|
||||
if ($submit != '')
|
||||
{
|
||||
|
||||
// Write to database
|
||||
|
||||
// Add checks here
|
||||
|
||||
// $input['projekt'] = $this->app->erp->ReplaceProjekt(true,$input['projekt'],true); // Parameters: Target db?, value, from form?
|
||||
|
||||
$columns = "id, ";
|
||||
$values = "$id, ";
|
||||
$update = "";
|
||||
|
||||
$fix = "";
|
||||
|
||||
foreach ($input as $key => $value) {
|
||||
$columns = $columns.$fix.$key;
|
||||
$values = $values.$fix."'".$value."'";
|
||||
$update = $update.$fix.$key." = '$value'";
|
||||
|
||||
$fix = ", ";
|
||||
}
|
||||
|
||||
// echo($columns."<br>");
|
||||
// echo($values."<br>");
|
||||
// echo($update."<br>");
|
||||
|
||||
$sql = "INSERT INTO artikel_texte (".$columns.") VALUES (".$values.") ON DUPLICATE KEY UPDATE ".$update;
|
||||
|
||||
// echo($sql);
|
||||
|
||||
$this->app->DB->Update($sql);
|
||||
|
||||
if ($id == 'NULL') {
|
||||
$msg = $this->app->erp->base64_url_encode("<div class=\"success\">Das Element wurde erfolgreich angelegt.</div>");
|
||||
header("Location: index.php?module=artikeltexte&action=list&msg=$msg");
|
||||
} else {
|
||||
$this->app->Tpl->addMessage('success', 'Die Einstellungen wurden erfolgreich übernommen.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Load values again from database
|
||||
if ($id != 'NULL') {
|
||||
|
||||
$dropnbox = "'<img src=./themes/new/images/details_open.png class=details>' AS `open`, CONCAT('<input type=\"checkbox\" name=\"auswahl[]\" value=\"',a.id,'\" />') AS `auswahl`";
|
||||
$result = $this->app->DB->SelectArr("
|
||||
SELECT SQL_CALC_FOUND_ROWS
|
||||
a.id,
|
||||
$dropnbox,
|
||||
art.name_de,
|
||||
a.sprache,
|
||||
a.name,
|
||||
a.kurztext,
|
||||
a.beschreibung,
|
||||
a.beschreibung_online,
|
||||
a.meta_title,
|
||||
a.meta_description,
|
||||
a.meta_keywords,
|
||||
a.katalogartikel,
|
||||
a.katalog_bezeichnung,
|
||||
a.katalog_text,
|
||||
a.shop,
|
||||
a.aktiv,
|
||||
a.id
|
||||
FROM
|
||||
artikel_texte a
|
||||
INNER JOIN artikel art ON a.artikel = art.id
|
||||
WHERE a.id=$id
|
||||
");
|
||||
|
||||
|
||||
foreach ($result[0] as $key => $value) {
|
||||
$this->app->Tpl->Set(strtoupper($key), $value);
|
||||
}
|
||||
|
||||
if (!empty($result)) {
|
||||
$artikel_texte_from_db = $result[0];
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Add displayed items later
|
||||
*
|
||||
$this->app->Tpl->Add('EMAIL', $email);
|
||||
$this->app->Tpl->Add('ANGEZEIGTERNAME', $angezeigtername);
|
||||
|
||||
$this->app->YUI->AutoComplete("artikel", "artikelnummer");
|
||||
|
||||
*/
|
||||
|
||||
$sprachenOptions = $this->app->erp->GetSprachenSelect();
|
||||
$this->app->Tpl->Set('SPRACHE', $this->app->erp->GetSelectAsso($sprachenOptions, $artikel_texte_from_db['sprache']));
|
||||
$this->app->Tpl->Parse('PAGE', "artikeltexte_edit.tpl");
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all paramters from html form and save into $input
|
||||
*/
|
||||
public function GetInput(): array {
|
||||
$input = array();
|
||||
//$input['EMAIL'] = $this->app->Secure->GetPOST('email');
|
||||
|
||||
$input['sprache'] = $this->app->Secure->GetPOST('sprache');
|
||||
$input['name'] = $this->app->Secure->GetPOST('name');
|
||||
$input['kurztext'] = $this->app->Secure->GetPOST('kurztext');
|
||||
$input['beschreibung'] = $this->app->Secure->GetPOST('beschreibung');
|
||||
$input['beschreibung_online'] = $this->app->Secure->GetPOST('beschreibung_online');
|
||||
$input['meta_title'] = $this->app->Secure->GetPOST('meta_title');
|
||||
$input['meta_description'] = $this->app->Secure->GetPOST('meta_description');
|
||||
$input['meta_keywords'] = $this->app->Secure->GetPOST('meta_keywords');
|
||||
$input['katalogartikel'] = $this->app->Secure->GetPOST('katalogartikel');
|
||||
$input['katalog_bezeichnung'] = $this->app->Secure->GetPOST('katalog_bezeichnung');
|
||||
$input['katalog_text'] = $this->app->Secure->GetPOST('katalog_text');
|
||||
$input['shop'] = $this->app->Secure->GetPOST('shop');
|
||||
$input['aktiv'] = $this->app->Secure->GetPOST('aktiv')?'1':'0';
|
||||
|
||||
return $input;
|
||||
}
|
||||
}
|
144
www/pages/content/artikeltexte_edit.tpl
Normal file
144
www/pages/content/artikeltexte_edit.tpl
Normal file
@ -0,0 +1,144 @@
|
||||
<div id="tabs">
|
||||
<ul>
|
||||
<li><a href="#tabs-1"></a></li>
|
||||
</ul>
|
||||
<!-- Example for multiple tabs
|
||||
<ul hidden">
|
||||
<li><a href="#tabs-1">First Tab</a></li>
|
||||
<li><a href="#tabs-2">Second Tab</a></li>
|
||||
</ul>
|
||||
-->
|
||||
<div id="tabs-1">
|
||||
[MESSAGE]
|
||||
<form action="" method="post">
|
||||
[FORMHANDLEREVENT]
|
||||
<div class="row">
|
||||
<div class="row-height">
|
||||
<div class="col-xs-12 col-md-12 col-md-height">
|
||||
<div class="inside inside-full-height">
|
||||
<fieldset>
|
||||
<legend>{|Artikeltexte (Übersetzung)|}</legend>
|
||||
<table width="100%" border="0" class="mkTableFormular">
|
||||
<tr>
|
||||
<td>
|
||||
{|Artikel|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" value="[NAME_DE]" size="20" disabled>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Sprache|}:
|
||||
</td>
|
||||
<td>
|
||||
<select name="sprache">[SPRACHE]</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Name|}:
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="name" id="name" cols="160">[NAME]</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Kurztext|}:
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="kurztext" id="kurztext" cols="160">[KURZTEXT]</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Beschreibung|}:
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="beschreibung" id="beschreibung" cols="160">[BESCHREIBUNG]</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Beschreibung online|}:
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="beschreibung_online" id="beschreibung_online" cols="160">[BESCHREIBUNG_ONLINE]</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Meta title|}:
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="meta_title" id="meta_title" cols="160">[META_TITLE]</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Meta description|}:
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="meta_description" id="meta_description" cols="160">[META_DESCRIPTION]</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Meta keywords|}:
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="meta_keywords" id="meta_keywords" cols="160">[META_KEYWORDS]</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Katalogartikel|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="katalogartikel" id="katalogartikel" value="[KATALOGARTIKEL]"></input>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Katalogbezeichnung|}:
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="katalog_bezeichnung" id="katalog_bezeichnung" cols="160">[KATALOG_BEZEICHNUNG]</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Katalogtext|}:
|
||||
</td>
|
||||
<td>
|
||||
<textarea name="katalog_text" id="katalog_text" cols="160">[KATALOG_TEXT]</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Shop|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="shop" id="shop" value="[SHOP]" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{|Aktiv|}:
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="aktiv" id="aktiv" value="1" [AKTIV] size="20">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<input type="submit" name="submit" value="Speichern" style="float:right" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
10
www/pages/content/artikeltexte_list.tpl
Normal file
10
www/pages/content/artikeltexte_list.tpl
Normal file
@ -0,0 +1,10 @@
|
||||
<div id="tabs">
|
||||
<ul>
|
||||
<li><a href="#tabs-1">[TABTEXT1]</a></li>
|
||||
</ul>
|
||||
<div id="tabs-1">
|
||||
[MESSAGE]
|
||||
[TAB1]
|
||||
[TAB1NEXT]
|
||||
</div>
|
||||
</div>
|
@ -3990,7 +3990,6 @@ class Importvorlage extends GenImportvorlage {
|
||||
|
||||
if($this->app->DB->Select("SELECT id FROM artikel WHERE id ='$artikelid' LIMIT 1")){
|
||||
//Sprachen
|
||||
if($this->app->erp->ModulVorhanden('artikel_texte')){
|
||||
$erlaubtefelder= array('name','kurztext','beschreibung','beschreibung_online','meta_title',
|
||||
'meta_description','meta_keywords','katalog_bezeichnung','katalog_text','katalogartikel','shop','aktiv');
|
||||
$zuImportierendeSprachen = [];
|
||||
@ -4066,8 +4065,7 @@ class Importvorlage extends GenImportvorlage {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} // Sprachen
|
||||
|
||||
//freifelduebersetzungen
|
||||
foreach ($tmp as $feldname => $feldwerte) {
|
||||
|
@ -566,11 +566,13 @@
|
||||
<div class="inside inside-full-height">
|
||||
|
||||
|
||||
<fieldset><legend> {|Beschreibung|} </legend>
|
||||
<fieldset>
|
||||
<legend> {|Beschreibung|} </legend>
|
||||
<table class="mkTableFormular" border="0">
|
||||
|
||||
<tr valign="top"><td width="500">{|Artikel (DE) (Bitte im ersten Tab bearbeiten)|}:<br>[ARTIKEL_DE_ANZEIGE]</td><td width="20"></td>
|
||||
<td width="500">{|Artikel (EN)|}:<br>[NAME_EN][MSGNAME_EN]</td></tr>
|
||||
<td width="500">{|Artikel (EN)|}:<br>[NAME_EN][MSGNAME_EN]</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr><td>{|Kurztext (DE) (Bitte im ersten Tab bearbeiten)|}:<br>[KURZTEXT_DE_ANZEIGE]</td><td width="20"></td>
|
||||
|
Loading…
Reference in New Issue
Block a user