/**
  * Draw the radios
  */
 function draw()
 {
     global $lang;
     echo "<td>";
     echo tableStart();
     td($this->css);
     echo drawSpacer(2, 5);
     tde();
     tr();
     td($this->css);
     echo $lang->get("sel_file", "Select a file");
     echo $this->errortext;
     tde();
     tr();
     $ul = new Filebox($this->name, $this->css, "", 128, 280);
     $ul->draw();
     if ($this->value != "") {
         tr();
         td($this->css);
         echo drawSpacer(5, 1);
         tde();
         tr();
         td($this->css);
         echo $lang->get("file_already_uploaded", "You have already uploaded a file. You can go on by pressing Next.");
         tde();
     }
     echo tableEnd();
     echo "</td>";
 }
Пример #2
0
 /**
  * Draw the radios
  */
 function draw()
 {
     echo "<td>";
     echo tableStart();
     echo "<td colspan=\"2\">" . drawSpacer(2, 5) . "</td>";
     tr();
     $checked = "";
     if ($this->value == "") {
         $checked = "checked";
     }
     for ($i = 0; $i < count($this->nameValueArray); $i++) {
         if ($this->nameValueArray[$i][1] == $this->value) {
             $checked = "checked";
         }
         echo '<td valign="middle" class="standardlight" align="right">';
         echo "<input type=\"radio\" name=\"{$this->name}\" id=\"{$this->name}\" value=\"" . $this->nameValueArray[$i][1] . "\" {$checked} >&nbsp;";
         echo "</td>";
         echo '<td width="95%" valign="middle" class="standardlight">';
         echo $this->nameValueArray[$i][0];
         echo '</td>';
         tr();
         $checked = "";
     }
     echo "<td colspan=\"2\">" . drawSpacer(1, 5) . "</td>";
     echo tableEnd();
     echo "</td>";
 }
Пример #3
0
		/**
		   * Draw the Grid
		   */
		function draw() {			
			echo '<td colspan="' . $this->columns . '">';
			echo '<table width="100%" cellspacing="0" border="0" align="center">';
			echo '<tr>';
			
			// draw Headers
			for ($i=0; $i < count($this->colTitles); $i++) {          		
           		echo "<td class=\"gridtitle\" $style valign=\"middle\">".$this->colTitles[$i]."</a></td>";
         	}
         	echo "</tr>\n";
         	
			// draw the form
			for ($i = 0; $i < $this->rows; $i++) {
  			   echo "<tr class=\"grid\" onMouseOver='this.style.backgroundColor=\"#ffffcc\";' onMouseOut='this.style.backgroundColor=\"#e8eef7\";'>";				
				for ($j = 0; $j < $this->cols; $j++) {
					echo "<td style=\"padding:4px; border-bottom:1px solid #cccccc;\">";
					echo tableStart("100%", "label", "0", "0");					
					$this->contents[$i][$j]->draw();
					echo tableEnd();
					echo tde();
				}
				
				
				echo "</tr>";
			}

			echo '</table>';
			echo '</td>';			
			return $this->columns;
		}
	  /**
	   * Draw the widget
	   */
	  function draw() {
	    echo '<td colspan="'.$this->columns.'" class="'.$this->style.'">';
	    echo tableStart();
	    echo '<td colspan="'.$this->columns.'" class="'.$this->style.'" ><b>'.$this->headline.'</b></td></tr><tr>';
	    $this->drawSelector();
	    echo tableEnd();
	    echo '</td>';
	  }	
