本文整理汇总了PHP中Categorie::getNomUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP Categorie::getNomUrl方法的具体用法?PHP Categorie::getNomUrl怎么用?PHP Categorie::getNomUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Categorie
的用法示例。
在下文中一共展示了Categorie::getNomUrl方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Categorie
$categstatic = new Categorie($db);
if (count($companystatic->SupplierCategories)) {
print '<br>';
print '<table class="liste" width="100%">';
print '<tr class="liste_titre"><td colspan="2">';
print $langs->trans("Category");
print "</td></tr>\n";
$var = True;
foreach ($companystatic->SupplierCategories as $rowid => $label) {
$var = !$var;
print "<tr " . $bc[$var] . ">\n";
print '<td>';
$categstatic->id = $rowid;
$categstatic->ref = $label;
$categstatic->label = $label;
print $categstatic->getNomUrl(1);
print '</td>' . "\n";
// TODO this page not exist
/*
print '<td align="right">';
print '<a href="stats.php?cat='.$rowid.'">('.$langs->trans("Stats").')</a>';
print "</tr>\n";
*/
}
print "</table>\n";
print "<br>\n";
}
//print "</td></tr></table>\n";
print '</div></div></div>';
llxFooter();
$db->close();
示例2: foreach
* Categories found
*/
if ($catname || $id > 0) {
$cats = $categstatic->rechercher($id, $catname, $type);
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre"><td colspan="2">' . $langs->trans("FoundCats") . '</td></tr>';
$var = true;
foreach ($cats as $cat) {
$var = !$var;
print "\t<tr " . $bc[$var] . ">\n";
print "\t\t<td>";
$categstatic->id = $cat->id;
$categstatic->ref = $cat->label;
$categstatic->label = $cat->label;
$categstatic->type = $cat->type;
print $categstatic->getNomUrl(1, '');
print "</td>\n";
print "\t\t<td>" . $cat->description . "</td>\n";
print "\t</tr>\n";
}
print "</table>";
} else {
print ' ';
}
//print '</td></tr></table>';
print '</div></div></div>';
print '<div class="fichecenter"><br>';
// Charge tableau des categories
$cate_arbo = $categstatic->get_full_arbo($type);
// Define fulltree array
$fulltree = $cate_arbo;
示例3:
$cats = $categstatic->rechercher($_REQUEST['id'],$_POST['catname'],$_POST['type']);
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("FoundCats").'</td></tr>';
$var=true;
foreach ($cats as $cat)
{
$var = ! $var;
print "\t<tr ".$bc[$var].">\n";
print "\t\t<td>";
$categstatic->id=$cat->id;
$categstatic->ref=$cat->label;
$categstatic->label=$cat->label;
$categstatic->type=$cat->type;
print $categstatic->getNomUrl(1,'');
print "</td>\n";
print "\t\t<td>".$cat->description."</td>\n";
print "\t</tr>\n";
}
print "</table>";
}
print '</td></tr></table>';
print '<br>';
// Charge tableau des categories
$cate_arbo = $categstatic->get_full_arbo($type);