本文整理汇总了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";
示例2: count
<div class="section shirts latest">
<div class="wrapper">
<h2>Mike’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';
示例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';
示例4: get_missionaries_northern_asia
function get_missionaries_northern_asia($missionary)
{
if ($missionary["region"] == "Northern Asia") {
echo get_list_view_html($missionary);
}
}
示例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>
示例6: count
"><a href="shirts.php"><h2>Hey, I’m Kim!</h2>
<p>Check Out My Shirts</p>
</a>
</div>
</div>
</div>
<div class="section shirts latest">
<div class="wrapper">
<h2>Kim’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';
示例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;
}
示例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>
示例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">«</a> <a href="?page=' . ($page - 1) . '" title="Previous page">‹</a>' : '<span class="disabled">«</span> <span class="disabled">‹</span>';
// The "forward" link
$nextlink = $page < $pages ? '<a href="?page=' . ($page + 1) . '" title="Next page">›</a> <a href="?page=' . $pages . '" title="Last page">»</a>' : '<span class="disabled">›</span> <span class="disabled">»</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">«</a> <a href="?page=' . ($page - 1) . '" title="Previous page">‹</a>' : '<span class="disabled">«</span> <span class="disabled">‹</span>';
// The "forward" link
$nextlink = $page < $pages ? '<a href="?page=' . ($page + 1) . '" title="Next page">›</a> <a href="?page=' . $pages . '" title="Last page">»</a>' : '<span class="disabled">›</span> <span class="disabled">»</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>
示例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
}
示例11: foreach
</a>
</div>
</div>
</div>
<div class="section shirts latest">
<div class="wrapper">
<h2>Mike’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';