diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2012-02-18 00:52:55 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2012-02-18 00:52:55 +0000 |
commit | d0d8cd258ff7f993950595dda0e5b970638621eb (patch) | |
tree | dc98a6d3f1fb2a2a1c40fe6aed569ee9b04e289f /h-source/Application/Views | |
parent | 14691cd854be3e9ee272c9619a6368c83d72267b (diff) |
mobile:added model nale filer
Diffstat (limited to 'h-source/Application/Views')
-rw-r--r-- | h-source/Application/Views/Desktop/catalogue.php | 4 | ||||
-rw-r--r-- | h-source/Application/Views/Mobile/catalogue.php | 19 | ||||
-rw-r--r-- | h-source/Application/Views/Mobile/footer.php | 1 |
3 files changed, 17 insertions, 7 deletions
diff --git a/h-source/Application/Views/Desktop/catalogue.php b/h-source/Application/Views/Desktop/catalogue.php index 1e15e4c..25a79ef 100644 --- a/h-source/Application/Views/Desktop/catalogue.php +++ b/h-source/Application/Views/Desktop/catalogue.php @@ -42,9 +42,9 @@ <?php } ?> <div class="model_string_search_form"> - <form action="<?php echo $this->currPage."/$lang".$this->viewStatus;?>"> + <form action="<?php echo $this->currPage."/$lang".$clearViewStatus;?>" method="GET"> <input type="text" value="<?php echo $search_string_form_value;?>" name="search_string"> - <a href="<?php echo $this->currPage."/$lang".$this->viewStatus;?>"><img src="<?php echo $this->baseUrl."/Public/Img/Crystal/button_cancel.png";?>" /></a> + <a href="<?php echo $this->currPage."/$lang".$clearViewStatus;?>"><img src="<?php echo $this->baseUrl."/Public/Img/Crystal/button_cancel.png";?>" /></a> <input type="submit" value="<?php echo gtext('Search');?>" name="submit"> </form> </div> 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 --> |