#!/usr/local/bin/perl5 require "./cgi-lib.pl"; $homeURL = "http://www.onenet.com.hk"; $passfile = "password/password.txt"; $emailaddr = "sales\@onenet.com.hk databank\@hkstar.com"; $mailer = "/usr/bin/mail"; $descfile = "desc.txt"; $ret = &ReadParse; @parts = split(/;/,$ENV{'HTTP_COOKIE'}); foreach (@parts){ $_ =~ s/^[\s]//g; $_ =~ s/[\s]$//g; } if ( $parts[0] =~ /^product/ ){ $pline = $parts[0]; } if ( $parts[0] =~ /^username/ ){ $username = $parts[0]; } if ( $parts[1] =~ /^product/ ){ $pline = $parts[1]; } if ( $parts[1] =~ /^username/ ){ $username = $parts[1]; } $pline =~ s/^product=//g; if ($pline eq "product") { $pline="";} $username =~ s/^username=//g; @p = split(/\|/,$pline); foreach (@p){ ($tcode,$tprice,$tqty) = split(/!/,$_); $tcode =~ tr/a-z/A-Z/; $PRICE{$tcode} = $tprice; $QTY{$tcode} = $tqty + $QTY{$tcode}; } print <<_EOT_; Content-type: text/html one.net
Search the Web:







Check Out 付 款 處

_EOT_ if (( $username eq "" ) || ( $username eq "username" )) { print <<_EOT_; Please login as our member first.

_EOT_ }else{ print <<_EOT_; _EOT_ $atotal = 0; foreach (sort(keys %QTY)){ $utotal = $PRICE{$_} * $QTY{$_}; $atotal = $atotal + $utotal; print "\n"; } print "\n"; print <<_EOT_;
CodeDescriptionQuantityUnit PriceTotal
$_$DESC{$_} $PRICE{$_}
  Total

1.請 選 擇 付 款 方 法 Select a payment method:
網 上 良 品 銀 行 戶 口 onenet A/C:
恆 生 銀 行 戶 口 號 碼 Hang Seng Bank A/C No. 266-189380-001
直 接 存 款 經 自 動 櫃 員 機 或 銀 行 櫃 台 direct deposit via ATM or counter
支 票 (抬 頭 網 上 良 品 Cheque (made payable to onenet))
電 匯 Wire Transfer
匯 票 Money Order
2. 請 輸 入 送 貨 地 址 Enter a Mailing Address:
以 下 地 址, 是 用 作 送 貨 之 用, 請 正 確 輸 入 (*郵 箱 不 可 用 速 遞)
On the mailing label, we will use exactly what you enter here, so please make sure this address is the way you want it to appear. (*we cannot ship via courier to P.O. Box)
送 貨 地 址
Mailing address


國 家
Country
3. 這 是 否 禮 物? Is this order a gift?
如 是 禮 物, 網 上 良 品 可 免 費 為 您 在 禮 上 附 上 您 的 話 語, 請 在 以 下 空 格 內 寫 上 (最 多 五 十 字)
For gift order, you can include a personalized gift message in your order (maximum 50 characters).
These services are free of charge.

_EOT_ } print <<_EOT_; _EOT_