Subversion Repositories wpShopGermany4

Rev

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

Rev Author Line No. Line
1073 daniel 1
<?php
2
 
3
	/**
4
	 * Template für die Liste der Fußtexte
5
	 */
6
 
7
?>
8
<?php if (sizeof($this->view['data']) <= 0) { ?>
9
<p><?php echo __('Bisher keine Fußtexte angelegt!', 'wpsg'); ?></p>
10
<?php } else { ?>
11
<table class="wpsg_foottextlist">
12
	<tr>
13
		<th class="col_kuerzel"><?php echo __('Kürzel', 'wpsg'); ?></th>
14
		<th class="col_text"><?php echo __('Text', 'wpsg'); ?></th>
1268 daniel 15
		<th class="col_standard"><?php echo __('Standard', 'wpsg'); ?></th>
1073 daniel 16
		<th class="col_aktion"></th>
17
	</tr>
18
	<?php foreach ((array)$this->view['data'] as $key => $d) { ?>
19
	<tr>
20
		<td class="col_kuerzel wpsg_editable" id="wpsg_foottext_0_<?php echo $key; ?>"><?php echo wpsg_hspc($d[0]); ?></td>
21
		<td class="col_text wpsg_editable" id="wpsg_foottext_1_<?php echo $key; ?>"><?php echo wpsg_hspc($d[1]); ?></td>
1268 daniel 22
		<td class="col_standard"><input type="radio" value="<?php echo $key; ?>" <?php echo (($this->get_option('wpsg_rechnungen_foottext_standard') == $key)?'checked="checked"':''); ?> class="wpsg_rechnungen_foottext_standard" name="wpsg_rechnungen_foottext_standard" /></td>
1073 daniel 23
		<td class="col_aktion">
24
 
5945 hartmut 25
			<a onclick="return wpsg_removeFooter(<?php echo $key; ?>);" title="<?php echo __('Fußtext löschen', 'wpsg'); ?>'" href="#" class="wpsg_glyphicon_right glyphicon glyphicon-minus-sign"></a>
1073 daniel 26
 
27
			<script type="text/javascript">
28
 
29
				jQuery(document).ready(function() {
1268 daniel 30
 
5934 hartmut 31
					jQuery('#wpsg_foottext_0_<?php echo $key; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_rechnungen&do=inlinedit&noheader=1', {
1073 daniel 32
						submitdata: {
33
				    		field: '0',
34
				    		field_id: '<?php echo $key; ?>'
35
						},
36
						submit: '<?php echo __('Speichern', 'wpsg'); ?>',
37
						placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
38
						indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
39
				    	tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
40
					});
41
 
5934 hartmut 42
					jQuery('#wpsg_foottext_1_<?php echo $key; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_rechnungen&do=inlinedit&noheader=1', {
1073 daniel 43
						submitdata: {
44
				    		field: '1',
45
				    		field_id: '<?php echo $key; ?>'
46
						},
47
						submit: '<?php echo __('Speichern', 'wpsg'); ?>',
48
						placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
49
						indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
50
				    	tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
51
					});
52
 
53
				} );
54
 
55
			</script>
56
 
57
		</td>
58
	</tr>
59
	<?php } ?>
60
</table>
61
<?php } ?>