Пример #5
0
 /**
  * Draw the menu...
  */
 function draw()
 {
     echo "<td colspan=\"" . $this->colspan . "\">\n";
     echo tableStart("100%", "cwhite");
     $this->drawColumnHeaders();
     $this->drawRows();
     echo tableEnd();
     echo "</td>\n";
     return $this->colspan;
 }
	 		/**
		  * Draws the layout-element
		  */
		function draw() {
			$output = WUIObject::std_header();
			$output.= tableStart();
			$output.= $this->drawValues();
			$output.= $this->drawLeftRightButtons();
			$output.= $this->drawSelectedValues();
			$output.= $this->drawUpDownButtons();	
			$output.= tableEnd();
			$output .= WUIObject::std_footer();
			echo $output;
			return $this->columns;
		} 
 /**
  * Draw the information
  */
 function draw()
 {
     global $lang;
     $createdAt = "<b>" . formatDBTimeStamp(getDBCell("cluster_variations", "CREATED_AT", "CLID = " . $this->clid)) . "</b>";
     $createdBy = "<b>" . getDBCell("cluster_variations", "CREATE_USER", "CLID = " . $this->clid) . "</b>";
     $modifiedAt = "<b>" . formatDBTimeStamp(getDBCell("cluster_variations", "LAST_CHANGED", "CLID = " . $this->clid)) . "</b>";
     $modifiedBy = "<b>" . getDBCell("cluster_variations", "LAST_USER", "CLID = " . $this->clid) . "</b>";
     $launchedAt = "<b>" . formatDBTimeStamp(getDBCell("cluster_variations", "LAUNCHED_AT", "CLID = " . $this->clid)) . "</b>";
     $launchedBy = "<b>" . getDBCell("cluster_variations", "LAUNCH_USER", "CLID = " . $this->clid) . "</b>";
     echo '<td colspan="' . $this->columns . '" class="' . $this->css . '">';
     echo tableStart("100%", $this->css);
     echo '<td width="200">' . $lang->get("created_at", "Created at") . "</td><td width=\"200\">" . $createdAt . "</td><td width=\"50\">" . $lang->get("by", "by") . "</td><td>" . $createdBy . "</td></tr>";
     echo '<tr><td>' . $lang->get("last_mod_at", "Last Modified at") . "</td><td>" . $modifiedAt . "</td><td>" . $lang->get("by", "by") . "</td><td>" . $modifiedBy . "</td></tr>";
     echo '<tr><td>' . $lang->get("last_launched_at", "Last Launched at") . "</td><td>" . $launchedAt . "</td><td>" . $lang->get("by", "by") . "</td><td>" . $launchedBy . "</td></tr>";
     echo tableEnd();
     echo '</td>';
     return $this->columns;
 }
Пример #8
0
 /**
  * Draw the radios
  */
 function draw()
 {
     echo "<td>";
     echo tableStart();
     td($this->css);
     echo drawSpacer(2, 5);
     tde();
     tr();
     td($this->css);
     echo $this->label;
     tde();
     tr();
     if ($this->type == "TEXTAREA") {
         $tb = new Textarea($this->name, $this->value, $this->css, 4, "width:250", 260);
     } else {
         $tb = new Input($this->name, $this->value, $this->css, 256, "width:250", 260);
     }
     $tb->draw();
     echo tableEnd();
     echo "</td>";
 }
Пример #9
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>";
 }
Пример #10
0
/**
 * Draw the header for an Iframe-Object
 */
function drawIFOHeader($stdstyle = "standardlight", $noform = false)
{
    global $c, $callback, $sid, $error, $style;
    $error = value("error");
    if ($error == "0") {
        $style = $stdstyle;
    } else {
        $style = "error";
    }
    echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n";
    echo "<html>\n";
    echo "<head>\n";
    echo " <title>IFO</title>\n";
    echo "<META HTTP-EQUIV=\"Pragma\" content=\"no-cache\">\n";
    echo "<META HTTP-EQUIV=\"Cache-Control\" content=\"no-cache, must-revalidate\">\n";
    echo "<META HTTP-EQUIV=\"Expires\" content=\"0\">\n";
    echoCSS();
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . $c["docroot"] . "ext/jscalendar/cal.css\">\n";
    echo "<script type=\"text/javascript\" src=\"" . $c["host"] . $c["docroot"] . "ext/jscalendar/calendar.js\"></script>\n";
    echo "<script type=\"text/javascript\" src=\"" . $c["host"] . $c["docroot"] . "ext/jscalendar/lang/calendar-en.js\"></script>\n";
    echo "<script type=\"text/javascript\" src=\"" . $c["host"] . $c["docroot"] . "ext/jscalendar/calendar-setup.js\"></script>\n";
    echo "</head>\n";
    echo "<body leftmargin=\"0\" topmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" class=\"{$style}\">\n";
    if (!$noform) {
        echo "<form name=\"ifoform\" method=\"POST\" action=\"" . doc() . "\" enctype=\"multipart/form-data\">";
        $sid = value("sid", "NOSPACES");
        $callback = value("callback", "NOSPACES");
        retain("sid", $sid);
        retain("callback", $callback);
        echo tableStart();
    }
}
Пример #11
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>";
		   }
		   
		 }
