Exemple #1
0
	
		<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";
Exemple #2
0
		<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';
Exemple #3
0
				</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';
function get_missionaries_northern_asia($missionary)
{
    if ($missionary["region"] == "Northern Asia") {
        echo get_list_view_html($missionary);
    }
}
    <?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>

Exemple #6
0
"><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';
Exemple #7
0
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;
}
Exemple #8
0
<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>
    $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>
Exemple #10
0
    <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 
    }
Exemple #11
0
					</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';