本文整理匯總了PHP中customer::getList方法的典型用法代碼示例。如果您正苦於以下問題:PHP customer::getList方法的具體用法?PHP customer::getList怎麽用?PHP customer::getList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類customer
的用法示例。
在下文中一共展示了customer::getList方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: current
<input type=hidden name="action">
<table border="0" cellpadding="2" cellspacing="1" width="99%" bgcolor="#ffffff">
<tr>
<?php
echo "<th width=\"20%\"><a href=\"" . $toolInst->encodeUrl("index.php?content=customers.php&order=customer_number&desc=" . $desc) . "\" title=\"" . $lang['common_orderBy'] . " " . $lang['customer_number'] . "\">" . $lang['customer_number'] . "</a></th>\n";
echo "<th width=\"30%\"><a href=\"" . $toolInst->encodeUrl("index.php?content=customers.php&order=firstname&desc=" . $desc) . "\" title=\"" . $lang['common_orderBy'] . " " . $lang['common_name'] . "\">" . $lang['common_name'] . "</a></th>\n";
echo "<th width=\"30%\"><a href=\"" . $toolInst->encodeUrl("index.php?content=customers.php&&order=company&desc=" . $desc) . "\" title=\"" . $lang['common_orderBy'] . " " . $lang['common_company'] . "\">" . $lang['common_company'] . "</a></th>\n";
echo "<th width=\"20%\"><a href=\"" . $toolInst->encodeUrl("index.php?content=customers.php&&order=email&desc=" . $desc) . "\" title=\"" . $lang['common_orderBy'] . " " . $lang['common_email'] . "\">" . $lang['common_email'] . "</a></th>\n";
?>
<th colspan=2><?php
echo $lang['common_action'];
?>
</th>
</tr>
<?php
$list = $customerInst->getList($order, $desc);
$style = "light";
while ($element = current($list)) {
$customerInst->activate($element);
?>
<tr class="<?php
echo $style;
?>
" onmouseover="this.style.backgroundColor='#fafafa'" onmouseout="this.style.backgroundColor=''"><?php
echo "<td>" . $customerInst->customerNumber . "</td>\n";
echo "<td>" . $customerInst->firstname . " " . $customerInst->lastname . "</td>\n";
echo "<td><a href=\"javascript:openwindow('" . $toolInst->encodeUrl("index.php?content=customerdetails.php&view=details&customerid=" . $element) . "',width='500',height='500')\" title=\"" . $lang['customer_showDetails'] . "\">" . $customerInst->company . "</a></td>\n";
echo "<td><a href=\"mailto:" . $customerInst->email . "\">" . $customerInst->email . "</a></td>\n";
echo "<td align=center><input type=submit value=" . $lang['common_delete'] . " onclick=\"document.form1.id.value='" . $element . "';document.form1.action.value='delete';return Check()\"></td>\n";
echo "<td align=center><input type=submit value=" . $lang['common_edit'] . " onclick=\"document.form1.id.value='" . $element . "';document.form1.action.value='edit'\"></td>\n";
echo "</tr>\n";
示例2: customer
(<?php
echo $config['currency'];
?>
): </td><td><input value="<?php
echo $projectInst->budget;
?>
" maxlength="10" type="text" name="budget" size="10"></td></tr>
<tr>
<td><?php
echo $lang['common_customer'];
?>
: </td>
<td><select name="customerid">
<?php
$customerInst = new customer();
$list = $customerInst->getList();
while ($element = current($list)) {
$customerInst->activate($element);
$selected = "";
if ($customerInst->id == $projectInst->customerId) {
$selected = "selected";
}
echo "<option " . $selected . " value=\"" . $customerInst->id . "\">" . $customerInst->company . "\n";
next($list);
}
?>
</select></td>
</tr>
<tr>
<td><?php
echo $lang['common_manager'];