/**
  * Get the HTML Output for a box in the cockpit.
  */
 function drawABox($headline, $content) {
   echo getFormHeadline($headline);
   echo $content;
   echo getFormFooterLine();
   br();
   br();    
 }
		/**
		 * writes HTML for Menu.
		 */
		function draw() {
			echo getFormHeadline($this->title);
			$this->draw_header();
			$this->draw_contents();
			$this->draw_footer();
		}
		/**
		* 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_body() {
			global $c, $c_theme, $addLink;
			echo '<table width="'.$this->width.'" border="0" cellpadding="0" cellspacing="0"><tr><td>';
			$this->draw_topregion();
			echo getFormHeadline($this->headline,'100%', $this->headerlink);	
			$this->draw_contents();
			echo '</td></tr></table>';
		}
		/**
		 * writes HTML for the Top-Selector
		 */
		 function draw_topselector() {
		   if ($this->topSelector) {
		   	global $lang, $statsinfo;
		   	echo getFormHeadline($lang->get('top','Limit data'));	
		   	tableStart();
		   	echo "<tr><td>";
		   	$values = array (
  				array (
  					'Show Top 10',
  					10
  				),
  				array (
	  				'Show Top 20',
  					20
  				),
  				array (
  					'Show Top 50',
	  				50
  				),
  				array (
  					'Show Top 100',
  					100
	  			),
  				array (
  					'Show All',
  					2000
  				)
  			);
			echo "<table width=\"100%\" cellpadding=\"3\" cellspacing=\"3\"><tr><td>";
			echo "<table width='100%' cellpadding='3' cellspacing='0' border='0'>";
			echo "<tr>";
			$dropdown = new Dropdown('limit', $values, 'standardwhite', $statsinfo->limit, 110, 1);
			$dropdown->draw();
			echo "</td><td>";
			$lbi = new ButtonInline("changetop", $lang->get('change', 'Change'), 'navelement', 'submit', '', 'filter');
			echo $lbi->draw();
			echo '<input type="hidden" name="changetop" value="">';
			echo "</td></tr>";
			echo "</tr></table>";
			echo "</td></tr></table>";
			echo "</td></tr>";
		   }
		   
		 }
Beispiel #5
0
		/**
		* 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_body() {
			 global $oid; 
			 $this->draw_header();			
			  echo '<table width="'.$this->width.'" border="0" cellpadding="0" cellspacing="0"><tr><td>';			  
			  if (strlen($this->question)>0)
			    echo $this->question;
			  $this->headerlink = str_ireplace('<oid>', $oid, $this->headerlink);
			  echo getFormHeadline($this->title,'100%', $this->headerlink);
			  $this->draw_contents();			  
			  echo getFormFooterline();					  	
			  $this->draw_footer();
			  echo '</td></tr></table>';
		}