本文整理汇总了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";
}
}
}
}
}
}