コード例 #1
0
		/**
		 * writes HTML for the Selector
		 */
		 function draw_selector() {
		   	global $lang, $statsinfo;
           	$values = createNameValueArray($this->table, $this->namecol, $this->valuecol, $this->cond);		   
		   	echo "<tr><td>";
			echo "<table width=\"185\" cellpadding=\"3\" cellspacing=\"3\" class=\"sidebar_menubox\"><tr><td>";
			echo "<table width='100%' cellpadding='3' cellspacing='0' border='0'>";
			echo "<tr>";
			$dropdown = new Dropdown($this->identifier, $values, 'standardwhite', $this->selected, 100, 1);
			$dropdown->draw();
			echo "</td><td>";
			$lbi = new ButtonInline("changetop", $lang->get('change', 'Change'), 'navelement', 'submit', '', 'f'.$this->identifier);
			echo $lbi->draw();
			echo '<input type="hidden" name="changetop" value="">';
			echo "</td></tr>";
			echo "</tr></table>";
			echo "</td></tr></table>";
			echo "</td></tr>";
		 }
コード例 #2
0
 /**
  * Draw the widget
  */
 function draw()
 {
     $css = "standardlight";
     if ($this->error) {
         $css = 'error';
     }
     echo "<td class=\"{$css}\">";
     echo tableStart();
     echo "<td colspan=\"2\">" . drawSpacer(2, 5) . "</td>";
     tr();
     if ($this->value == "") {
         $checked = "checked";
     }
     echo '<td class="' . $css . '">' . $this->label . $this->errortext;
     echo "</td>";
     tr();
     $sb = new Dropdown($this->name, $this->nameValueArray, "{$css}", $this->value, "200");
     $sb->draw();
     tr();
     echo "<td colspan=\"2\">" . drawSpacer(1, 5) . "</td>";
     echo tableEnd();
     echo "</td>";
 }
コード例 #3
0
 /**
  * draw the object.
  */
 function draw()
 {
     global $db;
     $folders = null;
     $folders[0][0] = "&gt;";
     $folders[0][1] = 0;
     $this->createFolders($folders, "&gt;", 0);
     $dd = new Dropdown($this->name, $folders, "bcopy", $this->value, 500, 1);
     $dd->draw();
 }
コード例 #4
0
		/**
		 * 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>";
		   }
		   
		 }
コード例 #5
0
    $clnid = "-1";
}
td($style);
echo $lang->get("sel_clt");
tde();
tr();
$clts = array();
createCLTTree($clts);
$sb = new Dropdown("clt", $clts, $style, $clt, $width);
$sb->params = 'onChange="if (this.value != \'-1\') document.ifoform.submit();"';
$sb->draw();
tr();
td($style);
echo drawSpacer(5);
echo '<script language="JavaScript">';
echo '  parent.document.getElementById("' . $callback . '").value = "' . $clnid . '";';
echo '</script>';
tde();
if ($clt != "-1" && $clt != "0" && $clt != "") {
    $clusters = createNameValueArray("cluster_node", "NAME", "CLNID", "CLT_ID = {$clt} AND VERSION=0 AND DELETED=0");
    tr();
    td($style);
    echo $lang->get("sel_cluster", "Select Cluster") . " (" . (count($clusters) - 1) . ")";
    tde();
    tr();
    $sb2 = new Dropdown("clnid", $clusters, $style, $clnid, $width);
    $sb2->params = 'onChange="' . drawIfoSave($callback, "clnid") . '"';
    $sb2->draw();
}
retain("width", $width + 50);
drawIFOFooter();
コード例 #6
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>";			
		}