OpenXE/www/themes/new/templates/popup.tpl

480 lines
13 KiB
Smarty
Raw Normal View History

2021-05-21 08:49:41 +02:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' 'unsafe-eval' xentral.com *.xentral.com xentral.biz *.xentral.biz *.wawision.de *.embedded-projects.net maps.googleapis.com maps.gstatic.com [ADDITIONALCSPHEADER];">
[ADDITIONALHEADER]
<title>[TITLE]</title>
<script type="text/javascript" src="./js/event.js"></script>
<script type="text/javascript" src="./js/einfuegen.js"></script>
<script type="text/javascript" src="./js/jquery/jquery-3.5.0.min.js"></script>
<script type="text/javascript" src="[JQUERYMIGRATESRC]"></script>
<script type="text/javascript" src="./js/ajax_001.js?v=11"></script>
<script type="text/javascript" src="./js/jquery.base64.min.js"></script>
<script type="text/javascript" src="./js/jquery.jeditable.js"></script>
<script type="text/javascript" src="./js/jquery.loadingOverlay.js"></script>
<link rel="stylesheet" type="text/css" href="./js/datatables/datatables.min.css"/>
<link rel="stylesheet" type="text/css" href="./themes/[THEME]/css/datatables_custom.css?v=2"/>
<link href="./themes/[THEME]/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css" media="screen">
<link href="./themes/[THEME]/css/buttons.dataTables.min.css" rel="stylesheet" type="text/css" media="screen">
<script type="text/javascript" src="./js/datatables/datatables.min.js?v=2"></script>
<script type="text/javascript" src="./js/jquery.dataTables.columnFilter.js"></script>
<script src="./js/ckeditor/ckeditor.js"></script>
<script src="./js/ckeditor/adapters/jquery.js"></script>
[CKEDITORJS]
<link href="./css/bootstrap.min.css?v=4" rel="stylesheet" type="text/css" media="screen">
<script type="text/javascript" src="./js/bootstrap.min.js" ></script>
<script type="text/javascript" src="./js/textvorlagen.js"></script>
<script type="text/javascript" src="./js/articlematrixselection.js?v=3"></script>
<link href="./themes/new/css/grid.css" rel="stylesheet" type="text/css" />
<!--<link href="./themes/new/css/style.css" rel="stylesheet" type="text/css" />-->
<link href="./themes/new/css/wiki.css" rel="stylesheet" type="text/css" />
<link href="./themes/new/css/colorPicker.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="./themes/[THEME]/css/start/jquery-ui-1.10.3.custom.css?v=2" rel="Stylesheet" />
<script type="text/javascript" src="./themes/[THEME]/js/jquery-ui-1.11.4.custom.min.js"></script>
<script type="text/javascript" src="./js/jquery-ui-timepicker-addon.js"></script>
<!--[CSSLINKSPOPUP]-->
<link rel="stylesheet" href="./themes/[THEME]/css/[COLORCSSFILE]?v=2">
<style>
:root {
[COLORCSS]
}
</style>
<link rel="stylesheet" href="./themes/[THEME]/css/styles.css?v=32">
<script type="text/javascript" src="./js/tinymce/tiny_mce.js"></script>
<style type="text/css">
input.ui-autocomplete-input { background-color:#D5ECF2; }
/* css for timepicker */
.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
.ui-timepicker-div dl { text-align: left; }
.ui-timepicker-div dl dt { float: left; clear:left; padding: 0 0 0 5px; }
.ui-timepicker-div dl dd { margin: 0 10px 10px 45%; }
.ui-timepicker-div td { font-size: 90%; }
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }
.ui-timepicker-rtl{ direction: rtl; }
.ui-timepicker-rtl dl { text-align: right; padding: 0 5px 0 0; }
.ui-timepicker-rtl dl dt{ float: right; clear: right; }
.ui-timepicker-rtl dl dd { margin: 0 45% 10px 10px; }
* {
font-size: 9pt;
font-family: 'Roboto',Verdana,Arial,sans-serif;
}
.ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
color:#fff;/*[TPLFIRMENFARBEHELL];*/
background-color:[TPLFIRMENFARBEHELL];
}
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {
border: 1px solid [TPLFIRMENFARBEGANZDUNKEL];
background:none;
background-color: #E5E4E2;
color: [TPLFIRMENFARBEGANZDUNKEL];
}
.ui-state-hover a,
.ui-state-hover a:hover,
.ui-state-hover a:link,
.ui-state-hover a:visited {
color: [TPLFIRMENFARBEGANZDUNKEL];
text-decoration: none;
}
.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-widget-header .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus,
.ui-widget-header .ui-state-focus {
background-color: #D3D3D3;
border: 1px solid #D3D3D3;
font-weight: normal;
color: var(--grey);
}
.ui-tabs-nav {
background: [TPLFIRMENFARBEHELL];
}
/* 3.1.19 BS weg
.ui-widget-content {
border-top: 1px solid [TPLFIRMENFARBEHELL];
border-left: 1px solid [TPLFIRMENFARBEHELL];
border-right: 1px solid [TPLFIRMENFARBEHELL];
}
*/
.ui-state-default, .ui-widget-header .ui-state-default {
border: 0px solid none;
}
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
border: 0px solid [TPLFIRMENFARBEHELL];
}
.ui-widget-content .ui-state-default a, .ui-widget-header .ui-state-default a, .ui-button-text {
font-size:8pt;
font-weight:bold;
border: 0px;
}
#positionaccordion h3
{
background-image:none;
background-color:rgb(211,211,211);
color:white;
}
#positionaccordion h3[aria-selected='true']
{
background-image:none;
background-color:rgb(162, 214, 36);
color:white;
}
.ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active {
color:[TPLFIRMENFARBEGANZDUNKEL];
}
.ui-widget-content .ui-state-active a, .ui-widget-header .ui-state-active a {
color:[TPLFIRMENFARBEGANZDUNKEL];
font-weight:bold;
font-size:8pt;
background-color:[TPLFIRMENFARBEHELL];
border: 0px;
}
ul.ui-tabs-nav {
background: [TPLFIRMENFARBEHELL];
padding:7px;
}
.ui-widget-header {
background: [TPLFIRMENFARBEHELL];
}
.ui-button-icon-primary.ui-icon.ui-icon-closethick
{
background-color:[TPLFIRMENFARBEDUNKEL];
color:white;
}
.ui-autocomplete-loading { background: white url('images/ui-anim_basic_16x16.gif') right center no-repeat; }
input.ui-autocomplete-input { background-color:#D5ECF2; }
.ui-autocomplete { font-size: 8pt; }
.ui-widget-header {border:0px;}
.editable_class {
background-color:red;
}
[ADDITIONALCSS]
</style>
<script type="text/javascript">
[JAVASCRIPT]
/*
function fillArtikel(id,menge)
{
if(menge <= 0)
2021-05-21 08:49:41 +02:00
menge=1;
strSource = "./index.php";
strData = "module=artikel&action=ajaxwerte&id="+id+"&smodule=[MODULE]&sid=[KID]&menge="+menge;
intType= 0; //GET
intID = 0;
command = 'fillArtikel';
sendRequest(strSource,strData,intType,intID);
}
*/
function fillArtikel(id,menge)
{
if(menge <= 0)
2021-05-21 08:49:41 +02:00
menge=1;
var tmp = id.split(' ');
//wenn ab Menge dabei steht
var first_pos = id.search("ab Menge");
if(first_pos > 0)
{
// var first_pos = id.search("ab Menge");
var res = id.substr(first_pos+9)
var first_space = res.search(" ");
menge = res.substr(0,first_space)
id = tmp[0];
2022-05-24 16:09:30 +02:00
strSource = "./index.php";
// Force string type
id = ""+id;
id = $.base64Encode(id);
strData = "module=artikel&action=ajaxwerte&id="+id+"&smodule=[MODULE]&sid=[KID]&menge="+menge;
intType= 0; //GET
intID = 0;
command = 'fillArtikel';
sendRequest(strSource,strData,intType,intID);
2021-05-21 08:49:41 +02:00
} else {
2022-05-24 16:09:30 +02:00
strSource = "./index.php";
// Force string type
id = ""+id;
id = $.base64Encode( id);
strData = "module=artikel&action=ajaxwerte&id="+id+"&smodule=[MODULE]&sid=[KID]&menge="+menge;
intType= 0; //GET
intID = 0;
command = 'fillArtikel';
sendRequest(strSource,strData,intType,intID);
2021-05-21 08:49:41 +02:00
}
}
function fillArtikelBestellung(id,menge)
{
if(menge <= 0)
2021-05-21 08:49:41 +02:00
menge=1;
var vpe = 1;
var vpe_pos = id.search('\\| VPE');
if(vpe_pos > 0){
vpe = id.substr(vpe_pos+6)
}
var tmp = id.split(' ');
//wenn ab Menge dabei steht
var first_pos = id.search("ab Menge");
if(first_pos > 0)
{
// var first_pos = id.search("ab Menge");
var res = id.substr(first_pos+9)
var first_space = res.search(" ");
menge = res.substr(0,first_space)
id = tmp[0];
strSource = "./index.php";
2022-05-30 15:40:17 +02:00
// Force string type
id = ""+id;
id = $.base64Encode(id);
2021-05-21 08:49:41 +02:00
strData = "module=artikel&action=ajaxwerte&id="+id+"&smodule=[MODULE]&sid=[KID]&menge="+menge+"&vpe="+vpe;
intType= 0; //GET
intID = 0;
command = 'fillArtikelBestellung';
sendRequest(strSource,strData,intType,intID);
} else {
strSource = "./index.php";
id = $.base64Encode( id);
strData = "module=artikel&action=ajaxwerte&id="+id+"&smodule=[MODULE]&sid=[KID]&menge="+menge+"&vpe="+vpe;
intType= 0; //GET
intID = 0;
command = 'fillArtikelBestellung';
sendRequest(strSource,strData,intType,intID);
}
}
function fillArtikelProduktion(id,menge)
{
if(menge <= 0)
2021-05-21 08:49:41 +02:00
menge=1;
var tmp = id.split(' ');
id = tmp[0];
strSource = "./index.php";
2022-05-24 21:50:35 +02:00
2022-05-30 15:40:17 +02:00
// Force string type
id = ""+id;
id = $.base64Encode(id);
2021-05-21 08:49:41 +02:00
strData = "module=artikel&action=ajaxwerte&id="+id+"&smodule=[MODULE]&sid=[KID]&menge="+menge;
intType= 0; //GET
intID = 0;
command = 'fillArtikelProduktion';
sendRequest(strSource,strData,intType,intID);
}
function fillArtikelLieferschein(id,menge)
{
var tmp = id.split(' ');
id = tmp[0];
//wenn ab Menge dabei steht
if(menge <= 0)
2021-05-21 08:49:41 +02:00
menge=1;
strSource = "./index.php";
2022-05-24 21:50:35 +02:00
// Force string type
id = ""+id;
id = $.base64Encode(id);
2021-05-21 08:49:41 +02:00
strData = "module=artikel&action=ajaxwerte&id="+id+"&smodule=[MODULE]&sid=[KID]&menge="+menge;
intType= 0; //GET
intID = 0;
command = 'fillArtikelLieferschein';
sendRequest(strSource,strData,intType,intID);
}
function fillArtikelInventur(id,menge)
{
if(menge <= 0)
2021-05-21 08:49:41 +02:00
menge=1;
var tmp = id.split(' ');
id = tmp[0];
strSource = "./index.php";
2022-05-30 15:40:17 +02:00
// Force string type
id = ""+id;
id = $.base64Encode(id);
2021-05-21 08:49:41 +02:00
strData = "module=artikel&action=ajaxwerte&id="+id+"&smodule=[MODULE]&sid=[KID]&menge="+menge;
intType= 0; //GET
intID = 0;
command = 'fillArtikelInventur';
sendRequest(strSource,strData,intType,intID);
}
tinyMCE.init({
theme: "modern",
menubar: false,
statusbar : false,
toolbar_items_size: 'small',
mode : "exact",
width : "100%",
entity_encoding : "raw",
element_format : "html",
force_br_newlines : true,
force_p_newlines : false,
forced_root_block : "" ,
encoding : "xml",
elements : "beschreibung_de,beschreibung_en,uebersicht_de,uebersicht_en,links_de,links_en,links_v,beschreibung_v,uebersicht_v",
plugins: [
"link fullscreen code image"
],
toolbar1: "bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | styleselect formatselect fontsizeselect | cut copy paste | searchreplace | bullist numlist | outdent indent | undo redo | link unlink anchor image media code | insertdatetime preview | forecolor backcolor | restoredraft | print fullscreen",
toolbar2: "",
toolbar3: ""
});
tinyMCE.init({
theme: "modern",
menubar: false,
statusbar : false,
toolbar_items_size: 'small',
mode : "exact",
width : "100%",
encoding : "xml",
elements : "ticket_nachricht",
toolbar1: "",
toolbar2: "",
toolbar3: ""
});
$(document).ready(function() {
[DATATABLES]
[SPERRMELDUNG]
[AUTOCOMPLETE]
[JQUERY]
$('a.popup').click(function(e) {
e.preventDefault();
var $this = $(this);
var horizontalPadding = 30;
var verticalPadding = 30;
$('<iframe id="externalSite" class="externalSite" src="' + this.href + '" />').dialog({
title: ($this.attr('title')) ? $this.attr('title') : 'External Site',
autoOpen: true,
width: [POPUPWIDTH],
height: [POPUPHEIGHT],
modal: true,
resizable: false
}).width([POPUPWIDTH] - horizontalPadding).height([POPUPHEIGHT] - verticalPadding);
});
$(document).ready(function() {
$('.editable').editable('index.php?module=[MODULE]&action=editable[EDITABLEEXTRA]', {
indicator : 'Speichere...',
width: '90%',
tooltip : 'zum Bearbeiten anklicken...',
callback : function(value, settings) {if(typeof holepreise != 'undefined')holepreise = true;
if(typeof aktuallisierePreise != 'undefined')setTimeout(function(){aktuallisierePreise()},100);
}
});
});
$( "#tabs" ).tabs({
cookie: {
// store cookie for a day, without, it would be a session cookie
//expires: 1
}
});
[JQUERYREADY]
});
</script>
<style>
.ui-autocomplete-loading { background: white url('images/ui-anim_basic_16x16.gif') right center no-repeat; }
.ui-autocomplete { font-size: 8pt; }
</style>
[FINALCSSLINKSPOPUP]
<style>
[YUICSS]
</style>
[MODULEJAVASCRIPTHEAD]
[MODULESTYLESHEET]
</head>
<body class="[LAYOUTFIXMARKERCLASS]">
[PAGE]
[MODULEJAVASCRIPTBODY]
<script type="text/javascript" src="./js/ajax_end.js?v=3"></script>
</body>