Пример #12
0
		/**
		* Writes the HTML-Code for the end of your form. May be overwritten by custom classes
		*/
		function draw_footer() {
			global $lang, $c;
			echo "</form>";
			echo "</div>";
			echo '<div id="waitbox" align="center" class="standardwhite" style="width:' .$this->width. 'px;display:none;">';
			echo tableStart();
			echo '<td class="standardwhite" align="center">';
			br();
			br();
			br();
			br();
			br();
			br();
			br();
			br();
			br();
			echo drawImage('move.gif');
			br();
			echo $lang->get("proc_data", "Processing Data...");
			echo "</td>";
			echo tableEnd();
			echo '</div>';			
		}
Пример #13
0
		/**
		* internal. Draws the buttons of your form.
		*/
		function draw_mybuttons() {
			global $lang;

			if ($this->drawPage == "editing") {
				echo "<tr><td class=\"informationheader\" colspan=\"2\">";
				tableStart("100%", "informationheader");
				echo "<tr>";
				echo '<td align="right">';
				br();
				retain ("goon");
				$resetbutton = new  ButtonInline("reset", $lang->get("reset_form", "Reset Form"), "navelement", "reset", "", $this->name);
				echo $resetbutton->draw();			
				echo drawSpacer(50,1);
				$value = "Update";
				$backbutton = new ButtonInline("back", $lang->get("back"), "navelement", "submit", "",$this->name );
				echo $backbutton->draw();				
				retain("back", "");
				echo '&nbsp;&nbsp;';
				$submitbutton = new ButtonInline("goon", $value, "navelement", "submit", $this->submitButtonAction, $this->name);
				echo $submitbutton->draw();				
				br();
				br();
				tde();
				echo ('</tr>');
				tableEnd();
				echo "</td></tr>";
			}
		}
Пример #14
0
 /**
  * Create the HTML for the step
  */
 function _draw()
 {
     global $lang;
     echo tableStart();
     echo '<td colspan="">' . drawSpacer(5, 5) . '</td>';
     tr();
     echo '<td colspan="3" class="informationheader">' . $this->parent->titleText . '</td>';
     tr();
     echo '<td colspan="3">' . drawSpacer(12, 12) . '</td>';
     tr();
     echo '<td colspan="3" class="headbox">';
     echo '<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>';
     echo '<td width="70%"><b>' . drawSpacer(10, 10) . $this->title . '</b></td>';
     echo '<td width="30%" align="right"><b>' . $lang->get("step", "Step") . " " . $this->parent->displayStep . " " . $lang->get('of') . " " . count($this->parent->container) . drawSpacer(10, 10) . '</b></td>';
     echo '</tr></table></td>';
     tr();
     echo '<td colspan="3">' . drawSpacer(10, 10) . '</td>';
     tr();
     echo '<td width="45%" valign="top" class="informationheader">' . $this->explanation . '</td>';
     echo '<td width="20">' . drawSpacer(20, 250) . '</td>';
     echo '<td width="50%" valign="top" class="standardlight">';
     echo tableStart();
     for ($i = 0; $i < count($this->container); $i++) {
         $this->container[$i]->draw();
         tr();
     }
     echo "<td>" . drawSpacer(5) . "</td>";
     tr();
     echo '<td>' . $this->addDrawString . '</td>';
     echo tableEnd();
     echo '</td>';
     tr();
     echo '<td colspan="3">' . drawSpacer(10) . drawLine(590) . '</td>';
     tr();
     echo tableEnd();
 }