⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 thankyou.ihtml

📁 php做的网上商店系统。简单易懂
💻 IHTML
字号:
<table width="580" border="0" cellspacing="0" cellpadding="0" align="center"><tr><td><table width="580" border="0" cellspacing="0" cellpadding="0" bgcolor="#E8DCB8" align="CENTER">
<tr><td background="/phpshop/images/ec-m2.gif" valign="TOP"><img src="/phpshop/images/ec-m1.gif" height="27" width="600"><br>
<br><table width="95%" border="0" align="CENTER"><tr> 
<td class="unnamed11">
<?php
eval(load_class("product", "ps_product"));
$ps_product= new ps_product;

if (!$print) {
?> 
<table width="580" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td>
       欢迎您在我们的商店购物
 <?php
}
?> <basefont <?php echo $base_font?>> 
        <table width=580 border=0 cellspacing=0 cellpadding=10>
          <tr valign=TOP> 
                            <td align=LEFT width=90% height="28"><?php 
echo "公司名称: " . $vendor_name . "<BR>";
echo "公司地址: " . $vendor_address . "<BR>";
echo "所在省份: " . $vendor_city . "<BR> ";
echo "所在城市: " . $vendor_state . "<BR> ";
echo "邮政编码: " . $vendor_zip;
?> </td>
                            <td width=10% align=RIGHT height="28"> <?php echo $vendor_image;?></td>
          </tr>
          <tr bgcolor=<?php echo $leftbar_title_bgcolor?>> 
                            <td colspan=2 height="20"> 购物信息</td>
          </tr>
        </table>
        <?php 
   // Order_id is returned by checkoutComplete function
   $order_id = $vars["order_id"];
   $q  = "SELECT * from orders WHERE order_id='$order_id' ";
   $q .= "AND user_id='" . $auth["user_id"] . "' ";
   $db->query($q);
   $db->next_record(); 
