diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2010-10-17 13:29:57 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2010-10-17 13:29:57 +0000 |
commit | 232aa1924c8c0f10d87b210b46c9f061af5c844c (patch) | |
tree | 2351f2aaff7ad244f60358954e4711692fb8aadc /h-source/Application/Views | |
parent | a17e3e0495bee3705d3c1e5ead2db1a8359e64e9 (diff) |
added files
Diffstat (limited to 'h-source/Application/Views')
73 files changed, 5917 insertions, 0 deletions
diff --git a/h-source/Application/Views/Contact/index.php b/h-source/Application/Views/Contact/index.php new file mode 100644 index 0000000..bac30f4 --- /dev/null +++ b/h-source/Application/Views/Contact/index.php @@ -0,0 +1,29 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » contact + </div> + + <p>write in the file <b>Application/Views/Contact/index.php</b> your contact information</p> + + </div> diff --git a/h-source/Application/Views/Contact/index_es.php b/h-source/Application/Views/Contact/index_es.php new file mode 100644 index 0000000..acaf264 --- /dev/null +++ b/h-source/Application/Views/Contact/index_es.php @@ -0,0 +1,29 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » contact + </div> + + + + </div> diff --git a/h-source/Application/Views/Contact/index_it.php b/h-source/Application/Views/Contact/index_it.php new file mode 100644 index 0000000..acaf264 --- /dev/null +++ b/h-source/Application/Views/Contact/index_it.php @@ -0,0 +1,29 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » contact + </div> + + + + </div> diff --git a/h-source/Application/Views/Credits/index.php b/h-source/Application/Views/Credits/index.php new file mode 100644 index 0000000..fe327f3 --- /dev/null +++ b/h-source/Application/Views/Credits/index.php @@ -0,0 +1,63 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » credits + </div> + + <div class="credits_external_box"> + + <div class="credits_item_title"> + Icons: + </div> + + <div class="credits_item_description"> + The icons used inside <?php echo Website::$generalName;?> are taken from the <a href="http://kde-look.org/content/show.php/ACUN+Simgeleri?content=83018">ACUN Simgeleri 0.7</a> icon theme and from the <a href="http://kde-look.org/content/show.php/H2O+Icon+Theme?content=127149">H2O Icon Theme 0.0.5</a>, both licensed under the GNU GPL license, from the <a href="http://www.everaldo.com/crystal/?action=downloads">Crystal Projects</a> icons, licensed under the LGPL, from the <a href="http://www.notmart.org/index.php/Graphics">glaze icons set</a> (LGPL) and from the <a href="http://kde-look.org/content/show.php/Dark-Glass+reviewed?content=67902">DarkGlass_Reworked icons theme</a> (GPL). The flag icons are taken from the <a href="http://www.famfamfam.com/lab/icons/flags/">FAMFAMFAM flag icons set</a> (Public Domain). + </div> + + <div class="credits_item_title"> + jQuery: + </div> + + <div class="credits_item_description"> + The <a href="http://jquery.com/">jQuery</a> and the <a href="http://jqueryui.com/home">jQuery UI</a> javascript libraries (licensed under MIT/GPL) have been used through the website + </div> + + <div class="credits_item_title"> + markitup: + </div> + + <div class="credits_item_description"> + The <a href="http://markitup.jaysalvat.com/home/">markitup</a> jQuery plugin (licensed under MIT/GPL) has been used in order to help the user to insert wiki tags + </div> + + <div class="credits_item_title"> + php diff algorithm: + </div> + + <div class="credits_item_description"> + <a href="http://compsci.ca/v3/viewtopic.php?p=142539">This</a> algorithm (licensed under the zlib free license) has been used in order to highlight the differences between two different revisions of the same hadrware model. + </div> + + </div> + + </div> diff --git a/h-source/Application/Views/Credits/index_es.php b/h-source/Application/Views/Credits/index_es.php new file mode 100644 index 0000000..3efea33 --- /dev/null +++ b/h-source/Application/Views/Credits/index_es.php @@ -0,0 +1,63 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » credits + </div> + + <div class="credits_external_box"> + + <div class="credits_item_title"> + Iconos: + </div> + + <div class="credits_item_description"> + Los iconos usados dentro de <?php echo Website::$generalName;?> son tomados de el tema de iconos <a href="http://kde-look.org/content/show.php/ACUN+Simgeleri?content=83018">ACUN Simgeleri 0.7</a> y de <a href="http://kde-look.org/content/show.php/H2O+Icon+Theme?content=127149">H2O Icon Theme 0.0.5</a>, ambos licenciados bajo la licencia GNU GPL, de <a href="http://www.everaldo.com/crystal/?action=downloads">Crystal Projects</a>, licenciado bajo la LGPL, de <a href="http://www.notmart.org/index.php/Graphics">glaze icons set</a> (LGPL) y de <a href="http://kde-look.org/content/show.php/Dark-Glass+reviewed?content=67902">DarkGlass_Reworked icons theme</a> (GPL). Los iconos de las banderas son tomados la colección de iconos de banderas <a href="http://www.famfamfam.com/lab/icons/flags/">FAMFAMFAM</a> (Dominio Público) + </div> + + <div class="credits_item_title"> + jQuery: + </div> + + <div class="credits_item_description"> + Las bibliotecas javascript <a href="http://jquery.com/">jQuery</a> y <a href="http://jqueryui.com/home">jQuery UI</a> (licenciadas bajo MIT/GPL) han sido usadas en el sitio + </div> + + <div class="credits_item_title"> + markitup: + </div> + + <div class="credits_item_description"> + El complemento <a href="http://markitup.jaysalvat.com/home/">markitup</a> jQuery (licenciado bajo MIT/GPL) ha sido usado en orden de ayudar al usuario a insertar etiquetas wiki + </div> + + <div class="credits_item_title"> + php diff algorithm: + </div> + + <div class="credits_item_description"> + <a href="http://compsci.ca/v3/viewtopic.php?p=142539">Este</a> algoritmo (licenciado bajo la licencia libre de zlib) ha sido usado en orden de remarcar las diferencias entre dos diferentes revisiones del mismo modelo de hardware. + </div> + + </div> + + </div> diff --git a/h-source/Application/Views/Credits/index_it.php b/h-source/Application/Views/Credits/index_it.php new file mode 100644 index 0000000..0d32ebd --- /dev/null +++ b/h-source/Application/Views/Credits/index_it.php @@ -0,0 +1,64 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » credits + </div> + + <div class="credits_external_box"> + + <div class="credits_item_title"> + Icone: + </div> + + <div class="credits_item_description"> + Le icone utilizzate nel sito h-node.com appartengono ai temi di icone <a href="http://kde-look.org/content/show.php/ACUN+Simgeleri?content=83018">ACUN Simgeleri 0.7</a> e <a href="http://kde-look.org/content/show.php/H2O+Icon+Theme?content=127149">H2O Icon Theme 0.0.5</a>, entrambi sotto licenza GNU GPL, e al tema <a href="http://www.everaldo.com/crystal/?action=downloads">Crystal Projects</a>, sotto licenza LGPL, al <a href="http://www.notmart.org/index.php/Graphics">set di icone glaze</a> (LGPL) e al tema <a href="http://kde-look.org/content/show.php/Dark-Glass+reviewed?content=67902">DarkGlass_Reworked</a> (GPL). Le icone bandiere derivano dal set di icone <a href="http://www.famfamfam.com/lab/icons/flags/">FAMFAMFAM</a> (Public Domain). + </div> + + + <div class="credits_item_title"> + jQuery: + </div> + + <div class="credits_item_description"> + Le librerie javascript <a href="http://jquery.com/">jQuery</a> e <a href="http://jqueryui.com/home">jQuery UI</a> (sotto licenza MIT/GPL) sono state usate nel sito + </div> + + <div class="credits_item_title"> + markitup: + </div> + + <div class="credits_item_description"> + Il plugin jQuery <a href="http://markitup.jaysalvat.com/home/">markitup</a> (sotto licenza MIT/GPL) è stata usata per aiutare gli utenti a inserire i tag della wiki </div> + + <div class="credits_item_title"> + Algoritmo php diff: + </div> + + <div class="credits_item_description"> + <a href="http://compsci.ca/v3/viewtopic.php?p=142539">Questo</a> algoritmo (sotto licenza libera zlib) è stata usata per sottolineare la differenza tra due diverse revisioni dello stesso modello di hardware. + </div> + + + </div> + + </div> diff --git a/h-source/Application/Views/Download/index.php b/h-source/Application/Views/Download/index.php new file mode 100644 index 0000000..e296711 --- /dev/null +++ b/h-source/Application/Views/Download/index.php @@ -0,0 +1,68 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » download + </div> + + <div class="credits_external_box"> + + <div class="credits_item_title"> + Download the h-node hardware database in xml format: + </div> + + <div class="credits_item_description"> + You can download all the h-node database in one unique xml file in order to parse its contents by means of some proper script (for example a Python or Perl or PHP script) + + <div class="download_table"> + <table width="95%"> + <tr> + <td>Download the xml file of all the database</td> + <td><a href="<?php echo $this->baseUrl."/download/all/$lang";?>"><img src="<?php echo $this->baseUrl?>/Public/Img/H2O/download.png"></a></td> + </tr> + <tr> + <td>Download the xml file of all the <b>notebooks</b> in the database</td> + <td><a href="<?php echo $this->baseUrl."/download/notebooks/$lang";?>"><img src="<?php echo $this->baseUrl?>/Public/Img/H2O/download.png"></a></td> + </tr> + <tr> + <td>Download the xml file of all the <b>wifi cards</b> in the database</td> + <td><a href="<?php echo $this->baseUrl."/download/wifi/$lang";?>"><img src="<?php echo $this->baseUrl?>/Public/Img/H2O/download.png"></a></td> + </tr> + <tr> + <td>Download the xml file of all the <b>video cards</b> in the database</td> + <td><a href="<?php echo $this->baseUrl."/download/videocards/$lang";?>"><img src="<?php echo $this->baseUrl?>/Public/Img/H2O/download.png"></a></td> + </tr> + <tr> + <td>Download the xml file of all the <b>printers</b> in the database</td> + <td><a href="<?php echo $this->baseUrl."/download/printers/$lang";?>"><img src="<?php echo $this->baseUrl?>/Public/Img/H2O/download.png"></a></td> + </tr> + <tr> + <td>Download the xml file of all the <b>scanners</b> in the database</td> + <td><a href="<?php echo $this->baseUrl."/download/scanners/$lang";?>"><img src="<?php echo $this->baseUrl?>/Public/Img/H2O/download.png"></a></td> + </tr> + </table> + </div> + </div> + + </div> + + </div> diff --git a/h-source/Application/Views/Download/index_es.php b/h-source/Application/Views/Download/index_es.php new file mode 100644 index 0000000..b181b23 --- /dev/null +++ b/h-source/Application/Views/Download/index_es.php @@ -0,0 +1,68 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » download + </div> + + <div class="credits_external_box"> + + <div class="credits_item_title"> + Descargue la base de datos de h-node.com en formato xml: + </div> + + <div class="credits_item_description"> + Puede descargar toda la base de datos de h-node en un único archivo xml en orden de procesar sus contenidos por medio de un algoritmo (por ejemplo un algoritmo en Python o Perl o PHP) + + <div class="download_table"> + <table width="95%"> + <tr> + <td>Descargue el archivo xml de toda la base de datos</td> + <td><a href="<?php echo $this->baseUrl."/download/all/$lang";?>"><img src="<?php echo $this->baseUrl?>/Public/Img/H2O/download.png"></a></td> + </tr> + <tr> + <td>Descargue el archivo xml de todas las <b>laptops</b> en la base de datos</td> + <td><a href="<?php echo $this->baseUrl."/download/notebooks/$lang";?>"><img src="<?php echo $this->baseUrl?>/Public/Img/H2O/download.png"></a></td> + </tr> + <tr> + <td>Descargue el archivo xml de todas las <b>tarjetas inalámbricas</b> en la base de datos</td> + <td><a href="<?php echo $this->baseUrl."/download/wifi/$lang";?>"><img src="<?php echo $this->baseUrl?>/Public/Img/H2O/download.png"></a></td> + </tr> + <tr> + <td>Descargue el archivo xml de todas las <b>tarjetas de video</b> en la base de datos</td> + <td><a href="<?php echo $this->baseUrl."/download/videocards/$lang";?>"><img src="<?php echo $this->baseUrl?>/Public/Img/H2O/download.png"></a></td> + </tr> + <tr> + <td>Descargue el archivo xml de todas las <b>impresoras</b> en la base de datos</td> + <td><a href="<?php echo $this->baseUrl."/download/printers/$lang";?>"><img src="<?php echo $this->baseUrl?>/Public/Img/H2O/download.png"></a></td> + </tr> + <tr> + <td>Download the xml file of all the <b>scanners</b> in the database</td> + <td><a href="<?php echo $this->baseUrl."/download/scanners/$lang";?>"><img src="<?php echo $this->baseUrl?>/Public/Img/H2O/download.png"></a></td> + </tr> + </table> + </div> + </div> + + </div> + + </div> diff --git a/h-source/Application/Views/Download/index_it.php b/h-source/Application/Views/Download/index_it.php new file mode 100644 index 0000000..16fb40a --- /dev/null +++ b/h-source/Application/Views/Download/index_it.php @@ -0,0 +1,68 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » download + </div> + + <div class="credits_external_box"> + + <div class="credits_item_title"> + Scarica il database dell'hardware di h-node in formato xml: + </div> + + <div class="credits_item_description"> + Puoi scaricare l'intero database di h-node in un unico file xml per analizzarne i contenuti utilizzando uno script appropriato (ad esempio uno script Python o Perl o PHP) + + <div class="download_table"> + <table width="95%"> + <tr> + <td>Scarica il file xml dell'intero database</td> + <td><a href="<?php echo $this->baseUrl."/download/all/$lang";?>"><img src="<?php echo $this->baseUrl?>/Public/Img/H2O/download.png"></a></td> + </tr> + <tr> + <td>Scarica il file xml di tutti i <b>notebooks</b> del database</td> + <td><a href="<?php echo $this->baseUrl."/download/notebooks/$lang";?>"><img src="<?php echo $this->baseUrl?>/Public/Img/H2O/download.png"></a></td> + </tr> + <tr> + <td>Scarica il file xml di tutte le <b>schede wifi</b> del database</td> + <td><a href="<?php echo $this->baseUrl."/download/wifi/$lang";?>"><img src="<?php echo $this->baseUrl?>/Public/Img/H2O/download.png"></a></td> + </tr> + <tr> + <td>Scarica il file xml di tutte le <b>schede video</b> del database</td> + <td><a href="<?php echo $this->baseUrl."/download/videocards/$lang";?>"><img src="<?php echo $this->baseUrl?>/Public/Img/H2O/download.png"></a></td> + </tr> + <tr> + <td>Scarica il file xml di tutte le <b>stampanti</b> del database</td> + <td><a href="<?php echo $this->baseUrl."/download/printers/$lang";?>"><img src="<?php echo $this->baseUrl?>/Public/Img/H2O/download.png"></a></td> + </tr> + <tr> + <td>Scarica il file xml di tutti gli <b>scanner</b> del database</td> + <td><a href="<?php echo $this->baseUrl."/download/scanners/$lang";?>"><img src="<?php echo $this->baseUrl?>/Public/Img/H2O/download.png"></a></td> + </tr> + </table> + </div> + </div> + + </div> + + </div> diff --git a/h-source/Application/Views/Download/xml.php b/h-source/Application/Views/Download/xml.php new file mode 100644 index 0000000..b473875 --- /dev/null +++ b/h-source/Application/Views/Download/xml.php @@ -0,0 +1,20 @@ +<?php if (!defined('EG')) die('Direct access not allowed!'); ?> +<?php echo $xml; ?> + +<?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/>. +?>
\ No newline at end of file diff --git a/h-source/Application/Views/Hardware/left.php b/h-source/Application/Views/Hardware/left.php new file mode 100644 index 0000000..974340d --- /dev/null +++ b/h-source/Application/Views/Hardware/left.php @@ -0,0 +1,47 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » Hardware + </div> + + <div class="hardware_element"> + <img align="middle" class="hardware_element_image" src="<?php echo $this->baseUrl;?>/Public/Img/H2O/computer-laptop.png"><a class="hardware_element_link" href="<?php echo $this->baseUrl?>/notebooks/catalogue/<?php echo $lang;?>">Notebooks</a> + </div> + + <div class="hardware_element"> + <img align="middle" class="hardware_element_image" src="<?php echo $this->baseUrl;?>/Public/Img/H2O/network-wireless.png"><a class="hardware_element_link" href="<?php echo $this->baseUrl?>/wifi/catalogue/<?php echo $lang;?>">Wifi cards</a> + </div> + + <div class="hardware_element"> + <img align="middle" class="hardware_element_image" src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/1282042718_hardware.png"><a class="hardware_element_link" href="<?php echo $this->baseUrl?>/videocards/catalogue/<?php echo $lang;?>">Video cards</a> + </div> + + <div class="hardware_element"> + <img align="middle" class="hardware_element_image" src="<?php echo $this->baseUrl;?>/Public/Img/H2O/printer.png"><a class="hardware_element_link" href="<?php echo $this->baseUrl?>/printers/catalogue/<?php echo $lang;?>">Printers</a> + </div> + + <div class="hardware_element"> + <img align="middle" class="hardware_element_image" src="<?php echo $this->baseUrl;?>/Public/Img/H2O/scanner.png"><a class="hardware_element_link" href="<?php echo $this->baseUrl?>/scanners/catalogue/<?php echo $lang;?>">Scanners</a> + </div> + + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/Help/index.php b/h-source/Application/Views/Help/index.php new file mode 100644 index 0000000..8412f1d --- /dev/null +++ b/h-source/Application/Views/Help/index.php @@ -0,0 +1,361 @@ +<?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 class="help_external_box"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » help + </div> + + <div class="help_tables_of_contents"> + Table of contents + <ul> + <li><a href="<?php echo $this->currPage."/$lang#wiki-syntax";?>">Wiki syntax</a></li> + <li><a href="<?php echo $this->currPage."/$lang#compatibility";?>">Compatibility classes</a></li> + <li><a href="<?php echo $this->currPage."/$lang#discover-hardware";?>">Discover your hardware</a></li> + <li><a href="<?php echo $this->currPage."/$lang#fully-free";?>">List of fully free Gnu/Linux distributions</a></li> + </ul> + </div> + + <a name="wiki-syntax"><h1>Wiki syntax</h1></a> + + <h3>List of <?php echo Website::$generalName;?> wiki tags</h3> + + <table class="help_wiki_table" width="100%"> + <thead> + <tr> + <th>name</th> + <th>tag</th> + <th>result</th> + <th width="40%">description</th> + </tr> + </thead> + <tr> + <td>bold</td> + <td>[b]text[/b]</td> + <td><b>text</b></td> + <td>text bold</td> + </tr> + <tr> + <td>italic</td> + <td>[i]text[/i]</td> + <td><i>text</i></td> + <td>text italic</td> + </tr> + <tr> + <td>del</td> + <td>[del]text[/del]</td> + <td><del>text</del></td> + <td>text deleted</td> + </tr> + <tr> + <td>underline</td> + <td>[u]text[/u]</td> + <td><u>text</u></td> + <td>text underlined</td> + </tr> + <tr> + <td>head 1</td> + <td>[h1]text[/h1]</td> + <td><div class="div_h1">text</div></td> + <td>head 1</td> + </tr> + <tr> + <td>head 2</td> + <td>[h2]text[/h2]</td> + <td><div class="div_h2">text</div></td> + <td>head 2</td> + </tr> + <tr> + <td>head 3</td> + <td>[h3]text[/h3]</td> + <td><div class="div_h3">text</div></td> + <td>head 3</td> + </tr> + <tr> + <td>paragraph</td> + <td>[p]text[/p]</td> + <td><p>text</p></td> + <td>new paragraph</td> + </tr> + <tr> + <td>list</td> + <td>[list]list[/list]</td> + <td><ul>list</ul></td> + <td>make a list of items</td> + </tr> + <tr> + <td>numbered list</td> + <td>[enum]list[/enum]</td> + <td><ol>list</ol></td> + <td>make a numbered list of items</td> + </tr> + <tr> + <td>list item</td> + <td>[*]item[/*]</td> + <td><li>item</li></td> + <td>ad an item to a list</td> + </tr> + <tr> + <td>code</td> + <td>[code]some code[/code]</td> + <td><pre class="code_pre">some code</div></td> + <td>ad some code</td> + </tr> + <tr> + <td>simple link</td> + <td>[a]url[/a]</td> + <td><a href="url">url</a></td> + <td>simple link</td> + </tr> + <tr> + <td>link with text</td> + <td>[a]url|text[/a]</td> + <td><a href="url">text</a></td> + <td>link with text</td> + </tr> + <tr> + <td>notebook</td> + <td>[notebook]id[/notebook]</td> + <td> </td> + <td>link to the notebook with the identifier equal to id (the identifier of each device model is written in the page of the device itself, next to the model name)</td> + </tr> + <tr> + <td>wifi</td> + <td>[wifi]id[/wifi]</td> + <td> </td> + <td>link to the wifi with the identifier equal to id (the identifier of each device model is written in the page of the device itself, next to the model name)</td> + </tr> + <tr> + <td>videocard</td> + <td>[videocard]id[/videocard]</td> + <td> </td> + <td>link to the videocard with the identifier equal to id (the identifier of each device model is written in the page of the device itself, next to the model name)</td> + </tr> + </table> + + <a name="compatibility"><h1>Compatibility classes</h1></a> + + <a name="notebook-compatibility"><h2>Notebooks</h2></a> + + <h3>Class A (Platinum)</h3> + + <p>All the notebook devices work with a very good performance. Example: all the devices work, the 3D acceleration is supported</p> + + <h3>Class B (Gold)</h3> + + <p>All the notebook devices work but not at full performance. A typical example: all the devices work, but the 3D acceleration is not supported</p> + + <h3>Class C (Silver)</h3> + + <p>One main device is not supported. Example: the internal wifi card does not work. You need an external USB card</p> + + <h3>Class D (Bronze)</h3> + + <p>More than one device is not supported</p> + + <h3>Class E (Garbage)</h3> + + <p>The notebook does not work with free software</p> + + + <a name="printer-compatibility"><h2>Printers</h2></a> + + <h3>Class A (Full)</h3> + + <p>All device functions and features are supported</p> + + <h3>Class B (Partial)</h3> + + <p>Printing supported but possibly at limited speed or print quality; scanning and/or faxing on some multifunction devices may not be supported</p> + + <h3>Class C (None)</h3> + + <p>The printer does not work with free software</p> + + + <a name="scanner-compatibility"><h2>Scanners</h2></a> + + <h3>Class A (Full)</h3> + + <p>All device functions and features are supported</p> + + <h3>Class B (Partial)</h3> + + <p>Scanning supported but possibly at limited speed or quality; some other features may not be supported</p> + + <h3>Class C (None)</h3> + + <p>The scanner does not work with free software</p> + + <a name="discover-hardware"><h1>Discover your hardware</h1></a> + <div> + (Thanks <a href="<?php echo $this->baseUrl;?>/issues/view/en/3/1/token">lluvia</a>) + </div> + + <p>In order to know the details of your hardware you can carry out the following actions:</p> + + <h3>How to discover the model name of your notebook</h3> + + <p>See below your notebook or netbook</p> + + <!--<h3>How to discover the year of commercialization of your notebook</h3> + + <p>Open a terminal and type the following command:</p> + + <pre> + sudo dmidecode| grep "Release Date" + </pre>--> + + <h3>How to discover the kernel libre version you are using</h3> + + <p>Open a terminal and type the following command:</p> + + <pre> + uname -r + </pre> + + <h3>How to discover the name of your video card</h3> + + <p>Open a terminal and type the following command:</p> + + <pre> + sudo lspci + </pre> + + <p>Then look for the row containing the string <b>VGA</b> or <b>Display controller</b>. You can also try one of the following commands:</p> + + <pre> + lspci | grep "Display controller" + </pre> + + <p>or</p> + + <pre> + lspci | grep "VGA" + </pre> + + <h3>How to discover the VendorID and the ProductID of your device (VendorID:ProductID code)</h3> + + <div> + (Thanks <a href="http://trisquel.info/en/forum/h-nodecom-new-website-hardware-database#comment-5839">Michał Masłowski</a> and <a href="http://trisquel.info/en/forum/h-nodecom-new-website-hardware-database#comment-5837">Julius22</a>) + </div> + + <h4>If the device is integrated (example: a video card)</h4> + + <p>Open a terminal and type the following command:</p> + + <pre> + sudo lspci -nnk + </pre> + + <p>You should obtain a list of hardware similar to the one written below</p> + + <pre> + 03:00.0 Network controller [0280]: Broadcom Corporation BCM4311 802.11b/g WLAN [<b>14e4:4311</b>] (rev 02) + Kernel driver in use: b43-pci-bridge + Kernel modules: ssb + 05:00.0 VGA compatible controller [0300]: nVidia Corporation G86 [GeForce 8400M GS] [<b>10de:0427</b>] (rev a1) + Kernel modules: nouveau, nvidiafb + </pre> + + <p>The strings in <b>bold</b> and placed inside the square brackets (in the above list) are the code you are looking for. The first set of digits (before the colon) are the <b>VendorID</b>, the second set of digits are the <b>ProductID</b>. In the above example: the VendorID:ProductID code of the wifi card (note the strings "Network controller" and "WLAN") is <b>14e4:4311</b> while the VendorID:ProductID code of the video card (note the string "VGA") is <b>10de:0427</b></p> + + <h4>If the device is an USB device (example: an external USB wifi card)</h4> + + <p>Open a terminal and type the following command:</p> + + <pre> + sudo lsusb + </pre> + + <p>You should obtain a list of hardware similar to the one written below</p> + + <pre> + Bus 001 Device 002: ID <b>0846:4260</b> NetGear, Inc. WG111v3 54 Mbps Wireless [realtek RTL8187B] + Bus 001 Device 001: ID <b>1d6b:0002</b> Linux Foundation 2.0 root hub + Bus 002 Device 003: ID <b>08ff:2580</b> AuthenTec, Inc. AES2501 Fingerprint Sensor + </pre> + + <p>The strings in <b>bold</b> (in the above list) are the code you are looking for. The first set of digits (before the colon) are the <b>VendorID</b>, the second set of digits are the <b>ProductID</b>. In the above example: the VendorID:ProductID code of the external USB wifi card (note the strings "Wireless") is <b>0846:4260</b></p> + + + <h3>How to discover if the video card works</h3> + + <p>Install <a href="http://rss-glx.sourceforge.net/">rss-glx</a> by means of the package manager of your distribution or compiling it from source and try some screensavers (for example <b>Skyrocket</b> or <b>Solarwinds</b>). Check if you can play the screensaver (and/or if you can play it smoothly)</p> + + <h3>How to discover if the 3D acceleration works</h3> + + <p>Try to enable compiz</p> + + <h3>How to discover the name of your wifi card</h3> + + <p>Open a terminal and type the following command:</p> + + <pre> + sudo lspci + </pre> + + <p>Then look for the row containing the string <b>Wireless</b> or <b>Network controller</b>. You can also try one of the following commands:</p> + + <pre> + lspci | grep "Wireless" + </pre> + + <p>or</p> + + <pre> + lspci | grep "Network" + </pre> + + <h3>How to discover the printer driver you are using</h3> + + <h4>If you are using cups</h4> + + <p>Open a terminal and type the following command:</p> + + <pre> + dpkg-query -W -f '${Version}\n' cups + </pre> + + + <a name="fully-free"><h1>List of fully free GNU/Linux distributions</h1></a> + + <p>They are listed in alphabetical order</p> + + <ul> + <li><a href="http://www.blagblagblag.org/">BLAG</a></li> + + <li><a href="http://dragora.usla.org.ar/wiki/doku.php">Dragora</a></li> + + <li><a href="http://dynebolic.org/">Dynebolic</a></li> + + <li><a href="http://www.gnewsense.org/">gNewSense</a></li> + + <li><a href="http://www.musix.org.ar/">Musix GNU+Linux</a></li> + + <li><a href="http://trisquel.info/en/">Trisquel</a></li> + + <li><a href="http://www.ututo.org/www/">Ututo</a></li> + + <li><a href="http://venenux.org/">Venenux</a></li> + </ul> + +</div> diff --git a/h-source/Application/Views/Help/index_es.php b/h-source/Application/Views/Help/index_es.php new file mode 100644 index 0000000..e218517 --- /dev/null +++ b/h-source/Application/Views/Help/index_es.php @@ -0,0 +1,361 @@ +<?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 class="help_external_box"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » help + </div> + + <div class="help_tables_of_contents"> + Tabla de contenidos + <ul> + <li><a href="<?php echo $this->currPage."/$lang#wiki-syntax";?>">Sintaxis del Wiki</a></li> + <li><a href="<?php echo $this->currPage."/$lang#compatibility";?>">Clases de Compatibilidad</a></li> + <li><a href="<?php echo $this->currPage."/$lang#discover-hardware";?>">Descubra su hardware</a></li> + <li><a href="<?php echo $this->currPage."/$lang#fully-free";?>">Lista de las distribuciones GNU/Linux completamente libres distributions</a></li> + </ul> + </div> + + <a name="wiki-syntax"><h1>Sintaxis del Wiki</h1></a> + + <h3>Lista de las etiquetas wiki de <?php echo Website::$generalName;?></h3> + + <table class="help_wiki_table" width="100%"> + <thead> + <tr> + <th>nombre</th> + <th>etiqueta</th> + <th>resultado</th> + <th width="40%">descripción</th> + </tr> + </thead> + <tr> + <td>bold</td> + <td>[b]texto[/b]</td> + <td><b>texto</b></td> + <td>texto en negrita</td> + </tr> + <tr> + <td>italic</td> + <td>[i]texto[/i]</td> + <td><i>texto</i></td> + <td>texto en cursiva</td> + </tr> + <tr> + <td>del</td> + <td>[del]texto[/del]</td> + <td><del>texto</del></td> + <td>texto eliminado</td> + </tr> + <tr> + <td>underline</td> + <td>[u]texto[/u]</td> + <td><u>texto</u></td> + <td>texto subrayado</td> + </tr> + <tr> + <td>head 1</td> + <td>[h1]texto[/h1]</td> + <td><div class="div_h1">texto</div></td> + <td>encabezado 1</td> + </tr> + <tr> + <td>head 2</td> + <td>[h2]texto[/h2]</td> + <td><div class="div_h2">texto</div></td> + <td>encabezado 2</td> + </tr> + <tr> + <td>head 3</td> + <td>[h3]texto[/h3]</td> + <td><div class="div_h3">texto</div></td> + <td>encabezado 3</td> + </tr> + <tr> + <td>paragraph</td> + <td>[p]texto[/p]</td> + <td><p>texto</p></td> + <td>nuevo párrafo</td> + </tr> + <tr> + <td>lista</td> + <td>[list]lista[/list]</td> + <td><ul>lista</ul></td> + <td>hace una lista de objetos</td> + </tr> + <tr> + <td>numbered list</td> + <td>[enum]lista[/enum]</td> + <td><ol>lista</ol></td> + <td>hace una lista numerada de objetos</td> + </tr> + <tr> + <td>list item</td> + <td>[*]objeto[/*]</td> + <td><li>objeto</li></td> + <td>agrega un objeto a la lista</td> + </tr> + <tr> + <td>code</td> + <td>[code]código[/code]</td> + <td><pre class="code_pre">código</div></td> + <td>agrega código</td> + </tr> + <tr> + <td>simple link</td> + <td>[a]url[/a]</td> + <td><a href="url">url</a></td> + <td>enlace simple</td> + </tr> + <tr> + <td>link with text</td> + <td>[a]url|text[/a]</td> + <td><a href="url">text</a></td> + <td>enlace con texto</td> + </tr> + <tr> + <td>notebook</td> + <td>[notebook]id[/notebook]</td> + <td> </td> + <td>enlace a la laptop con el identificador id (el identificador de cada modelo de dispositivo esta escrito en la página del dispositivo mismo, seguido del nombre del modelo)</td> + </tr> + <tr> + <td>wifi</td> + <td>[wifi]id[/wifi]</td> + <td> </td> + <td>enlace al wifi con el identificador id (el identificador de cada modelo de dispositivo esta escrito en la página del dispositivo mismo, seguido del nombre del modelo)</td> + </tr> + <tr> + <td>videocard</td> + <td>[videocard]id[/videocard]</td> + <td> </td> + <td>enlace a la tarjeta de video con el identificador id (el identificador de cada modelo de dispositivo esta escrito en la página del dispositivo mismo, seguido del nombre del modelo)</td> + </tr> + </table> + + <a name="compatibility"><h1>Clases de Compatibilidad</h1></a> + + <a name="notebook-compatibility"><h2>Laptops</h2></a> + + <h3>Clase A (Platino)</h3> + + <p>Todos los dispositivos funcionan con un buen desempeño. Ejemplo: todos los dispositivos funcionan, la aceleración 3D esta soportada</p> + + <h3>Clase B (Oro)</h3> + + <p>Todos los dispositivos funcionan pero no a su rendimiento completo. Un ejemplo típico es: todos los dispositivos funcionan, pero la aceleración 3D no esta soportada</p> + + <h3>Clase C (Plata)</h3> + + <p>Un dispositivo principal no esta soportado. Ejemplo: la tarjeta inalámbrica interna no funciona. Necesita una tarjeta USB externa</p> + + <h3>Clase D (Bronce)</h3> + + <p>Más de un dispositivo no esta soportado</p> + + <h3>Clase E (Basura)</h3> + + <p>El equipo no funciona con software libre</p> + + + <a name="printer-compatibility"><h2>Impresoras</h2></a> + + <h3>Clase A (Completo)</h3> + + <p>Todos los dispositivos funcionan y las características soportadas</p> + + <h3>Clase B (Parcial)</h3> + + <p>La impresión esta soportada pero a velocidad o calidad limitada; escaneo y/o envío por fax en algunos dispositivos multifuncionales pueden no estar soportados</p> + + <h3>Clase C (Ninguno)</h3> + + <p>La impresora no funciona con software libre</p> + + + <a name="scanner-compatibility"><h2>Scanners</h2></a> + + <h3>Class A (Full)</h3> + + <p>All device functions and features are supported</p> + + <h3>Class B (Partial)</h3> + + <p>Scanning supported but possibly at limited speed or quality; some other features may not be supported</p> + + <h3>Class C (None)</h3> + + <p>The scanner does not work with free software</p> + + <a name="discover-hardware"><h1>Descubra su hardware</h1></a> + <div> + (Gracias <a href="<?php echo $this->baseUrl;?>/issues/view/en/3/1/token">lluvia</a>) + </div> + + <p>En orden de conocer los detalles de su hardware puede seguir las siguientes acciones:</p> + + <h3>Como descubrir el modelo de su laptop</h3> + + <p>Vea debajo de su laptop o netbook</p> + + <!--<h3>How to discover the year of commercialization of your notebook</h3> + + <p>Open a terminal and type the following command:</p> + + <pre> + sudo dmidecode| grep "Release Date" + </pre>--> + + <h3>Como descubrir la versión de kernel que esta usando</h3> + + <p>Abra una terminal y escriba la siguiente orden:</p> + + <pre> + uname -r + </pre> + + <h3>Como descubrir el nombre de su tarjeta de video</h3> + + <p>Abra una terminal y escriba la siguiente orden:</p> + + <pre> + sudo lspci + </pre> + + <p>Después busque por la linea que contenga la cadena VGA o Display controller. También puede usar uno de las siguientes ordenes:</p> + + <pre> + lspci | grep "Display controller" + </pre> + + <p>o</p> + + <pre> + lspci | grep "VGA" + </pre> + + <h3>Como descubrir el ID del vendedor y el ID del producto de su dispositivo (código VendorID:ProductID)</h3> + + <div> + (Gracias <a href="http://trisquel.info/en/forum/h-nodecom-new-website-hardware-database#comment-5839">Michał Masłowski</a> y <a href="http://trisquel.info/en/forum/h-nodecom-new-website-hardware-database#comment-5837">Julius22</a>) + </div> + + <h4>Si el dispositivo es integrado (ejemplo: una tarjeta de video)</h4> + + <p>Abra una terminal y escriba la siguiente orden:</p> + + <pre> + sudo lspci -nnk + </pre> + + <p>Debe de obtener una lista de hardware similar a la escriba debajo</p> + + <pre> + 03:00.0 Network controller [0280]: Broadcom Corporation BCM4311 802.11b/g WLAN [<b>14e4:4311</b>] (rev 02) + Kernel driver in use: b43-pci-bridge + Kernel modules: ssb + 05:00.0 VGA compatible controller [0300]: nVidia Corporation G86 [GeForce 8400M GS] [<b>10de:0427</b>] (rev a1) + Kernel modules: nouveau, nvidiafb + </pre> + + <p>Las cadenas en <b>negritas</b> y colocadas en los corchetes (en la lista superior) son los códigos que esta buscando. El primer grupo de dígitos (antes de los dos puntos) son el <b>VendorID</b>, el segundo grupo de dígitos son el <b>ProductID</b>. En el ejemplo superior: el código VendorID:ProductID de la tarjeta inalámbrica (note las cadenas "Network controller" y "WLAN") es <b>14e4:4311</b> mientras el código VendorID:ProductID de la tarjeta de video (note la cadena "VGA") es <b>10de:0427</b></p> + + <h4>Si el dispositivo es un dispositivo USB (ejemplo: una tarjeta USB externa)</h4> + + <p>Abra una terminal y escriba la siguiente orden:</p> + + <pre> + sudo lsusb + </pre> + + <p>Debe de obtener una lista de hardware similar a la descrita a continuación</p> + + <pre> + Bus 001 Device 002: ID <b>0846:4260</b> NetGear, Inc. WG111v3 54 Mbps Wireless [realtek RTL8187B] + Bus 001 Device 001: ID <b>1d6b:0002</b> Linux Foundation 2.0 root hub + Bus 002 Device 003: ID <b>08ff:2580</b> AuthenTec, Inc. AES2501 Fingerprint Sensor + </pre> + + <p>Las cadenas en <b>negritas</b> (en la lista superior) son el código que busca. El primer grupo de dígitos (antes de los dos puntos) son el <b>VendorID</b>, el segundo grupo de dígitos son el <b>ProductID</b>. En el ejemplo superior: el código VendorID:ProductID de la tarjeta inalámbrica USB externa (note la cadena "Wireless") es <b>0846:4260</b></p> + + + <h3>Como descubrir si la tarjeta de video funciona</h3> + + <p>Instale <a href="http://rss-glx.sourceforge.net/">rss-glx</a> por lo medios del administrador de paquetes de su distribución o por medio de compilar el código fuente y pruebe algunos protectores de pantalla (por ejemplo <b>Skyrocket</b> o <b>Solarwinds</b>). Revise si puede ejecutar el protector de pantalla (y/o si puede mostrarlo suavemente)</p> + + <h3>Como descubrir si la aceleración 3D funciona</h3> + + <p>Intente activar compiz</p> + + <h3>Como descubrir el nombre de su tarjeta de inalámbrica</h3> + + <p>Abra una terminal y escriba la siguiente orden:</p> + + <pre> + sudo lspci + </pre> + + <p>Después busque por la linea que contenga la cadena <b>Wireless</b> o <b>Network controller</b>. También puede intentar una de las siguientes ordenes</p> + + <pre> + lspci | grep "Wireless" + </pre> + + <p>o</p> + + <pre> + lspci | grep "Network" + </pre> + + <h3>Como descubrir el driver de la impresora que esta usando</h3> + + <h4>If you are using cups</h4> + + <p>Abra una terminal y escriba la orden siguiente:</p> + + <pre> + dpkg-query -W -f '${Version}\n' cups + </pre> + + + <a name="fully-free"><h1>Lista de las distribuciones GNU/Linux completamente libres</h1></a> + + <p>Están enlistadas en orden alfabético</p> + + <ul> + <li><a href="http://www.blagblagblag.org/">BLAG</a></li> + + <li><a href="http://dragora.usla.org.ar/wiki/doku.php">Dragora</a></li> + + <li><a href="http://dynebolic.org/">Dynebolic</a></li> + + <li><a href="http://www.gnewsense.org/">gNewSense</a></li> + + <li><a href="http://www.musix.org.ar/">Musix GNU+Linux</a></li> + + <li><a href="http://trisquel.info/en/">Trisquel</a></li> + + <li><a href="http://www.ututo.org/www/">Ututo</a></li> + + <li><a href="http://venenux.org/">Venenux</a></li> + </ul> + +</div> diff --git a/h-source/Application/Views/Help/index_fr.php b/h-source/Application/Views/Help/index_fr.php new file mode 100644 index 0000000..0abcd54 --- /dev/null +++ b/h-source/Application/Views/Help/index_fr.php @@ -0,0 +1,352 @@ +<?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 class="help_external_box"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » help + </div> + + <div class="help_tables_of_contents"> + Sommaire + <ul> + <li><a href="<?php echo $this->currPage."/$lang#wiki-syntax";?>">Syntaxe Wiki</a></li> + <li><a href="<?php echo $this->currPage."/$lang#compatibility";?>">Niveau de compatibilitée</a></li> + <li><a href="<?php echo $this->currPage."/$lang#discover-hardware";?>">Découvrez votre matériel</a></li> + <li><a href="<?php echo $this->currPage."/$lang#fully-free";?>">Liste de distribution GNU/Linux entièrement libre</a></li> + </ul> + </div> + + <a name="wiki-syntax"><h1>Syntaxe Wiki</h1></a> + + <h3>Liste des tags Wiki sur <?php echo Website::$generalName;?></h3> + + <table class="help_wiki_table" width="100%"> + <thead> + <tr> + <th>name</th> + <th>tag</th> + <th>result</th> + <th width="40%">description</th> + </tr> + </thead> + <tr> + <td>bold</td> + <td>[b]text[/b]</td> + <td><b>text</b></td> + <td>text bold</td> + </tr> + <tr> + <td>italic</td> + <td>[i]text[/i]</td> + <td><i>text</i></td> + <td>text italic</td> + </tr> + <tr> + <td>del</td> + <td>[del]text[/del]</td> + <td><del>text</del></td> + <td>text deleted</td> + </tr> + <tr> + <td>underline</td> + <td>[u]text[/u]</td> + <td><u>text</u></td> + <td>text underlined</td> + </tr> + <tr> + <td>head 1</td> + <td>[h1]text[/h1]</td> + <td><div class="div_h1">text</div></td> + <td>head 1</td> + </tr> + <tr> + <td>head 2</td> + <td>[h2]text[/h2]</td> + <td><div class="div_h2">text</div></td> + <td>head 2</td> + </tr> + <tr> + <td>head 3</td> + <td>[h3]text[/h3]</td> + <td><div class="div_h3">text</div></td> + <td>head 3</td> + </tr> + <tr> + <td>paragraph</td> + <td>[p]text[/p]</td> + <td><p>text</p></td> + <td>new paragraph</td> + </tr> + <tr> + <td>list</td> + <td>[list]list[/list]</td> + <td><ul>list</ul></td> + <td>make a list of items</td> + </tr> + <tr> + <td>numbered list</td> + <td>[enum]list[/enum]</td> + <td><ol>list</ol></td> + <td>make a numbered list of items</td> + </tr> + <tr> + <td>list item</td> + <td>[*]item[/*]</td> + <td><li>item</li></td> + <td>ad an item to a list</td> + </tr> + <tr> + <td>code</td> + <td>[code]some code[/code]</td> + <td><pre class="code_pre">some code</div></td> + <td>ad some code</td> + </tr> + <tr> + <td>simple link</td> + <td>[a]url[/a]</td> + <td><a href="url">url</a></td> + <td>simple link</td> + </tr> + <tr> + <td>link with text</td> + <td>[a]url|text[/a]</td> + <td><a href="url">text</a></td> + <td>link with text</td> + </tr> + <tr> + <td>notebook</td> + <td>[notebook]id[/notebook]</td> + <td> </td> + <td>link to the notebook with the identifier equal to id (the identifier of each device model is written in the page of the device itself, next to the model name)</td> + </tr> + <tr> + <td>wifi</td> + <td>[wifi]id[/wifi]</td> + <td> </td> + <td>link to the wifi with the identifier equal to id (the identifier of each device model is written in the page of the device itself, next to the model name)</td> + </tr> + <tr> + <td>videocard</td> + <td>[videocard]id[/videocard]</td> + <td> </td> + <td>link to the videocard with the identifier equal to id (the identifier of each device model is written in the page of the device itself, next to the model name)</td> + </tr> + </table> + + <a name="compatibility"><h1>Niveau de compatibilitée</h1></a> + + <a name="notebook-compatibility"><h2>Notebooks</h2></a> + + <h3>Classe A (Platinium)</h3> + + <p>Tout le matériel du notebook fonctionne avec du logiciel libre. Exemple : la 3D fonctionne, le son et la wifi également</p> + + <h3>Classe B (Or)</h3> + + <p>Tout le matériel du notebook fonctionne, mais avec des performances réduites. Exemple : la carte graphique est reconnues mais la 3D ne fonctionne pas</p> + + <h3>Classe C (Argent)</h3> + + <p>Un matériel principal ne fonctionne pas. Exemple : La carte wifi ne fonctionne pas</p> + + <h3>Classe D (Bronze)</h3> + + <p>Plus d'un matériel ne fonctionne pas avec du logiciel libre</p> + + <h3>Classe E (Poubelle)</h3> + + <p>Aucun matériel ne fonctionne avec du logiciel libre</p> + + + <a name="printer-compatibility"><h2>Imprimantes</h2></a> + + <h3>Classe A (Complet)</h3> + + <p>Toutes les fonctionnalitées de l'imprimante fonctionne avec du logiciel libre</p> + + <h3>Classe B (Partielle)</h3> + + <p>La fonction d'impression fonctionne, mais à une vitesse ou qualitée limitée. Le scan ou le fax sur certains appareils peut ne pas être supportés</p> + + <h3>Classe C (Aucun)</h3> + + <p>L'imprimante ne fonctionne pas avec du logiciel libre</p> + + + <a name="scanner-compatibility"><h2>Scanners</h2></a> + + <h3>Classe A (Complet)</h3> + + <p>Toutes les fonctionnalitées du scanner sont supportées</p> + + <h3>Classe B (Partielle)</h3> + + <p>Le scanner fonctionne mais à une vitesse ou qualitée limitée, d'autres fonctionnalitées peuvent ne pas fonctionner</p> + + <h3>Classe C (Aucun)</h3> + + <p>Le scanner ne fonctionne pas avec du logiciel libre</p> + + <a name="discover-hardware"><h1>Découvrez votre matériel</h1></a> + <div> + (Merci <a href="<?php echo $this->baseUrl;?>/issues/view/en/3/1/token">lluvia</a>) + </div> + + <p>Pour connaitre votre matériel en détails, vous pouviez faire les choses suivantes:</p> + + <h3>Comment découvrir le modèle de votre notebook</h3> + + <p>See below your notebook or netbook</p> + + <h3>Trouver la version du noyau linux libre que vous utilisez</h3> + + <p>Ouvrez un terminal et tapez la commande suivant:</p> + + <pre> + uname -r + </pre> + + <h3>Comment trouver le modèle de votre carte graphique</h3> + + <p>Ouvrez un terminal et taper la commande suivante:</p> + + <pre> + sudo lspci + </pre> + + <p>Chercher la ligne qui contient le mot <b>VGA</b> ou <b>Display Controller</b>. Vous pouvez aussi essayer l'une des commandes suivantes:</p> + + <pre> + lspci | grep "Display controller" + </pre> + + <p>ou</p> + + <pre> + lspci | grep "VGA" + </pre> + + <h3>Comment connaitre le VendorID ou le ProductID (VendorID:ProductID code)</h3> + + <div> + (Merci à <a href="http://trisquel.info/en/forum/h-nodecom-new-website-hardware-database#comment-5839">Michał Masłowski</a> et <a href="http://trisquel.info/en/forum/h-nodecom-new-website-hardware-database#comment-5837">Julius22</a>) + </div> + + <h4>Si le matériel est intégré (example : une puce vidéo)</h4> + + <p>Ouvrez un terminal sudo et taper la commande suivante:</p> + + <pre> + sudo lspci -nnk + </pre> + + <p>Vous devriez obtenir une liste de matériel similaire à celle-ci</p> + + <pre> + 03:00.0 Network controller [0280]: Broadcom Corporation BCM4311 802.11b/g WLAN [<b>14e4:4311</b>] (rev 02) + Kernel driver in use: b43-pci-bridge + Kernel modules: ssb + 05:00.0 VGA compatible controller [0300]: nVidia Corporation G86 [GeForce 8400M GS] [<b>10de:0427</b>] (rev a1) + Kernel modules: nouveau, nvidiafb + </pre> + + <p>Les lignes en <b>gras</b> et placée entre crochet (dans la liste ci-dessus) sont les lignes que vous recherchez. Le premier packet de numéros (avant la virgule) sont le <b>VendorID</b>, le second sont le <b>ProductID</b>. Dans l’exemple ci dessus, le code VendorID:ProductID de la carte wifi ( vous pouvez la remarquez grace aux mots "Network Controller" et "WLAN" ) est <b>14e4:4311</b></p> + + <h4>Si le périphérique est un périphérique USB : (exemple : une clé usb wifi)</h4> + + <p>Ouvrez un terminal et tapez:</p> + + <pre> + sudo lsusb + </pre> + + <p>Vous devriez obtenir une liste de matériel similaire à celle ci</p> + + <pre> + Bus 001 Device 002: ID <b>0846:4260</b> NetGear, Inc. WG111v3 54 Mbps Wireless [realtek RTL8187B] + Bus 001 Device 001: ID <b>1d6b:0002</b> Linux Foundation 2.0 root hub + Bus 002 Device 003: ID <b>08ff:2580</b> AuthenTec, Inc. AES2501 Fingerprint Sensor + </pre> + + <p>Les lignes en <b>gras</b> (dans la liste du dessus) sont les lignes que vous recherchez. Les premiers nombres (avant les deux points) sont le <b>VendorID</b>, les autres sont le <b>ProductID</b>. Dans l'exemple ci-dessus : le code VendorID:ProductID de la carte usb wifi externe (Remarquez la ligne Wireless) est <b>0846:4260</b></p> + + <h3>Comment savoir si votre carte graphique fonctionne</h3> + + <p>Installer <a href="http://rss-glx.sourceforge.net/">rss-glx</a> en utilisant le gestionnaire de paquet de votre distribution ou en le compilant depuis les sources et essayez certains écran de veille (par exemple <b>Skyrocket</b> ou <b>Solarwinds</b>). Essayer de faire fonctionner le fond d'écran, et/ou le faire fonctionner fluidement.</p> + + <h3>Comment savoir si l'accélération 3D fonctionne</h3> + + <p>Essayer d’activer compiz</p> + + <h3>Comment decouvrir le nom de votre carte wifi</h3> + + <p>Ouvrez un terminal et taper la commande suivante:</p> + + <pre> + sudo lspci + </pre> + + <p>Regardez ensuite les lignes <b>Wireless</b> ou <b>Network controller</b>. Vous pouvez aussi essayer l'une de ses commandes:</p> + + <pre> + lspci | grep "Wireless" + </pre> + + <p>ou</p> + + <pre> + lspci | grep "Network" + </pre> + + <h3>Comment connaitre le pilote d’imprimante que vous utilisez</h3> + + <h4>Si vous utilisez cups</h4> + + <p>Ouvrez un terminal et taper ceci:</p> + + <pre> + dpkg-query -W -f '${Version}\n' cups + </pre> + + + <a name="fully-free"><h1>Liste de dristributions GNU/Linux entièrement libre</h1></a> + + <p>They are listed in alphabetical order</p> + + <ul> + <li><a href="http://www.blagblagblag.org/">BLAG</a></li> + + <li><a href="http://dragora.usla.org.ar/wiki/doku.php">Dragora</a></li> + + <li><a href="http://dynebolic.org/">Dynebolic</a></li> + + <li><a href="http://www.gnewsense.org/">gNewSense</a></li> + + <li><a href="http://www.musix.org.ar/">Musix GNU+Linux</a></li> + + <li><a href="http://trisquel.info/en/">Trisquel</a></li> + + <li><a href="http://www.ututo.org/www/">Ututo</a></li> + + <li><a href="http://venenux.org/">Venenux</a></li> + </ul> + +</div> diff --git a/h-source/Application/Views/Help/index_it.php b/h-source/Application/Views/Help/index_it.php new file mode 100644 index 0000000..cd22c34 --- /dev/null +++ b/h-source/Application/Views/Help/index_it.php @@ -0,0 +1,378 @@ +<?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 class="help_external_box"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » help + </div> + + <div class="help_tables_of_contents"> + Table of contents + <ul> + <li><a href="<?php echo $this->currPage."/$lang#wiki-syntax";?>">Sintassi della Wiki</a></li> + <li><a href="<?php echo $this->currPage."/$lang#compatibility";?>">Classi di compatibilità</a></li> + <li><a href="<?php echo $this->currPage."/$lang#discover-hardware";?>">Scopri il tuo hardware</a></li> + <li><a href="<?php echo $this->currPage."/$lang#fully-free";?>">Lista delle distribuzioni Gnu/Linux completamente libere</a></li> + </ul> + </div> + + <a name="wiki-syntax"><h1>Sintassi della Wiki</h1></a> + + <h3>Lista dei tag della wiki di <?php echo Website::$generalName;?></h3> + + <table class="help_wiki_table" width="100%"> + <thead> + <tr> + + <th>nome</th> + <th>tag</th> + <th>risultato</th> + <th width="40%">descrizione</th> + </tr> + </thead> + <tr> + + <td>grassetto</td> + <td>[b]text[/b]</td> + <td><b>text</b></td> + <td>testo in grassetto</td> + </tr> + <tr> + <td>corsivo</td> + + <td>[i]text[/i]</td> + <td><i>text</i></td> + <td>testo corsivo</td> + </tr> + <tr> + <td>cancellare</td> + <td>[del]text[/del]</td> + + <td><del>text</del></td> + <td>testo cancellato</td> + </tr> + <tr> + <td>sottolineare</td> + <td>[u]text[/u]</td> + <td><u>text</u></td> + + <td>testo sottolineato</td> + </tr> + <tr> + <td>head 1</td> + <td>[h1]text[/h1]</td> + <td><div class="div_h1">text</div></td> + <td>head 1</td> + + </tr> + <tr> + <td>head 2</td> + <td>[h2]text[/h2]</td> + <td><div class="div_h2">text</div></td> + <td>head 2</td> + </tr> + + <tr> + <td>head 3</td> + <td>[h3]text[/h3]</td> + <td><div class="div_h3">text</div></td> + <td>head 3</td> + </tr> + <tr> + + <td>paragrafo</td> + <td>[p]text[/p]</td> + <td><p>text</p></td> + <td>crea un nuovo paragrafo</td> + </tr> + <tr> + <td>elenco</td> + + <td>[list]list[/list]</td> + <td><ul>list</ul></td> + <td>crea un elenco di item</td> + </tr> + <tr> + <td>elenco numerato</td> + + <td>[enum]list[/enum]</td> + <td><ol>list</ol></td> + <td>crea un elenco numerato di item</td> + </tr> + <tr> + <td>item di un elenco</td> + + <td>[*]item[/*]</td> + <td><li>item</li></td> + <td>aggiungi un item a un elenco</td> + </tr> + <tr> + <td>codice</td> + + <td>[code]some code[/code]</td> + <td><pre class="code_pre">some code</div></td> + <td>aggiungi del codice</td> + </tr> + <tr> + <td>link semplice</td> + <td>[a]url[/a]</td> + + <td><a href="url">url</a></td> + <td>crea un link semplice</td> + </tr> + <tr> + <td>link con testo</td> + <td>[a]url|text[/a]</td> + + <td><a href="url">text</a></td> + <td>crea un link con testo</td> + </tr> + <tr> + <td>notebook</td> + <td>[notebook]id[/notebook]</td> + + <td> </td> + <td>crea un link al notebook con l'identificatore corrispondente a id (l'identificatore di ogni modello di dispositivo si trova nella pagina del dispositivo stesso, accanto al nome del modello</td> + </tr> + <tr> + <td>wifi</td> + <td>[wifi]id[/wifi]</td> + <td> </td> + + <td>crea un link alla wifi con l'identificatore corrispondente a id (l'identificatore di ogni modello di dispositivo si trova nella pagina del dispositivo stesso, accanto al nome del modello)</td> + </tr> + <tr> + <td>scheda video</td> + <td>[videocard]id[/videocard]</td> + <td> </td> + <td>crea un link alla scheda video con l'identificatore corrispondente a id (l'identificatore di ogni modello di dispositivo si trova nella pagina del dispositivo stesso, accanto al nome del modello)</td> + + </tr> + </table> + + <a name="compatibility"><h1>Classi di compatibilità</h1></a> + + <a name="notebook-compatibility"><h2>Notebooks</h2></a> + + <h3>Classe A (Platino)</h3> + + <p>Tutti i dispositivi del portatile funzionano ad alte prestazioni. Per esempio: funzionano tutti i dispositivi, l'accelerazione 3D è supportata.</p> + + <h3>Classe B (Oro)</h3> + + <p>Tutti i dispositivi del portatile funzionano ma non a piene prestazioni. Esempio tipico: funzionano tutti i dispositivi, ma l'accelerazione 3D non è supportata.</p> + + <h3>Classe C (Argento)</h3> + + <p>Uno dei dispositivi principali non è supportato. Per esempio: la scheda wifi interna non funziona e serve una wifi esterna USB.</p> + + <h3>Classe D (Bronzo)</h3> + + <p>Più di uno dei dispositivi principali non è supportato.</p> + + <h3>Classe E (Spazzatura)</h3> + + <p>Il portatile non funziona con software libero.</p> + + + <a name="printer-compatibility"><h2>Stampanti</h2></a> + + + <h3>Classe A (Piena)</h3> + + <p>Sono supportate tutte le funzioni e le caratteristiche della stampante.</p> + + <h3>Classe B (Parziale)</h3> + + <p>La funzione di stampa è supportata, ma a velocità limitata o a scarsa qualità. Su alcune stampanti multifunzione possono non essere supportate le funzioni di scanner e/o di fax.</p> + + <h3>Classe C (Nessuna)</h3> + + <p>La stampante non funziona con software libero.</p> + + + <a name="scanner-compatibility"><h2>Scanner</h2></a> + + <h3>Classe A (Piena)</h3> + + <p>Sono supportate tutte le funzioni e le caratteristiche dello scanner.</p> + + <h3>Classe B (Parziale)</h3> + + <p>La funzione di scannerizzazione è supportata, ma a velocità limitata o a scarsa qualità. Qualche altra caratteristica può non essere supportata.</p> + + <h3>Classe C (Nessuna)</h3> + + <p>Lo scanner non funziona con software libero.</p> + + <a name="discover-hardware"><h1>Scopri il tuo hardware</h1></a> + <div> + (Grazie <a href="<?php echo $this->baseUrl;?>/issues/view/en/3/1/token">lluvia</a>) + </div> + + <p>Per sapere le caratteristiche e i dettagli del tuo hardware puoi seguire queste istruzioni:</p> + + <h3>Come scoprire il nome del modello del portatile</h3> + + <p>Guarda sotto al tuo notebook o al tuo netbook</p> + + <h3>Come scoprire che versione del kernel libre stai usando</h3> + + <p>Apri un terminale e digita questo comando:</p> + + <pre> + uname -r + </pre> + + <h3>Come scoprire il nome della tua scheda video</h3> + + <p>Apri un terminale e digita questo comando:</p> + + + <pre> + sudo lspci + </pre> + + <p>Poi cerca la riga contenente la stringa <b>VGA</b> o <b>Display controller</b>. Puoi anche provare con uno di questi comandi:</p> + + <pre> + lspci | grep "Display controller" + </pre> + + + <p>o</p> + + <pre> + lspci | grep "VGA" + </pre> + + <h3>Come scoprire il VendorID e il ProductID del tuo dispositivo (VendorID:ProductID code)</h3> + + <div> + (Grazie <a href="http://trisquel.info/en/forum/h-nodecom-new-website-hardware-database#comment-5839">Michał Masłowski</a> e <a href="http://trisquel.info/en/forum/h-nodecom-new-website-hardware-database#comment-5837">Julius22</a>) + </div> + + <h4>Se il dispositivo è integrato (per esempio una scheda video)</h4> + + <p>Apri un terminale e digita il seguente comando:</p> + + <pre> + sudo lspci -nnk + </pre> + + <p>Dovresti ottenere una lista di hardware simile a quella scritta qui sotto</p> + + <pre> + + 03:00.0 Network controller [0280]: Broadcom Corporation BCM4311 802.11b/g WLAN [<b>14e4:4311</b>] (rev 02) + Kernel driver in use: b43-pci-bridge + Kernel modules: ssb + 05:00.0 VGA compatible controller [0300]: nVidia Corporation G86 [GeForce 8400M GS] [<b>10de:0427</b>] (rev a1) + Kernel modules: nouveau, nvidiafb + </pre> + + <p>Le stringhe in <b>grassetto</b> e tra parentesi quadre (nella lista qui sopra) sono il codice che stai cercando. Il primo gruppo di cifre (prima dei due punti) è il <b>VendorID</b>, il secondo gruppo è il <b>ProductID</b>. Nell'esempio qui sopra: il codice VendorID:ProductID della scheda wifi (nota le stringhe "Network controller" e "WLAN") è <b>14e4:4311</b> mentre il codice VendorID:ProductID della scheda video (nota la stringa "VGA") è <b>10de:0427</b></p> + + + <h4>Se si tratta di un dispositivo USB (per esempio una wifi esterna USB)</h4> + + <p>Apri un terminale e digita questo comando:</p> + + <pre> + sudo lsusb + </pre> + + <p>Dovresti ottenere una lista di hardware simile a quella scritta qui sotto</p> + + <pre> + + Bus 001 Device 002: ID <b>0846:4260</b> NetGear, Inc. WG111v3 54 Mbps Wireless [realtek RTL8187B] + Bus 001 Device 001: ID <b>1d6b:0002</b> Linux Foundation 2.0 root hub + Bus 002 Device 003: ID <b>08ff:2580</b> AuthenTec, Inc. AES2501 Fingerprint Sensor + </pre> + + <p>Le stringhe in <b>grassetto</b> (nella lista qui sopra) sono il codice che stai cercando. Il primo gruppo di cifre (prima dei due punti) è il <b>VendorID</b>, il secondo gruppo è il <b>ProductID</b>. Nell'esempio qui sopra: il codice VendorID:ProductID della wifi esterna USB (nota la stringa "Wireless") è <b>0846:4260</b></p> + + <h3>Come scoprire se funziona la scheda video</h3> + + <p>Installa <a href="http://rss-glx.sourceforge.net/">rss-glx</a> tramite il gestore di pacchetti della tua distribuzione +o compilando dai sorgenti e prova degli screensaver (per esempio <b>Skyrocket</b> o <b>Solarwinds</b>). Controlla se parte lo screensaver (e/o se si vede "fluido")</p> + + <h3>Come scoprire se funziona l'accelerazione 3D</h3> + + + <p>Prova ad attivare compiz</p> + + <h3>Come scoprire il nome della tua scheda wifi</h3> + + <p>Apri un terminale e digita questo comando:</p> + + <pre> + sudo lspci + </pre> + + <p>Poi cerca la riga contenente la stringa <b>Wireless</b> o <b>Network controller</b>. Puoi anche provare uno dei seguenti comandi:</p> + + + <pre> + lspci | grep "Wireless" + </pre> + + <p>o</p> + + <pre> + lspci | grep "Network" + </pre> + + <h3>Come scoprire che driver per la stampante stai usando</h3> + + <h4>Se stai usando cups</h4> + + <p>Apri un terminale e digita il seguente comando:</p> + + <pre> + dpkg-query -W -f '${Version}\n' cups + </pre> + + + <a name="fully-free"><h1>Lista di distribuzioni GNU/Linux completamente libere</h1></a> + + <p>In ordine alfabetico</p> + + <ul> + <li><a href="http://www.blagblagblag.org/">BLAG</a></li> + + <li><a href="http://dragora.usla.org.ar/wiki/doku.php">Dragora</a></li> + + <li><a href="http://dynebolic.org/">Dynebolic</a></li> + + <li><a href="http://www.gnewsense.org/">gNewSense</a></li> + + <li><a href="http://www.musix.org.ar/">Musix GNU+Linux</a></li> + + <li><a href="http://trisquel.info/en/">Trisquel</a></li> + + <li><a href="http://www.ututo.org/www/">Ututo</a></li> + + <li><a href="http://venenux.org/">Venenux</a></li> + </ul> + +</div> diff --git a/h-source/Application/Views/History/viewall.php b/h-source/Application/Views/History/viewall.php new file mode 100644 index 0000000..47848ff --- /dev/null +++ b/h-source/Application/Views/History/viewall.php @@ -0,0 +1,38 @@ +<?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/>. +?> + +<?php $u = new UsersModel();?> +<?php + $mess_count = 0; + foreach ($res as $row) { + $mess_count++; +?> +<div class="details_of_actions_inner"> + <div class="talk_message_item_date">this message has been <?php echo $md_action[$row['history']['action']];?> by <?php echo getLinkToUser($u->getUser($row['history']['created_by']));?> at <?php echo smartDate($row['history']['creation_date']);?> with the following motivation: + </div> + <div class="deleted_message_show"><?php echo$row['history']['message'];?></div> +</div> +<?php } ?> + +<?php if ($mess_count === 0) { ?> + <div class="details_of_actions_inner"> + there are no details.. + </div> +<?php } ?>
\ No newline at end of file diff --git a/h-source/Application/Views/Home/left.php b/h-source/Application/Views/Home/left.php new file mode 100644 index 0000000..816a47b --- /dev/null +++ b/h-source/Application/Views/Home/left.php @@ -0,0 +1,34 @@ +<?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="left"> + + <div class="position_tree_box"> + Home + </div> + + <?php echo $htmlNewsBox;?> + + <p>it works!!</p> + + <p>modify the file <b>Application/Views/Home/left.php</b> in order to change the english version of your homepage</p> + + <p>modify the file <b>Application/Include/languages.php</b> in order to add new languages</p> + </div> diff --git a/h-source/Application/Views/Home/left_es.php b/h-source/Application/Views/Home/left_es.php new file mode 100644 index 0000000..029962b --- /dev/null +++ b/h-source/Application/Views/Home/left_es.php @@ -0,0 +1,31 @@ +<?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="left"> + + <div class="position_tree_box"> + Home + </div> + + <?php echo $htmlNewsBox;?> + + + + </div> diff --git a/h-source/Application/Views/Home/left_fr.php b/h-source/Application/Views/Home/left_fr.php new file mode 100644 index 0000000..de2acda --- /dev/null +++ b/h-source/Application/Views/Home/left_fr.php @@ -0,0 +1,30 @@ +<?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="left"> + + <div class="position_tree_box"> + Home + </div> + + <?php echo $htmlNewsBox;?> + + + </div> diff --git a/h-source/Application/Views/Home/left_it.php b/h-source/Application/Views/Home/left_it.php new file mode 100644 index 0000000..de2acda --- /dev/null +++ b/h-source/Application/Views/Home/left_it.php @@ -0,0 +1,30 @@ +<?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="left"> + + <div class="position_tree_box"> + Home + </div> + + <?php echo $htmlNewsBox;?> + + + </div> diff --git a/h-source/Application/Views/Issues/view.php b/h-source/Application/Views/Issues/view.php new file mode 100644 index 0000000..20d0403 --- /dev/null +++ b/h-source/Application/Views/Issues/view.php @@ -0,0 +1,202 @@ +<?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/>. +?> + + <script> + + $(document).ready(function() { + + $("#bb_code").markItUp(mySettings); + + }); + + </script> + + <div id="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » <a href="<?php echo $this->baseUrl."/issues/viewall/$lang".$this->viewStatus;?>">issues</a> » <?php echo $id_issue;?> + </div> + + <div class="issues_external_box"> + <?php foreach ($table as $row) { ?> + + <div class="issues_view_title"> + <?php echo $row['issues']['title'];?> + </div> + + <div class="talk_message_item_date"> + submitted by <?php echo getLinkToUser($u->getUser($row['issues']['created_by']));?>, <?php echo smartDate($row['issues']['creation_date']);?> + </div> + + <div class="issues_view_status_and_priority"> + <table> + <tr> + <td><?php echo gtext("TOPIC");?>:</td> + <td><b><?php echo str_replace('-',' ',$row['issues']['topic']);?></b></td> + </tr> + <tr> + <td><?php echo gtext("STATUS");?>:</td> + <td><b><?php echo $row['issues']['status'];?></b></td> + </tr> + <tr> + <td><?php echo gtext("PRIORITY");?>:</td> + <td><b><?php echo $row['issues']['priority'];?></b></td> + </tr> + </table> + </div> + + <div class="issues_view_description_title"> + <?php echo gtext("Description");?>: + </div> + + <div class="issues_view_description"> + <?php echo decodeWikiText($row['issues']['message']);?> + </div> + + <?php if (strcmp($row['issues']['notice'],'') !== 0) { ?> + + <div class="issues_view_description_title"> + Response message (from h-node.com): + </div> + + <div class="issues_view_description"> + <?php echo decodeWikiText($row['issues']['notice']);?> + </div> + + <?php } ?> + + <?php } ?> + </div> + + <!--print the messages to this issue--> + <div class="issues_external_box"> + <div class="add_message_form_title"> + <?php echo gtext("Messages");?>: + </div> + <?php + $mess_count = 0; + foreach ($messages as $row) { + $mess_count++; + ?> + + <?php if (strcmp($row['messages']['deleted'],'no') === 0) { ?> + + <div class="issues_message_item"> + <div class="issues_message_item_user"> + <div class="issues_message_item_user_inner"> + <?php echo $u->getUser($row['messages']['created_by']);?>: + </div> + <?php if ($ismoderator) { ?> + <a id="<?php echo $row['messages']['id_mes'];?>" class="hide_message hide_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/button_cancel.png">hide</a> + <?php } ?> + + </div> + + <div class="message_view_description"> + <?php echo decodeWikiText($row['messages']['message']);?> + </div> + <div class="talk_message_item_date"> + submitted by <?php echo getLinkToUser($u->getUser($row['messages']['created_by']));?>, <?php echo smartDate($row['messages']['creation_date']);?> + </div> + + <?php if ($ismoderator) { ?> + <!--view details--> + <div class="show_hidden_box_ext"> + <div class="md_type">message</div> + <a id="<?php echo $row['messages']['id_mes'];?>" class="hidden_message_view_details" href="<?php echo $this->baseUrl."/home/index/$lang";?>">view details</a> + <div class="moderation_details_box"></div> + </div> + <?php } ?> + + </div> + + <?php } else { ?> + + <div class="issues_message_item_hidden"> + <?php echo gtext("this message has been deleted");?> + <?php if ($ismoderator) { ?> + <a id="<?php echo $row['messages']['id_mes'];?>" class="show_message hide_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/button_ok.png">make visible</a> + + <!--view details--> + <div class="show_hidden_box_ext"> + <div class="md_type">message</div> + + <a id="<?php echo $row['messages']['id_mes'];?>" class="hidden_message_view_details" href="<?php echo $this->baseUrl."/home/index/$lang";?>">view details</a> + + <div class="details_of_hidden_message"> + <div class="details_of_hidden_message_inner"> + <div class="talk_message_item_date"> + submitted by <?php echo getLinkToUser($u->getUser($row['messages']['created_by']));?>, <?php echo smartDate($row['messages']['creation_date']);?> + </div> + <div class="message_view_description_hidden"> + <?php echo decodeWikiText($row['messages']['message']);?> + </div> + </div> + <div class="moderation_details_box"></div> + </div> + </div> + + <?php } ?> + </div> + + <?php } ?> + + <?php } ?> + + <?php if ($mess_count === 0) { ?> + <?php echo gtext("there are no messages");?>.. + <?php } ?> + + </div> + + <!--insert a message notice--> + <?php if ($islogged === 'yes') { ?> + + <div class="add_issue_form"> + <div class="add_message_form_title"> + <a name="form"><?php echo gtext("Add a message to this issue");?></a> + </div> + + <?php echo $notice;?> + + <!--preiview--> + <?php if (isset($preview_message)) { ?> + <div class="message_preview_notice"> + <?php echo gtext("preview of the message");?>: + </div> + <div class="issues_message_item_preview"> + <div class="message_view_description"> + <?php echo decodeWikiText($preview_message);?> + </div> + </div> + <?php } ?> + + <?php echo $form;?> + </div> + + <?php } else { ?> + + <div class="talk_login_notice"> + <a name="form"><?php echo gtext("You have to");?> <a href="<?php echo $this->baseUrl."/users/login/$lang";?>">login</a> <?php echo gtext("in order to submit a message to this issue");?></a> + </div> + + <?php } ?> + + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/Issues/viewall.php b/h-source/Application/Views/Issues/viewall.php new file mode 100644 index 0000000..39bd566 --- /dev/null +++ b/h-source/Application/Views/Issues/viewall.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/>. +?> + + <script> + + $(document).ready(function() { + + $("#bb_code").markItUp(mySettings); + + }); + + </script> + + <div id="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » issues + </div> + + <div class="issues_external_box"> + <div class="issues_viewall_title"> + <?php echo gtext("List of issues");?>: + </div> + + <table class="issues_viewall_table"> + <thead> + <tr> + <th>ID</th> + <th><?php echo gtext("TITLE");?></th> + <th><?php echo gtext("TOPIC");?></th> + <th><?php echo gtext("OPENED BY");?></th> + <th><?php echo gtext("DATE");?></th> + <th><?php echo gtext("REPLIES");?></th> + <th><?php echo gtext("PRIORITY");?></th> + <th><?php echo gtext("STATUS");?></th> + </tr> + </thead> + + <?php foreach ($table as $row) { ?> + <tr> + <td><?php echo $row['issues']['id_issue'];?></td> + <td><a href="<?php echo $this->baseUrl."/issues/view/$lang/".$row['issues']['id_issue'].$this->viewStatus;?>"><?php echo $row['issues']['title'];?></a></td> + <td><?php echo str_replace('-',' ',$row['issues']['topic']);?></td> + <td><?php echo getLinkToUser($u->getUser($row['issues']['created_by']));?></td> + <td><?php echo smartDate($row['issues']['creation_date']);?></td> + <td> + <?php + if (strcmp($row['messages']['message'],'') !== 0) + { + echo $row['aggregate']['numb_mess']; + } + else + { + echo $row['aggregate']['numb_mess']-1; + } + ?> + </td> + <td><?php echo $row['issues']['priority'];?></td> + <td><?php echo $row['issues']['status'];?></td> + </tr> + <?php } ?> + </table> + </div> + + <div class="history_page_list"> + <?php echo gtext("page list");?>: <?php echo $pageList;?> + </div> + + <?php if ($islogged === 'yes') { ?> + + <div class="add_issue_form"> + <div class="add_issue_form_title"> + <a name="form"><?php echo gtext("Add a new issue");?></a> + </div> + + <?php echo $notice;?> + + <!--preiview--> + <?php if (isset($preview_message)) { ?> + <div class="message_preview_notice"> + <?php echo gtext("preview of the new issue message");?>: + </div> + <div class="issues_message_item_preview"> + <div class="message_view_description"> + <?php echo decodeWikiText($preview_message);?> + </div> + </div> + <?php } ?> + + <?php echo $form;?> + </div> + + <?php } else { ?> + + <div class="talk_login_notice"> + <a name="form"><?php echo gtext("You have to");?> <a href="<?php echo $this->baseUrl."/users/login/$lang";?>">login</a> <?php echo gtext("in order to submit an issue");?></a> + </div> + + <?php } ?> + + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/My/email.php b/h-source/Application/Views/My/email.php new file mode 100644 index 0000000..bda793e --- /dev/null +++ b/h-source/Application/Views/My/email.php @@ -0,0 +1,31 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » <a href="<?php echo $this->baseUrl."/my/home/$lang/$token";?>">panel</a> » e-mail + </div> + + <?php echo $notice;?> + + <?php echo $form;?> + + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/My/goodbye.php b/h-source/Application/Views/My/goodbye.php new file mode 100644 index 0000000..e4936a6 --- /dev/null +++ b/h-source/Application/Views/My/goodbye.php @@ -0,0 +1,61 @@ +<?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/>. +?> + + <script> + + $(document).ready(function(){ + + $(".close_account_submit").click(function () { + if (window.confirm("Are you really sure?")) { + return true; + } + return false; + }); + + }); + + </script> + + <div id="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » <a href="<?php echo $this->baseUrl."/my/home/$lang/$token";?>">panel</a> » delete account + </div> + + <div class="delete_account_notice_box"> + After your account cancellation: + <ul> + <li>you won't be able to log-in anymore</li> + <li>all your data, except for your username, will be deleted from the database</li> + <li>your public profile won't be accessible anymore</li> + <li>you won't be able to get your old account back. If you want to register another time you have to choose a different username</li> + <li>your username will remain in the history of the devices (notebooks,video cards..) you have modified</li> + </ul> + </div> + + <div class="climb_form_ext_box"> + + <form action="<?php echo $this->currPage."/$lang".$this->viewStatus;?>" method="POST"> + I want to close my account: <input class="close_account_submit" type="submit" name="closeAction" value="confirm"> + </form> + + </div> + + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/My/panel.php b/h-source/Application/Views/My/panel.php new file mode 100644 index 0000000..d03d274 --- /dev/null +++ b/h-source/Application/Views/My/panel.php @@ -0,0 +1,35 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » panel + </div> + + <ul class='panelApplicationList'> + <li><a href="<?php echo Url::getRoot('users/meet/'.$lang.'/'.$username);?>">Watch your public profile</a></li> + <li><a href="<?php echo Url::getRoot('my/profile/'.$lang.'/'.$token);?>">Edit your profile</a></li> + <li><a href="<?php echo Url::getRoot('my/email/'.$lang.'/'.$token);?>">Change the e-mail address</a></li> + <li><a href="<?php echo Url::getRoot('my/password/'.$lang.'/'.$token);?>">Change the password</a></li> + <li><a href="<?php echo Url::getRoot('my/goodbye/'.$lang.'/'.$token);?>">Delete your account</a></li> + </ul> + + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/My/password.php b/h-source/Application/Views/My/password.php new file mode 100644 index 0000000..1644b88 --- /dev/null +++ b/h-source/Application/Views/My/password.php @@ -0,0 +1,31 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » <a href="<?php echo $this->baseUrl."/my/home/$lang/$token";?>">panel</a> » password + </div> + + <?php echo $notice;?> + + <?php echo $form;?> + + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/My/profile.php b/h-source/Application/Views/My/profile.php new file mode 100644 index 0000000..b4f51ea --- /dev/null +++ b/h-source/Application/Views/My/profile.php @@ -0,0 +1,31 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » <a href="<?php echo $this->baseUrl."/my/home/$lang/$token";?>">panel</a> » profile + </div> + + <?php echo $notice;?> + + <?php echo $form;?> + + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/News/index.php b/h-source/Application/Views/News/index.php new file mode 100644 index 0000000..ce2b080 --- /dev/null +++ b/h-source/Application/Views/News/index.php @@ -0,0 +1,49 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » news + </div> + + <div class="news_external_box"> + <?php foreach ($table as $row) { ?> + <div class="news_item"> + <div class="news_item_title"> + <?php echo $row['news']['title'];?> + </div> + <div class="news_item_date"> + <?php echo smartDate($row['news']['creation_date']);?> + </div> + <div class="news_item_message"> + <?php echo decodeWikiText($row['news']['message']);?> + </div> + </div> + <?php } ?> + </div> + + <?php if ($recordNumber > 10) { ?> + <div class="history_page_list_news"> + <?php echo $pageList;?> + </div> + <?php } ?> + + </div> diff --git a/h-source/Application/Views/Notebooks/catalogue.php b/h-source/Application/Views/Notebooks/catalogue.php new file mode 100644 index 0000000..b4c24ce --- /dev/null +++ b/h-source/Application/Views/Notebooks/catalogue.php @@ -0,0 +1,80 @@ +<?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 class="viewall_popup_menu_box_external"> + <div class="viewall_popup_menu_box"> + <?php echo $popup;?> + </div> + <div class="viewall_popup_menu_status"> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['vendor']?></div> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['compatibility']?></div> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['comm_year']?></div> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['subtype']?></div> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['sort-by']?></div> + </div> + </div> + + <!--if no notebooks found--> + <?php if (strcmp($recordNumber,0) === 0) { ?> + <div class="viewall_no_items_found"> + <?php echo gtext("No notebooks found");?>.. + </div> + <?php } ?> + + <!--loop--> + <?php foreach ($table as $item) {?> + <div class="model_viewall"> + + <div class="notebook_model"> + <img align="top" class="catalogue_item_icon" src="<?php echo $this->baseUrl."/Public/Img/H2O/computer-laptop_22.png";?>"><span class="span_model_name"><?php echo gtext("model");?>: <b><?php echo $item['hardware']['model'];?></b></span> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("vendor");?>:</div> + <div class="inner_value"><?php echo $item['hardware']['vendor'];?></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("subtype (notebook or netbook)");?></div> + <div class="inner_value"><b><?php echo $item['hardware']['subtype'];?></b></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("year of commercialization");?>:</div> + <div class="inner_value"><b><?php echo $item['hardware']['comm_year'];?></b></div> + </div> + + <div class="notebook_compatibility"> + <div class="inner_label"><?php echo gtext("compatibility with free software");?>:</div> + <div class="inner_value"><?php echo $item['hardware']['compatibility'];?></div> + </div> + + <div class="notebook_view_link"> + <a href="<?php echo $this->baseUrl."/notebooks/view/$lang/".$item['hardware']['id_hard'].'/'.encodeUrl($item['hardware']['model']).$this->viewStatus;?>"><?php echo gtext("view the other specifications");?></a> + </div> + + </div> + <?php } ?> + + <?php if (strcmp($recordNumber,0) !== 0) { ?> + <div class="history_page_list"> + <?php echo gtext("page list");?>: <?php echo $pageList;?> + </div> + <?php } ?>
\ No newline at end of file diff --git a/h-source/Application/Views/Notebooks/form.php b/h-source/Application/Views/Notebooks/form.php new file mode 100644 index 0000000..0ef7d1b --- /dev/null +++ b/h-source/Application/Views/Notebooks/form.php @@ -0,0 +1,114 @@ +<?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/>. +?> + + <script> + + $(document).ready(function() { + + dist_list_helper(); + + $("#bb_code").markItUp(mySettings); + + }); + + </script> + + <?php echo $notice;?> + + <div class="notebooks_insert_form"> + <form action="<?php echo $this->baseUrl."/notebooks/".$this->action."/$lang/$token".$this->viewStatus;?>" method="POST"> + + <div class="edit_form"> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("vendor");?>:</div> + <?php echo Html_Form::select('vendor',$values['vendor'],Notebooks::$vendors,"select_entry");?> + <a href="<?php echo $this->baseUrl."/issues/viewall/$lang/1/$token";?>">Vendor not present?</a> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("model name");?>: <b>*</b></div> + <?php echo Html_Form::input('model',$values['model'],'input_entry');?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("subtype (notebook or netbook)");?>:</div> + <?php echo Html_Form::select('subtype',$values['subtype'],Notebooks::$subtypeSelect,"select_entry");?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("year of commercialization");?>:</div> + <?php echo Html_Form::select('comm_year',$values['comm_year'],Notebooks::$commYear,"select_entry");?> + </div> + + <div class="form_entry td_with_distribution_checkboxes"> + <div class="entry_label"><?php echo gtext("GNU/Linux distribution used for the test");?>: <b>*</b></div> + <?php echo Html_Form::input('distribution',$values['distribution'],'input_entry input_distribution');?> + <?php echo Distributions::getFormHtml();?> + </div> + + <div class="form_entry hidden_x_explorer"> + <div class="entry_label"><?php echo gtext("compatibility with free software");?>:</div> + <?php echo Html_Form::select('compatibility',$values['compatibility'],Notebooks::$compatibility,"select_entry");?> + <a class="open_help_window" title="compatibility help page" target="blank" href="<?php echo $this->baseUrl."/help/index/$lang#notebook-compatibility";?>"><img class="top_left_images_help" src="<?php echo $this->baseUrl;?>/Public/Img/Acun/help_hint.png"></a> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("tested with the following kernel libre");?>:</div> + <?php echo Html_Form::input('kernel',$values['kernel'],'input_entry');?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("video card model");?>:</div> + <?php echo Html_Form::input('video_card_type',$values['video_card_type'],'input_entry');?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("does the video card work?");?></div> + <?php echo Html_Form::select('video_card_works',$values['video_card_works'],Notebooks::$videoSelect,"select_entry");?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("wifi model");?>:</div> + <?php echo Html_Form::input('wifi_type',$values['wifi_type'],'input_entry');?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("does the wifi card work?");?></div> + <?php echo Html_Form::select('wifi_works',$values['wifi_works'],Notebooks::$wifiSelect,"select_entry");?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("Description: (write here all the useful information)");?><br /><a href="<?php echo $this->baseUrl."/help/index/$lang#wiki-syntax";?>"><?php echo gtext("discover all the wiki tags");?></a></div> + <?php echo Html_Form::textarea('description',$values['description'],'textarea_entry','bb_code');?> + </div> + + <?php echo $hiddenInput;?> + + <input type="submit" name="<?php echo $submitName;?>" value="Save"> + + <div class="mandatory_fields_notice"> + <?php echo gtext("Fields marked with <b>*</b> are mandatory");?> + </div> + + </div> + + </form> + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/Notebooks/page.php b/h-source/Application/Views/Notebooks/page.php new file mode 100644 index 0000000..0a29b3d --- /dev/null +++ b/h-source/Application/Views/Notebooks/page.php @@ -0,0 +1,92 @@ +<?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/>. +?> + + <?php if (strcmp($isDeleted,'no') === 0) { ?> + + <?php + $tableName = (strcmp($this->action,'view') === 0) ? 'hardware' : 'revisions'; + ?> + + <?php foreach ($table as $item) { ?> + <div class="notebooks_viewall"> + + <!--if revision--> + <?php if (strcmp($this->action,'revision') === 0) { ?> + <div class="revision_alert"> + This is an old revision of this page, as edited by <b><?php echo getLinkToUser($u->getUser($updated_by));?></b> at <b><?php echo smartDate($update_date); ?></b>. It may differ significantly from the <a href="<?php echo $this->baseUrl."/notebooks/view/$lang/$id_hard/".$name.$this->viewStatus;?>">current revision</a>. + </div> + <?php } ?> + + <div class="notebook_model"> + <img align="top" class="catalogue_item_icon" src="<?php echo $this->baseUrl."/Public/Img/H2O/computer-laptop_22.png";?>"> <span class="span_model_name"><?php echo gtext("model");?>: <b><?php echo $item[$tableName]['model'];?></b><span class="model_id">(<?php echo gtext("model id");?>: <?php echo $id_hard;?>)</span></span> + <?php if (strcmp($islogged,'yes') === 0 and strcmp($this->action,'view') === 0) { ?> + <span class="ask_for_removal_class"><a class="ask_for_removal_class_link" href="<?php echo $this->baseUrl;?>">ask for removal</a></span> + <?php } ?> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("vendor");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['vendor'];?></b></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("subtype (notebook or netbook)");?></div> + <div class="inner_value"><b><?php echo $item[$tableName]['subtype'];?></b></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("year of commercialization");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['comm_year'];?></b></div> + </div> + + <div class="notebook_compatibility"> + <div class="inner_label"><?php echo gtext("compatibility with free software");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['compatibility'];?></b> <a class="open_help_window" target="blank" title="compatibility help page" href="<?php echo $this->baseUrl."/help/index/$lang#notebook-compatibility";?>"><img class="top_left_images_help" src="<?php echo $this->baseUrl;?>/Public/Img/Acun/help_hint.png"></a></div> + </div> + + <div class="model_tested_on"> + <div class="inner_label"><?php echo gtext("tested on");?>:</div> + <div class="inner_value"><b><?php echo Distributions::getName($item[$tableName]['distribution']);?></b></div> + </div> + + <div class="notebook_kernel"> + <div class="inner_label"><?php echo gtext("tested with the following kernel libre");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['kernel'];?></b></div> + </div> + + <div class="notebook_kernel"> + <div class="inner_label"><?php echo gtext("video card model");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['video_card_type'];?></b> (<?php echo Notebooks::$videoReverse[$item[$tableName]['video_card_works']];?>)</div> + </div> + + <div class="notebook_kernel"> + <div class="inner_label"><?php echo gtext("wifi model");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['wifi_type'];?></b> (<?php echo Notebooks::$wifiReverse[$item[$tableName]['wifi_works']];?>)</div> + </div> + + <div class="notebook_description"> + <div class="notebook_description_label"><?php echo gtext("Description");?>:</div> + <div class="notebook_description_value"><?php echo decodeWikiText($item[$tableName]['description']);?></div> + </div> + + </div> + <?php } ?> + + <?php } ?>
\ No newline at end of file diff --git a/h-source/Application/Views/Printers/catalogue.php b/h-source/Application/Views/Printers/catalogue.php new file mode 100644 index 0000000..bf790f0 --- /dev/null +++ b/h-source/Application/Views/Printers/catalogue.php @@ -0,0 +1,80 @@ +<?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 class="viewall_popup_menu_box_external"> + <div class="viewall_popup_menu_box"> + <?php echo $popup;?> + </div> + <div class="viewall_popup_menu_status"> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['vendor']?></div> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['compatibility']?></div> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['comm_year']?></div> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['interface']?></div> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['sort-by']?></div> + </div> + </div> + + <!--if no notebooks found--> + <?php if (strcmp($recordNumber,0) === 0) { ?> + <div class="viewall_no_items_found"> + <?php echo gtext("No printers found");?>.. + </div> + <?php } ?> + + <!--loop--> + <?php foreach ($table as $item) {?> + <div class="model_viewall"> + + <div class="notebook_model"> + <img align="top" class="catalogue_item_icon" src="<?php echo $this->baseUrl."/Public/Img/H2O/printer_22.png";?>"> <span class="span_model_name"><?php echo gtext("model");?>: <b><?php echo $item['hardware']['model'];?></b></span> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("vendor");?>:</div> + <div class="inner_value"><?php echo $item['hardware']['vendor'];?></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("year of commercialization");?>:</div> + <div class="inner_value"><b><?php echo $item['hardware']['comm_year'];?></b></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("interface");?>:</div> + <div class="inner_value"><b><?php echo $item['hardware']['interface'];?></b></div> + </div> + + <div class="notebook_compatibility"> + <div class="inner_label"><?php echo gtext("compatibility with free software");?>:</div> + <div class="inner_value"><?php echo $item['hardware']['compatibility'];?></div> + </div> + + <div class="notebook_view_link"> + <a href="<?php echo $this->baseUrl."/".$this->controller."/view/$lang/".$item['hardware']['id_hard'].'/'.encodeUrl($item['hardware']['model']).$this->viewStatus;?>"><?php echo gtext("view the other specifications");?>..</a> + </div> + + </div> + <?php } ?> + + <?php if (strcmp($recordNumber,0) !== 0) { ?> + <div class="history_page_list"> + <?php echo gtext("page list");?>: <?php echo $pageList;?> + </div> + <?php } ?>
\ No newline at end of file diff --git a/h-source/Application/Views/Printers/form.php b/h-source/Application/Views/Printers/form.php new file mode 100644 index 0000000..b6a71a6 --- /dev/null +++ b/h-source/Application/Views/Printers/form.php @@ -0,0 +1,104 @@ +<?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/>. +?> + + <script> + + $(document).ready(function() { + + dist_list_helper(); + + $("#bb_code").markItUp(mySettings); + + }); + + </script> + + <?php echo $notice;?> + + <div class="notebooks_insert_form"> + <form action="<?php echo $this->baseUrl."/".$this->controller."/".$this->action."/$lang/$token".$this->viewStatus;?>" method="POST"> + + <div class="edit_form"> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("vendor");?>:</div> + <?php echo Html_Form::select('vendor',$values['vendor'],Printer::$vendors,"select_entry");?> + <a href="<?php echo $this->baseUrl."/issues/viewall/$lang/1/$token";?>">Vendor not present?</a> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("model name");?>: <b>*</b></div> + <?php echo Html_Form::input('model',$values['model'],'input_entry');?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("VendorID:ProductID code of the device");?>:</div> + <?php echo Html_Form::input('pci_id',$values['pci_id'],'input_entry');?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("year of commercialization");?></div> + <?php echo Html_Form::select('comm_year',$values['comm_year'],Printer::$commYear,"select_entry");?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("interface");?> (<?php echo gtext("set not-specified if not sure");?>)</div> + <?php echo Html_Form::select('interface',$values['interface'],Printer::$interface,"select_entry");?> + </div> + + <div class="form_entry td_with_distribution_checkboxes"> + <div class="entry_label"><?php echo gtext("GNU/Linux distribution used for the test");?>: <b>*</b></div> + <?php echo Html_Form::input('distribution',$values['distribution'],'input_entry input_distribution');?> + <?php echo Distributions::getFormHtml();?> + </div> + + <div class="form_entry hidden_x_explorer"> + <div class="entry_label"><?php echo gtext("compatibility with free software");?>:</div> + <?php echo Html_Form::select('compatibility',$values['compatibility'],Printer::$compatibility,"select_entry");?> + <a class="open_help_window" title="compatibility help page" target="blank" href="<?php echo $this->baseUrl."/help/index/$lang#printer-compatibility";?>"><img class="top_left_images_help" src="<?php echo $this->baseUrl;?>/Public/Img/Acun/help_hint.png"></a> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("tested with the following kernel libre");?>:</div> + <?php echo Html_Form::input('kernel',$values['kernel'],'input_entry');?> + </div> + + <div class="form_entry"> + <div class="entry_label hidden_x_explorer"><?php echo gtext("free driver used");?> (example: cups-1.4.4) (<?php echo gtext("see the help page or leave blank if you are not sure");?>):</div> + <?php echo Html_Form::input('driver',$values['driver'],'input_entry');?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("Description: (write here all the useful information)");?><br /><a href="<?php echo $this->baseUrl."/help/index/$lang#wiki-syntax";?>"><?php echo gtext("discover all the wiki tags");?></a></div> + <?php echo Html_Form::textarea('description',$values['description'],'textarea_entry','bb_code');?> + </div> + + <?php echo $hiddenInput;?> + + <input type="submit" name="<?php echo $submitName;?>" value="Save"> + + <div class="mandatory_fields_notice"> + <?php echo gtext("Fields marked with <b>*</b> are mandatory");?> + </div> + + </div> + + </form> + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/Printers/page.php b/h-source/Application/Views/Printers/page.php new file mode 100644 index 0000000..100cfde --- /dev/null +++ b/h-source/Application/Views/Printers/page.php @@ -0,0 +1,92 @@ +<?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/>. +?> + + <?php if (strcmp($isDeleted,'no') === 0) { ?> + + <?php + $tableName = (strcmp($this->action,'view') === 0) ? 'hardware' : 'revisions'; + ?> + + <?php foreach ($table as $item) { ?> + <div class="notebooks_viewall"> + + <!--if revision--> + <?php if (strcmp($this->action,'revision') === 0) { ?> + <div class="revision_alert"> + This is an old revision of this page, as edited by <b><?php echo getLinkToUser($u->getUser($updated_by));?></b> at <b><?php echo smartDate($update_date); ?></b>. It may differ significantly from the <a href="<?php echo $this->baseUrl."/".$this->controller."/view/$lang/$id_hard/".$name.$this->viewStatus;?>">current revision</a>. + </div> + <?php } ?> + + <div class="notebook_model"> + <img align="top" class="catalogue_item_icon" src="<?php echo $this->baseUrl."/Public/Img/H2O/printer_22.png";?>"> <span class="span_model_name"><?php echo gtext("model");?>: <b><?php echo $item[$tableName]['model'];?></b><span class="model_id">(<?php echo gtext("model id");?>: <?php echo $id_hard;?>)</span></span> + <?php if (strcmp($islogged,'yes') === 0 and strcmp($this->action,'view') === 0) { ?> + <span class="ask_for_removal_class"><a class="ask_for_removal_class_link" href="<?php echo $this->baseUrl;?>">ask for removal</a></span> + <?php } ?> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("vendor");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['vendor'];?></b></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("VendorID:ProductID code of the device");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['pci_id'];?></b></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("year of commercialization");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['comm_year'];?></b></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("interface");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['interface'];?></b></div> + </div> + + <div class="model_tested_on"> + <div class="inner_label"><?php echo gtext("tested on");?>:</div> + <div class="inner_value"><b><?php echo Distributions::getName($item[$tableName]['distribution']);?></b></div> + </div> + + <div class="notebook_compatibility"> + <div class="inner_label"><?php echo gtext("compatibility with free software");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['compatibility'];?></b> <a class="open_help_window" target="blank" title="compatibility help page" href="<?php echo $this->baseUrl."/help/index/$lang#printer-compatibility";?>"><img class="top_left_images_help" src="<?php echo $this->baseUrl;?>/Public/Img/Acun/help_hint.png"></a></div> + </div> + + <div class="notebook_kernel"> + <div class="inner_label"><?php echo gtext("tested with the following kernel libre");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['kernel'];?></b></div> + </div> + + <div class="notebook_kernel"> + <div class="inner_label"><?php echo gtext("free driver used");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['driver'];?></b></div> + </div> + + <div class="notebook_description"> + <div class="notebook_description_label"><?php echo gtext("Description");?>:</div> + <div class="notebook_description_value"><?php echo decodeWikiText($item[$tableName]['description']);?></div> + </div> + + </div> + <?php } ?> + + <?php } ?>
\ No newline at end of file diff --git a/h-source/Application/Views/Project/index.php b/h-source/Application/Views/Project/index.php new file mode 100644 index 0000000..7b8140c --- /dev/null +++ b/h-source/Application/Views/Project/index.php @@ -0,0 +1,29 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » h-project + </div> + + <p>write in the file <b>Application/Views/Project/index.php</b> your project information</p> + + </div> diff --git a/h-source/Application/Views/Project/index_es.php b/h-source/Application/Views/Project/index_es.php new file mode 100644 index 0000000..f934b0f --- /dev/null +++ b/h-source/Application/Views/Project/index_es.php @@ -0,0 +1,29 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » h-project + </div> + + + + </div> diff --git a/h-source/Application/Views/Project/index_it.php b/h-source/Application/Views/Project/index_it.php new file mode 100644 index 0000000..f934b0f --- /dev/null +++ b/h-source/Application/Views/Project/index_it.php @@ -0,0 +1,29 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » h-project + </div> + + + + </div> diff --git a/h-source/Application/Views/Scanners/catalogue.php b/h-source/Application/Views/Scanners/catalogue.php new file mode 100644 index 0000000..c988371 --- /dev/null +++ b/h-source/Application/Views/Scanners/catalogue.php @@ -0,0 +1,80 @@ +<?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 class="viewall_popup_menu_box_external"> + <div class="viewall_popup_menu_box"> + <?php echo $popup;?> + </div> + <div class="viewall_popup_menu_status"> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['vendor']?></div> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['compatibility']?></div> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['comm_year']?></div> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['interface']?></div> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['sort-by']?></div> + </div> + </div> + + <!--if no notebooks found--> + <?php if (strcmp($recordNumber,0) === 0) { ?> + <div class="viewall_no_items_found"> + <?php echo gtext("No scanners found");?>... + </div> + <?php } ?> + + <!--loop--> + <?php foreach ($table as $item) {?> + <div class="model_viewall"> + + <div class="notebook_model"> + <img align="top" class="catalogue_item_icon" src="<?php echo $this->baseUrl."/Public/Img/H2O/scanner_22.png";?>"> <span class="span_model_name"><?php echo gtext("model");?>: <b><?php echo $item['hardware']['model'];?></b></span> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("vendor");?>:</div> + <div class="inner_value"><?php echo $item['hardware']['vendor'];?></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("year of commercialization");?>:</div> + <div class="inner_value"><b><?php echo $item['hardware']['comm_year'];?></b></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("interface");?>:</div> + <div class="inner_value"><b><?php echo $item['hardware']['interface'];?></b></div> + </div> + + <div class="notebook_compatibility"> + <div class="inner_label"><?php echo gtext("compatibility with free software");?>:</div> + <div class="inner_value"><?php echo $item['hardware']['compatibility'];?></div> + </div> + + <div class="notebook_view_link"> + <a href="<?php echo $this->baseUrl."/".$this->controller."/view/$lang/".$item['hardware']['id_hard'].'/'.encodeUrl($item['hardware']['model']).$this->viewStatus;?>"><?php echo gtext("view the other specifications");?>..</a> + </div> + + </div> + <?php } ?> + + <?php if (strcmp($recordNumber,0) !== 0) { ?> + <div class="history_page_list"> + <?php echo gtext("page list");?>: <?php echo $pageList;?> + </div> + <?php } ?>
\ No newline at end of file diff --git a/h-source/Application/Views/Scanners/form.php b/h-source/Application/Views/Scanners/form.php new file mode 100644 index 0000000..78f8bcb --- /dev/null +++ b/h-source/Application/Views/Scanners/form.php @@ -0,0 +1,104 @@ +<?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/>. +?> + + <script> + + $(document).ready(function() { + + dist_list_helper(); + + $("#bb_code").markItUp(mySettings); + + }); + + </script> + + <?php echo $notice;?> + + <div class="notebooks_insert_form"> + <form action="<?php echo $this->baseUrl."/".$this->controller."/".$this->action."/$lang/$token".$this->viewStatus;?>" method="POST"> + + <div class="edit_form"> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("vendor");?>:</div> + <?php echo Html_Form::select('vendor',$values['vendor'],Printer::$vendors,"select_entry");?> + <a href="<?php echo $this->baseUrl."/issues/viewall/$lang/1/$token";?>">Vendor not present?</a> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("model name");?>: <b>*</b></div> + <?php echo Html_Form::input('model',$values['model'],'input_entry');?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("VendorID:ProductID code of the device");?>:</div> + <?php echo Html_Form::input('pci_id',$values['pci_id'],'input_entry');?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("year of commercialization");?></div> + <?php echo Html_Form::select('comm_year',$values['comm_year'],Printer::$commYear,"select_entry");?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("interface");?> (<?php echo gtext("set not-specified if not sure");?>)</div> + <?php echo Html_Form::select('interface',$values['interface'],Printer::$interface,"select_entry");?> + </div> + + <div class="form_entry td_with_distribution_checkboxes"> + <div class="entry_label"><?php echo gtext("GNU/Linux distribution used for the test");?>: <b>*</b></div> + <?php echo Html_Form::input('distribution',$values['distribution'],'input_entry input_distribution');?> + <?php echo Distributions::getFormHtml();?> + </div> + + <div class="form_entry hidden_x_explorer"> + <div class="entry_label"><?php echo gtext("compatibility with free software");?>:</div> + <?php echo Html_Form::select('compatibility',$values['compatibility'],Printer::$compatibility,"select_entry");?> + <a class="open_help_window" title="compatibility help page" target="blank" href="<?php echo $this->baseUrl."/help/index/$lang#scanner-compatibility";?>"><img class="top_left_images_help" src="<?php echo $this->baseUrl;?>/Public/Img/Acun/help_hint.png"></a> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("tested with the following kernel libre");?>:</div> + <?php echo Html_Form::input('kernel',$values['kernel'],'input_entry');?> + </div> + + <div class="form_entry"> + <div class="entry_label hidden_x_explorer"><?php echo gtext("free driver used");?> (<?php echo gtext("see the help page or leave blank if you are not sure");?>):</div> + <?php echo Html_Form::input('driver',$values['driver'],'input_entry');?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("Description: (write here all the useful information)");?><br /><a href="<?php echo $this->baseUrl."/help/index/$lang#wiki-syntax";?>"><?php echo gtext("discover all the wiki tags");?></a></div> + <?php echo Html_Form::textarea('description',$values['description'],'textarea_entry','bb_code');?> + </div> + + <?php echo $hiddenInput;?> + + <input type="submit" name="<?php echo $submitName;?>" value="Save"> + + <div class="mandatory_fields_notice"> + <?php echo gtext("Fields marked with <b>*</b> are mandatory");?> + </div> + + </div> + + </form> + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/Scanners/page.php b/h-source/Application/Views/Scanners/page.php new file mode 100644 index 0000000..411fe6d --- /dev/null +++ b/h-source/Application/Views/Scanners/page.php @@ -0,0 +1,92 @@ +<?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/>. +?> + + <?php if (strcmp($isDeleted,'no') === 0) { ?> + + <?php + $tableName = (strcmp($this->action,'view') === 0) ? 'hardware' : 'revisions'; + ?> + + <?php foreach ($table as $item) { ?> + <div class="notebooks_viewall"> + + <!--if revision--> + <?php if (strcmp($this->action,'revision') === 0) { ?> + <div class="revision_alert"> + This is an old revision of this page, as edited by <b><?php echo getLinkToUser($u->getUser($updated_by));?></b> at <b><?php echo smartDate($update_date); ?></b>. It may differ significantly from the <a href="<?php echo $this->baseUrl."/".$this->controller."/view/$lang/$id_hard/".$name.$this->viewStatus;?>">current revision</a>. + </div> + <?php } ?> + + <div class="notebook_model"> + <img align="top" class="catalogue_item_icon" src="<?php echo $this->baseUrl."/Public/Img/H2O/scanner_22.png";?>"> <span class="span_model_name"><?php echo gtext("model");?>: <b><?php echo $item[$tableName]['model'];?></b><span class="model_id">(<?php echo gtext("model id");?>: <?php echo $id_hard;?>)</span></span> + <?php if (strcmp($islogged,'yes') === 0 and strcmp($this->action,'view') === 0) { ?> + <span class="ask_for_removal_class"><a class="ask_for_removal_class_link" href="<?php echo $this->baseUrl;?>">ask for removal</a></span> + <?php } ?> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("vendor");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['vendor'];?></b></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("VendorID:ProductID code of the device");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['pci_id'];?></b></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("year of commercialization");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['comm_year'];?></b></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("interface");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['interface'];?></b></div> + </div> + + <div class="model_tested_on"> + <div class="inner_label"><?php echo gtext("tested on");?>:</div> + <div class="inner_value"><b><?php echo Distributions::getName($item[$tableName]['distribution']);?></b></div> + </div> + + <div class="notebook_compatibility"> + <div class="inner_label"><?php echo gtext("compatibility with free software");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['compatibility'];?></b> <a class="open_help_window" target="blank" title="compatibility help page" href="<?php echo $this->baseUrl."/help/index/$lang#scanner-compatibility";?>"><img class="top_left_images_help" src="<?php echo $this->baseUrl;?>/Public/Img/Acun/help_hint.png"></a></div> + </div> + + <div class="notebook_kernel"> + <div class="inner_label"><?php echo gtext("tested with the following kernel libre");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['kernel'];?></b></div> + </div> + + <div class="notebook_kernel"> + <div class="inner_label"><?php echo gtext("free driver used");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['driver'];?></b></div> + </div> + + <div class="notebook_description"> + <div class="notebook_description_label"><?php echo gtext("Description");?>:</div> + <div class="notebook_description_value"><?php echo decodeWikiText($item[$tableName]['description']);?></div> + </div> + + </div> + <?php } ?> + + <?php } ?>
\ No newline at end of file diff --git a/h-source/Application/Views/Search/form.php b/h-source/Application/Views/Search/form.php new file mode 100644 index 0000000..ab25d9e --- /dev/null +++ b/h-source/Application/Views/Search/form.php @@ -0,0 +1,72 @@ +<?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/>. +?> + + <script> + + $(document).ready(function() { + + $(".search_form table").append("<tr><td><input id=\"search_action_input\" type=\"submit\" name=\"action\" value=\"search\"></td></tr>"); + + $("#search_action_input").click(function(){ + + var s_type = $("#search_type_input").attr("value"); + var s_model = $("#search_model_input").attr("value"); + var s_action = $("#search_action_input").attr("value"); + + var s_url = "1/" + s_action + "/" + s_type + "/" + s_model; + + location.href="<?php echo $this->baseUrl."/search/results/$lang/";?>"+s_url; + return false; + }); + + }); + + </script> + + <div id="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » search form + </div> + + <div class="notebook_view_title"> + Search one device in the archive: + </div> + + <div class="search_form"> + + + <form method="GET"> + <table> + <tr> + <td>hardware type:</td> + <td><?php echo Html_Form::select('type','',MyStrings::getTypes(),"select_entry","search_type_input");?></td> + </tr> + <tr> + <td>the model name contains:</td> + <td><?php echo Html_Form::input('model','','input_entry_search',"search_model_input");?></td> + </tr> + </table> + </form> + + + </div> + + </div> diff --git a/h-source/Application/Views/Search/form_es.php b/h-source/Application/Views/Search/form_es.php new file mode 100644 index 0000000..f58a125 --- /dev/null +++ b/h-source/Application/Views/Search/form_es.php @@ -0,0 +1,72 @@ +<?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/>. +?> + + <script> + + $(document).ready(function() { + + $(".search_form table").append("<tr><td><input id=\"search_action_input\" type=\"submit\" name=\"action\" value=\"search\"></td></tr>"); + + $("#search_action_input").click(function(){ + + var s_type = $("#search_type_input").attr("value"); + var s_model = $("#search_model_input").attr("value"); + var s_action = $("#search_action_input").attr("value"); + + var s_url = "1/" + s_action + "/" + s_type + "/" + s_model; + + location.href="<?php echo $this->baseUrl."/search/results/$lang/";?>"+s_url; + return false; + }); + + }); + + </script> + + <div id="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » search form + </div> + + <div class="notebook_view_title"> + Busque un dispositivo en el archivo:: + </div> + + <div class="search_form"> + + + <form method="GET"> + <table> + <tr> + <td>tipo de hardware:</td> + <td><?php echo Html_Form::select('type','',MyStrings::getTypes(),"select_entry","search_type_input");?></td> + </tr> + <tr> + <td>el nombre del modelo contiene:</td> + <td><?php echo Html_Form::input('model','','input_entry_search',"search_model_input");?></td> + </tr> + </table> + </form> + + + </div> + + </div> diff --git a/h-source/Application/Views/Search/form_it.php b/h-source/Application/Views/Search/form_it.php new file mode 100644 index 0000000..4d89477 --- /dev/null +++ b/h-source/Application/Views/Search/form_it.php @@ -0,0 +1,72 @@ +<?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/>. +?> + + <script> + + $(document).ready(function() { + + $(".search_form table").append("<tr><td><input id=\"search_action_input\" type=\"submit\" name=\"action\" value=\"search\"></td></tr>"); + + $("#search_action_input").click(function(){ + + var s_type = $("#search_type_input").attr("value"); + var s_model = $("#search_model_input").attr("value"); + var s_action = $("#search_action_input").attr("value"); + + var s_url = "1/" + s_action + "/" + s_type + "/" + s_model; + + location.href="<?php echo $this->baseUrl."/search/results/$lang/";?>"+s_url; + return false; + }); + + }); + + </script> + + <div id="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » search form + </div> + + <div class="notebook_view_title"> + Cerca un dispositivo nell'archivio: + </div> + + <div class="search_form"> + + + <form method="GET"> + <table> + <tr> + <td>tipo di hardware:</td> + <td><?php echo Html_Form::select('type','',MyStrings::getTypes(),"select_entry","search_type_input");?></td> + </tr> + <tr> + <td>il nome del modello contiene:</td> + <td><?php echo Html_Form::input('model','','input_entry_search',"search_model_input");?></td> + </tr> + </table> + </form> + + + </div> + + </div> diff --git a/h-source/Application/Views/Search/results.php b/h-source/Application/Views/Search/results.php new file mode 100644 index 0000000..48c4f8b --- /dev/null +++ b/h-source/Application/Views/Search/results.php @@ -0,0 +1,66 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » <a href="<?php echo $this->baseUrl."/search/form/$lang";?>">search form</a> » results + </div> + + <div class="notebook_view_title"> + <?php echo gtext("Results of the search");?>: + </div> + + <div class="search_form"> + <?php + $count = 0; + foreach ($table as $row) { + $count++; + ?> + + <div class="search_result_item"> + <div> + <?php echo gtext("model name");?>: <b><a href="<?php echo $this->baseUrl."/".MyStrings::$reverse[$row['hardware']['type']]."/view/$lang/".$row['hardware']['id_hard']."/".$row['hardware']['model'];?>"><?php echo $row['hardware']['model'];?></a></b> + </div> + <div> + <?php echo gtext("model type");?>: <b><?php echo $row['hardware']['type'];?></b> + </div> + <div> + <?php echo gtext("year of commercialization");?>: <b><?php echo $row['hardware']['comm_year'];?></b> + </div> + </div> + + <?php } ?> + + <?php if ($count === 0) { ?> + <div class="search_result_item"> + <?php echo gtext("No devices found");?>.. + </div> + <?php } ?> + + </div> + + <?php if (strcmp($recordNumber,0) !== 0) { ?> + <div class="history_page_list"> + <?php echo gtext("page list");?>: <?php echo $pageList;?> + </div> + <?php } ?> + + </div> diff --git a/h-source/Application/Views/Users/add.php b/h-source/Application/Views/Users/add.php new file mode 100755 index 0000000..0b8aabc --- /dev/null +++ b/h-source/Application/Views/Users/add.php @@ -0,0 +1,70 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » create account + </div> + + <div class="new_account_title"> + Create new account + </div> + + <?php echo $notice;?> + + <form class='formClass' action='<?php echo $this->baseUrl."/users/add/$lang";?>' method='POST'> + + <div class='formEntry'> + <span class='entryLabel'>choose the username:</span> + <?php echo Html_Form::input('username',$values['username']);?> + </div> + + <div class='formEntry'> + <span class='entryLabel'>your e-mail address (necessary to confirm the registration):</span> + <?php echo Html_Form::input('e_mail',$values['e_mail']);?> + </div> + + <div class='formEntry'> + <span class='entryLabel'>choose the password:</span> + <?php echo Html_Form::password('password',$values['password']);?> + </div> + + <div class='formEntry'> + <span class='entryLabel'>confirm your password:</span> + <?php echo Html_Form::password('confirmation',$values['confirmation']);?> + </div> + + <div class="captcha_box"> + <img src="<?php echo $this->baseUrl?>/image/captcha"> + </div> + + <div class='formEntry'> + <span class='entryLabel'>write the code above:</span> + <input type="input" name="captcha" value=""> + </div> + + <div class='inputEntry'> + <input id='insertAction' type='submit' name='insertAction' value='create account'> + </div> + + </form> + + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/Users/change.php b/h-source/Application/Views/Users/change.php new file mode 100644 index 0000000..623d647 --- /dev/null +++ b/h-source/Application/Views/Users/change.php @@ -0,0 +1,28 @@ +<?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="left"> + + <div class="confirm_notice"> + <p>The link has expired</p> + <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p> + </div> + + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/Users/confirmation.php b/h-source/Application/Views/Users/confirmation.php new file mode 100644 index 0000000..f1a2074 --- /dev/null +++ b/h-source/Application/Views/Users/confirmation.php @@ -0,0 +1,42 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » confirmation + </div> + + <?php if ($status_confirm) { ?> + + <div class="confirm_notice"> + <p>The account has been confirmed successfully!</p> + <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p> + </div> + + <?php } else { ?> + + <div class="confirm_notice"> + <p>The confirmation link has expired</p> + <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p> + </div> + + <?php } ?> + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/Users/contributions.php b/h-source/Application/Views/Users/contributions.php new file mode 100644 index 0000000..2d5995a --- /dev/null +++ b/h-source/Application/Views/Users/contributions.php @@ -0,0 +1,50 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » <a href="<?php echo $this->baseUrl."/users/meet/$lang/$meet_username";?>">meet <b><?php echo $meet_username;?></b></a> » contributions + </div> + + <div class="contrib_explain_box"> + contributions of <?php echo $meet_username;?> + </div> + + <div class="external_users_contrib"> + <?php foreach ($table as $item) {?> + <div class="users_contrib_item"> + + <div class="contribution_item"> + <?php + + $name = $item['hardware']['model']; + $type = $item['hardware']['type']; + $id_hard = $item['hardware']['id_hard']; + + ?> + <?php echo $type;?> <a href="<?php echo $this->baseUrl."/".MyStrings::$reverse[$type]."/view/$lang/$id_hard/".encodeUrl($name);?>"><?php echo $name;?></a> + </div> + + </div> + <?php } ?> + </div> + + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/Users/forgot.php b/h-source/Application/Views/Users/forgot.php new file mode 100644 index 0000000..a4c7d20 --- /dev/null +++ b/h-source/Application/Views/Users/forgot.php @@ -0,0 +1,55 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » request new password + </div> + + <div class="new_account_title"> + Request new password + </div> + + <?php echo $notice;?> + + <form class='formClass' action='<?php echo $this->currPage."/$lang";?>' method='POST'> + + <div class='formEntry'> + <span class='entryLabel'>write your username:</span> + <input type="input" name="username" value=""> + </div> + + <div class="captcha_box"> + <img src="<?php echo $this->baseUrl?>/image/captcha"> + </div> + + <div class='formEntry'> + <span class='entryLabel'>write the code above:</span> + <input type="input" name="captcha" value=""> + </div> + + <div class='inputEntry'> + <input id='insertAction' type='submit' name='forgotAction' value='send e-mail'> + </div> + + </form> + + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/Users/login.php b/h-source/Application/Views/Users/login.php new file mode 100755 index 0000000..5998751 --- /dev/null +++ b/h-source/Application/Views/Users/login.php @@ -0,0 +1,57 @@ +<?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/>. +?> + + <?php if ( strcmp($updating_flag,'no') === 0 ) { ?> + + <?php if (isset($flag)) { ?> + <div class="login_note"> + Sorry.. you have to be logged if you want to insert a new device in the archive or modify an existing one.. + </div> + <?php } ?> + + <?php echo $notice; ?> + + <div class="login_box"> + <form action = '<?php echo $action;?>' method = 'POST'> + + <table> + <tr> + <td>Username</td> + <td><input class="login_username_input" type='text' name='username'></td> + </tr> + <tr> + <td>Password</td> + <td><input class="login_username_input" type='password' name='password'></td> + </tr> + <tr> + <td><input type = 'submit' value = 'login'></td> + </tr> + </table> + + </form> + </div> + + <?php } else { ?> + + <div class="login_note"> + Sorry, we are updating the website... it is no possible to log-in, register new accounts or request a new password. You will be able to log-in or create a new account as soon as possible. Thanks! + </div> + + <?php } ?> diff --git a/h-source/Application/Views/Users/logout.php b/h-source/Application/Views/Users/logout.php new file mode 100755 index 0000000..39b5873 --- /dev/null +++ b/h-source/Application/Views/Users/logout.php @@ -0,0 +1,25 @@ +<?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 class="logout_box"> + <div><?php echo $notice;?></div> + + <div><a href="<?php echo $this->baseUrl."/users/login/$lang";?>">login</a></div> + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/Users/meet.php b/h-source/Application/Views/Users/meet.php new file mode 100644 index 0000000..ee0c708 --- /dev/null +++ b/h-source/Application/Views/Users/meet.php @@ -0,0 +1,89 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » meet <b><?php echo $meet_username;?></b> + </div> + + <div class="meet_contrib_link"> + <u>Public profile of <?php echo $meet_username;?></u>. See all <a href="<?php echo $this->baseUrl."/users/contributions/$lang/$meet_username";?>"><b><?php echo $meet_username;?></b> contributions</a> + </div> + + <?php foreach ($table as $item) {?> + <div class="users_meet_box"> + + <div class="meet_item"> + <div class="meet_item_inner">Username:</div> <?php echo $item['regusers']['username'];?> + </div> + + <?php if (strcmp($item['profile']['website'],'') !== 0) { ?> + <div class="meet_item"> + <div class="meet_item_inner">My website:</div> <?php echo vitalizeUrl($item['profile']['website']);?> + </div> + <?php } ?> + + <?php if (strcmp($item['profile']['real_name'],'') !== 0) { ?> + <div class="meet_item"> + <div class="meet_item_inner">My real name is:</div> <?php echo $item['profile']['real_name'];?> + </div> + <?php } ?> + + <?php if (strcmp($item['profile']['publish_mail'],'yes') === 0) { ?> + <div class="meet_item"> + <div class="meet_item_inner">My e-mail address:</div> <?php echo $item['regusers']['e_mail'];?> + </div> + <?php } ?> + + <?php if (strcmp($item['profile']['where_you_are'],'') !== 0) { ?> + <div class="meet_item"> + <div class="meet_item_inner">I'm from:</div> <?php echo $item['profile']['where_you_are'];?> + </div> + <?php } ?> + + <?php if (strcmp($item['profile']['birth_date'],'') !== 0) { ?> + <div class="meet_item"> + <div class="meet_item_inner">Birthdate:</div> <?php echo $item['profile']['birth_date'];?> + </div> + <?php } ?> + + <?php if (strcmp($item['profile']['fav_distro'],'') !== 0) { ?> + <div class="meet_item"> + <div class="meet_item_inner">My favourite distro is:</div> <?php echo $item['profile']['fav_distro'];?> + </div> + <?php } ?> + + <?php if (strcmp($item['profile']['projects'],'') !== 0) { ?> + <div class="meet_item"> + <div class="meet_item_inner">Projects I'm working on:</div> <div><?php echo nl2br($item['profile']['projects']);?></div> + </div> + <?php } ?> + + <?php if (strcmp($item['profile']['description'],'') !== 0) { ?> + <div class="meet_item"> + <div class="meet_item_inner">My description:</div> <div><?php echo nl2br($item['profile']['description']);?></div> + </div> + <?php } ?> + + </div> + <?php } ?> + + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/Users/notice.php b/h-source/Application/Views/Users/notice.php new file mode 100644 index 0000000..d556363 --- /dev/null +++ b/h-source/Application/Views/Users/notice.php @@ -0,0 +1,94 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » notice + </div> + + <?php if ( isset($_SESSION['status']) ) { ?> + + <?php if ( strcmp($_SESSION['status'],'sent') === 0 ) { ?> + <div class="confirm_notice"> + <p>An e-mail has been sent to your mailbox.</p> + <p>If you have received no mail, then check inside the spam too</p> + <p>Click on the confirmation link in the e-mail in order to confirm the registration of the new account.</p> + <p>The confirmation link will expire in a hour.</p> + <p>If you don't want to confirm the account registration then wait one hour and your username and e-mail will be deleted from the database.</p> + <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p> + </div> + + <?php } else if (strcmp($_SESSION['status'],'regerror') === 0) { ?> + + <div class="confirm_notice"> + <p>Registration failed</p> + <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p> + </div> + + <?php } else if (strcmp($_SESSION['status'],'sent_new') === 0) { ?> + + <div class="confirm_notice"> + <p>An e-mail has been sent to your mailbox.</p> + <p>If you have received no mail, then check inside the spam too</p> + <p>Click on the confirmation link in the e-mail in order to change the password of your account.</p> + <p>The confirmation link will expire in a hour.</p> + <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p> + </div> + + <?php } else if (strcmp($_SESSION['status'],'sent_new_error') === 0) { ?> + + <div class="confirm_notice"> + <p>Registration failed</p> + <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p> + </div> + + <?php } else if (strcmp($_SESSION['status'],'sent_new_password') === 0) { ?> + + <div class="confirm_notice"> + <p>The new password has been sent to you by mail!</p> + <p>If you have received no mail, then check inside the spam too</p> + <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p> + </div> + + <?php } else if (strcmp($_SESSION['status'],'sent_new_password_error') === 0) { ?> + + <div class="confirm_notice"> + <p>Operation failed</p> + <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p> + </div> + + <?php } else if (strcmp($_SESSION['status'],'deleted') === 0) { ?> + + <div class="confirm_notice"> + <p>Your account has been successfully deleted</p> + <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p> + </div> + + <?php } ?> + + <?php } else { ?> + + <div class="confirm_notice"> + <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p> + </div> + + <?php } ?> + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/Videocards/catalogue.php b/h-source/Application/Views/Videocards/catalogue.php new file mode 100644 index 0000000..0fbe2be --- /dev/null +++ b/h-source/Application/Views/Videocards/catalogue.php @@ -0,0 +1,79 @@ +<?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 class="viewall_popup_menu_box_external"> + <div class="viewall_popup_menu_box"> + <?php echo $popup;?> + </div> + <div class="viewall_popup_menu_status"> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['vendor']?></div> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['comm_year']?></div> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['interface']?></div> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['sort-by']?></div> + </div> + </div> + + <!--if no notebooks found--> + <?php if (strcmp($recordNumber,0) === 0) { ?> + <div class="viewall_no_items_found"> + <?php echo gtext("No video cards found");?>.. + </div> + <?php } ?> + + <!--loop--> + <?php foreach ($table as $item) {?> + <div class="model_viewall"> + + <div class="notebook_model"> + <img align="top" class="catalogue_item_icon" src="<?php echo $this->baseUrl."/Public/Img/Crystal/1282042976_hardware.png";?>"> <span class="span_model_name"><?php echo gtext("model");?>: <b><?php echo $item['hardware']['model'];?></b></span> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("vendor");?>:</div> + <div class="inner_value"><?php echo $item['hardware']['vendor'];?></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("year of commercialization");?>:</div> + <div class="inner_value"><b><?php echo $item['hardware']['comm_year'];?></b></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("interface");?>:</div> + <div class="inner_value"><b><?php echo $item['hardware']['interface'];?></b></div> + </div> + + <div class="notebook_kernel"> + <div class="inner_label"><?php echo gtext("how does it work with free software?");?></div> + <div class="inner_value"><b><?php echo Videocard::$videoReverse[$item['hardware']['video_card_works']];?></b></div> + </div> + + <div class="notebook_view_link"> + <a href="<?php echo $this->baseUrl."/".$this->controller."/view/$lang/".$item['hardware']['id_hard'].'/'.encodeUrl($item['hardware']['model']).$this->viewStatus;?>"><?php echo gtext("view the other specifications");?>..</a> + </div> + + </div> + <?php } ?> + + <?php if (strcmp($recordNumber,0) !== 0) { ?> + <div class="history_page_list"> + <?php echo gtext("page list");?>: <?php echo $pageList;?> + </div> + <?php } ?>
\ No newline at end of file diff --git a/h-source/Application/Views/Videocards/form.php b/h-source/Application/Views/Videocards/form.php new file mode 100644 index 0000000..25f33b7 --- /dev/null +++ b/h-source/Application/Views/Videocards/form.php @@ -0,0 +1,98 @@ +<?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/>. +?> + + <script> + + $(document).ready(function() { + + dist_list_helper(); + + $("#bb_code").markItUp(mySettings); + + }); + + </script> + + <?php echo $notice;?> + + <div class="notebooks_insert_form"> + <form action="<?php echo $this->baseUrl."/".$this->controller."/".$this->action."/$lang/$token".$this->viewStatus;?>" method="POST"> + + <div class="edit_form"> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("vendor");?>:</div> + <?php echo Html_Form::select('vendor',$values['vendor'],Videocard::$vendors,"select_entry");?> + <a href="<?php echo $this->baseUrl."/issues/viewall/$lang/1/$token";?>">Vendor not present?</a> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("model name");?>: <b>*</b></div> + <?php echo Html_Form::input('model',$values['model'],'input_entry');?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("VendorID:ProductID code of the device");?>:</div> + <?php echo Html_Form::input('pci_id',$values['pci_id'],'input_entry');?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("year of commercialization");?></div> + <?php echo Html_Form::select('comm_year',$values['comm_year'],Notebooks::$commYear,"select_entry");?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("interface");?> (<?php echo gtext("set not-specified if not sure");?>)</div> + <?php echo Html_Form::select('interface',$values['interface'],Videocard::$interface,"select_entry");?> + </div> + + <div class="form_entry td_with_distribution_checkboxes"> + <div class="entry_label"><?php echo gtext("GNU/Linux distribution used for the test");?>: <b>*</b></div> + <?php echo Html_Form::input('distribution',$values['distribution'],'input_entry input_distribution');?> + <?php echo Distributions::getFormHtml();?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("tested with the following kernel libre");?>:</div> + <?php echo Html_Form::input('kernel',$values['kernel'],'input_entry');?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("how does it work with free software?");?></div> + <?php echo Html_Form::select('video_card_works',$values['video_card_works'],Videocard::$videoSelect,"select_entry hidden_x_explorer");?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("Description: (write here all the useful information)");?><br /><a href="<?php echo $this->baseUrl."/help/index/$lang#wiki-syntax";?>"><?php echo gtext("discover all the wiki tags");?></a></div> + <?php echo Html_Form::textarea('description',$values['description'],'textarea_entry','bb_code');?> + </div> + + <?php echo $hiddenInput;?> + + <input type="submit" name="<?php echo $submitName;?>" value="Save"> + + <div class="mandatory_fields_notice"> + <?php echo gtext("Fields marked with <b>*</b> are mandatory");?> + </div> + + </div> + + </form> + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/Videocards/page.php b/h-source/Application/Views/Videocards/page.php new file mode 100644 index 0000000..5ae071c --- /dev/null +++ b/h-source/Application/Views/Videocards/page.php @@ -0,0 +1,87 @@ +<?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/>. +?> + + <?php if (strcmp($isDeleted,'no') === 0) { ?> + + <?php + $tableName = (strcmp($this->action,'view') === 0) ? 'hardware' : 'revisions'; + ?> + + <?php foreach ($table as $item) { ?> + <div class="notebooks_viewall"> + + <!--if revision--> + <?php if (strcmp($this->action,'revision') === 0) { ?> + <div class="revision_alert"> + This is an old revision of this page, as edited by <b><?php echo getLinkToUser($u->getUser($updated_by));?></b> at <b><?php echo smartDate($update_date); ?></b>. It may differ significantly from the <a href="<?php echo $this->baseUrl."/".$this->controller."/view/$lang/$id_hard/".$name.$this->viewStatus;?>">current revision</a>. + </div> + <?php } ?> + + <div class="notebook_model"> + <img align="top" class="catalogue_item_icon" src="<?php echo $this->baseUrl."/Public/Img/Crystal/1282042976_hardware.png";?>"> <span class="span_model_name"><?php echo gtext("model");?>: <b><?php echo $item[$tableName]['model'];?></b><span class="model_id">(<?php echo gtext("model id");?>: <?php echo $id_hard;?>)</span></span> + <?php if (strcmp($islogged,'yes') === 0 and strcmp($this->action,'view') === 0) { ?> + <span class="ask_for_removal_class"><a class="ask_for_removal_class_link" href="<?php echo $this->baseUrl;?>">ask for removal</a></span> + <?php } ?> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("vendor");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['vendor'];?></b></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("VendorID:ProductID code of the device");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['pci_id'];?></b></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("year of commercialization");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['comm_year'];?></b></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("interface");?>:</div> + <div class="inner_value"><b><?php echo $item['hardware']['interface'];?></b></div> + </div> + + <div class="model_tested_on"> + <div class="inner_label"><?php echo gtext("tested on");?>:</div> + <div class="inner_value"><b><?php echo Distributions::getName($item[$tableName]['distribution']);?></b></div> + </div> + + <div class="notebook_kernel"> + <div class="inner_label"><?php echo gtext("tested with the following kernel libre");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['kernel'];?></b></div> + </div> + + <div class="notebook_kernel"> + <div class="inner_label"><?php echo gtext("how does it work with free software?");?></div> + <div class="inner_value"><b><?php echo Videocard::$videoReverse[$item[$tableName]['video_card_works']];?></b></div> + </div> + + <div class="notebook_description"> + <div class="notebook_description_label"><?php echo gtext("Description");?>:</div> + <div class="notebook_description_value"><?php echo decodeWikiText($item[$tableName]['description']);?></div> + </div> + + </div> + <?php } ?> + + <?php } ?>
\ No newline at end of file diff --git a/h-source/Application/Views/Wifi/catalogue.php b/h-source/Application/Views/Wifi/catalogue.php new file mode 100644 index 0000000..df03820 --- /dev/null +++ b/h-source/Application/Views/Wifi/catalogue.php @@ -0,0 +1,80 @@ +<?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 class="viewall_popup_menu_box_external"> + <div class="viewall_popup_menu_box"> + <?php echo $popup;?> + </div> + <div class="viewall_popup_menu_status"> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['vendor']?></div> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['comm_year']?></div> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['wifi_works']?></div> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['interface']?></div> + <div class="viewall_popup_menu_status_item"><?php echo $this->viewArgs['sort-by']?></div> + </div> + </div> + + <!--if no notebooks found--> + <?php if (strcmp($recordNumber,0) === 0) { ?> + <div class="viewall_no_items_found"> + <?php echo gtext("No wifi cards found");?>.. + </div> + <?php } ?> + + <!--loop--> + <?php foreach ($table as $item) {?> + <div class="model_viewall"> + + <div class="notebook_model"> + <img align="top" class="catalogue_item_icon" src="<?php echo $this->baseUrl."/Public/Img/H2O/network-wireless_22.png";?>"> <span class="span_model_name"><?php echo gtext("model");?>: <b><?php echo $item['hardware']['model'];?></b></span> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("vendor");?>:</div> + <div class="inner_value"><?php echo $item['hardware']['vendor'];?></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("year of commercialization");?>:</div> + <div class="inner_value"><b><?php echo $item['hardware']['comm_year'];?></b></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("interface");?>:</div> + <div class="inner_value"><b><?php echo $item['hardware']['interface'];?></b></div> + </div> + + <div class="notebook_kernel"> + <div class="inner_label"><?php echo gtext("does it work with free software?");?></div> + <div class="inner_value"><b><?php echo $item['hardware']['wifi_works'];?></b></div> + </div> + + <div class="notebook_view_link"> + <a href="<?php echo $this->baseUrl."/".$this->controller."/view/$lang/".$item['hardware']['id_hard'].'/'.encodeUrl($item['hardware']['model']).$this->viewStatus;?>"><?php echo gtext("view the other specifications");?>..</a> + </div> + + </div> + <?php } ?> + + <?php if (strcmp($recordNumber,0) !== 0) { ?> + <div class="history_page_list"> + <?php echo gtext("page list");?>: <?php echo $pageList;?> + </div> + <?php } ?>
\ No newline at end of file diff --git a/h-source/Application/Views/Wifi/form.php b/h-source/Application/Views/Wifi/form.php new file mode 100644 index 0000000..c955d26 --- /dev/null +++ b/h-source/Application/Views/Wifi/form.php @@ -0,0 +1,98 @@ +<?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/>. +?> + + <script> + + $(document).ready(function() { + + dist_list_helper(); + + $("#bb_code").markItUp(mySettings); + + }); + + </script> + + <?php echo $notice;?> + + <div class="notebooks_insert_form"> + <form action="<?php echo $this->baseUrl."/".$this->controller."/".$this->action."/$lang/$token".$this->viewStatus;?>" method="POST"> + + <div class="edit_form"> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("vendor");?>:</div> + <?php echo Html_Form::select('vendor',$values['vendor'],Wifi::$vendors,"select_entry");?> + <a href="<?php echo $this->baseUrl."/issues/viewall/$lang/1/$token";?>">Vendor not present?</a> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("model name");?>: <b>*</b></div> + <?php echo Html_Form::input('model',$values['model'],'input_entry');?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("VendorID:ProductID code of the device");?>:</div> + <?php echo Html_Form::input('pci_id',$values['pci_id'],'input_entry');?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("year of commercialization");?></div> + <?php echo Html_Form::select('comm_year',$values['comm_year'],Notebooks::$commYear,"select_entry");?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("interface");?> (<?php echo gtext("set not-specified if not sure");?>)</div> + <?php echo Html_Form::select('interface',$values['interface'],Wifi::$interface,"select_entry");?> + </div> + + <div class="form_entry td_with_distribution_checkboxes"> + <div class="entry_label"><?php echo gtext("GNU/Linux distribution used for the test");?>: <b>*</b></div> + <?php echo Html_Form::input('distribution',$values['distribution'],'input_entry input_distribution');?> + <?php echo Distributions::getFormHtml();?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("tested with the following kernel libre");?>:</div> + <?php echo Html_Form::input('kernel',$values['kernel'],'input_entry');?> + </div> + + <div class="form_entry"> + <div class="entry_label hidden_x_explorer"><?php echo gtext("does it work with free software?");?></div> + <?php echo Html_Form::select('wifi_works',$values['wifi_works'],Wifi::$wifiSelect,"select_entry hidden_x_explorer");?> + </div> + + <div class="form_entry"> + <div class="entry_label"><?php echo gtext("Description: (write here all the useful information)");?><br /><a href="<?php echo $this->baseUrl."/help/index/$lang#wiki-syntax";?>"><?php echo gtext("discover all the wiki tags");?></a></div> + <?php echo Html_Form::textarea('description',$values['description'],'textarea_entry','bb_code');?> + </div> + + <?php echo $hiddenInput;?> + + <input type="submit" name="<?php echo $submitName;?>" value="Save"> + + <div class="mandatory_fields_notice"> + <?php echo gtext("Fields marked with <b>*</b> are mandatory");?> + </div> + + </div> + + </form> + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/Wifi/page.php b/h-source/Application/Views/Wifi/page.php new file mode 100644 index 0000000..40696dc --- /dev/null +++ b/h-source/Application/Views/Wifi/page.php @@ -0,0 +1,87 @@ +<?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/>. +?> + + <?php if (strcmp($isDeleted,'no') === 0) { ?> + + <?php + $tableName = (strcmp($this->action,'view') === 0) ? 'hardware' : 'revisions'; + ?> + + <?php foreach ($table as $item) { ?> + <div class="notebooks_viewall"> + + <!--if revision--> + <?php if (strcmp($this->action,'revision') === 0) { ?> + <div class="revision_alert"> + This is an old revision of this page, as edited by <b><?php echo getLinkToUser($u->getUser($updated_by));?></b> at <b><?php echo smartDate($update_date); ?></b>. It may differ significantly from the <a href="<?php echo $this->baseUrl."/".$this->controller."/view/$lang/$id_hard/".$name.$this->viewStatus;?>">current revision</a>. + </div> + <?php } ?> + + <div class="notebook_model"> + <img align="top" class="catalogue_item_icon" src="<?php echo $this->baseUrl."/Public/Img/H2O/network-wireless_22.png";?>"> <span class="span_model_name"><?php echo gtext("model");?>: <b><?php echo $item[$tableName]['model'];?></b><span class="model_id">(<?php echo gtext("model id");?>: <?php echo $id_hard;?>)</span></span> + <?php if (strcmp($islogged,'yes') === 0 and strcmp($this->action,'view') === 0) { ?> + <span class="ask_for_removal_class"><a class="ask_for_removal_class_link" href="<?php echo $this->baseUrl;?>">ask for removal</a></span> + <?php } ?> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("vendor");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['vendor'];?></b></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("VendorID:ProductID code of the device");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['pci_id'];?></b></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("year of commercialization");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['comm_year'];?></b></div> + </div> + + <div class="notebook_vendor"> + <div class="inner_label"><?php echo gtext("interface");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['interface'];?></b></div> + </div> + + <div class="model_tested_on"> + <div class="inner_label"><?php echo gtext("tested on");?>:</div> + <div class="inner_value"><b><?php echo Distributions::getName($item[$tableName]['distribution']);?></b></div> + </div> + + <div class="notebook_kernel"> + <div class="inner_label"><?php echo gtext("tested with the following kernel libre");?>:</div> + <div class="inner_value"><b><?php echo $item[$tableName]['kernel'];?></b></div> + </div> + + <div class="notebook_kernel"> + <div class="inner_label"><?php echo gtext("does it work with free software?");?></div> + <div class="inner_value"><b><?php echo $item[$tableName]['wifi_works'];?></b></div> + </div> + + <div class="notebook_description"> + <div class="notebook_description_label"><?php echo gtext("Description");?>:</div> + <div class="notebook_description_value"><?php echo decodeWikiText($item[$tableName]['description']);?></div> + </div> + + </div> + <?php } ?> + + <?php } ?>
\ No newline at end of file diff --git a/h-source/Application/Views/bottom_left.php b/h-source/Application/Views/bottom_left.php new file mode 100644 index 0000000..438fe0f --- /dev/null +++ b/h-source/Application/Views/bottom_left.php @@ -0,0 +1,27 @@ +<?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/>. +?> + + <?php if (strcmp($this->action,'talk') !== 0) { ?> + <div class="bottom_licence_notice"> + The contents of this page are in the Public Domain. (see the <a href="http://creativecommons.org/publicdomain/zero/1.0/">CC0 page</a> for detailed information). Anyone is free to copy, modify, publish, use, sell, or distribute the text for any purpose, commercial or non-commercial, and by any means. + </div> + <?php } ?> + + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/climb.php b/h-source/Application/Views/climb.php new file mode 100644 index 0000000..f947cd5 --- /dev/null +++ b/h-source/Application/Views/climb.php @@ -0,0 +1,35 @@ +<?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 class="notebooks_viewall"> + + <?php echo $notice;?> + + <div class="climb_form_ext_box"> + + <?php if (strcmp($isDeleted,'no') === 0 ) { ?> + <form action="<?php echo $this->currPage."/$lang/$id_rev/$token".$this->viewStatus;?>" method="POST"> + I want to make this revision the current revision: <input type="submit" name="confirmAction" value="confirm"> + </form> + <?php } ?> + + </div> + + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/dialog.php b/h-source/Application/Views/dialog.php new file mode 100644 index 0000000..537e527 --- /dev/null +++ b/h-source/Application/Views/dialog.php @@ -0,0 +1,100 @@ +<?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/>. +?> + +<script type="text/javascript"> + + $(function(){ + + $("#dialog-form").css("display","block"); + + $('#notice_dialog').dialog({ + autoOpen: false, + width: 500 + }); + + // Dialog + $('#dialog-form').dialog({ + autoOpen: false, + width: 500, + buttons: { + "Send": function() { + + var d_id_hard = $(".dialod_hidden_id_hard").attr("value"); + var d_object = encodeURIComponent($("#object").attr("value")); + var d_message = encodeURIComponent($("#message").attr("value")); + var d_id_duplicate = encodeURIComponent($("#id_duplicate").attr("value")); + + $.ajax({ + type: "POST", + url: "<?php echo $this->baseUrl.'/generic/del/'.$lang.'/'.$token;?>", + data: "id_hard="+d_id_hard+"&object="+d_object+"&message="+d_message+"&id_duplicate="+d_id_duplicate+"&insertAction=save", + async: false, + cache:false, + dataType: "html", + success: function(html){ + $(".notice_dialog_inner").text(html); + $('#notice_dialog').dialog('open'); + } + }); + + $(this).dialog("close"); + }, + "Cancel": function() { + $(this).dialog("close"); + } + } + }); + + // Dialog Link + $('.ask_for_removal_class_link').click(function(){ + $('#dialog-form').dialog('open'); + return false; + }); + + }); +</script> + + +<div id="dialog-form" title="Ask for the removal of this device"> +<!-- <p class="validateTips">Ask for removal:</p> --> + <form> + <table> + <tr> + <td><label for="object">why?</label></td> + <td><?php echo Html_Form::select('object','duplicated','duplication,other',null,"object");?></td> + </tr> + <tr> + <td><label for="message">message</label></td> + <td><textarea name="message" id="message">Write here your message..</textarea></td> + </tr> + <tr> + <td><label for="id_duplicate">duplicated model (write the id)</label></td> + <td><input type="text" id="id_duplicate" type="hidden" name="id_duplicate" value=""></td> + </tr> + <input class="dialod_hidden_id_hard" type="hidden" name="id_hard" value="<?php echo $id_hard;?>"> + </table> + </form> +</div> + +<div id="notice_dialog" title="Notice:"> + <div class="notice_dialog_inner"> + + </div> +</div>
\ No newline at end of file diff --git a/h-source/Application/Views/differences.php b/h-source/Application/Views/differences.php new file mode 100644 index 0000000..7e3862e --- /dev/null +++ b/h-source/Application/Views/differences.php @@ -0,0 +1,43 @@ +<?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 class="notebooks_viewall"> + + <div class="diff_color_notice"> + <b>Notice</b>: the text in <del>red</del> has been deleted from the previous revision, the text in <ins>green</ins> has been added in this revision and the text in <span class="gray_text_notice">gray</span> has not been changed. + </div> + + <?php foreach ($diffArray as $label => $text) { ?> + + <div class="diff_ext_box"> + + <div class="diff_item_label"> + <?php echo gtext("differences in the entry");?>: <b><?php echo $label;?></b> + </div> + + <div class="diff_item_text"> + <?php echo in_array($label,$fieldsWithBreaks) ? nl2br($text) : $text;?> + </div> + + </div> + + <?php } ?> + + </div> diff --git a/h-source/Application/Views/footer.php b/h-source/Application/Views/footer.php new file mode 100644 index 0000000..aeadbe1 --- /dev/null +++ b/h-source/Application/Views/footer.php @@ -0,0 +1,38 @@ +<?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="footer"> + <div class="copyright_notice_box"> + The <a href="<?php echo $this->baseUrl."/project/index/$lang";?>"><?php echo Website::$projectName;?></a> Project + </div> + + <div class="footer_credits_box"> + <a href="<?php echo $this->baseUrl."/credits/index/$lang";?>">credits</a> + </div> + + <div class="footer_credits_box"> + <a href="<?php echo $this->baseUrl."/contact/index/$lang";?>">contact</a> + </div> + </div> <!--fine footer--> + +</div> <!--fine container--> + +</body> +</html> diff --git a/h-source/Application/Views/header.php b/h-source/Application/Views/header.php new file mode 100644 index 0000000..83aa59d --- /dev/null +++ b/h-source/Application/Views/header.php @@ -0,0 +1,78 @@ +<?php if (!defined('EG')) die('Direct access not allowed!'); ?> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//IT"> +<?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/>. +?> +<?php $u = new UsersModel();?> +<html> +<head> + + <title><?php echo $title;?></title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <meta name="description" content="free software project with the aim of collecting informations about the hardware that work with a fully free operating system" /> + <meta name="keywords" content="free software GNU Linux distribution hardware wiki users freedom" /> + <link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl?>/Public/Css/website.css"> + <link rel="Shortcut Icon" href="<?php echo $this->baseUrl?>/Public/Img/tab_icon_2.ico" type="image/x-icon"> + + + <!--[if IE]> + <link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl?>/Public/Css/explorer.css"> + <![endif] --> + + <script type="text/javascript" src="<?php echo $this->baseUrl;?>/Public/Js/jquery/jquery-1.4.2.min.js"></script> + <script type="text/javascript" src="<?php echo $this->baseUrl;?>/Public/Js/functions.js"></script> + + <!--markitup--> + <script type="text/javascript" src="<?php echo $this->baseUrl;?>/Public/Js/markitup/jquery.markitup.js"></script> + <script type="text/javascript" src="<?php echo $this->baseUrl;?>/Public/Js/markitup/sets/bbcode/set.js"></script> + + <!-- markItUp! skin --> + <link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl;?>/Public/Js/markitup/skins/simple/style.css" /> + <!-- markItUp! toolbar skin --> + <link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl;?>/Public/Js/markitup/sets/bbcode/style.css" /> + + <!-- jQuery ui dialog --> + <link rel="stylesheet" href="<?php echo $this->baseUrl;?>/Public/Js/jquery/dialog/css/excite-bike/jquery-ui-1.8.4.custom.css" rel="stylesheet" /> + <script type="text/javascript" src="<?php echo $this->baseUrl;?>/Public/Js/jquery/dialog/js/jquery-ui-1.8.4.custom.min.js"></script> + + <script type="text/javascript"> + + var base_url = "<?php echo $this->baseUrl;?>"; + var curr_lang = "<?php echo $lang;?>"; + var csrf_token = "<?php echo $token;?>"; + + </script> + +</head> +<body> + + +<div id="external_header"> + <div id="header"> + <img src="<?php echo $this->baseUrl;?>/Public/Img/title.png"> + </div> +</div> + +<div id="top_menu_external"> + <div id="top_menu"> + <ul> + <li<?php echo $tm['home']; ?>><a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a></li><li<?php echo $tm['hardware']; ?>><a href="<?php echo $this->baseUrl."/hardware/catalogue/$lang";?>">Hardware</a></li><li<?php echo $tm['issues']; ?>><a href="<?php echo $this->baseUrl."/issues/viewall/$lang/1/$token";?>">Issues</a></li><li<?php echo $tm['search']; ?>><a href="<?php echo $this->baseUrl."/search/form/$lang";?>">Search</a></li><li<?php echo $tm['news']; ?>><a href="<?php echo $this->baseUrl."/news/index/$lang";?>">News</a></li><li<?php echo $tm['download']; ?>><a href="<?php echo $this->baseUrl."/download/index/$lang";?>">Download</a></li><li<?php echo $tm['help']; ?>><a href="<?php echo $this->baseUrl."/help/index/$lang";?>">Help</a></li> + </ul> + </div> +</div> + +<div id="container"> diff --git a/h-source/Application/Views/history.php b/h-source/Application/Views/history.php new file mode 100644 index 0000000..4edd41b --- /dev/null +++ b/h-source/Application/Views/history.php @@ -0,0 +1,53 @@ +<?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 class="notebooks_viewall"> + + <ul class="page_history"> + + <?php if ($this->viewArgs['history_page'] === 1) { ?> + <?php foreach ($rev1 as $rev) { ?> + <li class="page_history_current_item"><b>Current revision:</b> <?php echo smartDate($rev['hardware']['update_date']);?> by <?php echo getLinkToUser($u->getUser($rev['hardware']['updated_by']));?> (<a href="<?php echo $this->baseUrl."/".$this->controller."/differences/$lang/$id/0".$this->viewStatus;?>">diff</a>)</li> + <?php } ?> + <?php } ?> + + <?php foreach ($rev2 as $rev) { ?> + <li class="page_history_item"> + + <a href="<?php echo $this->baseUrl."/".$this->controller."/revision/$lang/".$rev['revisions']['id_rev'].$this->viewStatus;?>"><?php echo smartDate($rev['revisions']['update_date']);?></a> by <?php echo getLinkToUser($u->getUser($rev['revisions']['updated_by']));?> + + <?php if (strcmp($rev['revisions']['id_rev'],$firstRev) !== 0) {?> + (<a href="<?php echo $this->baseUrl."/".$this->controller."/differences/$lang/$id/".$rev['revisions']['id_rev'].$this->viewStatus;?>">diff</a>) + <?php } ?> + + <?php if ($islogged === 'yes') { ?> + (<a href="<?php echo $this->baseUrl.'/'.$this->controller.'/climb/'.$lang.'/'.$rev['revisions']['id_rev'].'/'.$token.$this->viewStatus;?>">make current</a>) + <?php } ?> + + </li> + <?php } ?> + + </ul> + + </div> + + <div class="history_page_list"> + page list: <?php echo $pageList;?> + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/if_page_deleted.php b/h-source/Application/Views/if_page_deleted.php new file mode 100644 index 0000000..2f9fd1e --- /dev/null +++ b/h-source/Application/Views/if_page_deleted.php @@ -0,0 +1,49 @@ +<?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/>. +?> + + <?php if (strcmp($isDeleted,'yes') === 0) { ?> + + <div class="notebooks_viewall"> + <div class="revision_alert"> + <div> + This page has been deleted as requested by: + <?php foreach ($deletionUsers as $user) { ?> + <?php echo getLinkToUser($u->getUser($user));?> + <?php } ?> + </div> + </div> + <div class="deletion_motivations_title"> + With the following motivations: + </div> + <div class="deletion_motivations_external"> + <?php foreach ($deletion as $row) { ?> + <div class="deletion_motivations_iternal"> + <div class="deletion_motivations_iternal_title"> + motivation of <?php echo getLinkToUser($u->getUser($row['deletion']['created_by']));?>: <?php echo getMotivation($row,$this->controller);?> + </div> + <div class="deletion_motivations_iternal_message"> + message: <i><?php echo $row['deletion']['message'];?></i> + </div> + </div> + <?php } ?> + </div> + </div> + + <?php } ?>
\ No newline at end of file diff --git a/h-source/Application/Views/license_notice.php b/h-source/Application/Views/license_notice.php new file mode 100644 index 0000000..71b1db9 --- /dev/null +++ b/h-source/Application/Views/license_notice.php @@ -0,0 +1,24 @@ +<?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 class="top_licence_notice"> + <div><b>License Informations:</b></div> + Any text submitted by you will be put in the Public Domain (see the <a href="http://creativecommons.org/publicdomain/zero/1.0/">CC0 page</a> for detailed information). + </div>
\ No newline at end of file diff --git a/h-source/Application/Views/moderator_dialog.php b/h-source/Application/Views/moderator_dialog.php new file mode 100644 index 0000000..058cc3a --- /dev/null +++ b/h-source/Application/Views/moderator_dialog.php @@ -0,0 +1,62 @@ +<?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="delete_dialog" title="Manage this message"> + <form> + <p>Write below your motivation</p> + <textarea name="md_message" id="md_message"></textarea> + </form> +</div> + +<div id="notice_dialog" title="Notice:"> + <div class="notice_dialog_inner"> + + </div> +</div> + +<script> + + $(document).ready(function() { + + <?php echo $md_javascript;?> + + $(".hidden_message_view_details").click(function(){ + + var md_id_ext = $(this).attr("id"); + var md_type_ext = $(this).parent().find(".md_type").text(); + var that = $(this); + + $.ajax({ + url: base_url + "/history/viewall/" + curr_lang + "/" + md_type_ext + "/" + md_id_ext, + async: false, + cache: false, + dataType: "html", + success: function(html){ + that.parent().find(".moderation_details_box").empty(); + that.parent().find(".moderation_details_box").append(html); + } + }); + + that.parent().find(".details_of_hidden_message").show(); + return false; + }); + }); + +</script>
\ No newline at end of file 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 diff --git a/h-source/Application/Views/suggest_dialog.php b/h-source/Application/Views/suggest_dialog.php new file mode 100644 index 0000000..223bbd8 --- /dev/null +++ b/h-source/Application/Views/suggest_dialog.php @@ -0,0 +1,41 @@ +<?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/>. +?> + +<script type="text/javascript"> + + $(function(){ + + $("#suggest_dialog").css("display","block"); + + // Dialog + $('#suggest_dialog').dialog({ + autoOpen: false, + width: 500, + }); + + $('#suggest_dialog').dialog('open'); + + }); +</script> + +<div id="suggest_dialog" title="Insert new hardware"> + <p>Thanks for helping the h-node project and the free software movement!</p> + <p>You have just inserted a new notebook in the database.. can you please insert its devices separately too? Thanks!</p> +</div>
\ No newline at end of file diff --git a/h-source/Application/Views/talk.php b/h-source/Application/Views/talk.php new file mode 100644 index 0000000..6ae3bca --- /dev/null +++ b/h-source/Application/Views/talk.php @@ -0,0 +1,140 @@ +<?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/>. +?> + + <script> + + $(document).ready(function() { + + $("#bb_code").markItUp(mySettings); + + }); + + </script> + + <div class="notebooks_viewall"> + + <?php foreach ($table as $message) { ?> + + <?php if (strcmp($message['talk']['deleted'],'no') === 0) { ?> + + <div class="talk_message_item"> + + <div class="talk_message_item_title_date"> + <?php if ($ismoderator) { ?> + <a id="<?php echo $message['talk']['id_talk'];?>" class="hide_talk hide_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/button_cancel.png">hide</a> + <?php } ?> + + <div class="talk_message_item_title"> + <?php echo eg_strtoupper($message['talk']['title']);?> + </div> + + <div class="talk_message_item_date"> + by <?php echo getLinkToUser($u->getUser($message['talk']['created_by']));?>, <?php echo smartDate($message['talk']['creation_date']);?> + </div> + </div> + + <div class="talk_message_item_content"> + <?php echo decodeWikiText($message['talk']['message']);?> + </div> + + <?php if ($ismoderator) { ?> + <!--view details--> + <div class="show_hidden_box_ext"> + <div class="md_type">talk</div> + <a id="<?php echo $message['talk']['id_talk'];?>" class="hidden_message_view_details" href="<?php echo $this->baseUrl."/home/index/$lang";?>">view details</a> + <div class="moderation_details_box"></div> + </div> + <?php } ?> + + </div> + + <?php } else { ?> + + <div class="talk_message_item_hidden"> + this message has been deleted + <?php if ($ismoderator) { ?> + <a id="<?php echo $message['talk']['id_talk'];?>" class="show_talk hide_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/button_ok.png">make visible</a> + + <!--view details--> + <div class="show_hidden_box_ext"> + <div class="md_type">talk</div> + + <a id="<?php echo $message['talk']['id_talk'];?>" class="hidden_message_view_details" href="<?php echo $this->baseUrl."/home/index/$lang";?>">view details</a> + + <div class="details_of_hidden_message"> + <div class="details_of_hidden_message_inner"> + <div class="talk_message_item_date"> + submitted by <?php echo getLinkToUser($u->getUser($message['talk']['created_by']));?>, <?php echo smartDate($message['talk']['creation_date']);?> + </div> + <div class="message_view_description_hidden"> + <?php echo decodeWikiText($message['talk']['message']);?> + </div> + </div> + <div class="moderation_details_box"></div> + </div> + </div> + + <?php } ?> + </div> + + <?php } ?> + + <?php } ?> + </div> + + <?php if ($islogged === 'yes') { ?> + + <div class="talk_form_external_box"> + <div class="talk_login_notice"> + <a name="form">Add a message</a> + </div> + + <?php echo $notice;?> + + <div class="notebooks_insert_form"> + <form action="<?php echo $this->baseUrl."/".$this->controller."/talk/$lang/$id_hard/$token".$this->viewStatus;?>#form" method="POST"> + + <div class="edit_form"> + + <div class="form_entry"> + <div class="entry_label">Title:</div> + <?php echo Html_Form::input('title',$values['title'],'talk_input_entry');?> + </div> + + <div class="form_entry"> + <div class="entry_label">Message:</div> + <?php echo Html_Form::textarea('message',$values['message'],'talk_textarea_entry','bb_code');?> + </div> + + <input type="submit" name="insertAction" value="Save"> + + </div> + + </form> + </div> + </div> + + <?php } else { ?> + + <div class="talk_login_notice"> + <a name="form">You have to <a href="<?php echo $this->baseUrl."/users/login/$lang/".$this->controller."/view/$id_hard";?>">login</a> in order to add a message</a> + </div> + + <?php } ?>
\ No newline at end of file diff --git a/h-source/Application/Views/top_left.php b/h-source/Application/Views/top_left.php new file mode 100644 index 0000000..3c7bede --- /dev/null +++ b/h-source/Application/Views/top_left.php @@ -0,0 +1,142 @@ +<?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="left"> + + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » <a href="<?php echo $this->baseUrl."/hardware/catalogue/$lang";?>">Hardware</a> » <?php echo $tree;?> + </div> + + <?php if (strcmp($this->action,'view') === 0) { ?> + + <div class="notebook_view_title"> + Specifications of the <?php echo MyStrings::$view[$lang][$this->controller]['element'];?> <b><?php echo $ne_name;?></b> + </div> + + <div class="notebook_insert_link"> + <div class="view_page_back_button"> + <a title="Back to the list of <?php echo MyStrings::$view[$lang][$this->controller]['element'];?>s" href="<?php echo $this->baseUrl."/".$this->controller."/catalogue/$lang".$this->viewStatus;?>"><img class="top_left_images" src="<?php echo $this->baseUrl;?>/Public/Img/back-60.png"></a> + </div> + + <div class="view_page_history_button"> + <a title="talk page" href="<?php echo $this->baseUrl."/".$this->controller."/talk/$lang/$id_hard/$token".$this->viewStatus;?>"><img class="top_left_note_image" src="<?php echo $this->baseUrl;?>/Public/Img/talk-60.png"></a> + </div> + + <div class="view_page_history_button"> + <a title="history page" href="<?php echo $this->baseUrl."/".$this->controller."/history/$lang/$id_hard".$this->viewStatus;?>"><img class="top_left_note_image" src="<?php echo $this->baseUrl;?>/Public/Img/history-60.png"></a> + </div> + + <?php if (strcmp($isDeleted,'no') === 0) { ?> + <div class="view_page_update_button"> + <form action="<?php echo $this->baseUrl."/".$this->controller."/update/$lang/$token".$this->viewStatus;?>" method="POST"> + <input title="edit page" class="update_submit_class" type="image" src="<?php echo $this->baseUrl;?>/Public/Img/edit-60.png" value="xedit"> + <input type="hidden" name="id_hard" value="<?php echo $id_hard;?>"> + </form> + </div> + <?php } ?> + </div> + + <div class="talk_numb_ext"> + <a href="<?php echo $this->baseUrl."/".$this->controller."/talk/$lang/$id_hard/$token".$this->viewStatus;?>">talk messages: <?php echo $talk_number;?></a> + </div> + + <?php } else if (strcmp($this->action,'catalogue') === 0) { ?> + + <div class="notebook_view_title"> + List of <b><?php echo MyStrings::$view[$lang][$this->controller]['element'];?>s</b> in the archive + </div> + + <div class="notebook_insert_link"> + <a title="Insert a new <?php echo MyStrings::$view[$lang][$this->controller]['element'];?>" href="<?php echo $this->baseUrl."/".$this->controller."/insert/$lang/$token".$this->viewStatus;?>"><img class="top_left_images" src="<?php echo $this->baseUrl;?>/Public/Img/new-60.png"></a> + </div> + + <?php } else if (strcmp($this->action,'history') === 0) { ?> + + <div class="notebook_view_title"> + History of the <?php echo MyStrings::$view[$lang][$this->controller]['element'].' <b>'.$ne_name.'</b>';?> + </div> + + <div class="notebook_insert_link"> + <a title="Back to the specifications of the <?php echo MyStrings::$view[$lang][$this->controller]['element'].' '.$name;?>" href="<?php echo $this->baseUrl."/".$this->controller."/view/$lang/$id/$name".$this->viewStatus;?>"><img class="top_left_images" src="<?php echo $this->baseUrl;?>/Public/Img/back-60.png"></a> + </div> + + <?php } else if (strcmp($this->action,'differences') === 0) { ?> + + <?php if ($showDiff === true) { ?> + <div class="notebook_view_title"> + Differences between the revision of <b><?php echo smartDate($update_new);?></b>, created by <b><?php echo getLinkToUser($u->getUser($updated_by));?></b>, and the revision of <b><?php echo smartDate($update_old);?></b> + </div> + <?php } ?> + + <div class="notebook_insert_link"> + <a title="Back to the history of the <?php echo MyStrings::$view[$lang][$this->controller]['element'];?> <?php echo $name;?>" href="<?php echo $this->baseUrl."/".$this->controller."/history/$lang/$id_hard".$this->viewStatus;?>"><img class="top_left_images" src="<?php echo $this->baseUrl;?>/Public/Img/back-60.png"></a> + </div> + + <?php } else if (strcmp($this->action,'climb') === 0) { ?> + + <div class="notebook_view_title"> + Make current this revision of the <?php echo MyStrings::$view[$lang][$this->controller]['element'].' <b>'.$ne_name.'</b>';?> + </div> + + <div class="notebook_insert_link"> + <a title="Back to the history of the <?php echo MyStrings::$view[$lang][$this->controller]['element'];?> <?php echo $name;?>" href="<?php echo $this->baseUrl."/".$this->controller."/history/$lang/$id_hard".$this->viewStatus;?>"><img class="top_left_images" src="<?php echo $this->baseUrl;?>/Public/Img/back-60.png"></a> + </div> + + <?php } else if (strcmp($this->action,'revision') === 0) { ?> + + <div class="notebook_view_title"> + Revision of the <?php echo MyStrings::$view[$lang][$this->controller]['element'].' <b>'.$ne_name.'</b>';?> + </div> + + <div class="notebook_insert_link"> + <a title="Back to the history of the <?php echo MyStrings::$view[$lang][$this->controller]['element'];?> <?php echo $name;?>" href="<?php echo $this->baseUrl."/".$this->controller."/history/$lang/$id_hard".$this->viewStatus;?>"><img class="top_left_images" src="<?php echo $this->baseUrl;?>/Public/Img/back-60.png"></a> + </div> + + <?php } else if (strcmp($this->action,'insert') === 0) { ?> + + <div class="notebook_view_title"> + Insert a new <?php echo MyStrings::$view[$lang][$this->controller]['element'];?> + </div> + + <div class="notebook_insert_link"> + <a title="Back to the list of <?php echo MyStrings::$view[$lang][$this->controller]['element'];?>s" href="<?php echo $this->baseUrl."/".$this->controller."/catalogue/$lang".$this->viewStatus;?>"><img class="top_left_images" src="<?php echo $this->baseUrl;?>/Public/Img/back-60.png"></a> + </div> + + <?php } else if (strcmp($this->action,'update') === 0) { ?> + + <div class="notebook_view_title"> + Edit the <?php echo MyStrings::$view[$lang][$this->controller]['element'].' <b>'.$ne_name.'</b>';?> + </div> + + <div class="notebook_insert_link"> + <a title="Back to the <?php echo MyStrings::$view[$lang][$this->controller]['element'];?> specifications" href="<?php echo $this->baseUrl."/".$this->controller."/view/$lang/".$id_hard."/$name".$this->viewStatus;?>"><img class="top_left_images" src="<?php echo $this->baseUrl;?>/Public/Img/back-60.png"></a> + </div> + + <?php } else if (strcmp($this->action,'talk') === 0) { ?> + + <div class="notebook_view_title"> + Talk page of the <?php echo MyStrings::$view[$lang][$this->controller]['element'].' <b>'.$ne_name.'</b>';?> + </div> + + <div class="notebook_insert_link"> + <a title="Back to the <?php echo MyStrings::$view[$lang][$this->controller]['element'];?> specifications" href="<?php echo $this->baseUrl."/".$this->controller."/view/$lang/".$id_hard."/$name".$this->viewStatus;?>"><img class="top_left_images" src="<?php echo $this->baseUrl;?>/Public/Img/back-60.png"></a> + </div> + + <?php } ?>
\ No newline at end of file |