Subversion Repositories wpShopGermany4

Rev

Rev 1068 | Rev 1623 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1067 daniel 1
<?php
2
 
3
	/**
4
	 * Template für die Liste der Versandzonen
5
	 * sollte normalerweise nicht verändert werden
6
	 */
7
 
8
?>
9
<?php if (!is_array($this->view['data']) || sizeof($this->view['data']) <= 0) { ?>
10
<?php echo __('Bisher keine Versandzonen hinterlegt.', 'wpsg'); ?>
11
<?php } else { ?>
12
<table class="wpsg_admin_vz_list wpsg_admin_table">
13
	<tr>
14
		<th class="col_name"><?php echo __('Bezeichnung', 'wpsg'); ?>
15
		<th class="col_aktion"></th>
16
	</tr>
17
	<?php foreach ($this->view['data'] as $vz) { ?>
18
	<tr>
19
		<td id="vz_<?php echo $vz['id']; ?>_name" class="wpsg_editable col_name"><?php echo wpsg_hspc($vz['name']); ?></td>
20
		<td class="col_aktion">
21
 
22
			<a class="wpsg_icon wpsg_icon_remove" href="#" title="<?php echo __('Versandzone löschen', 'wpsg'); ?>" onclick="return wpsg_removeVZ(<?php echo $vz['id']; ?>);"></a>
23
 
24
			<script type="text/javascript">
1068 daniel 25
 
1067 daniel 26
				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', {
1068 daniel 27
					submitdata: {
1067 daniel 28
			    		field: 'name',
29
			    		vz_id: '<?php echo $vz['id']; ?>'
1068 daniel 30
					},
1587 daniel 31
					submit  : '<?php echo __('Speichern', 'wpsg'); ?>',
1068 daniel 32
					placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
33
					indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
1067 daniel 34
			    	tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
35
				});
1068 daniel 36
 
1067 daniel 37
				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', {
1068 daniel 38
					submitdata: {
1067 daniel 39
			    		field: 'value',
40
			    		vz_id: '<?php echo $vz['id']; ?>'
1068 daniel 41
					},
1587 daniel 42
					submit  : '<?php echo __('Speichern', 'wpsg'); ?>',
1068 daniel 43
					placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
44
					indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
1067 daniel 45
			    	tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
46
				});
1068 daniel 47
 
1067 daniel 48
			</script>
49
		</td>
50
	</tr>
51
	<?php } ?>
52
</table>
53
<?php } ?>