本文整理匯總了PHP中Supplier::generateInfo方法的典型用法代碼示例。如果您正苦於以下問題:PHP Supplier::generateInfo方法的具體用法?PHP Supplier::generateInfo怎麽用?PHP Supplier::generateInfo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Supplier
的用法示例。
在下文中一共展示了Supplier::generateInfo方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Supplier
<br />
<div class="supplierBox span-23 last">
<div id="box1" class="boxes span-7">
<b>Supplier</b><br />
<?php
$supplier = new Supplier($grn->getSupplier());
echo $supplier->prepareName();
?>
<input type="hidden" id="supplier" val="<?php
echo $grn->prepareSupplier();
?>
"></input>
<br />
<div class="boxBody">
<?php
Supplier::generateInfo($grn->getSupplier());
?>
</div>
</div>
<div class="span-14 last">
<table>
<tr>
<td><label>PO No </label></td>
<td><label>DO No </label></td>
</tr>
<tr>
<td><?php
echo $grn->preparePoNo();
?>
</td>
<td><?php
示例2:
<div class="boxBody">
<?php
Supplier::generateInfo($purchase->getSupplier3());
?>
</div>
</div>
<?php
}
if ($purchase->getSupplier3() != null) {
?>
<div id="box3" class="boxes span-7 last">
<b>Supplier 3</b><br />
<br />
<div class="boxBody">
<?php
Supplier::generateInfo($purchase->getSupplier3());
?>
</div>
</div>
<?php
}
?>
</div>
<table id="formContent">
<thead>
<tr><th>No</th>
<th>Item Code</th><th width="300px">Description</th><th>Quantity</th><th>UOM</th><th>Unit Price</th><th>Extended Price</th></tr>
</thead>
<tbody>
<?php
$counter = 1;
示例3: catch
$supplier->populate();
$supplier->store();
} catch (fExpectedException $e) {
echo $e->printMessage();
}
} else {
if ($_POST['type'] == "add") {
try {
$supplier = new Supplier();
$supplier->populate();
$supplier->store();
} catch (fExpectedException $e) {
echo $e->printMessage();
}
} else {
if ($_POST['type'] == "option") {
echo "<select>";
Status::printOption('1');
echo "</select>";
} else {
if ($_POST['type'] == "generate") {
try {
Supplier::generateInfo($_POST['key']);
} catch (fExpectedException $e) {
echo "Invalid supplier";
}
}
}
}
}
}