Subversion Repositories wpShopGermany4

Rev

Rev 7490 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1067 daniel 1
<?php
2
 
3
	/**
4
	 * Template für die Ansicht einer Bestellung im Backend
5
	 */
6
 
7
?>
5720 daniel 8
<div class="wpsg_order_view" id="wpsg-bs">
5049 daniel 9
 
5720 daniel 10
	<nav class="navbar navbar-default">
11
		<div class="container-fluid">
12
			<div class="navbar-header">
13
				<a class="navbar-brand" href="#"><?php echo __('wpShopGermany', 'wpsg'); ?></a>
14
			</div>
15
			<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
16
				<ul class="nav navbar-nav">
6683 daniel 17
					<li role="presentation" class="<?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>
6602 roger 18
					<li role="presentation" class="wpsg_showhide_filter active"><a onclick="return false;"><?php echo __("Bestellansicht (Detail)", "wpsg"); ?></a></li>
6846 hartmut 19
					<li role="presentation" class="wpsg_top_extend" id="wpsg_be_orderdata">
6683 daniel 20
 
21
						<?php echo $this->view['oOrder']->getInvoiceFirstName().' '.$this->view['oOrder']->getInvoiceName().' / '.wpsg_ff($this->view['oOrder']->getAmount($this->getBackendTaxview()), $this->get_option('wpsg_currency')); ?>
22
 
23
						<?php if (trim($this->view['oOrder']->admincomment) != "") { ?>
24
							<a title="<?php echo __("Kommentar (Admin): ", "wpsg").htmlspecialchars($this->view['oOrder']->admincomment); ?>" onclick="return false;" class="glyphicon glyphicon-question-sign commenticon admincomment" href="#"></a>
25
						<?php } ?>
26
 
27
						<?php if (trim($this->view['oOrder']->comment) != "") { ?>
28
							<a title="<?php echo __("Kommentar (Kunde): ", "wpsg").htmlspecialchars($this->view['oOrder']->comment); ?>" onclick="return false;" class="glyphicon glyphicon-question-sign commenticon customercomment" href="#"></a>
29
						<?php } ?>
30
 
31
					</li>
5720 daniel 32
				</ul>
33
				<ul class="nav navbar-nav navbar-right">
5049 daniel 34
 
5720 daniel 35
				</ul>
36
			</div>
37
		</div>
6350 hartmut 38
 
5720 daniel 39
    </nav>
6503 daniel 40
 
41
	<div class="wpsg_msg_wrap"><hr class="wp-header-end wpsg-wp-header-end"/></div>
5049 daniel 42
 
5720 daniel 43
    <div class="wpsg_admin_submenu">
1371 daniel 44
 
5720 daniel 45
        <div class="list-group" id="wpsg_order_view_tabs">
46
            <span class="list-group-head list-group-item"><?php echo wpsg_translate(__('Bestellung ID:#1#', 'wpsg'), $this->view['data']['id']); ?></span>
1401 daniel 47
 
5720 daniel 48
            <?php $i = 0; foreach ($this->view['arSubAction'] as $k => $v) { $i ++; ?>
7398 florian 49
 
7188 thomas 50
            	<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>
51
 
5720 daniel 52
            <?php } ?>
7179 daniel 53
 
5720 daniel 54
        </div>
5049 daniel 55
 
7179 daniel 56
		<div class="tag_actions orderdata_action">
57
 
58
			<a href="" id="LinkProduktNeu" onclick="return WPSG_BE_Product.addProduct();"><span class="glyphicon glyphicon-plus"></span>
7188 thomas 59
 
7179 daniel 60
				<?php echo __("Neues Produkt", "wpsg"); ?>
7188 thomas 61
 
7173 daniel 62
			</a><div class="wpsg_clear"></div>
7188 thomas 63
 
64
			<a href="" id="LinkPaymantNeu" onclick="return WPSG_BE_Pay_Ship.changeShippingPayment();"><span class="glyphicon glyphicon-credit-card"></span>
65
 
66
				<?php echo __("Versand- und Zahlungsart bearbeiten", "wpsg"); ?>
67
 
68
			</a><div class="wpsg_clear"></div>
7179 daniel 69
 
70
			<?php if ($this->hasMod('wpsg_mod_gutschein')) { ?>
7188 thomas 71
 
7490 daniel 72
				<a href="" id="LinkGutscheinNeu" onclick="return WPSG_BE_Voucher.editVoucher(-1);"><span class="glyphicon glyphicon-plus"></span>
7188 thomas 73
 
7179 daniel 74
					<?php echo __("Gutschein bearbeiten", "wpsg"); ?>
7188 thomas 75
 
7179 daniel 76
				</a><div class="wpsg_clear"></div>
7188 thomas 77
 
7179 daniel 78
			<?php } ?>
79
 
80
			<div class="wpsg_clear"></div>
7188 thomas 81
 
