当前位置: 首页>>代码示例>>PHP>>正文


PHP Cell::draw方法代码示例

本文整理汇总了PHP中Cell::draw方法的典型用法代码示例。如果您正苦于以下问题:PHP Cell::draw方法的具体用法?PHP Cell::draw怎么用?PHP Cell::draw使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Cell的用法示例。


在下文中一共展示了Cell::draw方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: draw

 /**
  * 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;
 }
开发者ID:BackupTheBerlios,项目名称:nxwcms-svn,代码行数:36,代码来源:statsdiagram.php

示例2: draw

 /**
  * 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;
 }
开发者ID:BackupTheBerlios,项目名称:nxwcms-svn,代码行数:17,代码来源:statsclickpath.php

示例3: draw

 /**
  * 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;
 }
开发者ID:BackupTheBerlios,项目名称:nxwcms-svn,代码行数:17,代码来源:topitems.php

示例4: draw

 /**
  * 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">&nbsp;</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 "&nbsp;&nbsp;";
     $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;
 }
开发者ID:BackupTheBerlios,项目名称:nxwcms-svn,代码行数:22,代码来源:print_button.php

示例5: draw

 /**
  * 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;
 }
开发者ID:BackupTheBerlios,项目名称:nxwcms-svn,代码行数:26,代码来源:page_selector.php

示例6: draw

		/**
		 * 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;
		}
开发者ID:BackupTheBerlios,项目名称:nxwcms-svn,代码行数:36,代码来源:abstract_envelope.php

示例7: draw

		/**
		 * 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;
		}
开发者ID:BackupTheBerlios,项目名称:nxwcms-svn,代码行数:34,代码来源:ci_selector.php

示例8: Cell

 /**
  * 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">&nbsp;</td></tr>';
     $this->draw_buttons();
     echo '<tr><td colspan="2">&nbsp;</td></tr>';
     echo "</table> ";
 }
开发者ID:BackupTheBerlios,项目名称:nxwcms-svn,代码行数:21,代码来源:wizard.php

示例9: value

		/**
		* 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.
		}
开发者ID:BackupTheBerlios,项目名称:nxwcms-svn,代码行数:37,代码来源:containerform.php


注:本文中的Cell::draw方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。