diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2016-03-29 07:04:10 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2016-03-29 07:04:10 +0000 |
| commit | 0915da0a21acca9a6c6331b53e15e50398bca957 (patch) | |
| tree | 6c8925e72f948e68e3d71a8ba660db59cf1675c6 /views/admin/kundendaten_tab2.phtml | |
| parent | 0fc69ce3ad89844dd5fb2f87532e7b6fca55923d (diff) | |
- Anfang Produktverwaltung
- Kundenverwaltung überarbeitet
- Überarbeitung Produktbilder (Mehrfachupload)
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5447 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/admin/kundendaten_tab2.phtml')
| -rw-r--r-- | views/admin/kundendaten_tab2.phtml | 49 |
1 files changed, 3 insertions, 46 deletions
diff --git a/views/admin/kundendaten_tab2.phtml b/views/admin/kundendaten_tab2.phtml index b6073a5..759500b 100644 --- a/views/admin/kundendaten_tab2.phtml +++ b/views/admin/kundendaten_tab2.phtml @@ -17,9 +17,7 @@ <th class="col2"><?php echo __('Pflichtfeld', 'wpsg'); ?></th>
<th class="col3"><?php echo __('Typ', 'wpsg'); ?></th>
<th class="col4"></th>
- <th class="col5">
- <a href="#" title="<?php echo __('Neue Kundenvariable anlegen', 'wpsg'); ?>" onclick="return wpsg_addCustomField();" class="customer_variable_add"><span class="glyphicon glyphicon-plus"></span></a>
- </th>
+ <th class="col5"></th>
</tr>
</thead>
<tbody>
@@ -35,7 +33,7 @@ </select>
</td>
<td class="col3">
- <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]">
+ <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]">
<option <?php echo (($c['typ'] == '0')?'selected="selected"':''); ?> value="0"><?php echo __('Textfeld', 'wpsg'); ?></option>
<option <?php echo (($c['typ'] == '1')?'selected="selected"':''); ?> value="1"><?php echo __('Auswahlfeld', 'wpsg'); ?></option>
<option <?php echo (($c['typ'] == '2')?'selected="selected"':''); ?> value="2"><?php echo __('Checkbox', 'wpsg'); ?></option>
@@ -66,7 +64,7 @@ </td>
</tr>
- <tr class="wpsg_customervar_row_<?php echo $c_id; ?>" id="row_auswahl_<?php echo $c_id; ?>" style="<?php echo (($c['typ'] == '1')?'':'display:none;'); ?>">
+ <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;'); ?>">
<td class="col0"></td>
<td class="col1"><?php echo __('Auswahlmöglichkeiten ("|" als Trenner)', 'wpsg'); ?></td>
<td class="col2345" colspan="4">
@@ -77,47 +75,6 @@ </tbody>
</table>
-
-<script type="text/javascript">/* <![CDATA[ */
-
- /**
- * Zeigt den HTML Code, der die gewählte Kundenvariablen in die Templates einbaut
- */
- function wpsg_genKVCode(kv_id)
- {
-
- jQuery("#wpsg_kv_code_dialog").dialog( {
- 'dialogClass': 'wp-dialog',
- 'modal': true,
- 'width': 700,
- 'height': 300,
- 'title': '<?php echo __('HTML Code Block', 'wpsg'); ?>',
- open: function(event, ui) {
-
- 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'); ?>" />');
-
- jQuery.ajax( {
- url: 'admin.php?page=wpsg-Admin&subaction=kundendaten&noheader=1&show=code',
- data: {
- 'kv_id': kv_id
- },
- success: function(data)
- {
-
- jQuery('#wpsg_kv_code_dialog .wpsg_dialog').html(data);
-
- }
- } );
-
- }
- } );
-
- return false;
-
- } // function wpsg_genPACode(pa_id)
-
-/* ]]> */</script>
-
<br />
<?php echo wpsg_drawForm_Checkbox('wpsg_kundenvariablen_show', __('Kundenvariablen direkt abfragen', 'wpsg'), $this->get_option('wpsg_kundenvariablen_show'), array('fullWidth' => true)); ?>
<?php } else { ?>
|
