aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Views
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Views')
-rw-r--r--h-source/Application/Views/Mobile/Hardware/left.php115
-rw-r--r--h-source/Application/Views/Mobile/Home/left_es.php2
-rw-r--r--h-source/Application/Views/Mobile/Home/left_fr.php2
-rw-r--r--h-source/Application/Views/Mobile/Home/left_it.php2
-rw-r--r--h-source/Application/Views/Mobile/header.php17
5 files changed, 130 insertions, 8 deletions
diff --git a/h-source/Application/Views/Mobile/Hardware/left.php b/h-source/Application/Views/Mobile/Hardware/left.php
new file mode 100644
index 0000000..cb12de1
--- /dev/null
+++ b/h-source/Application/Views/Mobile/Hardware/left.php
@@ -0,0 +1,115 @@
+<?php if (!defined('EG')) die('Direct access not allowed!'); ?>
+
+<?php
+// h-source, a web software to build a community of people that want to share their hardware information.
+// Copyright (C) 2010 Antonio Gallo (h-source-copyright.txt)
+//
+// This file is part of h-source
+//
+// h-source is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// h-source is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with h-source. If not, see <http://www.gnu.org/licenses/>.
+?>
+
+ <div data-role="content">
+
+ <div class="position_tree_box">
+ <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> &raquo; Hardware
+ </div>
+
+ <ul id="hardware_list" data-role="listview" data-theme="c" style="overflow:hidden;">
+ <li>
+ <a href="<?php echo $this->baseUrl?>/notebooks/catalogue/<?php echo $lang;?>">
+ <?php echo gtext("Notebooks, netbooks, tablet PC");?>
+ <img class="image_thumb_list" src="<?php echo $this->baseUrl;?>/Public/Img/H2O/computer-laptop.png" />
+ </a>
+ </li>
+ <li>
+ <a href="<?php echo $this->baseUrl?>/wifi/catalogue/<?php echo $lang;?>">
+ <?php echo gtext("Wifi cards");?>
+ <img class="image_thumb_list" src="<?php echo $this->baseUrl;?>/Public/Img/H2O/network-wireless.png" />
+ </a>
+ </li>
+ <li>
+ <a href="<?php echo $this->baseUrl?>/videocards/catalogue/<?php echo $lang;?>">
+ <?php echo gtext("Video cards");?>
+ <img class="image_thumb_list" src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/1282042718_hardware.png" />
+ </a>
+ </li>
+ <li>
+ <a href="<?php echo $this->baseUrl?>/printers/catalogue/<?php echo $lang;?>">
+ <?php echo gtext("Printers and multifunction");?>
+ <img class="image_thumb_list" src="<?php echo $this->baseUrl;?>/Public/Img/H2O/printer.png" />
+ </a>
+ </li>
+ <li>
+ <a href="<?php echo $this->baseUrl?>/scanners/catalogue/<?php echo $lang;?>">
+ <?php echo gtext("Scanners");?>
+ <img class="image_thumb_list" src="<?php echo $this->baseUrl;?>/Public/Img/H2O/scanner.png" />
+ </a>
+ </li>
+ <li>
+ <a href="<?php echo $this->baseUrl?>/threegcards/catalogue/<?php echo $lang;?>">
+ <?php echo gtext("3G cards");?>
+ <img class="image_thumb_list" src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/usb.png" />
+ </a>
+ </li>
+ <li>
+ <a href="<?php echo $this->baseUrl?>/soundcards/catalogue/<?php echo $lang;?>">
+ <?php echo gtext("Sound cards");?>
+ <img class="image_thumb_list" src="<?php echo $this->baseUrl;?>/Public/Img/H2O/audio-card.png"><a class="hardware_element_link" />
+ </a>
+ </li>
+ <li>
+ <a href="<?php echo $this->baseUrl?>/webcams/catalogue/<?php echo $lang;?>">
+ <?php echo gtext("Webcams");?>
+ <img class="image_thumb_list" src="<?php echo $this->baseUrl;?>/Public/Img/H2O/camera-web.png"><a class="hardware_element_link" />
+ </a>
+ </li>
+ <li>
+ <a href="<?php echo $this->baseUrl?>/bluetooth/catalogue/<?php echo $lang;?>">
+ <?php echo gtext("Bluetooth devices");?>
+ <img class="image_thumb_list" src="<?php echo $this->baseUrl;?>/Public/Img/H2O/preferences-system-bluetooth.png" />
+ </a>
+ </li>
+ <li>
+ <a href="<?php echo $this->baseUrl?>/acquisitioncards/catalogue/<?php echo $lang;?>">
+ <?php echo gtext("TV/Video/FM acquisition cards");?>
+ <img class="image_thumb_list" src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/cam_mount.png" />
+ </a>
+ </li>
+ <li>
+ <a href="<?php echo $this->baseUrl?>/fingerprintreaders/catalogue/<?php echo $lang;?>">
+ <?php echo gtext("Fingerprint readers");?>
+ <img class="image_thumb_list" src="<?php echo $this->baseUrl;?>/Public/Img/fingerprint_icon.png" />
+ </a>
+ </li>
+ <li>
+ <a href="<?php echo $this->baseUrl?>/ethernetcards/catalogue/<?php echo $lang;?>">
+ <?php echo gtext("Ethernet cards");?>
+ <img class="image_thumb_list" src="<?php echo $this->baseUrl;?>/Public/Img/H2O/network-wired.png" />
+ </a>
+ </li>
+ <li>
+ <a href="<?php echo $this->baseUrl?>/sdcardreaders/catalogue/<?php echo $lang;?>">
+ <?php echo gtext("SD card readers");?>
+ <img class="image_thumb_list" src="<?php echo $this->baseUrl;?>/Public/Img/H2O/media-flash-sd-mmc.png" />
+ </a>
+ </li>
+ <li>
+ <a href="<?php echo $this->baseUrl?>/modems/catalogue/<?php echo $lang;?>">
+ <?php echo gtext("Modems and ADSL cards");?>
+ <img class="image_thumb_list" src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/modem.png" />
+ </a>
+ </li>
+ </ul>
+ </div> \ No newline at end of file
diff --git a/h-source/Application/Views/Mobile/Home/left_es.php b/h-source/Application/Views/Mobile/Home/left_es.php
index 3350599..1c961e8 100644
--- a/h-source/Application/Views/Mobile/Home/left_es.php
+++ b/h-source/Application/Views/Mobile/Home/left_es.php
@@ -20,7 +20,7 @@
// along with h-source. If not, see <http://www.gnu.org/licenses/>.
?>
- <div id="left">
+ <div data-role="content">
<div class="position_tree_box">
Home
diff --git a/h-source/Application/Views/Mobile/Home/left_fr.php b/h-source/Application/Views/Mobile/Home/left_fr.php
index c69674d..7b53682 100644
--- a/h-source/Application/Views/Mobile/Home/left_fr.php
+++ b/h-source/Application/Views/Mobile/Home/left_fr.php
@@ -20,7 +20,7 @@
// along with h-source. If not, see <http://www.gnu.org/licenses/>.
?>
- <div id="left">
+ <div data-role="content">
<div class="position_tree_box">
Home
diff --git a/h-source/Application/Views/Mobile/Home/left_it.php b/h-source/Application/Views/Mobile/Home/left_it.php
index c69674d..7b53682 100644
--- a/h-source/Application/Views/Mobile/Home/left_it.php
+++ b/h-source/Application/Views/Mobile/Home/left_it.php
@@ -20,7 +20,7 @@
// along with h-source. If not, see <http://www.gnu.org/licenses/>.
?>
- <div id="left">
+ <div data-role="content">
<div class="position_tree_box">
Home
diff --git a/h-source/Application/Views/Mobile/header.php b/h-source/Application/Views/Mobile/header.php
index f79012e..aa6a9bb 100644
--- a/h-source/Application/Views/Mobile/header.php
+++ b/h-source/Application/Views/Mobile/header.php
@@ -35,10 +35,17 @@ $currPos = $querySanitized ? $this->controller."/".$this->action : 'home/index';
<meta name="keywords" content="hardware database free software GNU Linux distribution wiki users freedom" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
- <link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl;?>/Public/Js/jquery/jquery.mobile-1.0.css">
<script type="text/javascript" src="<?php echo $this->baseUrl;?>/Public/Js/jquery/jquery-1.7.1.min.js"></script>
- <script type="text/javascript" src="<?php echo $this->baseUrl;?>/Public/Js/jquery/jquery.mobile-1.0.min.js"></script>
+ <script type="text/javascript">
+ $(document).bind("mobileinit", function(){
+ $.mobile.ajaxEnabled = false;
+ });
+ </script>
+
+ <script type="text/javascript" src="<?php echo $this->baseUrl;?>/Public/Js/jquery/jquery.mobile-1.0.min.js"></script>
+ <link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl;?>/Public/Js/jquery/jquery.mobile-1.0.css">
+
<script type="text/javascript" src="<?php echo $this->baseUrl;?>/Public/Js/functions.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl?>/Public/Css/mobile.css">
@@ -62,7 +69,7 @@ $currPos = $querySanitized ? $this->controller."/".$this->action : 'home/index';
animateTabs(curr_lang);
});
-
+
</script>
</head>
@@ -75,8 +82,8 @@ $currPos = $querySanitized ? $this->controller."/".$this->action : 'home/index';
<div data-theme='b' data-role="navbar" data-iconpos="left">
<ul>
- <li><a href="#" class="ui-btn-active">Home</a></li>
- <li><a href="#">Hardware</a></li>
+ <li><a href="<?php echo $this->baseUrl."/home/index/$lang";?>" class="ui-btn-active">Home</a></li>
+ <li><a href="<?php echo $this->baseUrl."/hardware/catalogue/$lang";?>">Hardware</a></li>
<li><a data-icon="current-lang" data-rel="dialog" href="#language-dialog"><?php echo $langLabel;?></a></li>
</ul>
</div><!-- /navbar -->