本文整理汇总了PHP中ps_DB::sp方法的典型用法代码示例。如果您正苦于以下问题:PHP ps_DB::sp方法的具体用法?PHP ps_DB::sp怎么用?PHP ps_DB::sp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ps_DB
的用法示例。
在下文中一共展示了ps_DB::sp方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: formFactory
$formObj = new formFactory($title);
//Then Start the form
$formObj->startForm();
?>
<table class="adminform">
<tr>
<td width="23%" height="20" valign="top">
<div align="right"><?php
echo $VM_LANG->_('PHPSHOP_ATTRIBUTE_FORM_NAME');
?>
:</div>
</td>
<td width="77%" height="20">
<input type="text" class="inputbox" name="attribute_name" value="<?php
$db->sp("attribute_name");
?>
" size="32" maxlength="255" />
</td>
</tr>
<tr>
<td width="23%" height="10" valign="top">
<div align="right"><?php
echo $VM_LANG->_('PHPSHOP_ATTRIBUTE_FORM_ORDER');
?>
:</div>
</td>
<td width="77%" height="10">
<input type="text" class="inputbox" name="attribute_list" value="<?php
$db->sp("attribute_list");
?>
示例2: while
</td>
</tr>
<?php
while ($db_items->next_record()) {
?>
<tr class="row0">
<td> <?php
$url = $_SERVER['PHP_SELF'] . "?page={$modulename}.product_form&product_id=" . $db_items->f("product_id") . "&product_parent_id={$product_id}";
echo "<a href=\"" . $sess->url($url) . "\">";
echo $db_items->f("product_name");
echo "</a>";
?>
</td>
<td><?php
$db_items->sp("product_sku");
?>
</td>
<td> <?php
$price = $ps_product->get_price($db_items->f("product_id"));
$url = $_SERVER['PHP_SELF'] . "?page={$modulename}.product_price_list&product_id=" . $db_items->f("product_id") . "&product_parent_id={$product_parent_id}";
$url .= "&return_args=" . urlencode("page={$page}&product_id={$product_id}");
echo "<a href=\"" . $sess->url($url) . "\">";
if ($price) {
if (!empty($price["item"])) {
echo $price["product_price"];
} else {
echo "none";
}
} else {
echo "none";
示例3:
$formObj->startForm();
?>
<table class="adminform">
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td class="labelcell"><?php
echo $VM_LANG->_('PHPSHOP_PRODUCT_FORM_PRICE_NET');
?>
:
</td>
<td><input type="text" class="inputbox" name="product_price"
onkeyup="updateGross();" value="<?php
$db->sp("product_price");
?>
"
size="10" maxlength="10" /></td>
</tr>
<tr>
<td class="labelcell">
<?php
echo $VM_LANG->_('PHPSHOP_PRODUCT_FORM_PRICE_GROSS');
?>
:
</td>
<td><input type="text" class="inputbox" onkeyup="updateNet();"
name="product_price_incl_tax" size="10" /></td>
</tr>
<tr>
示例4: while
$db2->query($q2);
?>
<div style="width:90%;">
<fieldset>
<legend><strong><?php
echo $VM_LANG->_('PHPSHOP_PRODUCT_FORM_ITEM_ATTRIBUTES_LBL');
?>
</strong></legend>
<?php
while ($db2->next_record()) {
?>
<div class="formLabel"><?php
$db2->sp("attribute_name");
?>
:</div>
<div class="formField" ><?php
$db2->p("attribute_value");
?>
</div>
<?php
}
?>
</fieldset>
</div>
<?php
}
?>