diff options
Diffstat (limited to 'h-source/Application/Views/Mobile')
-rw-r--r-- | h-source/Application/Views/Mobile/catalogue.php | 19 | ||||
-rw-r--r-- | h-source/Application/Views/Mobile/footer.php | 1 |
2 files changed, 15 insertions, 5 deletions
diff --git a/h-source/Application/Views/Mobile/catalogue.php b/h-source/Application/Views/Mobile/catalogue.php index 8d00d08..441de54 100644 --- a/h-source/Application/Views/Mobile/catalogue.php +++ b/h-source/Application/Views/Mobile/catalogue.php @@ -20,6 +20,19 @@ // along with h-source. If not, see <http://www.gnu.org/licenses/>. ?> + <div class="back_button"> + <a rel="external" href="<?php echo $this->baseUrl."/hardware/catalogue/$lang/"?>" data-inline="true" data-icon="arrow-l" data-iconpos="left" data-theme="b" data-role="button"><?php echo gtext('back');?></a> + </div> + + <div class="ui-body ui-body-c"> + <form action="<?php echo $this->currPage."/$lang".$clearViewStatus;?>" method="GET"> + + <input type="search" name="search_string" id="basic" data-mini="true" value="<?php echo $search_string_form_value;?>"/> + + <button type="submit" data-theme="d"><?php echo gtext('Search');?></button> + </form> + </div> + <!--if no device is found--> <?php if (strcmp($recordNumber,0) === 0) { ?> <div class="viewall_no_items_found"> @@ -27,13 +40,11 @@ </div> <?php } ?> - <div class="back_button"> - <a rel="external" href="<?php echo $this->baseUrl."/hardware/catalogue/$lang/"?>" data-inline="true" data-icon="arrow-l" data-iconpos="left" data-theme="b" data-role="button"><?php echo gtext('back');?></a> - </div> - <!--loop--> <ul class="devices_list" data-dividertheme="b" data-role="listview"> + <?php if (count($table) > 0) { ?> <li data-role="list-divider"><h5><?php echo gtext("List of");?> <b><?php echo plural($this->controller);?></b></h5></li> + <?php } ?> <?php foreach ($table as $item) {?> <li><a href="<?php echo $this->baseUrl."/".$this->controller."/view/$lang/".$item['hardware']['id_hard'].'/'.encodeUrl($item['hardware']['model']).$this->viewStatus;?>"> <img src="<?php echo Hardware::getIconFromType($item['hardware']['type']);?>" alt="France" class="ui-li-icon" /> diff --git a/h-source/Application/Views/Mobile/footer.php b/h-source/Application/Views/Mobile/footer.php index 489f53a..383bac1 100644 --- a/h-source/Application/Views/Mobile/footer.php +++ b/h-source/Application/Views/Mobile/footer.php @@ -49,7 +49,6 @@ <?php echo $language_links;?> </div><!-- /content --> - <div data-role="footer"> <p><?php echo gtext('list of languages');?></p> </div><!-- /footer --> |