summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/admin/form/text.phtml13
-rw-r--r--views/css/admin.css1
-rw-r--r--views/js/editable.js63
-rw-r--r--views/mods/mod_export/fields.phtml18
-rw-r--r--views/mods/mod_export/profil.phtml145
-rw-r--r--views/mods/mod_export/settings_edit.phtml26
6 files changed, 199 insertions, 67 deletions
diff --git a/views/admin/form/text.phtml b/views/admin/form/text.phtml
index 90a2b4c..1cfd831 100644
--- a/views/admin/form/text.phtml
+++ b/views/admin/form/text.phtml
@@ -8,7 +8,7 @@
<?php if (wpsg_isTrue($this->view['field_config']['noP'])) { ?>
<span <?php echo ((wpsg_isSizedString($this->view['field_id']))?' id="'.$this->view['field_id'].'" ':''); ?>><?php echo $this->view['field_value']; ?></span>
<?php } else { ?>
- <p <?php echo ((wpsg_isSizedString($this->view['field_id']))?' id="'.$this->view['field_id'].'" ':''); ?> class="form-control-static" style="padding-left:0px;"><?php echo $this->view['field_value']; ?></p>
+ <p <?php echo ((wpsg_isSizedString($this->view['field_id']))?' id="'.$this->view['field_id'].'" ':''); ?> class="form-control-static"><?php echo $this->view['field_value']; ?></p>
<?php } ?>
<?php if (wpsg_isSizedString($this->view['field_config']['help'])) { ?>
@@ -23,12 +23,15 @@
jQuery(document).ready(function() {
jQuery('#<?php echo $this->view['field_id']; ?>').wspg_editable('<?php echo $this->view['field_config']['inlineEdit_url']; ?>', {
- <?php if (wpsg_isSizedString($this->view['field_config']['inlineEdit_type'])) { ?>
- 'type': '<?php echo $this->view['field_config']['inlineEdit_type']; ?>',
'placement': 'bottom'
+ <?php if (wpsg_isSizedString($this->view['field_config']['inlineEdit_type'])) { ?>
+ ,'type': '<?php echo $this->view['field_config']['inlineEdit_type']; ?>'
+ <?php } ?>
+ <?php if (wpsg_isSizedString($this->view['field_config']['inlineEdit_source'])) { ?>
+ , 'data': <?php echo $this->view['field_config']['inlineEdit_source']; ?>
<?php } ?>
- <?php if (wpsg_isSizedArray($this->view['field_config']['inlineEdit_source'])) { ?>
- ,'data': <?php echo json_encode($this->view['field_config']['inlineEdit_source']); ?>
+ <?php if (wpsg_isSizedString($this->view['field_config']['inlineEdit_callback'])) { ?>
+ , 'callback': function(response, newValue) { <?php echo $this->view['field_config']['inlineEdit_callback']; ?>(response, newValue); }
<?php } ?>
} );
diff --git a/views/css/admin.css b/views/css/admin.css
index 032d716..3b0b1e6 100644
--- a/views/css/admin.css
+++ b/views/css/admin.css
@@ -45,6 +45,7 @@
#wpsg-bs .checkbox input { margin-top:1px; }
#wpsg-bs .info { font-style:italic; }
#wpsg-bs .tab-pane { padding-top:15px; }
+#wpsg-bs fieldset > legend { padding-top:2rem; text-align:right; }
/* Allgemeine Klassen */
.wpsg_grey { color:#999999; }
diff --git a/views/js/editable.js b/views/js/editable.js
index 353c576..e4eb68f 100644
--- a/views/js/editable.js
+++ b/views/js/editable.js
@@ -25,50 +25,30 @@
if (typeof options.type == "string") opt['type'] = options.type;
- if (options.type == "select" && typeof options.data == "string")
- {
-
- var ar = [];
- var arData = jQuery.parseJSON(options.data);
- var strValue = jQuery(this).html();
- var value = 0;
-
- for (var i in arData)
- {
-
- ar.push( { 'value': i, 'text': arData[i] } );
- if (arData[i] == strValue) value = i;
-
- }
-
- // Normale Übergabe eines JSON Strings
- opt.source = ar;
- opt.type = 'select';
- opt.value = value;
-
- }
- else if (options.type == "select" && typeof options.data == "object")
+ if (options.type == "select" && Array.isArray(options.data))
{
-
- var value = 0;
+
+ var value = "0";
var strValue = jQuery(this).html();
for (var i in options.data)
{
-
- if (options.data[i] == strValue) value = i;
+
+ if (options.data[i].text == strValue) value = options.data[i].value;
}
opt.source = options.data;
- opt.value = value
+ opt.type = 'select';
+ opt.value = value;
- }
+ }
else if (options.type == 'multiarray')
{
var ar = [];
var arData = jQuery.parseJSON(options.data);
+ var strValue = jQuery(this).html();
for (var i in arData)
{
@@ -80,6 +60,8 @@
objData['children'].push( { 'value': j, 'text': arData[i]['fields'][j] } );
+ if (arData[i]['fields'][j] == strValue) value = j;
+
}
ar.push(objData);
@@ -88,29 +70,8 @@
opt.source = ar;
opt.type = 'select';
+ opt.value = j;
- }
- else if (options.type == 'string' && typeof options.data == "string")
- {
-
- var ar = [];
- var arData = jQuery.parseJSON(options.data);
-
- for (var i in arData)
- {
-
- ar.push( {
- 'value': i,
- 'text': arData[i]
- } );
-
- if (arData[i] == jQuery(this).text()) opt.value = i;
-
- }
-
- opt.type = 'select';
- opt.source = ar;
-
}
else
{
diff --git a/views/mods/mod_export/fields.phtml b/views/mods/mod_export/fields.phtml
index abb1034..08f19f7 100644
--- a/views/mods/mod_export/fields.phtml
+++ b/views/mods/mod_export/fields.phtml
@@ -15,6 +15,10 @@
<th class="wpsg_mod_export_col_name"><?php echo __('Spaltenname', 'wpsg'); ?></th>
<th class="wpsg_mod_export_col_value"><?php echo __('Wert', 'wpsg'); ?></th>
<th class="wpsg_mod_export_col_format"><?php echo __('Format', 'wpsg'); ?></th>
+
+ <th style="display:<?php echo (($this->view['profil']['format'] == wpsg_mod_export::FORMAT_XML)?'table-cell':'none'); ?>;" title="<?php echo __('Feld im XML als Attribut exportieren', 'wpsg'); ?>" class="wpsg_mod_export_format wpsg_mod_export_format_<?php echo wpsg_mod_export::FORMAT_XML; ?> wpsg_mod_export_col_att"><?php echo __('Att'); ?></th>
+ <th style="display:<?php echo (($this->view['profil']['format'] != wpsg_mod_export::FORMAT_XML)?'table-cell; padding:0px':'none'); ?>;" class="wpsg_mod_export_format wpsg_mod_export_format_<?php echo wpsg_mod_export::FORMAT_CSV; ?>">&nbsp;</th>
+
<th class="wpsg_mod_export_col_remove">
<a style="float:right;" onclick="return wpsg_mod_export_addField(<?php echo $this->view['profil']['id']; ?>);" title="<?php echo __('Neues Feld einfügen', 'wpsg'); ?>" href="#" class="glyphicon glyphicon-plus"></a>
@@ -54,7 +58,15 @@
<div class="wpsg_editable" id="field_format_<?php echo $f_id; ?>"><?php echo $this->view['arFieldFormats'][$f['format']]; ?></div>
+ </td>
+
+ <td style="display:<?php echo (($this->view['profil']['format'] == wpsg_mod_export::FORMAT_XML)?'table-cell':'none'); ?>;" class="wpsg_mod_export_col_att wpsg_mod_export_format wpsg_mod_export_format_<?php echo wpsg_mod_export::FORMAT_XML; ?>">
+
+ <input type="checkbox" onchange="wpsg_mod_export_setAtt(this, <?php echo $f['id']; ?>);" value="1" <?php echo ((wpsg_isSizedInt($f['xml_att']))?'checked="checked"':''); ?> />
+
</td>
+ <td style="display:<?php echo (($this->view['profil']['format'] != wpsg_mod_export::FORMAT_XML)?'table-cell; padding:0px':'none'); ?>;" class="wpsg_mod_export_format wpsg_mod_export_format_<?php echo wpsg_mod_export::FORMAT_CSV; ?>">&nbsp;</td>
+
<td>
<a style="float:right;" onclick="return wpsg_mod_export_removeField(<?php echo $f_id; ?>);" title="<?php echo __('Feld löschen', 'wpsg'); ?>" href="#" class="glyphicon glyphicon-trash"></a>
@@ -63,7 +75,7 @@
</tr>
<tr id="userformatrow_<?php echo $f_id; ?>" style="<?php echo (($f['format'] != 700)?'display:none;':''); ?>" class="wpsg_mod_export_row2 wpsg_tablerow wpsg_mod_export_fieldrow_<?php echo $f_id; ?> <?php echo (($i % 2 == 0)?'odd':'even'); ?>">
- <td class="wpsg_mod_export_col_format_user" colspan="3">
+ <td class="wpsg_mod_export_col_format_user" colspan="4">
<?php echo __('Format', 'wpsg'); ?>:
@@ -87,7 +99,7 @@
jQuery('#field_format_<?php echo $f_id; ?>').wspg_editable('<?php echo $inlineEdit_url; ?>', {
'type': 'select',
- 'data': <?php echo json_encode($this->view['arFieldFormats']); ?>,
+ 'data': <?php echo wpsg_prepare_for_inlineEdit($this->view['arFieldFormats']); ?>,
'callback': function(response, newValue) {
if (newValue === "700") jQuery('#userformatrow_<?php echo $f_id; ?>').show();
@@ -110,7 +122,7 @@
</table>
<script type="text/javascript">/* <![CDATA[ */
-
+
wpsg_ajaxBind();
jQuery("#wpsg_mod_export_fieldtable").sortable( {
diff --git a/views/mods/mod_export/profil.phtml b/views/mods/mod_export/profil.phtml
index 98329c8..e4b5f8e 100644
--- a/views/mods/mod_export/profil.phtml
+++ b/views/mods/mod_export/profil.phtml
@@ -4,7 +4,7 @@
* Template für die Einstellungen eines Profils
*/
- $inlineEdit_url = WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_export&do=inlinedit&noheader=1&profil_id='.$this->view['profil']['id'];
+ $inlineEdit_url = WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_export&do=inlinedit&noheader=1&profil_id='.$this->view['profil']['id'];
$upload_url = WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_export&do=musterupload&noheader=1&profil_id='.$this->view['profil']['id'];
?>
@@ -15,10 +15,10 @@
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#tab1" aria-controls="home" role="tab" data-toggle="tab"><?php echo __('Profiloptionen', 'wpsg'); ?></a></li>
<li role="presentation"><a href="#tab2" aria-controls="profile" role="tab" data-toggle="tab"><?php echo __('Feldkonfiguration', 'wpsg'); ?></a></li>
- <li role=""
+ <li role="presentation"><a href="#tab3" aria-controls="cron" role="tab" data-toggle="tab"><?php echo __('Automatische Ausführung', 'wpsg'); ?></a></li>
</ul>
<div class="tab-content">
- <div id="tab1" role="tabpanel" class="tab-pane active" >
+ <div id="tab1" role="tabpanel" class="tab-pane active">
<?php echo wpsg_drawForm_Text(__('Profilname', 'wpsg'), $this->view['profil']['name'], 'name', array('inlineEdit' => true, 'inlineEdit_url' => $inlineEdit_url)); ?>
<?php echo wpsg_drawForm_Text(__('Dateiname', 'wpsg'), $this->view['profil']['filename'], 'filename', array('inlineEdit' => true, 'inlineEdit_url' => $inlineEdit_url)); ?>
@@ -34,13 +34,28 @@
</div>
- <div class="wpsg_mod_export_format wpsg_mod_export_format_<?php echo wpsg_mod_export::FORMAT_CSV; ?>" style="display:<?php echo (($this->view['profil']['format'] == wpsg_mod_export::FORMAT_CSV)?'block':'none'); ?>">
- <?php echo wpsg_drawForm_Upload('samplefile', __('Muster Vorlage', 'wpsg'), false, '50', '100000', array('ajax_upload' => true, 'ajax_upload_url' => $upload_url, 'ajax_success' => 'samplefile_success')); ?>
+ <?php /* XML */ ?>
+ <div class="wpsg_mod_export_format wpsg_mod_export_format_<?php echo wpsg_mod_export::FORMAT_XML; ?>" style="display:<?php echo (($this->view['profil']['format'] == wpsg_mod_export::FORMAT_XML)?'block':'none'); ?>;">
+
+ <?php echo wpsg_drawForm_Text('Root-Tagname', $this->view['profil']['xml_roottag'], 'xml_roottag', array('inlineEdit' => true, 'inlineEdit_url' => $inlineEdit_url)); ?>
+ <?php echo wpsg_drawForm_Text('Bestellung-Tagname', $this->view['profil']['xml_ordertag'], 'xml_ordertag', array('inlineEdit' => true, 'inlineEdit_url' => $inlineEdit_url)); ?>
+ <?php echo wpsg_drawForm_Text('Produkt-Root-Tagname', $this->view['profil']['xml_productroottag'], 'xml_productroottag', array('inlineEdit' => true, 'inlineEdit_url' => $inlineEdit_url)); ?>
+ <?php echo wpsg_drawForm_Text('Produkt-Tagname', $this->view['profil']['xml_producttag'], 'xml_producttag', array('inlineEdit' => true, 'inlineEdit_url' => $inlineEdit_url)); ?>
+
</div>
- <?php echo wpsg_drawForm_Checkbox('order_online', __('Eine Zeile pro Bestellung', 'wpsg'), $this->view['profil']['order_online'], array('label' => __('Optionen', 'wpsg'), 'inlineEdit' => true, 'inlineEdit_url' => $inlineEdit_url)); ?>
- <?php echo wpsg_drawForm_Checkbox('order_onetime', __('Bestellungen nur einmalig exportieren', 'wpsg'), $this->view['profil']['order_onetime'], array('inlineEdit' => true, 'inlineEdit_url' => $inlineEdit_url)); ?>
+ <div class="wpsg_mod_export_format wpsg_mod_export_format_<?php echo wpsg_mod_export::FORMAT_CSV; ?>" style="display:<?php echo (($this->view['profil']['format'] == wpsg_mod_export::FORMAT_CSV)?'block':'none'); ?>">
+ <?php echo wpsg_drawForm_Upload('samplefile', __('Muster Vorlage', 'wpsg'), false, '50', '100000', array('ajax_upload' => true, 'ajax_upload_url' => $upload_url, 'ajax_success' => 'samplefile_success')); ?>
+ </div>
+
+ <br />
+ <?php echo wpsg_drawForm_Checkbox('order_onetime', __('Bestellungen nur einmalig exportieren', 'wpsg'), $this->view['profil']['order_onetime'], array('label' => __('Optionen', 'wpsg'), 'inlineEdit' => true, 'inlineEdit_url' => $inlineEdit_url)); ?>
+
+ <div class="wpsg_mod_export_format wpsg_mod_export_format_<?php echo wpsg_mod_export::FORMAT_CSV; ?>" style="display:<?php echo (($this->view['profil']['format'] == wpsg_mod_export::FORMAT_CSV)?'block':'none'); ?>">
+ <?php echo wpsg_drawForm_Checkbox('order_online', __('Eine Zeile pro Bestellung', 'wpsg'), $this->view['profil']['order_online'], array('inlineEdit' => true, 'inlineEdit_url' => $inlineEdit_url)); ?>
+ </div>
+
<div class="wpsg_mod_export_format wpsg_mod_export_format_<?php echo wpsg_mod_export::FORMAT_CSV; ?>" style="display:<?php echo (($this->view['profil']['format'] == wpsg_mod_export::FORMAT_CSV)?'block':'none'); ?>">
<?php echo wpsg_drawForm_Checkbox('csv_fieldnames', __('Spaltennamen in erster Spalte', 'wpsg'), $this->view['profil']['csv_fieldnames'], array('inlineEdit' => true, 'inlineEdit_url' => $inlineEdit_url)); ?>
@@ -49,11 +64,117 @@
</div>
- <div id="tab2" role="tabpanel" class="tab-pane" >
+ <div id="tab2" role="tabpanel" class="tab-pane">
<div id="wpsg_mod_export_fields"><?php echo $this->view['strFields']; ?></div>
</div>
+
+ <div id="tab3" role="tabpanel" class="tab-pane">
+
+ <?php echo wpsg_drawForm_Text(__('Automatische Ausführung aktivieren', 'wpsg'), $this->view['arCronTypes'][$this->view['profil']['cron_interval']], 'cron_interval', array('inlineEdit' => true, 'inlineEdit_callback' => 'switchCronType', 'inlineEdit_url' => $inlineEdit_url, 'inlineEdit_type' => 'select', 'inlineEdit_source' => wpsg_prepare_for_inlineEdit($this->view['arCronTypes']))); ?>
+
+ <div class="cron_interval cron_interval_1" style="<?php echo (($this->view['profil']['cron_interval'] == '0')?'display:none;':''); ?>">
+
+ <?php echo wpsg_drawForm_Text(__('Pfad', 'wpsg'), $this->view['profil']['cron_path'], 'cron_path', array('inlineEdit' => true, 'inlineEdit_url' => $inlineEdit_url)); ?>
+ <?php echo wpsg_drawForm_Text(__('Letzte Ausführung', 'wpsg'), (($this->view['profil']['cron_lastrun'] == '0000-00-00')?__('Noch nie', 'wpsg'):wpsg_formatTimestamp($this->view['profil']['cron_lastrun'], true)), false); ?>
+
+ <fieldset id="wpsg_mod_export_orderfilter">
+ <legend><?php echo __('Bestellfilter', 'wpsg'); ?></legend>
+
+ <form id="wpsg_mod_export_searchfilter">
+
+ <?php echo wpsg_drawForm_Text(__('Suchfeld', 'wpsg'), wpsg_getStr($this->view['profil']['orderfilter']['s']), 'orderfilter_s', array('inlineEdit' => true, 'inlineEdit_url' => $inlineEdit_url)); ?>
+ <?php echo wpsg_drawForm_Text(__('Kunde (ID)', 'wpsg'), wpsg_getStr($this->view['profil']['orderfilter']['k_id']), 'orderfilter_k_id', array('inlineEdit' => true, 'inlineEdit_url' => $inlineEdit_url)); ?>
+
+ <?php $arOrderStatus = wpsg_array_merge(array('-1' => __('Alle', 'wpsg')), $this->arStatus); ?>
+ <?php echo wpsg_drawForm_Text(__('Bestellstatus', 'wpsg'), $arOrderStatus[wpsg_getStr($this->view['profil']['orderfilter']['status'], '-1')], 'orderfilter_status', array('inlineEdit' => true, 'inlineEdit_type' => 'select', 'inlineEdit_url' => $inlineEdit_url, 'inlineEdit_source' => $arOrderStatus)); ?>
+
+ <?php $arMonth = array('-1' => __('Alle', 'wpsg')); ?>
+ <?php for ($i = 1; $i <= 12; $i ++) { $arMonth[str_pad($i, 2, '0', STR_PAD_LEFT)] = strftime("%B", mktime(0, 0, 0, $i, 1, 2000)); } ?>
+
+ <?php $arYearCdate = array('-1' => __('Alle', 'wpsg')); ?>
+ <?php foreach ($this->view['cdate_years'] as $y) { $arYearCdate[$y] = $y; } ?>
+
+ <?php $arYearInvoice = array('-1' => __('Alle', 'wpsg')); ?>
+ <?php foreach ($this->view['invoicedate_years'] as $y) { $arYearInvoice[$y] = $y; } ?>
+
+ <?php echo wpsg_drawForm_TextStart(); ?>
+ <div class="row">
+ <div class="col-lg-6">
+ <p id="orderfilter_cdate_m" class="form-control-static"><?php echo $arMonth[wpsg_getStr($this->view['profil']['orderfilter']['cdate_m'], '-1')]; ?></p>
+ <script type="text/javascript">/* <![CDATA[ */
+
+ jQuery(document).ready(function() {
+
+ jQuery('#orderfilter_cdate_m').wspg_editable('<?php echo $inlineEdit_url; ?>', {
+ 'test': '1', 'placement': 'bottom', 'type': 'select', 'data': <?php echo wpsg_prepare_for_inlineEdit($arMonth); ?>
+ } );
+
+ } );
+
+ /* ]]> */</script>
+ </div>
+ <div class="col-lg-6">
+ <p id="orderfilter_cdate_y" class="form-control-static"><?php echo $arYearCdate[wpsg_getStr($this->view['profil']['orderfilter']['cdate_y'], '-1')]; ?></p>
+ <script type="text/javascript">/* <![CDATA[ */
+
+ jQuery(document).ready(function() {
+
+ jQuery('#orderfilter_cdate_y').wspg_editable('<?php echo $inlineEdit_url; ?>', {
+ 'placement': 'bottom', 'type': 'select', 'data': <?php echo wpsg_prepare_for_inlineEdit($arYearCdate); ?>
+ } );
+
+ } );
+
+ /* ]]> */</script>
+ </div>
+ </div>
+ <?php echo wpsg_drawForm_TextEnd(__('Bestelldatum (Monat/Jahr)', 'wpsg'), array('noP' => true)); ?>
+
+ <?php if ($this->hasMod('wpsg_mod_rechnungen')) { ?>
+ <?php echo wpsg_drawForm_TextStart(); ?>
+ <div class="row">
+ <div class="col-lg-6">
+ <p id="orderfilter_invoicedate_m" class="form-control-static"><?php echo $arMonth[wpsg_getStr($this->view['profil']['orderfilter']['invoicedate_m'], '-1')]; ?></p>
+ <script type="text/javascript">/* <![CDATA[ */
+
+ jQuery(document).ready(function() {
+
+ jQuery('#orderfilter_invoicedate_m').wspg_editable('<?php echo $inlineEdit_url; ?>', {
+ 'placement': 'bottom', 'type': 'select', 'data': <?php echo wpsg_prepare_for_inlineEdit($arMonth); ?>
+ } );
+
+ } );
+
+ /* ]]> */</script>
+ </div>
+ <div class="col-lg-6">
+ <p id="orderfilter_invoicedate_y" class="form-control-static"><?php echo $arYearInvoice[wpsg_getStr($this->view['profil']['orderfilter']['invoicedate_y'], '-1')]; ?></p>
+ <script type="text/javascript">/* <![CDATA[ */
+
+ jQuery(document).ready(function() {
+
+ jQuery('#orderfilter_invoicedate_y').wspg_editable('<?php echo $inlineEdit_url; ?>', {
+ 'placement': 'bottom', 'type': 'select', 'data': <?php echo wpsg_prepare_for_inlineEdit($arYearInvoice); ?>
+ } );
+
+ } );
+
+ /* ]]> */</script>
+ </div>
+ </div>
+ <?php echo wpsg_drawForm_TextEnd(__('Rechnungsdatum (Monat/Jahr)', 'wpsg'), array('noP' => true)); ?>
+ <?php } ?>
+
+ </form>
+
+ </fieldset>
+
+ </div>
+
+ </div>
+
</div>
</div>
@@ -63,6 +184,14 @@
<script type="text/javascript">/* <![CDATA[ */
+ function switchCronType(response, newValue)
+ {
+
+ if (newValue != "0") jQuery('.cron_interval_1').show();
+ else jQuery('.cron_interval_1').hide();
+
+ }
+
function samplefile_success(data)
{
diff --git a/views/mods/mod_export/settings_edit.phtml b/views/mods/mod_export/settings_edit.phtml
index 9a80ba6..1c8fa18 100644
--- a/views/mods/mod_export/settings_edit.phtml
+++ b/views/mods/mod_export/settings_edit.phtml
@@ -112,6 +112,32 @@
} // function wpsg_addExportProfil()
+ function wpsg_mod_export_setAtt(htmlCheckbox, field_id)
+ {
+
+ var value = '0';
+ if (jQuery(htmlCheckbox).prop('checked') == true) value = '1';
+
+ jQuery.ajax( {
+ url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_export&do=inlinedit&noheader=1',
+ data: {
+ 'name': 'field_xml_att_' + field_id,
+ 'value': value
+ },
+ success: function(data) {
+
+ if (data != '1')
+ {
+
+ alert(data);
+
+ }
+
+ }
+ } );
+
+ }
+
</script>
<a title="<?php echo __('Neuens Exportprofil anlegen', 'wpsg'); ?>" href="#" class="" onclick="return wpsg_mod_export_addProfil();"><span class="wpsg-glyphicon glyphicon glyphicon-plus"></span><?php echo __('Neues Exportprofil anlegen', 'wpsg'); ?></a>