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


PHP categories::categories方法代码示例

本文整理汇总了PHP中categories::categories方法的典型用法代码示例。如果您正苦于以下问题:PHP categories::categories方法的具体用法?PHP categories::categories怎么用?PHP categories::categories使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在categories的用法示例。


在下文中一共展示了categories::categories方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: categories

<?php

include 'categories.php';
$categs = new categories();
$array = $categs->categories(NULL);
echo "<table>";
echo "<tr>";
echo "<td>" . "ID" . "</td>";
echo "<td>" . "Name" . "</td>";
echo "</tr>";
foreach ($array as $key => $categories) {
    echo "<tr>";
    echo "<td>" . $categories['id'] . "</td>";
    echo "<td>" . $categories['name'] . "</td>";
    echo "</tr>";
}
echo "</table>";
开发者ID:shroukelsayed,项目名称:php,代码行数:17,代码来源:SelectAllCategories.php

示例2: categories

				<li class="color10"><a class="color3" href="home.php">Sale</a></li>
				<li class="color10"><a class="color3" href="contact.php">Contact Us</a></li>
				<div class="clearfix"> </div>
			</ul>
			</div>
	        <div class="clearfix"> </div>
	    </div>
	  </div>
   </div>
   <div class="men">
    <div class="container">
    	<div class="col-md-4 sidebar_men">
    	  <h3>Categories</h3>
    	  <?php 
$categs = new categories();
$array = $categs->categories(NULL);
foreach ($array as $key => $categories) {
    @($subs = $categs->categories($categories['id']));
    ?>
            <ul class="product-categories color">
    	  <h3><?php 
    echo $categories['name'];
    ?>
</h3>
    	   
			<?php 
    foreach ($subs as $key => $subs) {
        ?>
			<li class="cat-item cat-item-60"><a href="men.php?cat_id=<?php 
        echo $subs['id'];
        ?>
开发者ID:shroukelsayed,项目名称:php,代码行数:31,代码来源:men.php

示例3: categories

                <div class="row">
                    <div class="col-md-12 col-sm-12 col-xs-12">
                            <div class="btn-group btn-group-lg ">                       
                                <a href="insertCategory.php"><input type="button" class="btn btn-primary " value="Insert Categories"></a>
                                <a href="insertSubCategory.php"><input type="button" class="btn btn-primary " value="Insert SubCategories"></a>
                                <a href="productNames.php"><input type="button" class="btn btn-primary " value="Insert Products"></a>
                                
                            </div>
                        <div class="panel panel-primary text-center no-boder bg-color-blue input-md">
                            <form action="productNames.php" id="main" method="post" role="form" class=" form-inline">
                            <div class="form-group">
                                    <label for="categories">ChooseCategory:</label>
                                    <select name="categories" class="form-control">
                                    <?php 
$categs = new categories();
$array = @$categs->categories(NULL);
foreach ($array as $key => $categories) {
    ?>
    
                                        <option value=<?php 
    echo $categories['id'];
    ?>
><?php 
    echo $categories['name'];
    ?>
</option>
                                        <?php 
}
?>
                                    </select>
                                    
开发者ID:shroukelsayed,项目名称:php,代码行数:30,代码来源:productNames.php


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