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


PHP get_list_view_html函数代码示例

本文整理汇总了PHP中get_list_view_html函数的典型用法代码示例。如果您正苦于以下问题:PHP get_list_view_html函数的具体用法?PHP get_list_view_html怎么用?PHP get_list_view_html使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: htmlspecialchars

	
		<div class="wrapper">
	
			<h1>Search</h1>

		<form method="GET" action="./">
			<input type="text" name="s" placeholder="search" value="<?php 
echo htmlspecialchars("{$search_term}");
?>
">
			<input type="submit" value="Go">
		</form>

		<?php 
if ($search_term != "") {
    if (!empty($products)) {
        echo '<ul class="products">';
        foreach ($products as $product) {
            echo get_list_view_html($product);
        }
        echo '</ul>';
    } else {
        echo '<p>No products were found matching tha search term.</p>';
    }
}
?>
		</div>
	</div>

<?php 
include ROOT_PATH . "inc/footer.php";
开发者ID:qdechery,项目名称:eCommerce-Store,代码行数:30,代码来源:index.php

示例2: count

		<div class="section shirts latest">

			<div class="wrapper">

				<h2>Mike&rsquo;s Latest Shirts</h2>

				<?php 
include "inc/products.php";
?>
				<ul class="products">
					<?php 
$total_products = count($products);
$position = 0;
$list_view_html = "";
foreach ($products as $product_id => $product) {
    $position = $position + 1;
    if ($total_products - $position < 4) {
        $list_view_html = get_list_view_html($product_id, $product) . $list_view_html;
    }
}
echo $list_view_html;
?>
								
				</ul>

			</div>

		</div>

<?php 
include 'inc/footer.php';
开发者ID:ddagone,项目名称:Shirt_4_Mike_PHP,代码行数:31,代码来源:index.php

示例3: Technologies

				</div>
					<p><a class="featured-tech-pdf" href="http://techtransfer.byu.edu/Promising-Technologies.pdf" target="_blank" style="padding-top: 0px;"><i class="fa fa-angle-double-right"></i> Promising Technologies (pdf)</a></p>
				
			</div>
		</div>
	</div>

	<div class="section shirts latest">
		<div class="wrapper">
			<h2 class="home-title"></h2>
			
		</div>
		<div class="feature-wrapper">
			<a href="technologies.php"><button id="ip-contact" style="margin-top: 0em; margin-bottom: 1em;">SEARCH ALL TECHNOLOGIES</button></a>

			<?php 
include "inc/featured-technologies-home.php";
?>
			<ul class="products featured-container">
				<?php 
foreach ($technologies as $technology_id => $technology) {
    echo get_list_view_html($technology_id, $technology);
}
?>
			</ul>
			
		</div>
	</div>

<?php 
include 'inc/footer.php';
开发者ID:kollynlund,项目名称:byupatents,代码行数:31,代码来源:index.php

示例4: get_missionaries_northern_asia

function get_missionaries_northern_asia($missionary)
{
    if ($missionary["region"] == "Northern Asia") {
        echo get_list_view_html($missionary);
    }
}
开发者ID:Renddslow,项目名称:Flatworld-Missions,代码行数:6,代码来源:missionaries.php

示例5: foreach

    <?php 
    foreach ($missionaries as $missionary) {
        echo get_missionaries_northern_asia($missionary);
    }
    ?>
  </ul>

<?php 
} else {
    ?>

<!-- Section -->
    
  <section>
    <ul id="gallery">
     <?php 
    foreach ($missionaries as $missionary) {
        echo get_list_view_html($missionary);
    }
    ?>
    </ul>
    <?php 
}
?>
  </section>
  <footer>
  </footer>
  </body>
</html>

开发者ID:Renddslow,项目名称:Flatworld-Missions,代码行数:29,代码来源:index.php

示例6: count

"><a href="shirts.php"><h2>Hey, I&rsquo;m Kim!</h2>
						<p>Check Out My Shirts</p>
					</a>
				</div>
			</div>
		</div>
		<div class="section shirts latest">
			<div class="wrapper">
				<h2>Kim&rsquo;s Latest Products</h2>
				<?php 
include "inc/products.php";
?>
				<ul class="products">
					<?php 
$totalProducts = count($products);
$position = 0;
$list_view_html = "";
foreach ($products as $productID => $product) {
    $position = $position + 1;
    if ($totalProducts - $position < 4) {
        $list_view_html = get_list_view_html($productID, $product) . $list_view_html;
    }
}
echo $list_view_html;
?>
								
				</ul>
			</div>
		</div>
<?php 
include 'inc/footer.php';
开发者ID:kkbroughton,项目名称:PHP,代码行数:31,代码来源:index.php

示例7: get_products_recent

