2975 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Liste der Fußtexte
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
|
|
8 |
<?php if (sizeof($this->view['wpsg_mod_deliverynote']['data']) <= 0) { ?>
|
|
|
9 |
<p><?php echo __('Bisher keine Fußtexte angelegt!', 'wpsg'); ?></p>
|
|
|
10 |
<?php } else { ?>
|
5749 |
daniel |
11 |
<table class="table table-body-striped wpsg_foottextlist">
|
|
|
12 |
<thead>
|
|
|
13 |
<tr>
|
|
|
14 |
<th class="col_kuerzel"><?php echo __('Kürzel', 'wpsg'); ?></th>
|
|
|
15 |
<th class="col_text"><?php echo __('Text', 'wpsg'); ?></th>
|
|
|
16 |
<th class="col_standard"><?php echo __('Standard', 'wpsg'); ?></th>
|
|
|
17 |
<th class="col_aktion"></th>
|
|
|
18 |
</tr>
|
|
|
19 |
</thead>
|
|
|
20 |
<tbody>
|
|
|
21 |
<?php foreach ((array)$this->view['wpsg_mod_deliverynote']['data'] as $key => $d) { ?>
|
|
|
22 |
<tr>
|
|
|
23 |
<td class="col_kuerzel"><span id="wpsg_foottext_0_<?php echo $key; ?>" class="wpsg_editable"><?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>
|
|
|
25 |
<td class="col_standard"><input type="radio" value="<?php echo $key; ?>" <?php echo (($this->get_option('wpsg_mod_deliverynote_foottext_standard') == $key)?'checked="checked"':''); ?> class="wpsg_mod_deliverynote_foottext_standard" name="wpsg_mod_deliverynote_foottext_standard" /></td>
|
|
|
26 |
<td class="col_aktion">
|
2975 |
daniel |
27 |
|
5749 |
daniel |
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>
|
2975 |
daniel |
31 |
|
5749 |
daniel |
32 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
33 |
|
|
|
34 |
jQuery(document).ready(function() {
|
|
|
35 |
|
|
|
36 |
jQuery('#wpsg_foottext_0_<?php echo $key; ?>').wspg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_deliverynote&do=inlineEdit&noheader=1', {
|
|
|
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 |
|
|
|
47 |
jQuery('#wpsg_foottext_1_<?php echo $key; ?>').wspg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_deliverynote&do=inlineEdit&noheader=1', {
|
|
|
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 } ?>
|
|
|
65 |
</tbody>
|
2975 |
daniel |
66 |
</table>
|
|
|
67 |
<?php } ?>
|