summaryrefslogtreecommitdiff
path: root/views/mods/mod_deliverynote/foottext_list.phtml
blob: 76a059e5c96a69ec44f4d81598aaf1c98094bbb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php

	/**
	 * Template für die Liste der Fußtexte
	 * @version 4.6.1
	 */

?>
<?php if (sizeof($this->view['wpsg_mod_deliverynote']['data']) <= 0) { ?>
<p><?php echo __('Bisher keine Fußtexte angelegt!', 'wpsg'); ?></p>
<?php } else { ?>
<table class="table table-body-striped wpsg_foottextlist">
    <thead>
        <tr>
            <th class="col_kuerzel"><?php echo __('Kürzel', 'wpsg'); ?></th>
            <th class="col_text"><?php echo __('Text', 'wpsg'); ?></th>
            <th class="col_standard"><?php echo __('Standard', 'wpsg'); ?></th>
            <th class="col_aktion"></th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ((array)$this->view['wpsg_mod_deliverynote']['data'] as $key => $d) { ?>
        <tr>
            <td class="col_kuerzel"><span id="wpsg_foottext_0_<?php echo $key; ?>" class="wpsg_editable"><?php echo wpsg_hspc($d[0]); ?></span></td>
            <td class="col_text"><span class="wpsg_editable" id="wpsg_foottext_1_<?php echo $key; ?>"><?php echo wpsg_hspc($d[1]); ?></span></td>
            <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>
            <td class="col_aktion">

                <a onclick="return wpsg_removeFooter(<?php echo $key; ?>);" title="<?php echo __('Fußtext löschen', 'wpsg'); ?>'" href="#" class="">
                    <span class="glyphicon glyphicon-trash"></span>
                </a>

                <script type="text/javascript">/* <![CDATA[ */

                    jQuery(document).ready(function() {

                        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_deliverynote&do=inlineEdit&noheader=1', {
                            submitdata: {
                                field: '0',
                                field_id: '<?php echo $key; ?>'
                            },
                            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('#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_deliverynote&do=inlineEdit&noheader=1', {
                        	type: 'textarea',
                            submitdata: {
                                field: '1',
                                field_id: '<?php echo $key; ?>'
                            },
                            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 } ?>
    </tbody>
</table>
<?php } ?>