當前位置: 首頁>>代碼示例>>PHP>>正文


PHP customer::setCustomerId方法代碼示例

本文整理匯總了PHP中customer::setCustomerId方法的典型用法代碼示例。如果您正苦於以下問題:PHP customer::setCustomerId方法的具體用法?PHP customer::setCustomerId怎麽用?PHP customer::setCustomerId使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在customer的用法示例。


在下文中一共展示了customer::setCustomerId方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: VoucherInvoice

        function VoucherInvoice($VoucherId)
        {

            $voucher = new voucher();
            $customer = new customer();
            $currency_object = new CurrencyWord();
            $currency = new currency();

            $voucher->setVoucherId($VoucherId);
            $voucher->extractor($voucher->getVoucherById());

            $systemSetting = new systemSetting();
            $common = new common();
            $systemSetting->extractor($systemSetting->getSettings());

            $customer->setCustomerId($voucher->voucherCustomerId());
            $customer->extractor($customer->getCustomerById());
            $filename = $systemSetting->sySettingDocumentName() . 'voucher_In_' . $voucher->voucherId() . '.pdf';

            $subject = $systemSetting->sySettingCompanyName() . ' - New Voucher Invoice!!!';
            $EmailMessage = '<table width="800" border="0" style="font-family:Arial, Helvetica, sans-serif; background:#eee; font-size:12px; color:#333333;">
<tr>
<td colspan="2" rowspan="7" align="left" valign="top"><img src="' . DOC_ROOT . 'uplode-img/company-logo/' . $systemSetting->sySettingCompanyLogo() . '"  /></td>
<td colspan="2" rowspan="7"> <div style="font-size:13px; font-weight:bold; margin-bottom:10px;">' . $systemSetting->sySettingCompanyName() . ' </div>
<div style="margin-bottom:5px;font-size:10px;">' . $systemSetting->sySettingCompanyAddress() . '</div>
<div style="margin-bottom:5px;font-size:10px;">Telephone &nbsp; : &nbsp;&nbsp;' . $systemSetting->sySettingCompanyPhon() . '</div>
<div style="margin-bottom:5px;font-size:10px;">Email &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : &nbsp;&nbsp; ' . $systemSetting->sySettingCompanyEmail() . '</div></td>
<td colspan="2" bgcolor="#CC0000" style="color:#FFF; font-size:14px; padding:5px; text-align:right; font-weight:700; letter-spacing:1px;">V o u c h e r &nbsp;&nbsp;&nbsp;I n v o i c e</td>
</tr>
<tr>
<td width="521">&nbsp;</td>
<td width="475">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td style="padding:3px; border-bottom:1px #484848 dotted;"><div style="width:55px; background-color:#ececec; font-size:10px; padding:3px 5px; float:left;">Date</div></td>
<td style="padding:3px; border-bottom:1px #484848 dotted;">' . date('l jS \of F Y ', strtotime($voucher->voucherCreatedDate())) . '</td>
</tr>
<tr>
<td style="padding:3px; border-bottom:1px #484848 dotted;"><div style="width:55px; background-color:#ececec; font-size:10px; padding:3px 5px; float:left;">Voucher Code</div></td>
<td style="padding:3px; border-bottom:1px #484848 dotted;">' . $voucher->voucherCode() . '</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width="410">&nbsp;</td>
<td width="222">&nbsp;</td>
<td colspan="2">&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="3" bgcolor="#333333" style="color:#fff; padding:3px 0 3px 8px; font-weight:bold; font-size:13px;">From</td>
<td colspan="3" bgcolor="#333333" style="color:#fff; padding:3px 0 3px 8px; font-weight:bold; font-size:13px;">To</td>
</tr>
<tr>
<td  style="padding:3px; border-bottom:1px #484848 dotted;">
<div style=" width:60px;background-color:#ececec; float:left; margin-top:2px; padding:2px 5px;">Name</div></td>
<td  style="padding:3px; border-bottom:1px #484848 dotted;">
<div style="font-size:10px;">' . $voucher->voucherFromName() . '</div></td>
<td  style="padding:3px; border-bottom:1px #484848 dotted;"></td>

<td style="padding:3px; border-bottom:1px #484848 dotted;">
<div style=" width:60px;background-color:#ececec; float:left; margin-top:2px; padding:2px 5px;">Name</div></td>
<td style="padding:3px; border-bottom:1px #484848 dotted;">' . $voucher->voucherToName() . '</td>
<td  style="padding:3px; border-bottom:1px #484848 dotted;">3</td>
</tr>
<tr>
<td  style="padding:3px; border-bottom:1px #484848 dotted;"><div style=" width:60px;background-color:#ececec; float:left; margin-top:2px; padding:2px 5px;">Email</div></td>
<td  style="padding:3px; border-bottom:1px #484848 dotted;">' . $voucher->voucherFromEmail() . '</td>
<td  style="padding:3px; border-bottom:1px #484848 dotted;"></td>
<td style="padding:3px; border-bottom:1px #484848 dotted;">
<div style=" width:60px;background-color:#ececec; float:left; margin-top:2px; padding:2px 5px;">Email</div></td>
<td style="padding:3px; border-bottom:1px #484848 dotted;">' . $voucher->voucherToEmail() . '</td>
<td  style="padding:3px; border-bottom:1px #484848 dotted;">3</td>
</tr>


<tr>
<td colspan="8">&nbsp;</td>
</tr>
<tr>
<td align="center" bgcolor="#333333" style="color:#fff; padding:3px 0 3px 8px; font-weight:bold; font-size:13px;">Item Code</td>
<td colspan="4" align="center" bgcolor="#333333" style="color:#fff; padding:3px 0 3px 8px; font-weight:bold; font-size:13px;">Description</td>
<td align="center" bgcolor="#333333" style="color:#fff; padding:3px 0 3px 8px; font-weight:bold; font-size:13px;">Total Price</td>
</tr>
<tr>
<td height="30" align="center" style="padding:3px; border-bottom:1px #484848 dotted;"> 1 </td>
<td colspan="4" style="padding:3px; border-bottom:1px #484848 dotted;">Voucher Invoice</td>
<td align="right" valign="bottom" style="padding:3px; border-bottom:1px #484848 dotted;">' . $voucher->voucherAmount() . '</td>
</tr>
//.........這裏部分代碼省略.........
開發者ID:jcodesdotme,項目名稱:pp,代碼行數:101,代碼來源:mailclass.php


注:本文中的customer::setCustomerId方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。