Ejemplo n.º 1
0
		/**
		* Adds a link to the menu. The link ist static here. NO parameters
		* will be automatically added! Use this Function, to create Links with
		* new Filtermenues.
		*
		* @param string text, that will appear as link
		* @param string page, that will be called when link is active
		* @param string page, that will cause highlight on this menu also.
		*/
		function addMenuEntry($label, $href, $highlightmenu="xplqkjnxe", $function="") {
			global $sid, $auth;

            if (($function == "") || ( $auth->checkAccessToFunction($function))) {
                $this->menuentries[$this->counter][0] = "<nobr>".drawSpacer(10,1).clrSPC($label)."</nobr>";
                if (!stristr($href, "?"))
		  		    $href .= "?sid=$sid";

  			    $this->menuentries[$this->counter][1] = $href;
  			    $this->menuentries[$this->counter][2] = 0;
			    $this->menuentries[$this->counter][3] = $highlightmenu;
			    $this->counter++;
            }
		}
Ejemplo n.º 2
0
	/**
	 * Draw a Link looking like a button
	 * @param string Title of the Button
	 * @param string Link of the Button to point to.
	 */
	function buttonLink($text, $href = "#", $onClick = "") {
		$text = clrSPC($text);

		$ret = "<a href=\"" . $href . "\" class=\"navelement\"";

		if ($onClick != "")
			$ret .= " onClick=\"$onClick\"";

		$ret .= ">$text</a>";
		return $ret;
	}
Ejemplo n.º 3
0
		/**
		 * get a text to a corrsponding keyname. Whitespaces and - are replaced for buttons
		 * @param string keyname of the label.
		 * @param string Standard value if no entry for keyname exists
		 */
		function getc($title, $standard = "") { return clrSPC($this->get($title, $standard)); }