Subversion Repositories wpShopGermany4

Rev

Rev 5934 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
 
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_deliverynote&do=inlineEdit&noheader=1', {
5749 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_deliverynote&do=inlineEdit&noheader=1', {
6961 thomas 48
                        	type: 'textarea',
5749 daniel 49
                            submitdata: {
50
                                field: '1',
51
                                field_id: '<?php echo $key; ?>'
52
                            },
53
                            submit: '<?php echo __('Speichern', 'wpsg'); ?>',
54
                            placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
55
                            indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
56
                            tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
57
                        });
58
 
59
                    } );
60
 
61
                /* ]]> */</script>
62
 
63
            </td>
64
        </tr>
65
        <?php } ?>
66
    </tbody>
2975 daniel 67
</table>
68
<?php } ?>