本文整理汇总了PHP中Supplier::setSID方法的典型用法代码示例。如果您正苦于以下问题:PHP Supplier::setSID方法的具体用法?PHP Supplier::setSID怎么用?PHP Supplier::setSID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Supplier
的用法示例。
在下文中一共展示了Supplier::setSID方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: explode
}
if (isset($_POST['previewok'])) {
$mo->setValue('previewok', $_POST['previewok']);
$previewok = $_POST['previewok'];
} else {
$previewok = '';
}
$dcpath = '/home/www/divyaeng2/dcpdfs/';
$mlistchunk = explode('<||>', $miscitems);
$j = 0;
for ($i = 0; $i < count($mlistchunk); $i++) {
$dqr_list[$j] = explode('<|>', $mlistchunk[$i]);
$j++;
}
$supp = new Supplier();
$supp->setSID($_POST['Supplier_ID']);
$supp->setSupplierDetails();
$pdf = new PDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
//$pdf->AliasNbPages();
$pdf->setAutoPageBreak(TRUE, 45);
$pdf->AddPage('P', 'A4');
$pdf->SetFont('helvetica', 'B', 13);
$pdf->SetY(56);
$pdf->Cell(125, 8, $supp->getName(), 0, 0, 'L');
$pdf->SetFont('helvetica', 'B', 14);
$pdf->Cell(100, 8, "DC NO: {$dcno}", 0, 1, 'L');
$pdf->SetFont('helvetica', '', 13);
$pdf->Cell(125, 8, $supp->getAddressl1(), 0, 0, 'L');
$pdf->Cell(100, 8, "Date: {$dcdate}", 0, 1, 'L');
$pdf->Cell(125, 8, $supp->getAddressl2(), 0, 0, 'L');
$pdf->Cell(100, 8, "Your Ref: {$cref}", 0, 1, 'L');
示例2:
if (isset($_POST['Status_ID'])) {
$supplier->setValue('appstatus', $_POST['Status_ID']);
}
if (isset($_POST['sremarks'])) {
$supplier->setValue('sremarks', $_POST['sremarks']);
}
if (isset($_POST['appdatedb'])) {
$supplier->setValue('appdatedb', $_POST['appdatedb']);
}
if (isset($_POST['supscopeid'])) {
$supplier->setValue('supscopeid', $_POST['supscopeid']);
}
if (isset($_POST['showinlist'])) {
$supplier->setValue('showinlist', $_POST['showinlist']);
}
$supplier->setSID($cid);
$supplier->setName($_POST['name']);
$supplier->setAddressl1($_POST['addl1']);
$supplier->setAddressl2($_POST['addl2']);
$supplier->setContactPerson($_POST['cper']);
$supplier->setPhoneNo($_POST['phone']);
$supplier->setTINNo($_POST['tinno']);
$supplier->setPANNo($_POST['panno']);
$supplier->setExciseNo($_POST['excise']);
$supplier->saveSupplier($cid);
$supplier->saveScope();
if ($pimg != '') {
$supplier->delBrand($pimg);
}
if ($blistsupplier != '') {
$supplier->saveBrand($blistsupplier);