";
		foreach($images as $image){
			$select .= "\n";
		}
		$select .= "";
		$html = "
";
		$page->set_title("Tips List");
		$page->set_heading("Tips List");
		$page->add_block(new NavBlock());
		$page->add_block(new Block("Add Tip", $html, "main", 10));
	}
	public function showTip($url, $tip) {
		global $page;
		$img = "";
		if(!empty($tip['image'])) {
			$img = " ";
		}
		$html = "
 ";
		}
		$html = "".$img.$tip['text']."
";
		$page->add_block(new Block(null, $html, "subheading", 10));
	}
	public function showAll($url, $tips){
		global $user, $page;
		$html = "".
			"".
			"| ID".
			" | Enabled".
			" | Image".
			" | Text";
		if($user->is_admin()){
			$html .= " | Action";
		}	
		$html .= " | 
";
		$n = 0;
		foreach ($tips as $tip)
		{
			$oe = ($n++ % 2 == 0) ? "even" : "odd";
			$tip_enable = ($tip['enable'] == "Y") ? "Yes" : "No";
			$set_link = "".$tip_enable."";
			$html .= "".
				"| ".$tip['id']."".
				" | ".$set_link."".
				(
				empty($tip['image']) ?
					" | " :
					" | "
				).
				" | ".$tip['text']."";
			$del_link = "Delete";
			if($user->is_admin()){
				$html .= " | ".$del_link."";
			}
			$html .= " | 
";
		}
		$html .= "
";
		$page->add_block(new Block("All Tips", $html, "main", 20));
	}
}
?>