Ejemplo n.º 1
0
    } else {
        $dataList = $poiController->filterBySubCategory($filterCatId, $offset, $rowsPerPage);
    }
}
if ($dataList) {
    ?>
	<!-- Main content -->
	<section class="content">
	  <div class="row">
		<div class="col-xs-12">
            <div class="box-header">
                <?php 
    if ($searchKey != "") {
        $numRows = $poiController->countSearchRows($searchKey);
    } else {
        $numRows = $poiController->countRows($filterCatId);
    }
    ?>
                <div class="col-sm-1"><h3 class="box-title">All</h3><i> (<?php 
    echo $numRows;
    ?>
)</i></div>
                <?php 
    if ($searchKey == "") {
        ?>
                <form method="get" action="">
                    <div class="col-sm-2">
                        <select name="category" class="form-control">
                            <option value="0" <?php 
        if ($filterCatId == 0) {
            echo "selected";
Ejemplo n.º 2
0
        echo $value->getSubCategory();
        ?>
</td>
                    <td><?php 
        echo $value->getParentCategory()->getCategory();
        ?>
</td>
                    <td><a href="<?php 
        echo Route::getAdminDirectory();
        ?>
locations/?category=<?php 
        echo $value->getId();
        ?>
">
                            <?php 
        echo $poiController->countRows($value->getId());
        ?>
                        </a>
                    </td>
                  <td>
                    <div class="action-icon">
                        <span><a href="<?php 
        echo Route::getAdminDirectory();
        ?>
categories/edit.php?type=c&post=<?php 
        echo $value->getId();
        ?>
"><i class="fa fa-eye" title="View"></i></a></span>
                        <span><a href="#"><i class="fa fa-trash" title="Delete"></i></a></span>
                      </div>
                  </td>