Subversion Repositories wpShopGermany4

Rev

Rev 5945 | 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 { ?>
5997 hartmut 11
<table class="table table-body-striped wpsg_foottextlist">
12
    <thead>
1073 daniel 13
	<tr>
14
		<th class="col_kuerzel"><?php echo __('Kürzel', 'wpsg'); ?></th>
15
		<th class="col_text"><?php echo __('Text', 'wpsg'); ?></th>
1268 daniel 16
		<th class="col_standard"><?php echo __('Standard', 'wpsg'); ?></th>
1073 daniel 17
		<th class="col_aktion"></th>
18
	</tr>
5997 hartmut 19
    </thead>
20
    <tbody>
1073 daniel 21
	<?php foreach ((array)$this->view['data'] as $key => $d) { ?>
22
	<tr>
5997 hartmut 23
		<td class="col_kuerzel"><span class="wpsg_editable" id="wpsg_foottext_0_<?php echo $key; ?>"><?php echo wpsg_hspc($d[0]); ?></span></td>
24
		<td class="col_text"><span class="wpsg_editable" id="wpsg_foottext_1_<?php echo $key; ?>"><?php echo wpsg_hspc($d[1]); ?></span></td>
1268 daniel 25
		<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 26
		<td class="col_aktion">
27
 
5997 hartmut 28
            <a onclick="return wpsg_removeFooter(<?php echo $key; ?>);" title="<?php echo __('Fußtext löschen', 'wpsg'); ?>'" href="#" class="">
29
               <span class="glyphicon glyphicon-trash"></span>
30
            </a>
1073 daniel 31
 
32
			<script type="text/javascript">
33
 
34
				jQuery(document).ready(function() {
1268 daniel 35
 
5934 hartmut 36
					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 37
						submitdata: {
38
				    		field: '0',
39
				    		field_id: '<?php echo $key; ?>'
40
						},
41
						submit: '<?php echo __('Speichern', 'wpsg'); ?>',
42
						placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
43
						indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
44
				    	tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
45
					});
46
 
5934 hartmut 47
					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 48
						submitdata: {
49
				    		field: '1',
50
				    		field_id: '<?php echo $key; ?>'
51
						},
52
						submit: '<?php echo __('Speichern', 'wpsg'); ?>',
53
						placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
54
						indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
55
				    	tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
56
					});
57
 
58
				} );
59
 
60
			</script>
61
 
62
		</td>
63
	</tr>
64
	<?php } ?>
5997 hartmut 65
    </tbody>
1073 daniel 66
</table>
67
<?php } ?>