aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Views/right.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2010-10-17 13:29:57 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2010-10-17 13:29:57 +0000
commit232aa1924c8c0f10d87b210b46c9f061af5c844c (patch)
tree2351f2aaff7ad244f60358954e4711692fb8aadc /h-source/Application/Views/right.php
parenta17e3e0495bee3705d3c1e5ead2db1a8359e64e9 (diff)
added files
Diffstat (limited to 'h-source/Application/Views/right.php')
-rw-r--r--h-source/Application/Views/right.php118
1 files changed, 118 insertions, 0 deletions
diff --git a/h-source/Application/Views/right.php b/h-source/Application/Views/right.php
new file mode 100644
index 0000000..9d778b2
--- /dev/null
+++ b/h-source/Application/Views/right.php
@@ -0,0 +1,118 @@
+<?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 program 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.
+//
+// This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+?>
+
+ <div id="right">
+
+ <?php if (strcmp($this->action,'update') !== 0) { ?>
+ <div class="language_links_box">
+ <?php echo $language_links;?>
+ </div>
+ <?php } ?>
+
+ <div class="login_table_box">
+
+ <?php if ($islogged === 'yes') { ?>
+ <div class="login_box_logged">
+ <div class="who_you_are_and_logout">
+ Hello <b><?php echo $username; ?></b> (<a href="<?php echo $this->baseUrl?>/users/logout">logout</a>)
+ </div>
+ <div class="your_panel_link">
+ your <a href="<?php echo $this->baseUrl."/my/home/$lang";?>">control panel</a>
+ </div>
+ </div>
+ <?php } else { ?>
+
+ <div class="who_you_are_and_logout">
+ Login form:
+ </div>
+ <!--login form-->
+ <form action="<?php echo $this->baseUrl."/users/login/$lang";?>" method="POST">
+
+ <div class="login_right_box">
+ <div class="login_right_item">
+ <div class="login_right_label">
+ username
+ </div>
+ <div class="login_right_form">
+ <input class="login_input" type="text" name="username" value="">
+ </div>
+ </div>
+ <div class="login_right_item">
+ <div class="login_right_label">
+ password
+ </div>
+ <div class="login_right_form">
+ <input class="login_input" type="password" name="password" value="">
+ </div>
+ </div>
+ <div>
+ <input type="submit" name="login" value="login">
+ </div>
+ </div>
+ </form>
+
+ <div class="manage_account_link_box">
+ <a href="<?php echo $this->baseUrl."/users/add/$lang";?>">Create new account</a>
+ </div>
+
+ <div class="manage_account_link_box">
+ <a href="<?php echo $this->baseUrl."/users/forgot/$lang";?>">Request new password</a>
+ </div>
+
+ <?php } ?>
+
+ </div>
+
+ <div class="discover_hardware">
+ <a href="<?php echo $this->baseUrl."/help/index/$lang#discover-hardware";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/discover.png"></a>
+ </div>
+
+ <div class="download_database">
+ <a href="<?php echo $this->baseUrl."/download/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/download.png"></a>
+ </div>
+
+ <div class="statistics_ext_box">
+ <div class="statistics_int_title">
+ website statistics:
+ </div>
+
+ <div class="statistics_hard_title">
+ hardware in the database:
+ </div>
+
+ <table width="100%">
+ <?php foreach ($stat as $type => $number) { ?>
+ <tr>
+ <td><?php echo $type;?></td>
+ <td><?php echo "<b>".$number."</b>";?></td>
+ </tr>
+ <?php } ?>
+ </table>
+
+ <div class="statistics_hard_title">
+ users logged: <span class="user_logged"><?php echo $numbLogged;?></span>
+ </div>
+ </div>
+
+ <div class="right_box_ext_box">
+ <?php echo $htmlRightBox;?>
+ </div>
+
+ </div> \ No newline at end of file