function get_products_recent()
{
    $all = get_products_all();
    $total_products = count($all);
    $position = 0;
    $list_view_html = "";
    foreach ($all as $product) {
        $position = $position + 1;
        if ($total_products - $position < 4) {
            $list_view_html = get_list_view_html($product) . $list_view_html;
        }
    }
    return $list_view_html;
}
开发者ID:klange612,项目名称:shirts4mike2,代码行数:14,代码来源:products.php

示例8: foreach

<head>
	<title>Home Page</title>
	<?php 
require_once ROOT_PATH . "/inc/meta.script.css.php";
?>

</head>
<body>
	<?php 
include_once ROOT_PATH . "/inc/css.menu.php";
?>

	

	<?php 
if ($search_term != "") {
    if (!empty($frames)) {
        echo '<table>';
        foreach ($frames as $frame) {
            echo get_list_view_html($frame);
        }
        echo '</table>';
    } else {
        echo '<p>There are no results for this search</p>';
    }
}
?>
-->

</body>
</html>
开发者ID:arnoldllanes,项目名称:SeekData,代码行数:31,代码来源:index.php

示例9: min

    $offset = ($page - 1) * $limit;
    // Some information to display to the user
    $start = $offset + 1;
    $end = min($offset + $limit, $total);
    // Prepare the paged query
    // The "back" link
    $prevlink = $page > 1 ? '<a href="?page=1" title="First page">&laquo;</a> <a href="?page=' . ($page - 1) . '" title="Previous page">&lsaquo;</a>' : '<span class="disabled">&laquo;</span> <span class="disabled">&lsaquo;</span>';
    // The "forward" link
    $nextlink = $page < $pages ? '<a href="?page=' . ($page + 1) . '" title="Next page">&rsaquo;</a> <a href="?page=' . $pages . '" title="Last page">&raquo;</a>' : '<span class="disabled">&rsaquo;</span> <span class="disabled">&raquo;</span>';
    // Display the paging information
    echo '<div id="paging"><p>', $prevlink, ' Page ', $page, ' of ', $pages, ' pages, displaying ', $start, '-', $end, ' of ', $total, ' results ', $nextlink, ' </p></div>';
    // Display the results
    $alldata = get_products_all();
    for ($i = $start; $i <= $end; $i++) {
        $key = 100 + $i;
        echo get_list_view_html($key, $alldata[$key]);
    }
    // The "back" link
    $prevlink = $page > 1 ? '<a href="?page=1" title="First page">&laquo;</a> <a href="?page=' . ($page - 1) . '" title="Previous page">&lsaquo;</a>' : '<span class="disabled">&laquo;</span> <span class="disabled">&lsaquo;</span>';
    // The "forward" link
    $nextlink = $page < $pages ? '<a href="?page=' . ($page + 1) . '" title="Next page">&rsaquo;</a> <a href="?page=' . $pages . '" title="Last page">&raquo;</a>' : '<span class="disabled">&rsaquo;</span> <span class="disabled">&raquo;</span>';
    // Display the paging information
    echo '<div id="paging"><p>', $prevlink, ' Page ', $page, ' of ', $pages, ' pages, displaying ', $start, '-', $end, ' of ', $total, ' results ', $nextlink, ' </p></div>';
    ?>
			<?php 
}
?>


			</div>
开发者ID:kollynlund,项目名称:byupatents,代码行数:30,代码来源:technologies.php

示例10: htmlspecialchars

    <h1>Search</h1>
    <form method="get" action="search.php">
      <input type="text" name="s" value="<?php 
echo htmlspecialchars($search_term);
?>
">
      <input type="submit" value="Go">
    </form>
    <?php 
if ($search_term != "") {
    if (!empty($products)) {
        $list_view_html = "";
        ?>
                <?php 
        foreach ($products as $product) {
            $list_view_html = get_list_view_html($product["id"], $product) . $list_view_html;
            ?>
            <?php 
        }
        ?>
            <ul class="products">
              <?php 
        echo $list_view_html;
        ?>
            </ul>
            <?php 
    } else {
        ?>
              <p> No matching products were found.</p>
            <?php 
    }
开发者ID:hnv1002,项目名称:RIT-T-Shirt,代码行数:31,代码来源:search.php

示例11: foreach

					</a>
				</div>
			</div>

		</div>

		<div class="section shirts latest">

			<div class="wrapper">

				<h2>Mike&rsquo;s Latest Shirts</h2>


				<ul class="products">
					<?php 
$list_view_html = "";
foreach ($recent as $product) {
    $list_view_html = $list_view_html . get_list_view_html($product);
}
echo $list_view_html;
?>
				</ul>

			</div>

		</div>

	</div>

	<?php 
include ROOT_PATH . 'inc/footer.php';
开发者ID:qdechery,项目名称:eCommerce-Store,代码行数:31,代码来源:index.php


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