本文整理汇总了PHP中Propal::liste_array方法的典型用法代码示例。如果您正苦于以下问题:PHP Propal::liste_array方法的具体用法?PHP Propal::liste_array怎么用?PHP Propal::liste_array使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Propal
的用法示例。
在下文中一共展示了Propal::liste_array方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Propal
}
}
print "\n</div>\n";
/*
* All the "Add to" areas
*/
if ($object->id && ($action == '' || $action == 'view') && $object->status) {
//Variable used to check if any text is going to be printed
$html = '';
//print '<div class="fichecenter"><div class="fichehalfleft">';
// Propals
if (!empty($conf->propal->enabled) && $user->rights->propale->creer) {
$propal = new Propal($db);
$langs->load("propal");
$var = true;
$otherprop = $propal->liste_array(2, 1, 0);
if (is_array($otherprop) && count($otherprop)) {
$var = !$var;
$html .= '<tr><td style="width: 200px;">';
$html .= $langs->trans("AddToDraftProposals") . '</td><td colspan="2">';
$html .= $form->selectarray("propalid", $otherprop, 0, 1);
$html .= '</td></tr>';
} else {
$html .= '<tr><td style="width: 200px;">';
$html .= $langs->trans("AddToDraftProposals") . '</td><td colspan="2">';
$html .= $langs->trans("NoDraftProposals");
$html .= '</td></tr>';
}
}
// Commande
if (!empty($conf->commande->enabled) && $user->rights->commande->creer) {
示例2: Propal
$tableaushown = 1;
// Lien recap
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td colspan="4"><table width="100%" class="nobordernopadding"><tr><td>' . $langs->trans("Summary") . '</td>';
print '<td align="right"><a href="' . DOL_URL_ROOT . '/compta/recap-compta.php?socid=' . $objsoc->id . '">' . $langs->trans("ShowCustomerPreview") . '</a></td></tr></table></td>';
print '</tr>';
print '</table>';
print '<br>';
$now = dol_now();
/*
* Last proposals
*/
if ($conf->propal->enabled && $user->rights->propale->lire) {
$propal_static = new Propal($db);
$proposals = $propal_static->liste_array(0, 0, 0, $objsoc->id, $MAXLIST);
//var_dump($proposals);
print '<table class="noborder" width="100%">';
$sql = "SELECT s.nom, s.rowid, p.rowid as propalid, p.fk_statut, p.total_ht, p.ref, p.remise, ";
$sql .= " p.datep as dp, p.fin_validite as datelimite";
$sql .= " FROM " . MAIN_DB_PREFIX . "societe as s, " . MAIN_DB_PREFIX . "propal as p, " . MAIN_DB_PREFIX . "c_propalst as c";
$sql .= " WHERE p.fk_soc = s.rowid AND p.fk_statut = c.id";
$sql .= " AND s.rowid = " . $objsoc->id;
$sql .= " ORDER BY p.datep DESC";
$resql = $db->query($sql);
if ($resql) {
$var = true;
$num = $db->num_rows($resql);
if ($num > 0) {
print '<tr class="liste_titre">';
print '<td colspan="4"><table width="100%" class="nobordernopadding"><tr><td>' . $langs->trans("LastPropals", $num <= $MAXLIST ? "" : $MAXLIST) . '</td><td align="right"><a href="' . DOL_URL_ROOT . '/comm/propal.php?socid=' . $objsoc->id . '">' . $langs->trans("AllPropals") . ' (' . $num . ')</a></td>';
示例3:
print $langs->trans("NoOpenedPropals");
print "</td></tr>";
}
print "</table>";
$db->free($result);
}
print '</td>';
if ($user->rights->societe->client->voir)
{
// Liste de "Other propals"
print '<td width="50%" valign="top">';
$var=true;
$otherprop = $propal->liste_array(1,1,1);
print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'?id='.$product->id.'">';
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
print '<table class="nobordernopadding" width="100%">';
if (is_array($otherprop) && sizeof($otherprop))
{
$var=!$var;
print '<tr '.$bc[$var].'><td colspan="3">';
print '<input type="hidden" name="action" value="addinpropal">';
print $langs->trans("OtherPropals").'</td><td>';
print $html->selectarray("propalid", $otherprop);
print '</td></tr>';
print '<tr '.$bc[$var].'><td nowrap="nowrap" colspan="2">'.$langs->trans("Qty");
print '<input type="text" class="flat" name="qty" size="1" value="1"></td><td nowrap>'.$langs->trans("ReductionShort");
print '<input type="text" class="flat" name="remise_percent" size="1" value="0">%';
print '</td><td align="right">';