PluginProbe
Welcart e-Commerce / 1.4.0
Welcart e-Commerce v1.4.0
2.12.4 2.12.3 2.11.35 2.12.2 2.12.1 2.11.34 2.11.33 2.11.32 2.11.31 2.11.30 1.3.16 1.3.17 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 All 292 releases
usc-e-shop / includes / admin_top.php

admin_top.php in Welcart e-Commerce 1.4.0, at includes/admin_top.php

139 lines 5.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <script type="text/javascript">jQuery(function($){uscesInformation.getinfo2();});</script>
2 <?php
3 global $wpdb;
4 $display_mode = $this->options['display_mode'];
5 $stocs = usces_get_stocs();
6 $items_num = $this->get_items_num();
7 ?>
8 <div class="wrap">
9 <div class="usces_admin">
10
11 <h2>Welcart Shop <?php _e('Home','usces'); ?></h2>
12 <p class="version_info">Version <?php echo USCES_VERSION; ?></p>
13
14 <div class="usces_admin_right">
15
16 <div class="usces_side_box">
17 <h5><?php _e('Display Modes','usces'); ?>:</h5>
18 <div class="dispmode <?php echo $display_mode; ?>"><?php echo esc_html($this->display_mode[$display_mode]); ?></div>
19 <?php if ( $display_mode == 'Promotionsale' ) : ?>
20 <span><?php _e('Special Benefits', 'usces'); ?>:</span><?php echo esc_html($this->options["campaign_privilege"]); ?> (<?php if($this->options["campaign_privilege"] == 'discount'){echo esc_html($this->options["privilege_discount"]).__('% Discount', 'usces');}elseif($this->options["campaign_privilege"] == 'point'){echo esc_html($this->options["privilege_point"]).__(" times (limited to members)", 'usces');} ?>) <br />
21 <span><?php _e('applied material', 'usces'); ?>:</span><?php echo esc_html(get_cat_name($this->options["campaign_category"])); ?><br />
22 <span><?php _e('Period', 'usces'); ?>:</span><?php echo $this->options["campaign_schedule"]['start']['year']; ?>/<?php echo $this->options["campaign_schedule"]['start']['month']; ?>/<?php echo esc_html($this->options["campaign_schedule"]['start']['day']); ?><?php _e(' - ', 'usces'); ?><?php echo esc_html($this->options["campaign_schedule"]['end']['year']); ?>/<?php echo esc_html($this->options["campaign_schedule"]['end']['month']); ?>/<?php echo esc_html($this->options["campaign_schedule"]['end']['day']); ?>
23 <?php endif; ?>
24 </div>
25
26 <?php if( !(defined('USCES_ADMIN_INFO') && !USCES_ADMIN_INFO) && 7 < $this->user_level ) : ?>
27 <div id= "wc_information" class="chui"></div>
28 <?php endif; ?>
29 <?php do_action( 'usces_action_admin_top_sidebar' ); ?>
30
31 </div><!--usces_admin_right-->
32
33 <div class="usces_admin_left">
34
35 <?php if( 4 < $this->user_level ): ?>
36 <h4><?php _e('number & amount of order', 'usces'); ?></h4>
37 <div class="usces_box">
38 <table class="dashboard">
39 <tr>
40 <th><?php _e('Currency','usces'); ?> : <?php usces_crcode(); ?></th><th><?php _e('number of order', 'usces'); ?></th><th><?php _e('amount of order', 'usces'); ?></th>
41 </tr>
42 <tr>
43 <td><?php _e('today', 'usces'); ?> : </td><td class="bignum"><?php echo number_format($this->get_order_num('today')); ?></td><td class="bignum"><?php usces_crform( $this->get_order_amount('today'), true, false ); ?></td>
44 </tr>
45 <tr>
46 <td><?php _e('This month', 'usces'); ?> : </td><td class="bignum"><?php echo number_format($this->get_order_num('thismonth')); ?></td><td class="bignum"><?php usces_crform( $this->get_order_amount('thismonth'), true, false ); ?></td>
47 </tr>
48 <tr>
49 <td><?php _e('Same date in last year', 'usces'); ?> : </td><td class="bignum"><?php echo number_format($this->get_order_num('lastyear')); ?></td><td class="bignum"><?php usces_crform( $this->get_order_amount('lastyear'), true, false ); ?></td>
50 </tr>
51 </table>
52 </div>
53 <?php endif; ?>
54 <?php do_action( 'usces_action_admintop_box1' ); ?>
55
56 <h4><?php _e('information for registration of items', 'usces'); ?></h4>
57 <div class="usces_box">
58 <table class="dashboard">
59 <tr>
60 <th><?php _e('number of item', 'usces'); ?></th><th colspan="5"><?php _e('SKU total number', 'usces'); ?></th>
61 </tr>
62 <tr>
63 <td rowspan="3" class="bignum"><?php echo number_format($items_num); ?></td><td colspan="5" class="bignum"><?php echo number_format(array_sum($stocs)); ?></td>
64 </tr>
65 <tr>
66 <?php
67 foreach($this->zaiko_status as $value):
68 ?>
69 <th><?php if($value == __('OK', 'usces')) {echo __('In Stock', 'usces');}else{echo $value;} ?></th>
70 <?php
71 endforeach;
72 ?>
73 </tr>
74 <tr>
75 <?php
76 foreach($this->zaiko_status as $stock_key => $value): $count = isset($stocs[$stock_key]) ? $stocs[$stock_key] : 0; ?>
77 <td class="bignum"><?php echo number_format($count); ?></td>
78 <?php
79 endforeach;
80 unset($stocs);
81 ?>
82 </tr>
83 <tr>
84 <th colspan="6"><?php _e('List of items without stock', 'usces'); ?></th>
85 </tr>
86 <?php
87 $zerostoc_items = usces_get_non_zerostoc_items();
88 foreach((array)$zerostoc_items as $item): ?>
89 <tr>
90 <td colspan="6"><a href="<?php echo site_url() . '/wp-admin/admin.php?page=usces_itemedit&action=edit&post=' . $item['ID']; ?>"><?php echo esc_html($item['name']), ' ', esc_html($item['code']); ?></a></td>
91 </tr>
92 <?php
93 endforeach;
94 unset($non_stoc_skus);
95 ?>
96 </table>
97 </div>
98
99 <?php do_action( 'usces_action_admintop_box2' ); ?>
100
101 <?php if( 2 < $this->user_level ): ?>
102 <h4><?php _e('Your environment', 'usces'); ?></h4>
103 <div class="usces_box">
104 <table class="dashboard">
105 <tr>
106 <th>&nbsp;</th><th colspan="2"><?php _e('Software Version', 'usces'); ?></th>
107 </tr>
108 <tr>
109 <td><?php _e('Server', 'usces'); ?></td><td colspan="2"><?php echo $_SERVER['SERVER_SOFTWARE']; ?></td>
110 </tr>
111 <tr>
112 <td>MySQL</td><td colspan="2"><?php echo $wpdb->db_version(); ?></td>
113 </tr>
114 <tr>
115 <?php
116 $get_ini = ini_get_all();
117 $essential_extentions = array('simplexml', 'curl', 'gd', 'json', 'mbstring', 'mysql', 'openssl');
118 ?>
119 <td>PHP</td><td colspan="2"><?php echo phpversion(); ?><?php if(ini_get('safe_mode')) echo "(".__('Safe mode', 'usces').")"; ?> memoly[global]:<?php echo $get_ini['memory_limit']['global_value']; ?> [locale]:<?php echo $get_ini['memory_limit']['local_value']; ?> [usage]:<?php echo (int)(memory_get_peak_usage()/1048576); ?>M<br />
120 <?php
121 foreach($essential_extentions as $key => $esext){
122 if (extension_loaded($esext)) {
123 if($key){
124 echo ',&nbsp;'.$esext;
125 }else{
126 echo $esext;
127 }
128 }
129 }
130 ?>
131 </td>
132 </tr>
133 </table>
134 </div>
135 <?php endif; ?>
136 </div>
137 <!--usces_admin_left-->
138 </div><!--usces_admin-->
139 </div><!--wrap-->