summaryrefslogtreecommitdiff
path: root/views/order/view.phtml
blob: 9025d127b7feb1e56f56811ab2caa5756794855c (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
70
71
72
73
74
75
76
77
<?php

	/**
	 * Template für die Ansicht einer Bestellung im Backend
	 */

?>
<div class="wpsg_order_view" id="wpsg-bs">

	<nav class="navbar navbar-default">
		<div class="container-fluid">
			<div class="navbar-header">
				<a class="navbar-brand" href="#"><?php echo __('wpShopGermany', 'wpsg'); ?></a>
			</div>
			<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
				<ul class="nav navbar-nav">
					<li role="presentation" class="active <?php echo ((!isset($_REQUEST['action']))?'active':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order"><?php echo __("Bestellübersicht", "wpsg"); ?></a></li>
					<li role="presentation" class="wpsg_showhide_filter active"><a href="#" onclick="return false;"><?php echo __("Bestellansicht", "wpsg"); ?></a></li>
				</ul>
				<ul class="nav navbar-nav navbar-right">

				</ul>
			</div>
		</div>
        
    </nav>

    <?php echo $this->writeBackendMessage(); ?>

    <div class="wpsg_admin_submenu">

        <div class="list-group" id="wpsg_order_view_tabs">
            <span class="list-group-head list-group-item"><?php echo wpsg_translate(__('Bestellung ID:#1#', 'wpsg'), $this->view['data']['id']); ?></span>

            <?php $i = 0; foreach ($this->view['arSubAction'] as $k => $v) { $i ++; ?>
            <a class="list-group-item <?php echo ((wpsg_getStr($_COOKIE['wpsg_order_view_tab'], 'general') == $k)?'active':''); ?>" wpsg-data-target="<?php echo $k; ?>" href="#"><?php echo $v['title']; ?></a>
            <?php } ?>
        </div>

        <br />

    </div>

    <div class="wpsg_admin_content form-horizontal">

        <?php $i = 0; foreach ($this->view['arSubAction'] as $k => $v) { $i ++; ?>
        <div id="tab<?php echo $k; ?>" style="display:<?php echo ((wpsg_getStr($_COOKIE['wpsg_order_view_tab'], 'general') == $k)?'block':'none'); ?>;" class="wpsg_order_view_tab_content">

            <?php echo $v['content']; ?>

        </div>
        <?php } ?>

    </div>

</div>

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

    jQuery(document).ready(function() {

        jQuery('#wpsg_order_view_tabs a.list-group-item').bind('click', function() {

            jQuery('#wpsg_order_view_tabs a').removeClass('active');
            jQuery('.wpsg_order_view_tab_content').hide();

            jQuery(this).addClass('active');
            jQuery('#tab' + jQuery(this).attr('wpsg-data-target')).show();

            jQuery.cookie('wpsg_order_view_tab', jQuery(this).attr('wpsg-data-target'));
            jQuery(this).blur();

        } );

    } );

/* ]]> */</script>