7179 daniel 82
			<?php if ($this->hasMod('wpsg_mod_discount')) { ?>
7190 thomas 83
				<a href="" id="LinkRabattNeu" onclick="return WPSG_BE_Discount.editDiscount(<?php echo $_REQUEST['edit_id']; ?>);"><span class="glyphicon glyphicon-euro"></span>
7188 thomas 84
 
7179 daniel 85
					<?php echo __("Rabatt bearbeiten", "wpsg"); ?>
7188 thomas 86
 
7179 daniel 87
				</a><div class="wpsg_clear"></div>
7188 thomas 88
 
7179 daniel 89
			<?php } ?>
7188 thomas 90
 
7179 daniel 91
        	<a href="" id="LinkSendMail" onclick="return WPSG_BE_Mail.sendCustomerMail(<?php echo $_REQUEST['edit_id']; ?>);"><span class="glyphicon glyphicon-envelope"></span>
7188 thomas 92
 
7179 daniel 93
	 			<?php echo __("Bestellbestätigung", "wpsg"); ?><br /><?php echo __("erneut versenden", "wpsg"); ?>
7188 thomas 94
 
7179 daniel 95
	 		</a><br />
6350 hartmut 96
 
7179 daniel 97
		</div>
98
 
5922 hartmut 99
		<div id='wpsg_kv_list'>
100
		</div>
7179 daniel 101
 
5720 daniel 102
    </div>
1405 daniel 103
 
5720 daniel 104
    <div class="wpsg_admin_content form-horizontal">
1405 daniel 105
 
7210 daniel 106
		<?php if ($this->view['oCalculation']->restored) { ?>
107
 
108
			<div id="restored_notice">
109
				<strong>Die Berechnung dieser Bestellung wurde rekonstruiert, da zum Bestellzeitpunkt nicht alle Shop Einstellungen erfasst wurden. Bitte überprüfen sie die Berechnung und vergleichen diese ggf. mit dem Bestellprotokoll. </strong>
110
			</div>
111
 
112
		<?php } ?>
113
 
5720 daniel 114
        <?php $i = 0; foreach ($this->view['arSubAction'] as $k => $v) { $i ++; ?>
115
        <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">
1405 daniel 116
 
5720 daniel 117
            <?php echo $v['content']; ?>
1405 daniel 118
 
5720 daniel 119
        </div>
120
        <?php } ?>
1405 daniel 121
 
5720 daniel 122
    </div>
1405 daniel 123
 
5720 daniel 124
</div>
1405 daniel 125
 
7179 daniel 126
<script type="text/javascript">
127
 
5922 hartmut 128
	/**
6081 hartmut 129
	 * Sendet eine eMail
6350 hartmut 130
	 */
5979 hartmut 131
	function wpsg_sendMail(oid)
132
	{
7561 daniel 133
 
5979 hartmut 134
		jQuery('#wpsg_produkte_table').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
6350 hartmut 135
 
5979 hartmut 136
		jQuery.ajax( {
137
			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=sendMail&do=send&edit_id=' + oid + '&noheader=1',
138
			success: function(data) {
139
				jQuery('#wpsg_produkte_table').replaceWith(data);
6285 hartmut 140
				location.href = location.href;
5979 hartmut 141
			}
142
		} );
6350 hartmut 143
 
5979 hartmut 144
		return false;
6350 hartmut 145
 
5979 hartmut 146
	} // function wpsg_sendMail()
147
 
5720 daniel 148
    jQuery(document).ready(function() {
1405 daniel 149
 
5720 daniel 150
        jQuery('#wpsg_order_view_tabs a.list-group-item').bind('click', function() {
1405 daniel 151
 
5720 daniel 152
            jQuery('#wpsg_order_view_tabs a').removeClass('active');
153
            jQuery('.wpsg_order_view_tab_content').hide();
1405 daniel 154
 
7179 daniel 155
			jQuery('.tag_actions').hide(); //ordertab_action
156
			jQuery('.' + jQuery(this).attr('wpsg-data-target') + '_action').show();
157
 
158
			jQuery(this).addClass('active');
5720 daniel 159
            jQuery('#tab' + jQuery(this).attr('wpsg-data-target')).show();
1405 daniel 160
 
5720 daniel 161
            jQuery.cookie('wpsg_order_view_tab', jQuery(this).attr('wpsg-data-target'));
162
            jQuery(this).blur();
1405 daniel 163
 
5720 daniel 164
        } );
2759 daniel 165
 
7179 daniel 166
        var co = jQuery.cookie('wpsg_order_view_tab');
167
 
6066 hartmut 168
        if (co === undefined) {
7179 daniel 169
 
6066 hartmut 170
			jQuery("[wpsg-data-target='general']").trigger("click");
7179 daniel 171
 
6066 hartmut 172
        } else {
7179 daniel 173
 
6350 hartmut 174
        	jQuery("[wpsg-data-target='" + co + "']").trigger("click");
7179 daniel 175
 
6066 hartmut 176
        }
7179 daniel 177
 
5720 daniel 178
    } );
179
 
7179 daniel 180
</script>