function getcolor($c)
{
if ($c == 1) return '25408F';
if ($c == 2) return '5DC9E0';
if ($c == 3) return '0083A7';
if ($c == 4) return 'BCD631';
if ($c == 5) return '00AEEF';
if ($c == 6) return '5DC9E0';
}
function getlength($l)
{
return $l * 20;
}
function getlink($k)
{
return 'http://zionism.co.il/'. $k;
}
class segment
{
var $bgcolor;
var $length;
var $linkto;
var $title;
var $subtitle;
function __construct($a_color, $a_length, $a_link, $a_title, $a_subtitle)
{
$this->bgcolor = '#'.getcolor($a_color);
$this->length = getlength($a_length);
$this->linkto = getlink($a_link);
$this->title = $a_title;
$this->subtitle = $a_subtitle;
}
function plot()
{
echo '';
echo '
echo '
';
echo '
';
echo '
';
}
}
(new segment(2,8,"nowhere","1870", "הקמת בי"ס החקלאי מקווה ישראל"))->plot();
(new segment(3,3,"nowhere","1878", "הקמת פתח תקווה"))->plot();
(new segment(4,3,"nowhere","1881", "העלייה הראשונה"))->plot();
(new segment(1,10,"nowhere","1884", "ועידת קטוביץ'"))->plot();
(new segment(2,3,"nowhere","1894", "משפט דרייפוס"))->plot();
(new segment(3,6,"nowhere","1897", "הקונגרס הציוני הראשון"))->plot();
(new segment(4,2,"nowhere","1903", "פרעות קישינב"))->plot();
(new segment(1,12,"nowhere","1905", "העלייה השניה"))->plot();
(new segment(2,2,"nowhere","1917", "הצהרת בלפור"))->plot();
(new segment(3,3,"nowhere","1919", "העלייה השלישית"))->plot();
(new segment(4,1,"nowhere","1922", "הספר הלבן הראשון"))->plot();
(new segment(1,5,"nowhere","1924","העלייה הרביעית"))->plot();
(new segment(2,2,"nowhere","1929", "מאורעות תרפט"))->plot();
(new segment(3,5,"nowhere","1931", "העלייה החמישית"))->plot();
(new segment(4,3,"nowhere","1936", "חומה ומגדל"))->plot();
(new segment(1,8,"nowhere","1939", "השואה"))->plot();
(new segment(2,1,"nowhere","1947", "העפלה – אקסודוס"))->plot();
(new segment(1,8,"nowhere","1948","הקמת המדינה ומלחמת השחרור"))->plot();
(new segment(2,11,"nowhere","1956", "מבצע קדש"))->plot();
(new segment(3,6,"nowhere","1967", "מלחמת ששת הימים"))->plot();
(new segment(4,3,"nowhere","1973", "מלחמת יום הכיפורים"))->plot();
(new segment(1,9,"nowhere","1976", "מבצע אנטבה"))->plot();
(new segment(2,3,"nowhere","1985", "מבצע משה"))->plot();[/insert_php]