cvs: pres2 / display.php objects.php
| From: | Rasmus Lerdorf | Date: | Thu, 22 Jan 2004 22:02:00 +0000 |
| Subject: | cvs: pres2 / display.php objects.php | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-955@lists.php.net to get a copy of this message | ||
rasmus Thu Jan 22 17:02:00 2004 EDT
Modified files:
/pres2 display.php objects.php
Log:
Add bgcolor to the table tag
http://cvs.php.net/diff.php/pres2/display.php?r1=1.11&r2=1.12&ty=u
Index: pres2/display.php
diff -u pres2/display.php:1.11 pres2/display.php:1.12
--- pres2/display.php:1.11 Tue Jan 20 16:22:19 2004
+++ pres2/display.php Thu Jan 22 17:02:00 2004
@@ -552,7 +552,7 @@
if(!empty($table->width)) {
$width = $table->width;
}
- echo '<table '.$align.' width="'.$width.'"
border="'.$table->border.'">';
+ echo '<table '.$align.' width="'.$width.'"
border="'.$table->border.'"
'.(isset($table->bgcolor)?"bgcolor=\"{$table->bgcolor}\"":'').'>';
while(list($k,$cell)=each($table->cells)) {
if(!($i % $table->columns)) {
echo "<tr>\n";
@@ -1164,6 +1164,7 @@
}
function _slide(&$slide) {
+ global $pres;
$currentPres = $_SESSION['currentPres'];
$p = $this->objs[1];
@@ -1171,8 +1172,8 @@
$this->pdf_cy = 25; // top-margin
$this->pdf_cx = 40;
-
if($this->objs[1]->template == 'titlepage') {
+ $p = $pres;
$loc = $middle - 80 * ( !empty($p->title) + !empty($p->event) +
!empty($p->date) +
(!empty($p->speaker)||!empty($p->email)) +
@@ -1341,7 +1342,6 @@
$this->pdf_cy = pdf_get_value($this->pdf, "texty")-5;
pdf_set_font($this->pdf, $this->pdf_font , -12, 'winansi');
$cw = pdf_stringwidth($this->pdf,'m'); // em unit width
-
if ($image->width) {
$dx = $image->height;
$dy = $image->width;
@@ -1354,7 +1354,8 @@
switch($type) {
case 1:
- $im = pdf_open_gif($this->pdf, $this->slideDir.$image->filename);
+ if(!strstr($image->filename,'blank'))
+ $im = pdf_open_gif($this->pdf, $this->slideDir.$image->filename);
break;
case 2:
$im = pdf_open_jpeg($this->pdf, $this->slideDir.$image->filename);
http://cvs.php.net/diff.php/pres2/objects.php?r1=1.152&r2=1.153&ty=u
Index: pres2/objects.php
diff -u pres2/objects.php:1.152 pres2/objects.php:1.153
--- pres2/objects.php:1.152 Wed Jan 7 18:04:07 2004
+++ pres2/objects.php Thu Jan 22 17:02:00 2004
@@ -414,6 +414,7 @@
$this->marginright = '0em';
$this->border = 0;
$this->columns = 2;
+ $this->bgcolor = null;
}
}