Update of /cvsroot/phpwsscoreboard/scoreboard/class
In directory sc8-pr-cvs1:/tmp/cvs-serv29383/class
Modified Files:
BoxManager.php
Log Message:
Added justification to boxscore templates
Index: BoxManager.php
===================================================================
RCS file: /cvsroot/phpwsscoreboard/scoreboard/class/BoxManager.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** BoxManager.php 6 Dec 2003 05:11:50 -0000 1.2
--- BoxManager.php 24 Dec 2003 01:01:40 -0000 1.3
***************
*** 88,92 ****
if($columns != NULL) {
foreach($columns as $value) {
! $this->box->boxscore .= "<td class=\"alt_bg_light\" nowrap=\"nowrap\">\n ";
$this->box->boxscore .= $value["title"] . "</td>\n";
if($value["colFunc"] == NULL) {
--- 88,96 ----
if($columns != NULL) {
foreach($columns as $value) {
! if($value["justify"] == NULL) {
! $value["justify"] = "left";
! }
!
! $this->box->boxscore .= "<td class=\"alt_bg_light\" nowrap=\"nowrap\" align=\"" . $value["justify"] . "\">\n ";
$this->box->boxscore .= $value["title"] . "</td>\n";
if($value["colFunc"] == NULL) {
***************
*** 112,116 ****
require(PHPWS_SOURCE_DIR . "mod/scoreboard/templates/boxscores/" . $this->box->templateName);
! $this->box->boxscore .= "<!--ROW--><tr>";
$rowCounters = explode(":", $this->box->numRows);
--- 116,120 ----
require(PHPWS_SOURCE_DIR . "mod/scoreboard/templates/boxscores/" . $this->box->templateName);
! $this->box->boxscore .= "<!--ROW--><tr>\n";
$rowCounters = explode(":", $this->box->numRows);
***************
*** 155,159 ****
$colNumber = 0;
foreach($columns as $value) {
! $this->box->boxscore .= "<td nowrap=\"nowrap\"> " . $value["prefix"];
$this->box->boxscore .= "<!--" . $value["colName"] . "-->";
--- 159,167 ----
$colNumber = 0;
foreach($columns as $value) {
! if($value["justify"] == NULL) {
! $value["justify"] = "left";
! }
!
! $this->box->boxscore .= "\n<td nowrap=\"nowrap\" align=\"" . $value["justify"] . "\"> " . $value["prefix"];
$this->box->boxscore .= "<!--" . $value["colName"] . "-->";
***************
*** 177,181 ****
$this->box->numRows = implode(":", $rowCounters);
! $this->box->boxscore .= "</tr><!--END-ROW-->";
$this->box->updateDB();
--- 185,189 ----
$this->box->numRows = implode(":", $rowCounters);
! $this->box->boxscore .= "\n</tr><!--END-ROW-->";
$this->box->updateDB();
***************
*** 198,202 ****
$memNum = 0;
foreach ($memory as $memVal) {
! $this->box->boxscore .= "<td bgcolor=\"" . $lastRow . "\" nowrap=\"nowrap\">\n ";
if($columns[$memNum]["colFunc"] == "average") {
--- 206,214 ----
$memNum = 0;
foreach ($memory as $memVal) {
! if($columns[$memNum]["justify"] == NULL) {
! $columns[$memNum]["justify"] = "left";
! }
!
! $this->box->boxscore .= "\n<td bgcolor=\"" . $lastRow . "\" nowrap=\"nowrap\" align=\"" . $columns[$memNum]["justify"] . "\">\n ";
if($columns[$memNum]["colFunc"] == "average") {
***************
*** 235,239 ****
if($columns != NULL) {
foreach($columns as $value) {
! $this->box->boxscore .= "<td class=\"alt_bg_light\" nowrap=\"nowrap\">\n ";
$this->box->boxscore .= $value["title"] . "</td>\n";
if($value["colFunc"] == NULL) {
--- 247,255 ----
if($columns != NULL) {
foreach($columns as $value) {
! if($value["justify"] == NULL) {
! $value["justify"] = "left";
! }
!
! $this->box->boxscore .= "<td class=\"alt_bg_light\" nowrap=\"nowrap\" align=\"" . $value["justify"] . "\">\n ";
$this->box->boxscore .= $value["title"] . "</td>\n";
if($value["colFunc"] == NULL) {
***************
*** 266,270 ****
$memNum = 0;
foreach ($memory as $memVal) {
! $this->box->boxscore .= "<td bgcolor=\"" . $lastRow . "\" nowrap=\"nowrap\">\n ";
if($columns[$memNum]["colFunc"] == "average") {
--- 282,290 ----
$memNum = 0;
foreach ($memory as $memVal) {
! if($columns[$memNum]["justify"] == NULL) {
! $columns[$memNum]["justify"] = "left";
! }
!
! $this->box->boxscore .= "<td bgcolor=\"" . $lastRow . "\" nowrap=\"nowrap\" align=\"" . $columns[$memNum]["justify"] . "\">\n ";
if($columns[$memNum]["colFunc"] == "average") {
|