当前位置: 首页>>代码示例>>PHP>>正文


PHP Categorie::getNomUrl方法代码示例

本文整理汇总了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();
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:index.php

示例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 '&nbsp;';
}
//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;
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:index.php

示例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);
开发者ID:remyyounes,项目名称:dolibarr,代码行数:31,代码来源:index.php


注:本文中的Categorie::getNomUrl方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。