Example #1
0
			<form action='' method='get'> 
					<input value='Search' name='act' id='crt-submit' class="skinnytip" type='submit' data-text="<div class='miniinfo'>Search in our database</div>">
					<input placeholder='Search Criteria' name='crit' class='arm-criteria' type='text' value='<?php 
if (isset($_GET['crit'])) {
    echo $_GET['crit'];
} else {
    echo '';
}
?>
'>
			</form>
			<?php 
if (isset($_GET['crit'])) {
    $criteria = $_GET['crit'];
    $totals = new get_totals();
    $totals->construct($criteria);
    ?>
				<span class='box-divider'></span>
				<div class='res-disp'>
					<a href='armory?page=1&type=items&crit=<?php 
    echo $criteria;
    ?>
'>Items found ( <?php 
    echo $totals->total_items;
    ?>
 )</a>
					<span class='box-divider'></span>
					<a href='armory?page=1&type=items&crit=<?php 
    echo $criteria;
    ?>
'><img class='resimg' src='images/armitems.jpg' /></a>
Example #2
0
if (isset($crit_src)) {
    echo $crit_src;
} else {
    echo '';
}
?>
' required>
		<input class="crt-submit" type="submit" value="Search">
		</div>
	</form>
	</div>
		<?php 
if (isset($armory_search_type)) {
    switch ($armory_search_type) {
        case 'Items':
            $totals->construct($crit_src);
            if ($totals->total_items == 0) {
                echo "<span class='arm-title'><div class='armerror'>No results matches your criteria</div></span>";
            } else {
                ?>
							<span class='arm-title'>Found <?php 
                echo $totals->total_items;
                ?>
 results matching your criteria  - Showing <?php 
                if ($totals->total_items < $limit) {
                    echo $totals->total_items;
                } else {
                    echo $limit;
                }
                ?>
 Items / Page</span>