本文整理汇总了PHP中Contrat::getNomUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP Contrat::getNomUrl方法的具体用法?PHP Contrat::getNomUrl怎么用?PHP Contrat::getNomUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Contrat
的用法示例。
在下文中一共展示了Contrat::getNomUrl方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: strstr
print $form->selectarray('search_status', $arrayofstatus, strstr($search_status, ',') ? -1 : $search_status, 1);
print '</td>';
print '<td class="liste_titre" align="right"><input type="image" class="liste_titre" name="button_search" src="' . img_picto($langs->trans("Search"), 'search.png', '', '', 1) . '" value="' . dol_escape_htmltag($langs->trans("Search")) . '" title="' . dol_escape_htmltag($langs->trans("Search")) . '">';
print '<input type="image" class="liste_titre" name="button_removefilter" src="' . img_picto($langs->trans("Search"), 'searchclear.png', '', '', 1) . '" value="' . dol_escape_htmltag($langs->trans("RemoveFilter")) . '" title="' . dol_escape_htmltag($langs->trans("RemoveFilter")) . '">';
print "</td></tr>\n";
$contractstatic = new Contrat($db);
$productstatic = new Product($db);
$var = True;
while ($i < min($num, $limit)) {
$obj = $db->fetch_object($resql);
$var = !$var;
print "<tr " . $bc[$var] . ">";
print '<td>';
$contractstatic->id = $obj->cid;
$contractstatic->ref = $obj->ref ? $obj->ref : $obj->cid;
print $contractstatic->getNomUrl(1, 16);
print '</td>';
// Service
print '<td>';
if ($obj->pid) {
$productstatic->id = $obj->pid;
$productstatic->type = $obj->ptype;
$productstatic->ref = $obj->pref;
$productstatic->entity = $obj->pentity;
print $productstatic->getNomUrl(1, '', 20);
print $obj->label ? ' - ' . dol_trunc($obj->label, 16) : '';
if (!empty($obj->description) && !empty($conf->global->PRODUCT_DESC_IN_LIST)) {
print '<br>' . dol_nl2br($obj->description);
}
} else {
if ($obj->type == 0) {
示例2: while
if ($num > 0) {
print '<tr class="liste_titre">';
print '<td colspan="4"><table width="100%" class="nobordernopadding"><tr><td>' . $langs->trans("LastContracts", $num <= $MAXLIST ? "" : $MAXLIST) . '</td>';
print '<td align="right"><a href="' . DOL_URL_ROOT . '/contrat/liste.php?socid=' . $objsoc->id . '">' . $langs->trans("AllContracts") . ' (' . $num . ')</a></td></tr></table></td>';
print '</tr>';
}
$i = 0;
while ($i < $num && $i < $MAXLIST) {
$contrat = new Contrat($db);
$objp = $db->fetch_object($resql);
$var = !$var;
print "<tr {$bc[$var]}>";
print '<td nowrap="nowrap">';
$contrat->id = $objp->id;
$contrat->ref = $objp->ref ? $objp->ref : $objp->id;
print $contrat->getNomUrl(1, 12);
print "</td>\n";
print '<td align="right" width="80">' . dol_print_date($db->jdate($objp->dc), 'day') . "</td>\n";
print '<td width="20"> </td>';
print '<td align="right" nowrap="nowrap">';
$contrat->fetch_lines();
print $contrat->getLibStatut(4);
print "</td>\n";
print '</tr>';
$i++;
}
$db->free($resql);
} else {
dol_print_error($db);
}
print "</table>";
示例3: Formcontract
print '</td><td colspan="3">';
if ($action == 'contrat') {
print '<table class="nobordernopadding" cellpadding="0" cellspacing="0">';
print '<tr><td>';
$htmlcontract = new Formcontract($db);
//print "$socid,$selected,$htmlname";
$htmlcontract->select_contract($object->socid, $object->fk_contrat, 'contratid');
print '</td>';
print '<td align="left"><input type="submit" class="button" value="' . $langs->trans("Modify") . '"></td>';
print '</tr></table>';
} else {
if ($object->fk_contrat) {
$contratstatic = new Contrat($db);
$contratstatic->fetch($object->fk_contrat);
//print '<a href="'.DOL_URL_ROOT.'/projet/card.php?id='.$selected.'">'.$projet->title.'</a>';
print $contratstatic->getNomUrl(0, '', 1);
} else {
print " ";
}
}
print '</td>';
print '</tr>';
}
// Statut
print '<tr><td>' . $langs->trans("Status") . '</td><td colspan="3">' . $object->getLibStatut(4) . '</td></tr>';
// Other attributes
$cols = 3;
include DOL_DOCUMENT_ROOT . '/core/tpl/extrafields_view.tpl.php';
print "</table>";
print '</form>';
if (!empty($conf->global->MAIN_DISABLE_CONTACTS_TAB)) {
示例4: Societe
if ($resql) {
$var = false;
$num = $db->num_rows($resql);
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td colspan="3">' . $langs->trans("DraftContracts") . ($num ? ' (' . $num . ')' : '') . '</td></tr>';
if ($num) {
$companystatic = new Societe($db);
$i = 0;
//$tot_ttc = 0;
while ($i < $num && $i < 20) {
$obj = $db->fetch_object($resql);
print '<tr ' . $bc[$var] . '><td nowrap>';
$staticcontrat->ref = $obj->ref;
$staticcontrat->id = $obj->rowid;
print $staticcontrat->getNomUrl(1, '');
print '</td>';
print '<td>';
$companystatic->id = $obj->socid;
$companystatic->nom = $obj->nom;
$companystatic->client = 1;
print $companystatic->getNomUrl(1, '', 16);
print '</td>';
print '</tr>';
//$tot_ttc+=$obj->total_ttc;
$i++;
$var = !$var;
}
} else {
print '<tr colspan="3" ' . $bc[$var] . '><td>' . $langs->trans("NoContracts") . '</td></tr>';
}
示例5: while
while (($objp = $db->fetch_object($resql)) && $i < $conf->liste_limit) {
$documentstatic->id = $objp->doc_id;
$documentstatic->ref = $objp->doc_number;
$documentstatic->type = $objp->doc_type;
$documentstatic->fk_statut = $objp->status;
$documentstatic->fk_status = $objp->status;
$documentstatic->statut = $objp->status;
$documentstatic->status = $objp->status;
$documentstatic->paye = $objp->paid;
if (is_object($documentstaticline)) {
$documentstaticline->statut = $objp->status;
}
$var = !$var;
print "<tr " . $bc[$var] . ">";
print '<td class="nobordernopadding nowrap" width="100">';
print $documentstatic->getNomUrl(1);
print '</td>';
print '<td align="center" width="80">' . dol_print_date($db->jdate($objp->dateprint), 'day') . '</td>';
// Status
print '<td align="center">';
if ($type_element == 'contract') {
print $documentstaticline->getLibStatut(2);
} else {
print $documentstatic->getLibStatut(2);
}
print '</td>';
print '<td>';
// Define text, description and type
$text = '';
$description = '';
$type = 0;