<body> <div class="container"> <div class="header"> <h1 id="shop_title">hello <?php echo $_SESSION["user"]; ?> </h1> <a href="logout.php"><div class="button" id="logout_button">log out</div></a> </div> <div class="main"> <div id="content"> <table class="shop_table"> <?php generate_item_list(); ?> </table> </div> <div id="sidebar"> <div class="subtitle"> <p>shopping cart</p> </div> <table id="shopping_cart"></table> <div class="button" id="checkout_button" onClick="check_out()">check out</div> </div> </div> </div>
<section style="display: inline-block; padding: 0px 2px 2px; box-sizing: border-box; border-bottom-width: 2px; border-bottom-style: solid; border-color: rgb(95, 156, 239); line-height: 1; font-size: 16px; font-family: inherit; font-weight: inherit; text-align: center; text-decoration: inherit; color: rgb(255, 255, 255);" class="tn-Powered-by-XIUMI"> <section style="display: inline-block; margin: 0px; padding: 0.3em 0.4em; min-width: 1.8em; min-height: 1.6em; border-radius: 80% 100% 90% 20%; line-height: 1; font-size: 16px; font-family: inherit; box-sizing: border-box; word-wrap: break-word !important; background-color: rgb(95, 156, 239);" class="tn-Powered-by-XIUMI"> <section class="tn-Powered-by-XIUMI" style="box-sizing: border-box;">0</section> </section> <span style="display: inline-block; margin-left: 0.4em; max-width: 100%; color: rgb(0, 112, 192); line-height: 1.4; font-size: 16px; word-wrap: break-word !important; box-sizing: border-box;" class="tn-Powered-by-XIUMI"> <span style="max-width: 100%; font-size: 16px; font-family: inherit; font-weight: bolder; text-align: inherit; text-decoration: inherit; color: rgb(95, 156, 239); box-sizing: border-box; word-wrap: break-word !important;" class="tn-Powered-by-XIUMI"> <section class="tn-Powered-by-XIUMI" style="box-sizing: border-box;">清单</section> </span> </span> </section> </fieldset> <p> <?php $order = 1; foreach ($_POST['posts'] as $wechat_item_id) { echo generate_item_list($wechat_item_id, $order); $order++; } ?> </p> </div> <?php $order = 1; foreach ($_POST['posts'] as $wechat_item_id) { echo generate_item_html($wechat_item_id, $order); $order++; } ?> <br/> <br/> <br/>