/**
		  * Draws the layout-element
		  */
		function draw() {
			echo WUIObject::std_header();

			LinkButton::draw();
			echo WUIObject::std_footer();
			return $this->columns;
		}
 /**
  * Draw HTML output
  */
 function draw()
 {
     global $c, $sid, $lang;
     echo '<form name="form1">';
     echo '<td colspan="' . $this->cells . '"><table width="100%" border="0" cellpadding="3" cellspacing="0"><tr>';
     $widget = new Cell("clc", "", 2, $this->width, 20);
     $widget->draw();
     echo "</tr><tr>\n";
     $widget = new Label("lbl", $this->headline, "stats_headline", 2);
     $widget->draw();
     echo "</tr>\n";
     echo "<tr><td colspan=\"" . $this->cells . "\" class=\"bcopy\">" . $lang->get("pta", "Select page to analyze:") . "</td></tr>";
     echo "<tr>";
     $this->sps->draw();
     echo "<td> ";
     $lbi = new LinkButton("action", $lang->get("go", "Go"), "navelement", "submit");
     $lbi->draw();
     retain("action", "");
     retain("sid", $sid);
     echo "</td></tr></table></td>";
     echo "</form>";
     return $this->cells;
 }
Beispiel #3
0
		/**
		 * internal. Draw filter input.
		 */
		function draw_form() {
			global $lang;

			echo '<table width="170"><tr>';
			echo "<td>" . $lang->get("filter_rule", "Search for..."). "</td>";
			echo "<td>" . $lang->get("filter_column", "...in"). "</td></tr><tr>";
			$txtb = new Input("filter_rule", $this->filter_rule, "embedded", "16", "", $width = "90", "TEXT", "", 1);
			$txtb->draw();

			$select = new Dropdown("filter_column", $this->columns, "embedded", $this->filter_column, 80);
			$select->draw();
			echo "</tr><tr>";
			echo '<td colspan="2">';
			echo '<table width="100%" cellpadding="0" cellspacing="0" border="0">';
			echo '<tr><td>';
			echo '<input type="hidden" name="filter" value="">';
			echo '<input type="hidden" name="clearsearch" value="">';

			$submitbutton = new Button("filter", $lang->get("search", "Search"), "navelement", "submit", "", "filter");
			$submitbutton->draw();
			echo "&nbsp;&nbsp;";
			$clearbutton = new LinkButton("clearsearch", $lang->get("search_clear", "Reset Filter"), "navelement", "submit", "document.filter.filter_rule.value='';", "filter");
			$clearbutton->draw();
			br();
			br();
			echo "</td><tr></table></td></tr></table>";			
		}