?> 
        <table border=0 cellspacing=0 cellpadding=2 width=580>
          <!-- Begin Customer Information --> 
          <tr bgcolor=<?php echo $cart_header_color?>> 
                            <td colspan=2> 订单信息</td>
          </tr>
          <tr> 
            <td>订单号:</td>
            <td><?php printf("%08d", $db->f("order_id")); ?></td>
          </tr>
          <tr> 
            <td>定货日期:</td>
            <td><?php echo date("d-M-Y H:i", $db->f("cdate")); ?></td>
          </tr>
          <tr> 
            <td>货物情况:</td>
            <td><?php
         $q = "SELECT order_status_name FROM order_status WHERE ";
         $q .= "order_status_code = '" . $db->f("order_status") . "'";
         $dbos = new ps_DB;
         $dbos->query($q);
         $dbos->next_record();
         echo $dbos->f("order_status_name");
         ?> </td>
          </tr>
          <!-- End Customer Information --> <!-- Begin 2 column bill-ship to --> 
          <tr bgcolor=<?php echo $cart_header_color?>> 
                            <td colspan=2> 顾客信息</td>
          </tr>
          <tr valign=top> 
            <td width=50%> <!-- Begin BillTo --> <?php
    // Get ship_to information
    $dbbt = new ps_DB;
    $q  = "SELECT * FROM auth_user_md5, user_info WHERE ";
    $q .= "auth_user_md5.user_id='" . $auth["user_id"] . "' ";
    $q .= "AND auth_user_md5.user_id=user_info.user_id ";
    $q .= "AND user_info.address_type='BT'"; 
    $dbbt->query($q);
    $dbbt->next_record(); 
  ?> 
              <table width=100% cellspacing=0 cellpadding=2 border=0>
                <tr> 
                  <td colspan=2>帐单发往</td>
                </tr>
                 <tr> 
                  <td>真实姓名:</td>
                  <td><?php $dbbt->p("true_name");?></td>
                </tr>
                <tr> 
                  <td>公司名:</td>
                  <td><?php $dbbt->p("company"); ?></td>
                </tr>
                <tr valign=TOP> 
                  <td>地址:</td>
                  <td><?php $dbbt->p("address");?></td>
                </tr>
                <tr> 
                  <td>所在省份:</td>
                  <td><?php $dbbt->p("province"); ?></td>
                </tr>
                <tr> 
                  <td>所在城市:</td>
                  <td><?php $dbbt->p("city"); ?></td>
                </tr>
                <tr> 
                  <td>邮编:</td>
                  <td><?php $dbbt->p("zip"); ?></td>
                </tr>
                <tr> 
                  <td>国家:</td>
                  <td><?php $dbbt->p("country"); ?></td>
                </tr>
                <tr> 
                  <td>电话:</td>
                  <td><?php $dbbt->p("phone"); ?></td>
                </tr>
                <tr> 
                  <td>传真:</td>
                  <td><?php $dbbt->p("fax"); ?></td>
                </tr>
                <tr> 
                  <td>电子邮件:</td>
                  <td><?php $dbbt->p("email"); ?></td>
                </tr>
              </table>
              <!-- End BillTo --> </td>
            <td width=50%> <!-- Begin ShipTo --> <?php
    // Get bill_to and ship_to information
    $dbst = new ps_DB;
    $q  = "SELECT * FROM user_info WHERE ";
    $q .= "user_info_id='" . $db->f("user_info_id") . "'";
    $dbst->query($q);
    $dbst->next_record(); 
  ?> 
              <table width=100% cellspacing=0 cellpadding=2 border=0>
                <tr> 
                  <td colspan=2>货物运往</td>
                </tr>
                <tr> 
                  <td>真实姓名:</td>
                  <td><?php $dbst->p("true_name"); ?></td>
                </tr>

                <tr> 
                  <td>公司名:</td>
                  <td><?php $dbst->p("company"); ?></td>
                </tr>
                <tr valign=TOP> 
                  <td>地址:</td>
                  <td><?php $dbst->p("address");?></td>
                </tr>
                <tr> 
                  <td>所在省份:</td>
                  <td><?php $dbst->p("province"); ?></td>
                </tr>
                <tr> 
                  <td>所在城市:</td>
                  <td><?php $dbbt->p("city"); ?></td>
                </tr>
                <tr> 
                  <td>邮编:</td>
                  <td><?php $dbst->p("zip"); ?></td>
                </tr>
                <tr> 
                  <td>国家:</td>
                  <td><?php $dbst->p("country"); ?></td>
                </tr>
                <tr> 
                  <td>电话:</td>
                  <td><?php $dbst->p("phone"); ?></td>
                </tr>
                <tr> 
                  <td>传真:</td>
                  <td><?php $dbst->p("fax"); ?></td>
                </tr>
              </table>
              <!-- End ShipTo --> <!-- End Customer Information --> </td>
          </tr>
          <tr> 
            <td colspan=2>&nbsp;</td>
          </tr>
          <tr> 
            <td colspan=2> 
              <table width="100%" border="0" cellspacing="0" cellpadding="1">
                <?php if (IS_ENABLE) { ?> 
                <tr bgcolor=<?php echo $cart_header_color?>> 
                                  <td> <b>运输信息</b></td>
                </tr>
                <tr> 
                  <td> 
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr> 
                        <td>送货人</td>
                        <td><b>送货方式</b></td>
                        <td>送货日期</td>
                        <td><b>运费</b></td>
                      </tr>
                      <tr> 
                        <td><?php 
$dbship = new ps_DB;

$q = "SELECT * from ISshipping WHERE ship_method_id =" . $db->f("ship_method_id");
$dbship->query($q);
$dbship->next_record();
$dbship->p("ship_carrier_name");
?>&nbsp;</td>
                        <td><?php 
$dbship->p("ship_method_name");
?></td>
                        <td><?php 
$shipdate = time();
echo date("Y-M-d", $shipdate);
?></td>
                        <td><?php
$shipping_total = $db->f("order_shipping");
printf("$%.2f", $shipping_total);
?></td>
                      </tr>
                    </table>
                  </td>
                </tr>
                <?php
     }
  ?> 
              </table>
            </td>
          </tr>
          <tr> 
            <td colspan=2>&nbsp;</td>
          </tr>
          <!-- Begin Order Items Information --> 
          <tr bgcolor=<?php echo $cart_header_color?>> 
                            <td colspan=2> <b>订单类型</b></td>
          </tr>
          <tr> 
            <td colspan=2> 
              <table width=100% cellspacing=0 cellpadding=2 border=0>
                <tr align=LEFT> 
                  <th>数量</th>
                  <th>商品名称</th>
                  <th>商品号</th>
                  <th>价格</th>
                  <th>小计</th>
                </tr>
                <?php 
  $dbcart = new ps_DB;
  $q  = "SELECT * FROM orders, order_item, product ";
  $q .= "WHERE orders.order_id='$order_id' ";
  $q .= "AND orders.order_id=order_item.order_id ";
  $q .= "AND product.product_id=order_item.product_id";
  $dbcart->query($q); 
  $subtotal = 0;
  while ($dbcart->next_record()) {
?> 
                <tr align=LEFT> 
                  <td><?php $dbcart->p("product_quantity"); ?></td>
                  <td><?php $dbcart->p("product_name"); ?></td>
                  <td><?php $dbcart->p("product_sku"); ?></td>
                  <td><font color=red><?php $price = $ps_product->get_price($dbcart->f("product_id"));
                $item_price = $price["product_price"]; 
               printf("%.2f", $item_price);
           ?>元</font></td>
                  <td><font color=red><?php $total = $dbcart->f("product_quantity") * $item_price; 
                $subtotal += $total;
                printf("%.2f", $total);
           ?>元</font></td>
                </tr>
                <?php
 }
