当前位置: 首页>>代码示例>>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;未经允许,请勿转载。