/** * Draw HTML output */ function draw() { global $c, $sid; echo '<td colspan="' . $this->cells . '"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>'; $widget = new Cell("clc", "", 1, $this->width, 40); $widget->draw(); echo "</tr><tr>\n"; $widget = new Label("lbl", $this->headline, "headbox", 1); $widget->draw(); echo "</tr><tr>\n"; $widget = new FormImage($c["docroot"] . "modules/stats/widgets/statsimage.php?sid={$sid}&diagram=" . $this->diagramType . "&width=" . $this->width . "&height=" . $this->height . "&spid=" . $this->spid, $this->width, $this->height, 1); $widget->draw(); // Draw Legend... echo "</tr><tr>\n"; $widget = new Cell("clc", "", 1, $this->width, 10); $widget->draw(); $colors[0] = __RED; $colors[1] = __BLUE; $colors[2] = __YELLOW; $colors[3] = __GREEN; for ($i = 0; $i < count($this->legend); $i++) { echo "</tr><tr><td>"; echo '<table width="100%" border="0" cellpadding="2" cellspacing="0"><tr>'; echo '<td width="10">' . ($i + 1) . '.</td>'; echo '<td width="11">'; echo '<table width="11" height="11" border="0" cellspacing="0" cellpadding="0"><tr><td style="background-color:' . $colors[$i] . ';">' . drawSpacer(11, 11) . '</td></tr></table>'; echo '</td>'; echo '<td>' . $this->legend[$i] . '</td>'; echo '</tr></table></td>'; } echo "</tr></table></td>"; return $this->cells; }
/** * Draw HTML output */ function draw() { global $c, $sid; echo '<td colspan="' . $this->cells . '"><table width="600" border="0" cellpadding="0" cellspacing="0"><tr>'; $widget = new Cell("clc", "", 2, $this->width, 20); $widget->draw(); echo "</tr><tr>\n"; $widget = new Label("lbl", '<br><h3>' . $this->headline . '</h3>', '', 2); $widget->draw(); echo "</tr>\n"; echo $this->container; echo "</tr></table></td>"; return $this->cells; }
/** * Draw HTML output */ function draw() { global $c, $sid; echo '<td colspan="' . $this->cells . '" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>'; $widget = new Cell("clc", "", 4, $this->width, 20); $widget->draw(); echo "</tr><tr>\n"; $widget = new Label("lbl", $this->headline, "stats_headline", 4); $widget->draw(); echo "</tr>\n"; echo $this->container; echo "</tr></table></td>"; return $this->cells; }
/** * Draw HTML output */ function draw() { global $c, $sid, $lang; echo '<td colspan="3"><table width="100%" border="0" cellpadding="3" cellspacing="0"><tr>'; $widget = new Cell("clc", "", 2, $this->width, 20); $widget->draw(); echo "</tr><tr>\n"; echo '<td colspan="2"align="right"> </td>'; echo '<td align="right">'; $lbi = new Button("action", $lang->get("print", "print"), "navelement", "button", "window.open('" . $_SERVER['REQUEST_URI'] . "&print=1');"); $lbi->draw(); echo " "; $lbi = new Button("action", $lang->get("refresh", "refresh"), "navelement", "button", "document.location.href = document.location.href;"); $lbi->draw(); retain("action", ""); retain("sid", $sid); echo "</td></tr></table></td>"; return $this->cells; }
/** * 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; }
/** * Draws the Envelope. */ function draw() { echo "<td colspan=\"2\" width=\"100%\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n"; if (count($this->container) > 0 ) { echo "<tr>"; $cl1 = new Cell("cl1", $style, 1, 200, 1); $cl3 = new Cell("cl2", $style, 1, 400, 1); $cl1->draw(); $cl3->draw(); echo "</tr>"; } $col = 1; for ($i = 0; $i < count($this->container); $i++) { if ($col == 1) echo "<tr>"; $col += $this->container[$i]->draw(); if ($col > 2) { $col = 0; echo "</tr>"; } $col++; } if ($col != 1) echo "</tr>"; if (count($this->container) > 0 ) { echo "<tr>"; $cl = new Cell("cl3", $style, 3, 600,20); $cl->draw(); echo "</tr>"; } echo "</table></td>"; return 2; }
/** * Draws the Content-Selector */ function draw() { echo "<table width=\"" . $this->width . "\" class=\"white\" cellpadding=\"0\" cellspacing=\"0\">\n"; echo "<tr>"; $cl1 = new Cell("cl1", "border", 1, 250, 1); $cl2 = new Cell("cl2", "border", 1, 250, 1); $cl1->draw(); $cl2->draw(); echo "</tr>"; $col = 1; for ($i = 0; $i < count($this->container); $i++) { if ($col == 1) echo "<tr>\n"; $col += $this->container[$i]->draw(); if ($col > 2) { $col = 0; echo "</tr>"; } $col++; } echo "</tr>"; echo "</table>"; return 2; }
/** * Writes the HTML-Code for the contents inside the form */ function draw_contents() { echo "<table width=\"100%\" class=\"white\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\n"; echo "<tr>"; $cl1 = new Cell("cl1", "border", 1, ceil($this->width / 3), 1); $cl2 = new Cell("cl2", "border", 1, ceil($this->width / 3 * 2), 1); $cl1->draw(); $cl2->draw(); echo "</tr>"; $this->draw_toptext(); echo "<tr valign=\"top\"><td colspan=\"2\">"; $this->container[$this->activeStep]->draw($this->firstRun); echo "</td></tr>"; echo '<tr><td colspan="2"> </td></tr>'; $this->draw_buttons(); echo '<tr><td colspan="2"> </td></tr>'; echo "</table> "; }
/** * Writes the HTML-Code for the body of your Form. Calls the draw functions of the * WUIObjects you put in the form-container. */ function draw_innerbody() { retain("oid", value("oid", "NUMERIC")); echo '<table width="100%" border="0" cellpadding="0" cellspacing="0">'; echo '<tr><td>'; $this->buttonbar->draw(); echo '</td></tr>'; echo '</table>' ; echo "<table width=\"100%\" class=\"white\" cellpadding=\"0\" cellspacing=\"0\">"; echo "<tr>"; $cl1 = new Cell("cl1", "border", 1, ceil($this->width / 3), 1); $cl2 = new Cell("cl2", "border", 1, ceil(($this->width / 3) * 2), 1); $cl1->draw(); $cl2->draw(); echo "</tr>"; $this->draw_toptext(); $col = 1; for ($i = 0; $i < count($this->container); $i++) { if ($col == 1) echo "<tr valign=\"top\">\n"; $col += $this->container[$i]->draw(); if ($col > $this->col) { $col = 0; echo "</tr>"; } $col++; } if ($col != 1) echo "</tr>"; echo "</table>"; //echo "</td></tr>"; // close tags opened by form. }