?> 
                <tr> 
                  <td colspan=4 align=RIGHT>&nbsp;&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr> 
                  <td colspan=4 align=RIGHT>小计:</td>
                  <td><font color=red><?php printf("%.2f", $subtotal) ?>元</font></td>
                </tr>
                <tr> 
                  <td colspan=4 align=RIGHT> 运费:</td>
                  <td><font color=red><?php 
$shipping_total = $db->f("order_shipping");
printf("%.2f", $shipping_total);
?>元</font></td>
                </tr>
                <tr> 
                  <td colspan=4 align=RIGHT> 税金:</td>
                  <td><font color=red><?php 
$tax_total = $db->f("order_tax");
printf("%.2f", $tax_total);
?>元</font></td>
                </tr>
                <tr> 
                  <td colspan=4 align=RIGHT><b>总计:</b></td>
                  <td><font color=red><?php 
$total = $subtotal + $tax_total + $shipping_total;
printf("%.2f", $total);
?>元</font></td>
                </tr>
              </table>
            </td>
          </tr>
          <!-- End Order Items Information --> <!-- Begin Payment Information --> 
          <tr bgcolor=<?php echo $cart_header_color?>> 
            <td colspan=2><b>付款信息</b></td>
          </tr>
          <?php
  $dbpm = new ps_DB;
  $q  = "SELECT * FROM payment_method, order_payment WHERE order_payment.order_id='$order_id' ";
  $q .= "AND payment_method.payment_method_id=order_payment.payment_method_id";
  $dbpm->query($q);
  $dbpm->next_record();
 
  // DECODE Account Number
  $dbaccount = new ps_DB;
  $q = "SELECT DECODE(\"". $dbpm->f("order_payment_number")."\",\"".ENCODE_KEY."\") as account_number";
  $dbaccount->query($q);
  $dbaccount->next_record();
?> 
          <tr> 
            <td>付款方式:</td>
            <td><?php $dbpm->p("payment_method_name"); ?> </td>
          </tr>
          <!-- End Payment Information --> 
        </table>
        <br>
        <!-- Body ends here --> <?php 
if (!$print) {
?> 
        <div align="CENTER"><br>
          一封确认信已经发往: <br><a href=<?php $dbbt->p("email"); ?>>
          <?php $dbbt->p("email"); ?></a><br>
        </div>
           <a href="<?php $sess->purl(SECUREURL . "?page=$modulename/thankyou&order_id=$order_id&print=1"); ?>">打印输出</a> 
          <?php
}
?> 
</td></tr></table>  </td></tr></table><img src="/phpshop/images/ec-m3.gif" height="27" width="600"></td></tr></table></td></tr></table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -