Rev 1068 | Rev 1623 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php
/**
* Template für die Liste der Versandzonen
* sollte normalerweise nicht verändert werden
*/
?>
<?php if (!is_array($this->view['data']) || sizeof($this->view['data']) <= 0) { ?>
<?php echo __('Bisher keine Versandzonen hinterlegt.', 'wpsg'); ?>
<?php } else { ?>
<table class="wpsg_admin_vz_list wpsg_admin_table">
<tr>
<th class="col_name"><?php echo __('Bezeichnung', 'wpsg'); ?>
<th class="col_aktion"></th>
</tr>
<?php foreach ($this->view['data'] as $vz) { ?>
<tr>
<td id="vz_<?php echo $vz['id']; ?>_name" class="wpsg_editable col_name"><?php echo wpsg_hspc($vz['name']); ?></td>
<td class="col_aktion">
<a class="wpsg_icon wpsg_icon_remove" href="#" title="<?php echo __('Versandzone löschen', 'wpsg'); ?>" onclick="return wpsg_removeVZ(<?php echo $vz['id']; ?>);"></a>
<script type="text/javascript">
jQuery('#vz_<?php echo $vz['id']; ?>_name').editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=vz&do=inlinedit&noheader=1', {
submitdata: {
field: 'name',
vz_id: '<?php echo $vz['id']; ?>'
},
submit : '<?php echo __('Speichern', 'wpsg'); ?>',
placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
});
jQuery('#vz_<?php echo $vz['id']; ?>_value').editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=vz&do=inlinedit&noheader=1', {
submitdata: {
field: 'value',
vz_id: '<?php echo $vz['id']; ?>'
},
submit : '<?php echo __('Speichern', 'wpsg'); ?>',
placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
});
</script>
</td>
</tr>
<?php } ?>
</table>
<?php } ?>