[PC-BSD Commits] r3323 - in websites/pbidir.com/bibivu: bin lib tpl/css tpl/js tpl/pbidir tpl/pbidir/pages
svn at pcbsd.org
svn at pcbsd.org
Fri Jan 23 21:19:47 PST 2009
Author: fabry
Date: 2009-01-23 21:19:46 -0800 (Fri, 23 Jan 2009)
New Revision: 3323
Modified:
websites/pbidir.com/bibivu/bin/start.php
websites/pbidir.com/bibivu/lib/menu.php
websites/pbidir.com/bibivu/tpl/css/pbidir.css
websites/pbidir.com/bibivu/tpl/js/functions.js
websites/pbidir.com/bibivu/tpl/pbidir/pages/site_developers.php
websites/pbidir.com/bibivu/tpl/pbidir/pbi.php
websites/pbidir.com/bibivu/tpl/pbidir/pbi_versions.php
websites/pbidir.com/bibivu/tpl/pbidir/search.php
Log:
a bit more functionalities in pbidir.com:
- when clicking on rating or downloads, it sorts first descending
- showing "specs icons" also on category page
- "specs icons" are clickable to see all similar pbis
- if a PBI has more than 3 releases, it hides the following and show a message that allow to display them
- changed the color of the headers of the releases
Modified: websites/pbidir.com/bibivu/bin/start.php
===================================================================
--- websites/pbidir.com/bibivu/bin/start.php 2009-01-24 02:27:25 UTC (rev 3322)
+++ websites/pbidir.com/bibivu/bin/start.php 2009-01-24 05:19:46 UTC (rev 3323)
@@ -181,9 +181,11 @@
break;
case 'rating':
$order_field = '(total_points+5)/(total_votes+1)';
+ $order_mode = $order_mode=='asc'?'asc':'desc';
break;
case 'download':
$order_field = 'total_download';
+ $order_mode = $order_mode=='asc'?'asc':'desc';
break;
case 'name':
default:
@@ -212,6 +214,93 @@
$this->display('search');
}
+ public function web_type(){
+ //check possible field:
+ switch($this->uri->get_num(3)){
+ case 'wine': //uses wine
+ $field = 'use_wine';
+ $oper = '=';
+ $value = 'y';
+ $title = load_library('lang')->get('pbi_use_wine');
+ break;
+ case 'alter': //alternative_for
+ $field = 'alternative_for';
+ $oper = '!=';
+ $value = '';
+ $title = load_library('lang')->get('pbi_alternative_for_windows_package');
+ break;
+ case 'grap_i': //graphical interface
+ $field = 'interface';
+ $oper = '=';
+ $value = 'g';
+ $title = load_library('lang')->get('pbi_graphical_interface');
+ break;
+ case 'web_i': //web interface
+ $field = 'interface';
+ $oper = '=';
+ $value = 'w';
+ $title = load_library('lang')->get('pbi_web_interface');
+ break;
+ case 'comm_i': //comman line
+ $field = 'interface';
+ $oper = '=';
+ $value = 'c';
+ $title = load_library('lang')->get('pbi_command_line_interface');
+ break;
+ default:
+ $field = 'active';
+ $oper = '=';
+ $value = 'y';
+ $title = '';
+ break;
+
+ }
+ $pbis_per_page = 20;
+ $order = $this->uri->get_num(4, 'name');
+ $order_mode = $this->uri->get_num(5, 'asc');
+ $current_page = $this->uri->get_num(6,0);
+
+ switch(strtolower($order)){
+ case 'added':
+ $order_field = 'date_added';
+ break;
+ case 'rating':
+ $order_field = '(total_points+5)/(total_votes+1)';
+ $order_mode = $order_mode=='asc'?'asc':'desc';
+ break;
+ case 'download':
+ $order_field = 'total_download';
+ $order_mode = $order_mode=='asc'?'asc':'desc';
+ break;
+ case 'name':
+ default:
+ $order='name';
+ $order_field = 'name';
+ }
+ $order_mode = $order_mode=='desc'?'desc':'asc';
+
+ $filters = array();
+ $filters[] = array('field'=>'active', 'operator'=>'=', 'value'=>'y');
+ $filters[] = array('field'=>'current_status_id', 'operator'=>'=', 'value'=>'100');
+ $filters[] = array('field'=>$field, 'operator'=>$oper, 'value'=>$value);
+// $filters[] = array('field'=>'category_id', 'operator'=>'=', 'value'=>$category['id']);
+ list($result['total_pbis']) = $this->pbi->select()->fields(array('COUNT(*)'))->where($filters)->do_db()->db->fetch_row($this->pbi->last_result());
+
+ $this->display->assign('result', $result);
+ $this->display->assign('breadcrumb_text', $title);
+ $pbis = $this->pbi->get_all($filters, array($order_field.' '.$order_mode, 'name'), array(), ($current_page*$pbis_per_page).','.$pbis_per_page);
+ $this->display->assign('pbis', $pbis);
+
+ $this->display->assign('type_search',$this->uri->get_num(3));
+ $this->display->assign('order', $order);
+ $this->display->assign('order_mode', $order_mode);
+ $this->display->assign('pbis_per_page', $pbis_per_page);
+ $this->display->assign('current_page', $current_page);
+
+ $this->display->assign('title', $title);
+ $this->display('search');
+ }
+
public function web_pbi(){
if(!is_numeric($this->uri->get_num(3))){
$this->redirect($this->display->get('home_uri'), 'Error opening this page', 3, true, 'pbidir');
@@ -486,9 +575,11 @@
break;
case 'rating':
$order_field = '(total_points+5)/(total_votes+1)';
+ $order_mode = $order_mode=='asc'?'asc':'desc';
break;
case 'download':
$order_field = 'total_download';
+ $order_mode = $order_mode=='asc'?'asc':'desc';
break;
case 'name':
default:
@@ -496,7 +587,6 @@
$order_field = 'name';
}
$order_mode = $order_mode=='desc'?'desc':'asc';
- $order_mode = $order_mode=='desc'?'desc':'asc';
if($text==''){
$result['total_pbis'] = 0;
@@ -507,7 +597,13 @@
$filters[] = array('field'=>'current_status_id', 'operator'=>'=', 'value'=>'100');
$filters[] = array('field'=>'name', 'operator'=>'LIKE', 'value'=>'%'.$text.'%');
list($result['total_pbis']) = $this->pbi->select()->fields(array('COUNT(*)'))->where($filters)->do_db()->db->fetch_row($this->pbi->last_result());
- $this->display->assign('pbis', $this->pbi->get_all($filters, array($order_field.' '.$order_mode, 'name'), array(), ($current_page*$pbis_per_page).','.$pbis_per_page));
+ if($result['total_pbis']==1){
+ //let's redirect to the pbi page
+ $pbi = $this->pbi->get_all($filters);
+ $this->redirect($this->display->get('pbi_uri').'/'.$pbi[0]['id']);
+ } else {
+ $this->display->assign('pbis', $this->pbi->get_all($filters, array($order_field.' '.$order_mode, 'name'), array(), ($current_page*$pbis_per_page).','.$pbis_per_page));
+ }
}
$this->display->assign('result', $result);
@@ -517,7 +613,7 @@
$this->display->assign('current_page', $current_page);
$this->display->assign('breadcrumb_text', htmlentities($text));
- $this->display->assign('pbi', load_library('lang')->get('search_page_title'));
+// $this->display->assign('pbi', load_library('lang')->get('search_page_title'));
$this->display->assign('title', load_library('lang')->get('search_page_title'));
$this->display('search');
Modified: websites/pbidir.com/bibivu/lib/menu.php
===================================================================
--- websites/pbidir.com/bibivu/lib/menu.php 2009-01-24 02:27:25 UTC (rev 3322)
+++ websites/pbidir.com/bibivu/lib/menu.php 2009-01-24 05:19:46 UTC (rev 3323)
@@ -14,6 +14,7 @@
$display->assign('contact_us_uri',$uri->create_uri(array(TASK_KEY=>'pages')).'/contact_us');
$display->assign('site_developers_uri',$uri->create_uri(array(TASK_KEY=>'pages')).'/site_developers');
$display->assign('category_uri',$uri->create_uri(array(TASK_KEY=>'category')));
+ $display->assign('type_uri',$uri->create_uri(array(TASK_KEY=>'type')));
$display->assign('download_uri',$uri->create_uri(array(TASK_KEY=>'download')));
$display->assign('admin_uri',$uri->create_uri(array(TASK_KEY=>'admin')));
Modified: websites/pbidir.com/bibivu/tpl/css/pbidir.css
===================================================================
--- websites/pbidir.com/bibivu/tpl/css/pbidir.css 2009-01-24 02:27:25 UTC (rev 3322)
+++ websites/pbidir.com/bibivu/tpl/css/pbidir.css 2009-01-24 05:19:46 UTC (rev 3323)
@@ -1,768 +1,776 @@
-body {
- font: 0.75em Verdana, sans-serif, Helvetica;
- background: #f2f2f2;
- margin: 0;
- padding: 0;
-}
-
-a:link, a:visited {
- color: #005dab;
-}
-
-a:hover {
- color: #00325d;
-}
-
-.dp, .dp a {
- color: #ccc;
-}
-
-ul {
- list-style: none;
-}
-
-.clear {
- clear: both;
-}
-
-.mirrors li {
- float:left;
- background-color:#EEE;
- border:1px solid #DDD;
- width:354px;
- height:20px;
-}
-.mirrors li:hover {
- background-color:#FEFEFE;
- border:1px solid #DDD;
-}
-.mirrors li a:hover {
- font-weight:bold;
-}
-#container {
- width: 100%;
- text-align: center;
-}
-
-#main {
- width: 750px;
- text-align: left;
- margin: 0 auto;
- background: #fff;
- border-left: 1px solid #7397ab;
- border-right: 1px solid #7397ab;
-}
-
-#header {
- height: 100px;
- background: url(/bibivu/tpl/pbidir/images/top.png) repeat-x;
-}
-
-#header p {
- padding: 0;
- margin: 10px 0 0 15px;
-}
-
-#logo {
- margin: 0;
- padding: 0;
- width: 250px;
- height: 55px;
- background: url(/bibivu/tpl/pbidir/images/pbidir.png) no-repeat;
- font-size: 1px;
-}
-
-#logo a {
- display: block;
- width: 150px;
- height: 55px;
- text-decoration: none;
- color: #fff;
-}
-
-form {
- margin: 0;
- padding: 0;
-}
-
-a img {
- border: none;
-}
-
-#banner {
- text-align: center;
-}
-
-#banner img {
- padding: 1px;
- border: 1px solid #ddd;
- margin: 10px auto;
-}
-
-input, select, textarea {
- vertical-align: middle;
- border:1px solid #000000;
- padding:2px;
-}
-input.required, select.required, textarea.required{
- border:1px solid #FF0000;
-}
-
-h1 {
- font: bold 1.8em "Arial Narrow", sans-serif, Helvetica;
- color: #0075d8;
- margin: 0.2em 0;
- padding: 0;
-}
-
-h2 {
- font: bold 1.1em Verdana, sans-serif, Helvetica;
- color: #a20000;
- margin: 0.2em 0;
- padding: 0;
-}
-
-#popular h1 {
- margin-left: 10px;
-}
-
-#softicons {
- height: 85px;
- background: url(/bibivu/tpl/pbidir/images/shadow.png) repeat-x;
- padding: 5px 0;
-}
-
-#softicons ul {
- list-style: none;
- padding: 0;
- margin: 0;
-}
-
-#softicons li {
- display: block;
- float: left;
- voice-family: "\"}\"";
- voice-family: inherit;
- border-left: 1px solid #a8a8a8;
-}
-
-#softicons li.first {
- voice-family: "\"}\"";
- voice-family: inherit;
- border-left: none;
-}
-
-#content {
-/* clear: left;*/
- padding: 1em;
- vertical-align:top;
-}
-
-#softlist {
- width: 100%;
-}
-
-#stats {
- float: right;
- width: 20%;
- padding-left: 10px;
-}
-
-#stats ol {
- margin: 0;
- padding: 0;
- font-size: 0.9em;
-}
-
-#stats li {
- padding: 0;
- margin: 0;
-}
-
-/* Home page: List of categs */
-
-#cats {
- float: left;
- width: 74%;
- border-right: 1px solid #eee;
- padding-right: 10px;
-}
-
-#cats ul {
- margin: 0;
- padding: 0;
- list-style: none;
-}
-
-html>body #cats ul {
- width: 100%;
-}
-
-#cats li {
- width: 100%;
- border-bottom: 1px solid #ddd;
- padding-bottom: 5px;
- margin-bottom: 5px;
-}
-
-
-#cats li img {
- float: left;
- display: block;
- margin: 0 5px 0 0;
-}
-
-.categ {
- height: 50px;
-}
-
-.categname {
- font: bold 18px Arial, sans-serif, Helvetica;
- padding: 5px 0 0 0;
-}
-
-
-/* Separation */
-
-div.separ {
- clear: both;
- height: 3px;
- background: #a70000;
- border-bottom: 2px solid #eee;
-}
-
-div.separ hr {
- display: none;
-}
-
-div.separ_comment {
- clear: both;
- height: 2px;
- background: #a70000;
- border-bottom: 1px solid #eee;
- margin-bottom:10px;
-}
-
-div.separ_comment hr {
- display: none;
-}
-
-/* Footer */
-
-#footer {
- clear: both;
- font-size: 0.85em;
- color: #666;
- padding:5px;
-}
-
-/* Software list */
-
-.breadcrumbs {
- list-style: none;
- margin: 1em 0;
- padding: 0;
-}
-
-.breadcrumbs li {
- display: inline;
- padding: 0 10px;
- background: url(/bibivu/tpl/pbidir/images/bullet.gif) 0 50% no-repeat;
-}
-
-.desc {
- background: url(/bibivu/tpl/pbidir/images/decr.gif) 0 65% no-repeat;
- padding-left: 10px;
-}
-
-.asc {
- background: url(/bibivu/tpl/pbidir/images/cres.gif) 0 65% no-repeat;
- padding-left: 10px;
-}
-
-table.packages {
- width: 100%;
- border-collapse: collapse;
-}
-
-table.packages th {
- background: #eee;
- padding: 5px;
- text-align: center;
-}
-
-table.packages td {
- border-bottom: 1px solid #666;
- padding: 1em 0;
-}
-
-table.packages th.name {
- text-align: left;
- width: 40%;
-}
-
-table.packages td.name {
- width: 40%;
-}
-
-table.packages th.added, table.packages td.added {
- text-align: center;
- width: 15%;
-}
-
-table.packages th.rating, table.packages td.rating {
- text-align: center;
- width: 15%;
-}
-
-table.packages th.counter, table.packages td.counter {
- text-align: center;
- width: 15%;
-}
-
-table.packages th.links {
- text-align: center;
- width: 15%;
-}
-
-table.packages td.links {
- width: 15%;
-}
-
-table.packages table {
- width: 100px;
- margin: 0 auto;
-}
-
-table.packages table td {
- border: none;
- margin: 0 10px;
-}
-
-table.packages ul {
- list-style: none;
- padding: 0;
- margin: 0;
-}
-
-table.packages li {
- padding: 0 0 0.2em 15px;
- margin: 0;
- background: url(/bibivu/tpl/pbidir/images/bullet.png) 0 65% no-repeat;
- font-size: 0.9em;
-}
-
-table.packages .quickdesc {
- font-size: 11px;
-}
-
-table.packages h1 a {
- font: bold 12px Verdana, sans-serif, Helvetica;
- color: #a00000;
-}
-
-/* Details */
-
-tr.highlight {
- background: #eee;
-}
-
-div.downlinks {
- margin:0 10px 10px 0;
-}
-
-div.downlinks ul {
- margin: 0;
- padding: 0;
- list-style: none;
-}
-
-div.downlinks li {
- padding: 0.2em 0;
- margin: 0;
- font-size:15px;
-}
-
-/* Admin */
-
-ul.adminbar {
- margin: 0;
- padding: 3px;
- list-style: none;
- background: #eef4f6;
-}
-
-ul.adminbar li {
- margin: 0;
- display: inline;
- background: url(/bibivu/tpl/pbidir/images/separ.png) 0 75% no-repeat;
- padding: 0 5px;
-}
-
-ul.adminbar li.first {
- background: url(/bibivu/tpl/pbidir/images/bullet.gif) 0 75% no-repeat;
- padding: 0 0 0 10px;
-}
-
-.search_text{
- height:18px;
- background-image: url(/bibivu/tpl/pbidir/images/search.gif);
- background-position: 2px;
- background-repeat: no-repeat;
- padding-left:20px;
-}
-.search_button{
- height:24px;
- margin-left:5px;
-}
-#search_form{
- margin:10px;
-}
-.rating_bar{
- height: 14px;
- background-color: #FBFFAA;
- border-right:1px solid #FF3300;
- text-align:right;
- padding:1px 2px 1px 1px;
-}
-.container_rating_bar{
- background-color: #EAEAEA;
- border:1px inset #B863E4;
- width:101px;
- text-align:left;
-}
-
-/* votes */
-.vote_box{
- background-color: #EAEAEA;
- border:1px inset #B863E4;
- width:101px;
- height: 14px;
-}
-.vote_vote a, .vote_vote{
- float:left;
- width:9px;
- text-decoration:none;
- text-align:right;
- color:#000;
-}
-#vote_10{
- width:19px;
-}
-.vote_selected{
- border-right:1px solid #FF3300;
-}
-.vote_selected_back{
- background-color: #FBFFAA;
-}
-.window{
- border:1px solid #DEDEDE;
- text-align:center;
- background-color:#FAFAFA;
- vertical-align:middle;
-}
-.error_message{
- border:1px solid #FF0000;
- background-color:#FFFFCC;
- color:#FF0000;
- font-size:12px;
- padding:2px;
- font-weight:bold;
- margin:4px;
-}
-/* comments */
-#comment_form_div{
- font-size:10px;
-}
-#submit_comment{
-}
-
-.button{
- font-size:12px;
- color:#797979;
- font-weight:bold;
- border:1px solid #EBEBEB;
- background-color:#F5F5F5;
- text-decoration:none;
-}
-.button:hover{
- color:#000000;
-}
-.comment_form{
- width:100%;
-}
-.textareabox{
- width:100%;
- height:100px;
-}
-.comment_message{
- font-size:10px;
- border: 1px solid #EBEBEB;
- margin:4px 4px 10px 4px;
-}
-.comment_header{
- width:100%;
- background-color:#F5F5F5;
- height:16px;
- border-bottom: 1px solid #EBEBEB;
-}
-.comment_user{
- text-align:left;
- float:left;
- padding:2px;
- text-decoration:none;
-}
-.comment_user a{
- text-decoration:none;
-}
-.comment_date{
- text-align:right;
- float:right;
- padding:2px;
-}
-.comment_actions{
- text-align:right;
- float:right;
- padding:2px;
-}
-.comment_body{
- clear:both;
- margin:2px;
- padding:4px;
- font-size:12px;
-}
-
-/* admin */
-.admin_menu{
- border: 1px solid #EBEBEB;
- background-color:#F5F5F5;
-/* height:16px; */
- margin:0 0 5px 0;
- text-align:center;
- font-weight:bold;
-}
-.admin_menu ul{
- padding:0 0 0 10px;
- margin:0px;
- list-style:none;
- font-weight:bold;
-}
-.admin_menu ul li{
- float:left;
- padding-left:10px;
-}
-
-.admin_menu ul li a{
- font-weight:normal;
-}
-
-/* list */
-.list{
- border:1px double #EBEBEB;
- width:100%;
- margin:0px;
- padding:0px;
- border-spacing:0px;
-}
-
-.list .row{
- border-spacing:0px;
- width:100%;
- height:16px;
- clear:both;
-}
-
-.row_odd{
- background-color:#F3F3F3;
-}
-.row_even{
-}
-.row_hover{
- background-color:#E1E8FF;
-}
-.row_highlight{
- background-color:#D9D9FF;
-}
-
-.list .pc_bsd_version{
- font-weight:bold;
- background-color:#F5F5F5;
- text-align:left;
- height:25px;
- padding-left:5px;
- border-top:1px solid #A1A1A1;
- border-bottom:1px dashed #A1A1A1;
-}
-
-.list .head{
- font-weight:bold;
- background-color:#F5F5F5;
- text-align:center;
- height:25px;
-}
-.list .head .row a{
- color:#000000;
-}
-.list .foot{
- font-weight:bold;
- background-color:#F5F5F5;
-}
-
-.list .foot .field{
- margin:0px;
- padding:2px 0 2px 0;
- border-top:1px solid #000;
-}
-.list .field{
- margin:0px;
- padding:0px 2px 0px 2px;
-}
-.list .field_edit{
- text-decoration:none;
-}
-.list td{
-/* border-left:2px solid #F5F5F5; */
-/* border-bottom:2px solid #F5F5F5; */
- border:1px solid #F5F5F5;
- padding:1px;
-}
-th.headerSortUp, th.headerSortDown{
- background-color: #E1E8FF;
-}
-th.headerSortUp a, th.headerSortDown a{
- color:#FFFFFF;
- text-decoration:none;
- padding-left: 10px;
-}
-th.headerSortDown a{
- background: url(/bibivu/tpl/pbidir/images/decr.gif) 0 65% no-repeat;
-}
-
-th.headerSortUp a{
- background: url(/bibivu/tpl/pbidir/images/cres.gif) 0 65% no-repeat;
-}
-.form{
- padding:10px;
- border:1px double #EBEBEB;
- overflow:auto;
-}
-.form_field{
- padding:4px;
- border-top:1px solid #EBEBEB;
- border-bottom:1px solid #EBEBEB;
- clear:both;
-}
-.form_field_label{
- width:100px;
- float:left;
-}
-.form_field_input{
- margin-left:100px;
-}
-
-.show_related_table{
- cursor:pointer;
-}
-/* divBOX */
-#FP_divBOX{
- display:block;
- overflow:visible;
- margin:5px 0 5px 0;
- padding:5px;
-}
-#divBox_load {
- position: fixed;
- display:none;
- height:13px;
- width:208px;
- z-index:103;
- top: 50%;
- left: 50%;
- margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */
- /* ie6 hack */
- position: absolute;
- margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
-}
-
-
-.pbi_images{
- float:right;
- width:102px;
- border:1px solid #EBEBEB;
- height:125px;
- overflow:hidden;
- padding:1px;
- float:left;
-}
-.pbi_image{
- border:none;
- max-width:100px;
- max-height:100px;
- vertical-align:baseline;
- border:1px solid #EBEBEB;
-}
-.pbi_description{
- margin-bottom:20px;
- clear:left;
-}
-.pbi_releases{
- clear:both;
- margin-bottom:20px;
-}
-.pbi_info{
- float:right;
- margin:5px;
- border:1px solid #EBEBEB;
- padding:2px;
-}
-.pbi_icon{
- float:left;
- margin:2px;
- border:none;
- width:48px;
-}
-#subscribe_pbi{
- font-weight:bold;
- text-align:center;
-}
-#alternative_pbi{
- text-align:center;
-}
-.pbi_legend{
- width:20px;
- float:left;
- padding-right:5px;
-}
-
-.languages{
- float:right;
- border:1px solid #EBEBEB;
- background-color: #EBEBEB;
- padding:5px;
-}
-
-.language_flag{
- margin:5px;
-}
-
-.link_image{
- float:left;
- padding-right:5px;
-}
-.link_image_small{
- padding-right:2px;
- width:25px;
- float:left;
-}
-.login_username{
- background-image: url(/bibivu/tpl/pbidir/images/login/username.gif);
- background-position: 2px;
- background-repeat: no-repeat;
- padding-left:20px;
-}
-.login_password{
- background-image: url(/bibivu/tpl/pbidir/images/login/password.gif);
- background-position: 0px 2px;
- background-repeat: no-repeat;
- padding-left:20px;
+body {
+ font: 0.75em Verdana, sans-serif, Helvetica;
+ background: #f2f2f2;
+ margin: 0;
+ padding: 0;
+}
+
+a:link, a:visited {
+ color: #005dab;
+}
+
+a:hover {
+ color: #00325d;
+}
+
+.dp, .dp a {
+ color: #ccc;
+}
+
+ul {
+ list-style: none;
+}
+
+.clear {
+ clear: both;
+}
+
+.mirrors li {
+ float:left;
+ background-color:#EEE;
+ border:1px solid #DDD;
+ width:354px;
+ height:20px;
+}
+.mirrors li:hover {
+ background-color:#FEFEFE;
+ border:1px solid #DDD;
+}
+.mirrors li a:hover {
+ font-weight:bold;
+}
+#container {
+ width: 100%;
+ text-align: center;
+}
+
+#main {
+ width: 750px;
+ text-align: left;
+ margin: 0 auto;
+ background: #fff;
+ border-left: 1px solid #7397ab;
+ border-right: 1px solid #7397ab;
+}
+
+#header {
+ height: 100px;
+ background: url(/bibivu/tpl/pbidir/images/top.png) repeat-x;
+}
+
+#header p {
+ padding: 0;
+ margin: 10px 0 0 15px;
+}
+
+#logo {
+ margin: 0;
+ padding: 0;
+ width: 250px;
+ height: 55px;
+ background: url(/bibivu/tpl/pbidir/images/pbidir.png) no-repeat;
+ font-size: 1px;
+}
+
+#logo a {
+ display: block;
+ width: 150px;
+ height: 55px;
+ text-decoration: none;
+ color: #fff;
+}
+
+form {
+ margin: 0;
+ padding: 0;
+}
+
+a img {
+ border: none;
+}
+
+#banner {
+ text-align: center;
+}
+
+#banner img {
+ padding: 1px;
+ border: 1px solid #ddd;
+ margin: 10px auto;
+}
+
+input, select, textarea {
+ vertical-align: middle;
+ border:1px solid #000000;
+ padding:2px;
+}
+input.required, select.required, textarea.required{
+ border:1px solid #FF0000;
+}
+
+h1 {
+ font: bold 1.8em "Arial Narrow", sans-serif, Helvetica;
+ color: #0075d8;
+ margin: 0.2em 0;
+ padding: 0;
+}
+
+h2 {
+ font: bold 1.1em Verdana, sans-serif, Helvetica;
+ color: #a20000;
+ margin: 0.2em 0;
+ padding: 0;
+}
+
+#popular h1 {
+ margin-left: 10px;
+}
+
+#softicons {
+ height: 85px;
+ background: url(/bibivu/tpl/pbidir/images/shadow.png) repeat-x;
+ padding: 5px 0;
+}
+
+#softicons ul {
+ list-style: none;
+ padding: 0;
+ margin: 0;
+}
+
+#softicons li {
+ display: block;
+ float: left;
+ voice-family: "\"}\"";
+ voice-family: inherit;
+ border-left: 1px solid #a8a8a8;
+}
+
+#softicons li.first {
+ voice-family: "\"}\"";
+ voice-family: inherit;
+ border-left: none;
+}
+
+#content {
+/* clear: left;*/
+ padding: 1em;
+ vertical-align:top;
+}
+
+#softlist {
+ width: 100%;
+}
+
+#stats {
+ float: right;
+ width: 20%;
+ padding-left: 10px;
+}
+
+#stats ol {
+ margin: 0;
+ padding: 0;
+ font-size: 0.9em;
+}
+
+#stats li {
+ padding: 0;
+ margin: 0;
+}
+
+/* Home page: List of categs */
+
+#cats {
+ float: left;
+ width: 74%;
+ border-right: 1px solid #eee;
+ padding-right: 10px;
+}
+
+#cats ul {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+
+html>body #cats ul {
+ width: 100%;
+}
+
+#cats li {
+ width: 100%;
+ border-bottom: 1px solid #ddd;
+ padding-bottom: 5px;
+ margin-bottom: 5px;
+}
+
+
+#cats li img {
+ float: left;
+ display: block;
+ margin: 0 5px 0 0;
+}
+
+.categ {
+ height: 50px;
+}
+
+.categname {
+ font: bold 18px Arial, sans-serif, Helvetica;
+ padding: 5px 0 0 0;
+}
+
+
+/* Separation */
+
+div.separ {
+ clear: both;
+ height: 3px;
+ background: #a70000;
+ border-bottom: 2px solid #eee;
+}
+
+div.separ hr {
+ display: none;
+}
+
+div.separ_comment {
+ clear: both;
+ height: 2px;
+ background: #a70000;
+ border-bottom: 1px solid #eee;
+ margin-bottom:10px;
+}
+
+div.separ_comment hr {
+ display: none;
+}
+
+/* Footer */
+
+#footer {
+ clear: both;
+ font-size: 0.85em;
+ color: #666;
+ padding:5px;
+}
+
+/* Software list */
+
+.breadcrumbs {
+ list-style: none;
+ margin: 1em 0;
+ padding: 0;
+}
+
+.breadcrumbs li {
+ display: inline;
+ padding: 0 10px;
+ background: url(/bibivu/tpl/pbidir/images/bullet.gif) 0 50% no-repeat;
+}
+
+.desc {
+ background: url(/bibivu/tpl/pbidir/images/decr.gif) 0 65% no-repeat;
+ padding-left: 10px;
+}
+
+.asc {
+ background: url(/bibivu/tpl/pbidir/images/cres.gif) 0 65% no-repeat;
+ padding-left: 10px;
+}
+
+table.packages {
+ width: 100%;
+ border-collapse: collapse;
+}
+
+table.packages th {
+ background: #eee;
+ padding: 5px;
+ text-align: center;
+}
+
+table.packages td {
+ border-bottom: 1px solid #666;
+ padding: 1em 0;
+}
+
+table.packages th.name {
+ text-align: left;
+ width: 40%;
+}
+
+table.packages td.name {
+ width: 40%;
+}
+
+table.packages th.added, table.packages td.added {
+ text-align: center;
+ width: 15%;
+}
+
+table.packages th.rating, table.packages td.rating {
+ text-align: center;
+ width: 15%;
+}
+
+table.packages th.counter, table.packages td.counter {
+ text-align: center;
+ width: 15%;
+}
+
+table.packages th.links {
+ text-align: center;
+ width: 15%;
+}
+
+table.packages td.links {
+ width: 15%;
+}
+
+table.packages table {
+ width: 100px;
+ margin: 0 auto;
+}
+
+table.packages table td {
+ border: none;
+ margin: 0 10px;
+}
+
+table.packages ul {
+ list-style: none;
+ padding: 0;
+ margin: 0;
+}
+
+table.packages li {
+ padding: 0 0 0.2em 15px;
+ margin: 0;
+ background: url(/bibivu/tpl/pbidir/images/bullet.png) 0 65% no-repeat;
+ font-size: 0.9em;
+}
+
+table.packages .quickdesc {
+ font-size: 11px;
+}
+
+table.packages h1 a {
+ font: bold 12px Verdana, sans-serif, Helvetica;
+ color: #a00000;
+}
+
+/* Details */
+
+tr.highlight {
+ background: #eee;
+}
+
+div.downlinks {
+ margin:0 10px 10px 0;
+}
+
+div.downlinks ul {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+
+div.downlinks li {
+ padding: 0.2em 0;
+ margin: 0;
+ font-size:15px;
+}
+
+/* Admin */
+
+ul.adminbar {
+ margin: 0;
+ padding: 3px;
+ list-style: none;
+ background: #eef4f6;
+}
+
+ul.adminbar li {
+ margin: 0;
+ display: inline;
+ background: url(/bibivu/tpl/pbidir/images/separ.png) 0 75% no-repeat;
+ padding: 0 5px;
+}
+
+ul.adminbar li.first {
+ background: url(/bibivu/tpl/pbidir/images/bullet.gif) 0 75% no-repeat;
+ padding: 0 0 0 10px;
+}
+
+.search_text{
+ height:18px;
+ background-image: url(/bibivu/tpl/pbidir/images/search.gif);
+ background-position: 2px;
+ background-repeat: no-repeat;
+ padding-left:20px;
+}
+.search_button{
+ height:24px;
+ margin-left:5px;
+}
+#search_form{
+ margin:10px;
+}
+.rating_bar{
+ height: 14px;
+ background-color: #FBFFAA;
+ border-right:1px solid #FF3300;
+ text-align:right;
+ padding:1px 2px 1px 1px;
+}
+.container_rating_bar{
+ background-color: #EAEAEA;
+ border:1px inset #B863E4;
+ width:101px;
+ text-align:left;
+}
+
+/* votes */
+.vote_box{
+ background-color: #EAEAEA;
+ border:1px inset #B863E4;
+ width:101px;
+ height: 14px;
+}
+.vote_vote a, .vote_vote{
+ float:left;
+ width:9px;
+ text-decoration:none;
+ text-align:right;
+ color:#000;
+}
+#vote_10{
+ width:19px;
+}
+.vote_selected{
+ border-right:1px solid #FF3300;
+}
+.vote_selected_back{
+ background-color: #FBFFAA;
+}
+.window{
+ border:1px solid #DEDEDE;
+ text-align:center;
+ background-color:#FAFAFA;
+ vertical-align:middle;
+}
+.error_message{
+ border:1px solid #FF0000;
+ background-color:#FFFFCC;
+ color:#FF0000;
+ font-size:12px;
+ padding:2px;
+ font-weight:bold;
+ margin:4px;
+}
+/* comments */
+#comment_form_div{
+ font-size:10px;
+}
+#submit_comment{
+}
+
+.button{
+ font-size:12px;
+ color:#797979;
+ font-weight:bold;
+ border:1px solid #EBEBEB;
+ background-color:#F5F5F5;
+ text-decoration:none;
+}
+.button:hover{
+ color:#000000;
+}
+.comment_form{
+ width:100%;
+}
+.textareabox{
+ width:100%;
+ height:100px;
+}
+.comment_message{
+ font-size:10px;
+ border: 1px solid #EBEBEB;
+ margin:4px 4px 10px 4px;
+}
+.comment_header{
+ width:100%;
+ background-color:#F5F5F5;
+ height:16px;
+ border-bottom: 1px solid #EBEBEB;
+}
+.comment_user{
+ text-align:left;
+ float:left;
+ padding:2px;
+ text-decoration:none;
+}
+.comment_user a{
+ text-decoration:none;
+}
+.comment_date{
+ text-align:right;
+ float:right;
+ padding:2px;
+}
+.comment_actions{
+ text-align:right;
+ float:right;
+ padding:2px;
+}
+.comment_body{
+ clear:both;
+ margin:2px;
+ padding:4px;
+ font-size:12px;
+}
+
+/* admin */
+.admin_menu{
+ border: 1px solid #EBEBEB;
+ background-color:#F5F5F5;
+/* height:16px; */
+ margin:0 0 5px 0;
+ text-align:center;
+ font-weight:bold;
+}
+.admin_menu ul{
+ padding:0 0 0 10px;
+ margin:0px;
+ list-style:none;
+ font-weight:bold;
+}
+.admin_menu ul li{
+ float:left;
+ padding-left:10px;
+}
+
+.admin_menu ul li a{
+ font-weight:normal;
+}
+
+/* list */
+.list{
+ border:1px double #EBEBEB;
+ width:100%;
+ margin:0px;
+ padding:0px;
+ border-spacing:0px;
+}
+
+.list .row{
+ border-spacing:0px;
+ width:100%;
+ height:16px;
+ clear:both;
+}
+
+.row_odd{
+ background-color:#F3F3F3;
+}
+.row_even{
+}
+.row_hover{
+ background-color:#E1E8FF;
+}
+.row_highlight{
+ background-color:#D9D9FF;
+}
+
+.list .pc_bsd_version,
+.list .tab_head {
+ background-color:#CCC;
+ font-weight:bold;
+ text-align:left;
+ height:25px;
+ padding-left:5px;
+ border-top:1px solid #A1A1A1;
+ border-bottom:1px dashed #A1A1A1;
+}
+
+.list .head{
+ font-weight:bold;
+ background-color:#F5F5F5;
+ text-align:center;
+ height:25px;
+}
+.list .head .row a{
+ color:#000000;
+}
+.list .tab_head{
+ background-color:#F5F5F5;
+}
+.list .foot{
+ font-weight:bold;
+ background-color:#F5F5F5;
+}
+
+.list .foot .field{
+ margin:0px;
+ padding:2px 0 2px 0;
+ border-top:1px solid #000;
+}
+.list .field{
+ margin:0px;
+ padding:0px 2px 0px 2px;
+}
+.list .field_edit{
+ text-decoration:none;
+}
+.list td{
+/* border-left:2px solid #F5F5F5; */
+/* border-bottom:2px solid #F5F5F5; */
+ border:1px solid #F5F5F5;
+ padding:1px;
+}
+th.headerSortUp, th.headerSortDown{
+ background-color: #E1E8FF;
+}
+th.headerSortUp a, th.headerSortDown a{
+ color:#FFFFFF;
+ text-decoration:none;
+ padding-left: 10px;
+}
+th.headerSortDown a{
+ background: url(/bibivu/tpl/pbidir/images/decr.gif) 0 65% no-repeat;
+}
+
+th.headerSortUp a{
+ background: url(/bibivu/tpl/pbidir/images/cres.gif) 0 65% no-repeat;
+}
+.form{
+ padding:10px;
+ border:1px double #EBEBEB;
+ overflow:auto;
+}
+.form_field{
+ padding:4px;
+ border-top:1px solid #EBEBEB;
+ border-bottom:1px solid #EBEBEB;
+ clear:both;
+}
+.form_field_label{
+ width:100px;
+ float:left;
+}
+.form_field_input{
+ margin-left:100px;
+}
+
+.show_related_table{
+ cursor:pointer;
+}
+/* divBOX */
+#FP_divBOX{
+ display:block;
+ overflow:visible;
+ margin:5px 0 5px 0;
+ padding:5px;
+}
+#divBox_load {
+ position: fixed;
+ display:none;
+ height:13px;
+ width:208px;
+ z-index:103;
+ top: 50%;
+ left: 50%;
+ margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */
+ /* ie6 hack */
+ position: absolute;
+ margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
+}
+
+
+.pbi_images{
+ float:right;
+ width:102px;
+ border:1px solid #EBEBEB;
+ height:125px;
+ overflow:hidden;
+ padding:1px;
+ float:left;
+}
+.pbi_image{
+ border:none;
+ max-width:100px;
+ max-height:100px;
+ vertical-align:baseline;
+ border:1px solid #EBEBEB;
+}
+.pbi_description{
+ margin-bottom:20px;
+ clear:left;
+}
+.pbi_releases{
+ clear:both;
+ margin-bottom:20px;
+}
+.pbi_info{
+ float:right;
+ margin:5px;
+ border:1px solid #EBEBEB;
+ padding:2px;
+}
+.pbi_icon{
+ float:left;
+ margin:2px;
+}
+.pbi_main_icon{
+ border:none;
+ width:48px;
+ padding-bottom:2px;
+}
+#subscribe_pbi{
+ font-weight:bold;
+ text-align:center;
+}
+#alternative_pbi{
+ text-align:center;
+}
+.pbi_legend{
+ width:20px;
+ float:left;
+ padding-right:5px;
+ border:0px;
+}
+
+.languages{
+ float:right;
+ border:1px solid #EBEBEB;
+ background-color: #EBEBEB;
+ padding:5px;
+}
+
+.language_flag{
+ margin:5px;
+}
+
+.link_image{
+ float:left;
+ padding-right:5px;
+}
+.link_image_small{
+ padding-right:2px;
+ width:25px;
+ float:left;
+}
+.login_username{
+ background-image: url(/bibivu/tpl/pbidir/images/login/username.gif);
+ background-position: 2px;
+ background-repeat: no-repeat;
+ padding-left:20px;
+}
+.login_password{
+ background-image: url(/bibivu/tpl/pbidir/images/login/password.gif);
+ background-position: 0px 2px;
+ background-repeat: no-repeat;
+ padding-left:20px;
}
\ No newline at end of file
Modified: websites/pbidir.com/bibivu/tpl/js/functions.js
===================================================================
--- websites/pbidir.com/bibivu/tpl/js/functions.js 2009-01-24 02:27:25 UTC (rev 3322)
+++ websites/pbidir.com/bibivu/tpl/js/functions.js 2009-01-24 05:19:46 UTC (rev 3323)
@@ -2,9 +2,14 @@
var voted = 0;
var filter_using = 0;
$(function(){
+ //toggle rows in a table
+ $('.tab_head').click(function() {
+ $('.tab_body_' + $(this).attr('id').substring(9)).toggle();
+ });
+
//tabbing on the pbi page
$('.pbi_releases > ul').tabs();
-
+
//images scroller for pbi page
imageScroller("viewerFrame");
Modified: websites/pbidir.com/bibivu/tpl/pbidir/pages/site_developers.php
===================================================================
--- websites/pbidir.com/bibivu/tpl/pbidir/pages/site_developers.php 2009-01-24 02:27:25 UTC (rev 3322)
+++ websites/pbidir.com/bibivu/tpl/pbidir/pages/site_developers.php 2009-01-24 05:19:46 UTC (rev 3323)
@@ -7,7 +7,7 @@
<h2>Translations</h2>
<div style="float:left;width:85px;font-weight:bold;">Deutsch: </div>Marcel Kaming<br /><br />
<div style="float:left;width:85px;font-weight:bold;">English: </div>Fabrizio Parrella<br /><br />
-<div style="float:left;width:85px;font-weight:bold;">Spanish: </div>Gonzalo Martinez<br /><br />
+<div style="float:left;width:85px;font-weight:bold;">Spanish: </div>Gonzalo Martinez-Sanjuan Sanchez<br /><br />
<div style="float:left;width:85px;font-weight:bold;">French: </div>Guillaume / Marie Walrafen<br /><br />
<div style="float:left;width:85px;font-weight:bold;">Italian: </div>Fabrizio Parrella<br /><br />
<div style="float:left;width:85px;font-weight:bold;">Japanese: </div>Jun Yamashiro<br /><br />
Modified: websites/pbidir.com/bibivu/tpl/pbidir/pbi.php
===================================================================
--- websites/pbidir.com/bibivu/tpl/pbidir/pbi.php 2009-01-24 02:27:25 UTC (rev 3322)
+++ websites/pbidir.com/bibivu/tpl/pbidir/pbi.php 2009-01-24 05:19:46 UTC (rev 3323)
@@ -87,25 +87,7 @@
?><a href="<?=load_class('uri')->create_uri(array(CLASS_KEY=>'admin', TASK_KEY=>'pbi_translation','list'=>'','ajax'=>'', 'pbi_id'=>$pbi['id']))?>" class="divBox"><input type="button" value=" Translate This PBI " class="button edit divBox" /></a><?php
}
?></div>
-<?php
-if($pbi['use_wine']=='y'){
- ?><img src="/bibivu/tpl/pbidir/images/pbi/icon_wine.png" alt="<?=load_library('lang')->get('pbi_use_wine')?>" title="<?=load_library('lang')->get('pbi_use_wine')?>" class="pbi_legend" /><?php
-}
-if($pbi['alternative_for']!=''){
- ?><img src="/bibivu/tpl/pbidir/images/pbi/icon_windows.gif" alt="<?=load_library('lang')->get('pbi_alternative_for_windows_package')?>" title="<?=load_library('lang')->get('pbi_alternative_for_windows_package')?>" class="pbi_legend" /><?php
-}
-switch($pbi['interface']){
- case 'g':
- ?><img src="/bibivu/tpl/pbidir/images/pbi/icon_gui.gif" alt="<?=load_library('lang')->get('pbi_graphical_interface')?>" title="<?=load_library('lang')->get('pbi_graphical_interface')?>" class="pbi_legend" /><?php
- break;
- case 'w':
- ?><img src="/bibivu/tpl/pbidir/images/pbi/icon_web.png" alt="<?=load_library('lang')->get('pbi_web_interface')?>" title="<?=load_library('lang')->get('pbi_web_interface')?>" class="pbi_legend" /><?php
- break;
- case 'c':
- ?><img src="/bibivu/tpl/pbidir/images/pbi/icon_konsole.png" alt="<?=load_library('lang')->get('pbi_command_line_interface')?>" title="<?=load_library('lang')->get('pbi_command_line_interface')?>" class="pbi_legend" /><?php
- break;
-}
-?>
+<?=$this->show('pbidir/pbi_icons')?>
<div class="pbi_description">
<h2><?=load_library('lang')->get('pbi_description')?></h2>
<?=nl2br(load_library('bbcode')->parse($pbi['description']))?>
Modified: websites/pbidir.com/bibivu/tpl/pbidir/pbi_versions.php
===================================================================
--- websites/pbidir.com/bibivu/tpl/pbidir/pbi_versions.php 2009-01-24 02:27:25 UTC (rev 3322)
+++ websites/pbidir.com/bibivu/tpl/pbidir/pbi_versions.php 2009-01-24 05:19:46 UTC (rev 3323)
@@ -21,14 +21,32 @@
</thead>
<tbody><?php
$version = '';
+ $i=0;
foreach($value as $pbi_release){
preg_match('/^\d+\./',$pbi_release['pcbsd_version'],$new_version);
if(!isset($new_version[0]) || $version!=$new_version[0]){
$version=(isset($new_version[0])?$new_version[0]:'');
- ?><tr>
- <th colspan="5" class="pc_bsd_version">PC-BSD <?=$key?>bit v.<?=$version?>x</th>
- </tr><?php
+ ?></tbody>
+ <thead>
+ <tr>
+ <th colspan="5" class="pc_bsd_version">PC-BSD <?=$key?>bit v.<?=$version?>x</th>
+ </tr>
+ </thead>
+ <tbody>
+ <?php
+ $i = 1;
}
+ if($i==4){
+ ?>
+ </tbody>
+ <thead class="tab_head" id="tab_head_<?=intval($key.$version)?>">
+ <tr>
+ <th colspan="5" class=""> Click here for Previous Releases</th>
+ </tr>
+ </thead>
+ <tbody class="<?=($i>=4?'tab_body_'.intval($key.$version):'')?>" style="display:none;">
+ <?php
+ }
?><tr>
<td align="left"> <a href="<?=$download_uri?>/<?=$pbi['id']?>/<?=$pbi_release['id']?>"><?=$pbi_release['version']?></a></td>
<td align="left"><?=$pbi_release['summary']?></td>
@@ -36,6 +54,7 @@
<td align="right"><?=load_library('format')->date($pbi_release['date_last_modified'])?></td>
<td align="right"><?=$pbi_release['pcbsd_version']?></td>
</tr><?php
+ $i++;
}
?></tbody>
</table>
Modified: websites/pbidir.com/bibivu/tpl/pbidir/search.php
===================================================================
--- websites/pbidir.com/bibivu/tpl/pbidir/search.php 2009-01-24 02:27:25 UTC (rev 3322)
+++ websites/pbidir.com/bibivu/tpl/pbidir/search.php 2009-01-24 05:19:46 UTC (rev 3323)
@@ -4,6 +4,8 @@
</ul><?php
if(isset($result['web_alias'])){
$this_uri = $category_uri.'/'.$result['web_alias'];
+} elseif($task=='type' && isset($type_search)){
+ $this_uri = $type_uri.'/'.$type_search;
} else {
$this_uri = $search_uri.'str/'.urlencode($search_text);
}
@@ -19,15 +21,21 @@
</tr>
<?php
foreach($pbis as $pbi){
+ $this->assign('pbi',$pbi);
+ $this->assign('hide_legend_g_interface',true);
?><tr>
<td class="name">
- <?php
- if($pbi['icon']!=''){
- ?><a href="<?=$pbi_uri?>/<?=$pbi['id']?>"><img src="<?=$pbi['icon']?>" alt="icon" title="icon" class="pbi_icon" /></a><?php
- }
- ?>
+ <div class="pbi_icon">
+ <?php
+ if($pbi['icon']!=''){
+ ?><a href="<?=$pbi_uri?>/<?=$pbi['id']?>"><img src="<?=$pbi['icon']?>" alt="icon" title="icon" class="pbi_main_icon" /></a><?php
+ }
+ ?>
+ <?=$this->show('pbidir/pbi_icons')?>
+ </div>
<div class="quickdesc">
<h1><a href="<?=$pbi_uri?>/<?=$pbi['id']?>/<?=strtolower(preg_replace('/[^0-9a-z]/i','_',$pbi['name']))?>"><?=$pbi['name']?></a></h1>
+ <br />
<div class="infos">
<strong><?=load_library('lang')->get('search_licence')?>:</strong> <?=$pbi['licence']?><br /><?php
if($pbi['summary']!=''){
@@ -35,7 +43,7 @@
} ?></div>
</div>
</td>
- <td class="added"><?=load_library('format')->date($pbi['date_added'])?></td>
+ <td class="added"><?=load_library('format')->date($pbi['date_last_status_id'])?></td>
<td class="rating"><div class="container_rating_bar"><div class="rating_bar" style="width: <?=$pbi['rating']*10?>px;"><?=$pbi['rating']?></div></div></td>
<td class="counter"><?=load_library('format')->number_format($pbi['total_download'])?></td>
</tr><?php
More information about the Commits
mailing list