jablonka.czprosek.czf

weathermap

Subversion Repositories:
[/] [Weathermap.class.php] - Diff between revs 1 and 2

Show entire file Ignore whitespace

Rev 1 Rev 2
Line 4521... Line 4521...
   
foreach ($this->links as $link) foreach ($this->links as $link)
{ {
if ( ($link->overliburl != '') || ($link->notestext != '') ) if ( ($link->overliburl != '') || ($link->notestext != '') )
{ {
# $overlibhtml = "onmouseover=\"return overlib('<img src=".$link->overliburl.">',DELAY,250,CAPTION,'".$link->name."');\" onmouseout=\"return nd();\""; # $overlibhtml = "onmouseover=\"return overlib('<img src=".$link->overliburl.">',HAUTO,VAUTO,DELAY,250,CAPTION,'".$link->name."');\" onmouseout=\"return nd();\"";
$a_x=$link->a->x; $a_x=$link->a->x;
$b_x=$link->b->x; $b_x=$link->b->x;
$mid_x=($a_x + $b_x) / 2; $mid_x=($a_x + $b_x) / 2;
$a_y=$link->a->y; $a_y=$link->a->y;
$b_y=$link->b->y; $b_y=$link->b->y;
Line 4568... Line 4568...
$note = htmlspecialchars($note, ENT_NOQUOTES); $note = htmlspecialchars($note, ENT_NOQUOTES);
$note=str_replace("'", "\\'", $note); $note=str_replace("'", "\\'", $note);
$note=str_replace('"', """, $note); $note=str_replace('"', """, $note);
$overlibhtml .= $note; $overlibhtml .= $note;
} }
$overlibhtml .= "',DELAY,250,${left}${above}CAPTION,'" . $caption $overlibhtml .= "',HAUTO,VAUTO,DELAY,250,${left}${above}CAPTION,'" . $caption
. "');\" onmouseout=\"return nd();\""; . "');\" onmouseout=\"return nd();\"";
   
$this->imap->setProp("extrahtml", $overlibhtml, "LINK:" . $link->name); $this->imap->setProp("extrahtml", $overlibhtml, "LINK:" . $link->name);
} }
} }
   
foreach ($this->nodes as $node) foreach ($this->nodes as $node)
{ {
if ( ($node->overliburl != '') || ($node->notestext != '') ) if ( ($node->overliburl != '') || ($node->notestext != '') )
{ {
# $overlibhtml = "onmouseover=\"return overlib('<img src=".$node->overliburl.">',DELAY,250,CAPTION,'".$node->name."');\" onmouseout=\"return nd();\""; # $overlibhtml = "onmouseover=\"return overlib('<img src=".$node->overliburl.">',HAUTO,VAUTO,DELAY,250,CAPTION,'".$node->name."');\" onmouseout=\"return nd();\"";
   
debug ($node->overlibwidth . "---" . $node->overlibheight . "---\n"); debug ($node->overlibwidth . "---" . $node->overlibheight . "---\n");
   
$left=""; $left="";
$above=""; $above="";
Line 4620... Line 4620...
$note = htmlspecialchars($note, ENT_NOQUOTES); $note = htmlspecialchars($note, ENT_NOQUOTES);
$note=str_replace("'", "\\'", $note); $note=str_replace("'", "\\'", $note);
$note=str_replace('"', """, $note); $note=str_replace('"', """, $note);
$overlibhtml .= $note; $overlibhtml .= $note;
} }
$overlibhtml .= "',DELAY,250,${left}${above}CAPTION,'" . $caption $overlibhtml .= "',HAUTO,VAUTO,DELAY,250,${left}${above}CAPTION,'" . $caption
. "');\" onmouseout=\"return nd();\""; . "');\" onmouseout=\"return nd();\"";
   
# $overlibhtml .= " onclick=\"return overlib('Some Test or other',CAPTION,'MENU',)\""; # $overlibhtml .= " onclick=\"return overlib('Some Test or other',CAPTION,'MENU',)\"";
   
$this->imap->setProp("extrahtml", $overlibhtml, "NODE:" . $node->name); $this->imap->setProp("extrahtml", $overlibhtml, "NODE:" . $node->name);

Powered by WebSVN 2.2.1