Line 15... |
Line 15... |
15 |
<th class="col0"><?php echo __('Index', 'wpsg'); ?></th>
|
15 |
<th class="col0"><?php echo __('Index', 'wpsg'); ?></th>
|
16 |
<th class="col1"><?php echo __('Kundenvariablen', 'wpsg'); ?></th>
|
16 |
<th class="col1"><?php echo __('Kundenvariablen', 'wpsg'); ?></th>
|
17 |
<th class="col2"><?php echo __('Pflichtfeld', 'wpsg'); ?></th>
|
17 |
<th class="col2"><?php echo __('Pflichtfeld', 'wpsg'); ?></th>
|
18 |
<th class="col3"><?php echo __('Typ', 'wpsg'); ?></th>
|
18 |
<th class="col3"><?php echo __('Typ', 'wpsg'); ?></th>
|
19 |
<th class="col4"></th>
|
19 |
<th class="col4"></th>
|
20 |
<th class="col5">
|
20 |
<th class="col5"></th>
|
21 |
<a href="#" title="<?php echo __('Neue Kundenvariable anlegen', 'wpsg'); ?>" onclick="return wpsg_addCustomField();" class="customer_variable_add"><span class="glyphicon glyphicon-plus"></span></a>
|
- |
|
22 |
</th>
|
- |
|
23 |
</tr>
|
21 |
</tr>
|
24 |
</thead>
|
22 |
</thead>
|
25 |
<tbody>
|
23 |
<tbody>
|
26 |
<?php foreach ($this->view['pflicht']['custom'] as $c_id => $c) { ?>
|
24 |
<?php foreach ($this->view['pflicht']['custom'] as $c_id => $c) { ?>
|
27 |
<tr class="wpsg_customervar_row_<?php echo $c_id; ?>">
|
25 |
<tr class="wpsg_customervar_row_<?php echo $c_id; ?>">
|
Line 33... |
Line 31... |
33 |
<option <?php echo (($c['show'] == '1')?'selected="selected"':''); ?> value="1"><?php echo __('Nein', 'wpsg'); ?></option>
|
31 |
<option <?php echo (($c['show'] == '1')?'selected="selected"':''); ?> value="1"><?php echo __('Nein', 'wpsg'); ?></option>
|
34 |
<option <?php echo (($c['show'] == '2')?'selected="selected"':''); ?> value="2"><?php echo __('Nicht zeigen', 'wpsg'); ?></option>
|
32 |
<option <?php echo (($c['show'] == '2')?'selected="selected"':''); ?> value="2"><?php echo __('Nicht zeigen', 'wpsg'); ?></option>
|
35 |
</select>
|
33 |
</select>
|
36 |
</td>
|
34 |
</td>
|
37 |
<td class="col3">
|
35 |
<td class="col3">
|
38 |
<select class="form-control wpsg-sm" onchange="if (jQuery(this).val() == '1') jQuery('#row_auswahl_<?php echo $c_id; ?>').show(); else jQuery('#row_auswahl_<?php echo $c_id; ?>').hide();" name="pflicht[custom][<?php echo $c_id; ?>][typ]">
|
36 |
<select class="form-control wpsg-sm" onchange="if (jQuery(this).val() == '1') { jQuery('#row_auswahl_<?php echo $c_id; ?>').show(); jQuery('#row_auswahl_<?php echo $c_id; ?> input').first().focus(); } else jQuery('#row_auswahl_<?php echo $c_id; ?>').hide();" name="pflicht[custom][<?php echo $c_id; ?>][typ]">
|
39 |
<option <?php echo (($c['typ'] == '0')?'selected="selected"':''); ?> value="0"><?php echo __('Textfeld', 'wpsg'); ?></option>
|
37 |
<option <?php echo (($c['typ'] == '0')?'selected="selected"':''); ?> value="0"><?php echo __('Textfeld', 'wpsg'); ?></option>
|
40 |
<option <?php echo (($c['typ'] == '1')?'selected="selected"':''); ?> value="1"><?php echo __('Auswahlfeld', 'wpsg'); ?></option>
|
38 |
<option <?php echo (($c['typ'] == '1')?'selected="selected"':''); ?> value="1"><?php echo __('Auswahlfeld', 'wpsg'); ?></option>
|
41 |
<option <?php echo (($c['typ'] == '2')?'selected="selected"':''); ?> value="2"><?php echo __('Checkbox', 'wpsg'); ?></option>
|
39 |
<option <?php echo (($c['typ'] == '2')?'selected="selected"':''); ?> value="2"><?php echo __('Checkbox', 'wpsg'); ?></option>
|
42 |
</select>
|
40 |
</select>
|
43 |
</td>
|
41 |
</td>
|
Line 64... |
Line 62... |
64 |
|
62 |
|
65 |
</script>
|
63 |
</script>
|
66 |
|
64 |
|
67 |
</td>
|
65 |
</td>
|
68 |
</tr>
|
66 |
</tr>
|
69 |
<tr class="wpsg_customervar_row_<?php echo $c_id; ?>" id="row_auswahl_<?php echo $c_id; ?>" style="<?php echo (($c['typ'] == '1')?'':'display:none;'); ?>">
|
67 |
<tr class="wpsg_customervar_row2 wpsg_customervar_row_<?php echo $c_id; ?>" id="row_auswahl_<?php echo $c_id; ?>" style="<?php echo (($c['typ'] == '1')?'':'display:none;'); ?>">
|
70 |
<td class="col0"></td>
|
68 |
<td class="col0"></td>
|
71 |
<td class="col1"><?php echo __('Auswahlmöglichkeiten ("|" als Trenner)', 'wpsg'); ?></td>
|
69 |
<td class="col1"><?php echo __('Auswahlmöglichkeiten ("|" als Trenner)', 'wpsg'); ?></td>
|
72 |
<td class="col2345" colspan="4">
|
70 |
<td class="col2345" colspan="4">
|
73 |
<input type="text" class="form-control wpsg-sm" name="pflicht[custom][<?php echo $c_id; ?>][auswahl]" value="<?php echo wpsg_hspc($c['auswahl']); ?>" />
|
71 |
<input type="text" class="form-control wpsg-sm" name="pflicht[custom][<?php echo $c_id; ?>][auswahl]" value="<?php echo wpsg_hspc($c['auswahl']); ?>" />
|
74 |
</td>
|
72 |
</td>
|
75 |
</tr>
|
73 |
</tr>
|
76 |
<?php } ?>
|
74 |
<?php } ?>
|
77 |
</tbody>
|
75 |
</tbody>
|
78 |
</table>
|
76 |
</table>
|
79 |
|
77 |
|
80 |
|
- |
|
81 |
<script type="text/javascript">/* <![CDATA[ */
|
- |
|
82 |
|
- |
|
83 |
/**
|
- |
|
84 |
* Zeigt den HTML Code, der die gewählte Kundenvariablen in die Templates einbaut
|
- |
|
85 |
*/
|
- |
|
86 |
function wpsg_genKVCode(kv_id)
|
- |
|
87 |
{
|
- |
|
88 |
|
- |
|
89 |
jQuery("#wpsg_kv_code_dialog").dialog( {
|
- |
|
90 |
'dialogClass': 'wp-dialog',
|
- |
|
91 |
'modal': true,
|
- |
|
92 |
'width': 700,
|
- |
|
93 |
'height': 300,
|
- |
|
94 |
'title': '<?php echo __('HTML Code Block', 'wpsg'); ?>',
|
- |
|
95 |
open: function(event, ui) {
|
- |
|
96 |
|
- |
|
97 |
jQuery('#wpsg_kv_code_dialog .wpsg_dialog').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
- |
|
98 |
|
- |
|
99 |
jQuery.ajax( {
|
- |
|
100 |
url: 'admin.php?page=wpsg-Admin&subaction=kundendaten&noheader=1&show=code',
|
- |
|
101 |
data: {
|
- |
|
102 |
'kv_id': kv_id
|
- |
|
103 |
},
|
- |
|
104 |
success: function(data)
|
- |
|
105 |
{
|
- |
|
106 |
|
- |
|
107 |
jQuery('#wpsg_kv_code_dialog .wpsg_dialog').html(data);
|
- |
|
108 |
|
- |
|
109 |
}
|
- |
|
110 |
} );
|
- |
|
111 |
|
- |
|
112 |
}
|
- |
|
113 |
} );
|
- |
|
114 |
|
- |
|
115 |
return false;
|
- |
|
116 |
|
- |
|
117 |
} // function wpsg_genPACode(pa_id)
|
- |
|
118 |
|
- |
|
119 |
/* ]]> */</script>
|
- |
|
120 |
|
- |
|
121 |
<br />
|
78 |
<br />
|
122 |
<?php echo wpsg_drawForm_Checkbox('wpsg_kundenvariablen_show', __('Kundenvariablen direkt abfragen', 'wpsg'), $this->get_option('wpsg_kundenvariablen_show'), array('fullWidth' => true)); ?>
|
79 |
<?php echo wpsg_drawForm_Checkbox('wpsg_kundenvariablen_show', __('Kundenvariablen direkt abfragen', 'wpsg'), $this->get_option('wpsg_kundenvariablen_show'), array('fullWidth' => true)); ?>
|
123 |
<?php } else { ?>
|
80 |
<?php } else { ?>
|
124 |
<p><?php echo __('Keine benutzerdefinierten Kundenfelder angelegt.', 'wpsg'); ?>
|
81 |
<p><?php echo __('Keine benutzerdefinierten Kundenfelder angelegt.', 'wpsg'); ?>
|
125 |
<?php } ?>
|
82 |
<?php } ?>
|
126 |
|
83 |
|