PluginProbe
Welcart e-Commerce / 1.3.9
Welcart e-Commerce v1.3.9
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.3.9, at includes/admin_top.php

135 lines 5.4 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
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) ) : ?>
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 <h4><?php _e('number & amount of order', 'usces'); ?></h4>
35 <div class="usces_box">
36 <table class="dashboard">
37 <tr>
38 <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>
39 </tr>
40 <tr>
41 <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>
42 </tr>
43 <tr>
44 <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>
45 </tr>
46 <tr>
47 <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>
48 </tr>
49 </table>
50 </div>
51
52 <?php do_action( 'usces_action_admintop_box1' ); ?>
53
54 <h4><?php _e('information for registration of items', 'usces'); ?></h4>
55 <div class="usces_box">
56 <table class="dashboard">
57 <tr>
58 <th><?php _e('number of item', 'usces'); ?></th><th colspan="5"><?php _e('SKU total number', 'usces'); ?></th>
59 </tr>
60 <tr>
61 <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>
62 </tr>
63 <tr>
64 <?php
65 foreach($this->zaiko_status as $value):
66 ?>
67 <th><?php if($value == __('OK', 'usces')) {echo __('In Stock', 'usces');}else{echo $value;} ?></th>
68 <?php
69 endforeach;
70 ?>
71 </tr>
72 <tr>
73 <?php
74 foreach($this->zaiko_status as $stock_key => $value): $count = isset($stocs[$stock_key]) ? $stocs[$stock_key] : 0; ?>
75 <td class="bignum"><?php echo number_format($count); ?></td>
76 <?php
77 endforeach;
78 unset($stocs);
79 ?>
80 </tr>
81 <tr>
82 <th colspan="6"><?php _e('List of items without stock', 'usces'); ?></th>
83 </tr>
84 <?php
85 $zerostoc_items = usces_get_non_zerostoc_items();
86 foreach((array)$zerostoc_items as $item): ?>
87 <tr>
88 <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>
89 </tr>
90 <?php
91 endforeach;
92 unset($non_stoc_skus);
93 ?>
94 </table>
95 </div>
96
97 <?php do_action( 'usces_action_admintop_box2' ); ?>
98
99 <h4><?php _e('Your environment', 'usces'); ?></h4>
100 <div class="usces_box">
101 <table class="dashboard">
102 <tr>
103 <th>&nbsp;</th><th colspan="2"><?php _e('Software Version', 'usces'); ?></th>
104 </tr>
105 <tr>
106 <td><?php _e('Server', 'usces'); ?></td><td colspan="2"><?php echo $_SERVER['SERVER_SOFTWARE']; ?></td>
107 </tr>
108 <tr>
109 <td>MySQL</td><td colspan="2"><?php echo mysql_get_server_info(); ?></td>
110 </tr>
111 <tr>
112 <?php
113 $get_ini = ini_get_all();
114 $essential_extentions = array('simplexml', 'curl', 'gd', 'json', 'mbstring', 'mysql', 'openssl');
115 ?>
116 <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 />
117 <?php
118 foreach($essential_extentions as $key => $esext){
119 if (extension_loaded($esext)) {
120 if($key){
121 echo ',&nbsp;'.$esext;
122 }else{
123 echo $esext;
124 }
125 }
126 }
127 ?>
128 </td>
129 </tr>
130 </table>
131 </div>
132 </div>
133 <!--usces_admin_left-->
134 </div><!--usces_admin-->
135 </div><!--wrap-->