/var/www/hkosl.com/innoutstorage2019/tc/packing_materials.php


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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
    
require_once ('../webadmin/basic_info.php');

    
$product_info get_product();
?>

<!DOCTYPE html>
<html dir="ltr" lang="en-US">
<head>
    <?php require_once ("html_head.php"?>
</head>

<body class="stretched no-transition">

<?php require_once ("google_analysis.php"); ?>

<!-- Document Wrapper
============================================= -->
<div id="wrapper" class="clearfix">

    <!-- Header
    ============================================= -->
    <?php require_once ("html_header.php"?>

    <!-- Content
    ============================================= -->
    <section id="content">

        <div class="content-wrap">

            <div class="container clearfix">

                <div class="col-md-9 bottommargin" >
                    <div class="heading-block center">
                        <h1>包裝物料</h1>
                        <span></span>
                    </div>


                    <div class="table-responsive bottommargin">

                        <table class="table cart" id="packing_materials_table">
                            <thead>
                            <tr class="bgcolorg">
                                <th class="cart-product-image col-md-4 font">圖片</th>
                                <th class="cart-product-name col-md-3 font">產品名稱</th>
                                <th class="cart-product-desc col-md-3 font">描述</th>
                                <th class="cart-product-price col-md-2 font">價錢</th>
                            </tr>
                            </thead>

                            <tbody>

                            <?php
                                
foreach($product_info as $product){
                                    
$product_img get_product_images($product["id"]);

                                    if(!empty(
$product_img)){
                                        
$this_img '<img src="../images/product_images/thumb/'.$product_img[0]["photo"].'">';
                                    }else{
                                        
$this_img "";
                                    }

                                    echo 
'<tr class="cart_item">
                                                <td class="cart-product-image">
                                                    '
.$this_img.'
                                                </td>

                                                <td class="cart-product-name" style="vertical-align: top !important;">
                                                    '
.$product["name_".$langcode].'
                                                </td>

                                                <td class="cart-product-desc" style="vertical-align: top !important;">
                                                    <div class="editor_content">
                                                    '
.htmlspecialchars_decode($product["desc_".$langcode]).'
                                                    </div>
                                                </td>

                                                <td class="cart-product-price" style="vertical-align: top !important;">
                                                    $'
.numberformat($product["price"]).'
                                                </td>
                                            </tr>'
;
                                }
                            
?>


                            </tbody>

                        </table>

                    </div>


                </div>

                <div class="col-md-3 center">
                </div>

            </div>

        </div>

    </section><!-- #content end -->

    <!-- Footer
    ============================================= -->
    <?php require_once ("html_footer.php"); ?>

</div><!-- #wrapper end -->

<!-- Go To Top
============================================= -->
<div id="gotoTop" class="icon-angle-up"></div>

<!-- Footer Scripts
============================================= -->
<script type="text/javascript" src="../js/functions.js"></script>

</body>
</html>