Line 11... |
Line 11... |
11 |
/*
|
11 |
/*
|
12 |
jQuery('.wpsg_mod_ordercondition_edit_name').each(function() {
|
12 |
jQuery('.wpsg_mod_ordercondition_edit_name').each(function() {
|
13 |
|
13 |
|
14 |
var oc_id = jQuery(this).attr("id").replace(/wpsg_mod_ordercondition_name_/, '');
|
14 |
var oc_id = jQuery(this).attr("id").replace(/wpsg_mod_ordercondition_name_/, '');
|
15 |
|
15 |
|
16 |
jQuery(this).wspg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordercondition&do=inlinedit&noheader=1', {
|
16 |
jQuery(this).wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordercondition&do=inlinedit&noheader=1', {
|
17 |
submitdata: {
|
17 |
submitdata: {
|
18 |
field: 'name',
|
18 |
field: 'name',
|
19 |
oc_id: oc_id
|
19 |
oc_id: oc_id
|
20 |
},
|
20 |
},
|
21 |
submit: '<?php echo __('Speichern', 'wpsg'); ?>',
|
21 |
submit: '<?php echo __('Speichern', 'wpsg'); ?>',
|
Line 83... |
Line 83... |
83 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
83 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
84 |
<span id="oc_name_<?php echo $oc['id']; ?>"><?php echo $oc['name']; ?></span>
|
84 |
<span id="oc_name_<?php echo $oc['id']; ?>"><?php echo $oc['name']; ?></span>
|
85 |
<?php echo wpsg_drawForm_TextEnd(__('Bezeichnung', 'wpsg')); ?>
|
85 |
<?php echo wpsg_drawForm_TextEnd(__('Bezeichnung', 'wpsg')); ?>
|
86 |
<script type="text/javascript">/* <![CDATA[ */
|
86 |
<script type="text/javascript">/* <![CDATA[ */
|
87 |
|
87 |
|
88 |
jQuery('#oc_name_<?php echo $oc['id']; ?>').wspg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordercondition&do=inlinedit&noheader=1', {
|
88 |
jQuery('#oc_name_<?php echo $oc['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordercondition&do=inlinedit&noheader=1', {
|
89 |
submitdata: {
|
89 |
submitdata: {
|
90 |
field: 'name',
|
90 |
field: 'name',
|
91 |
oc_id: '<?php echo $oc['id']; ?>'
|
91 |
oc_id: '<?php echo $oc['id']; ?>'
|
92 |
}
|
92 |
}
|
93 |
});
|
93 |
});
|
Line 103... |
Line 103... |
103 |
|
103 |
|
104 |
?></span>
|
104 |
?></span>
|
105 |
<?php echo wpsg_drawForm_TextEnd(__('Wirkungsbereich', 'wpsg')); ?>
|
105 |
<?php echo wpsg_drawForm_TextEnd(__('Wirkungsbereich', 'wpsg')); ?>
|
106 |
<script type="text/javascript">/* <![CDATA[ */
|
106 |
<script type="text/javascript">/* <![CDATA[ */
|
107 |
|
107 |
|
108 |
jQuery('#oc_typ_<?php echo $oc['id']; ?>').wspg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordercondition&do=inlinedit&noheader=1', {
|
108 |
jQuery('#oc_typ_<?php echo $oc['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordercondition&do=inlinedit&noheader=1', {
|
109 |
type: 'string',
|
109 |
type: 'string',
|
110 |
data: '<?php echo json_encode(array('0' => __('Inaktiv', 'wpsg'), '1' => __('Jede Bestellung', 'wpsg'), '2' => __('Bestimmte Produkte', 'wpsg'))); ?>',
|
110 |
data: '<?php echo json_encode(array('0' => __('Inaktiv', 'wpsg'), '1' => __('Jede Bestellung', 'wpsg'), '2' => __('Bestimmte Produkte', 'wpsg'))); ?>',
|
111 |
submitdata: {
|
111 |
submitdata: {
|
112 |
field: 'typ',
|
112 |
field: 'typ',
|
113 |
oc_id: '<?php echo $oc['id']; ?>'
|
113 |
oc_id: '<?php echo $oc['id']; ?>'
|
Line 119... |
Line 119... |
119 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
119 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
120 |
<span class="wpsg_editable" id="oc_text_<?php echo $oc['id']; ?>"><?php echo wpsg_hspc($oc['text']); ?></span>
|
120 |
<span class="wpsg_editable" id="oc_text_<?php echo $oc['id']; ?>"><?php echo wpsg_hspc($oc['text']); ?></span>
|
121 |
<?php echo wpsg_drawForm_TextEnd(__('Bedingungstext', 'wpsg')); ?>
|
121 |
<?php echo wpsg_drawForm_TextEnd(__('Bedingungstext', 'wpsg')); ?>
|
122 |
<script type="text/javascript">/* <![CDATA[ */
|
122 |
<script type="text/javascript">/* <![CDATA[ */
|
123 |
|
123 |
|
124 |
jQuery('#oc_text_<?php echo $oc['id']; ?>').wspg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordercondition&do=inlinedit&noheader=1', {
|
124 |
jQuery('#oc_text_<?php echo $oc['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordercondition&do=inlinedit&noheader=1', {
|
125 |
submitdata: {
|
125 |
submitdata: {
|
126 |
field: 'text',
|
126 |
field: 'text',
|
127 |
oc_id: '<?php echo $oc['id']; ?>'
|
127 |
oc_id: '<?php echo $oc['id']; ?>'
|
128 |
},
|
128 |
},
|
129 |
type: 'textarea'
|
129 |
type: 'textarea'
|
Line 134... |
Line 134... |
134 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
134 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
135 |
<span class="wpsg_editable" id="oc_errortext_<?php echo $oc['id']; ?>"><?php echo wpsg_hspc($oc['errortext']); ?></span>
|
135 |
<span class="wpsg_editable" id="oc_errortext_<?php echo $oc['id']; ?>"><?php echo wpsg_hspc($oc['errortext']); ?></span>
|
136 |
<?php echo wpsg_drawForm_TextEnd(__('Fehlertext', 'wpsg')); ?>
|
136 |
<?php echo wpsg_drawForm_TextEnd(__('Fehlertext', 'wpsg')); ?>
|
137 |
<script type="text/javascript">/* <![CDATA[ */
|
137 |
<script type="text/javascript">/* <![CDATA[ */
|
138 |
|
138 |
|
139 |
jQuery('#oc_errortext_<?php echo $oc['id']; ?>').wspg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordercondition&do=inlinedit&noheader=1', {
|
139 |
jQuery('#oc_errortext_<?php echo $oc['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordercondition&do=inlinedit&noheader=1', {
|
140 |
submitdata: {
|
140 |
submitdata: {
|
141 |
field: 'errortext',
|
141 |
field: 'errortext',
|
142 |
oc_id: '<?php echo $oc['id']; ?>'
|
142 |
oc_id: '<?php echo $oc['id']; ?>'
|
143 |
},
|
143 |
},
|
144 |
type: 'textarea'
|
144 |
type: 'textarea'
|