/**
  * Returns the URL at the given position (from HistoryArray)
  *
  * @param int $intPosition
  * @deprecated use class_history::getAdminHistory() instead
  * @see class_history::getAdminHistory()
  * @return string
  */
 protected function getHistory($intPosition = 0)
 {
     $objHistory = new class_history();
     return $objHistory->getAdminHistory($intPosition);
 }
 /**
  * @param string $strLangName
  * @param null $strLangModule
  *
  * @return string
  */
 protected function renderError($strLangName, $strLangModule = null)
 {
     $strError = $this->getLang($strLangName, $strLangModule);
     $objHistory = new class_history();
     $arrHistory = explode("&", $objHistory->getAdminHistory(0));
     if ($this->getArrModule("template") == "/folderview.tpl") {
         $strError .= ' ' . class_link::getLinkAdminManual('href="javascript:window.parent.location.reload();"', $this->getLang('commons_back'));
     } else {
         $strError .= ' ' . class_link::getLinkAdminManual("href=\"" . $arrHistory[0] . "&" . $arrHistory[1] . "\"", $this->getLang("commons_back"));
     }
     return $this->objToolkit->warningBox($strError);
 }
 /**
  * Generates a delete-button. The passed element name and question is shown as a modal dialog
  * when the icon was clicked. So set the link-href-param for the final deletion, otherwise the
  * user has no more chance to delete the record!
  *
  * @param string $strElementName
  * @param string $strQuestion
  * @param string $strLinkHref
  *
  * @return string
  */
 public function listDeleteButton($strElementName, $strQuestion, $strLinkHref)
 {
     $strElementName = uniStrReplace(array('\''), array('\\\''), $strElementName);
     $strQuestion = uniStrReplace("%%element_name%%", htmlToString($strElementName, true), $strQuestion);
     //get the reload-url
     $objHistory = new class_history();
     $strParam = "";
     if (uniStrpos($strLinkHref, "javascript:") === false) {
         $strParam = "reloadUrl=" . urlencode($objHistory->getAdminHistory());
         if (uniSubstr($strLinkHref, -4) == ".php" || uniSubstr($strLinkHref, -5) == ".html") {
             $strParam = "?" . $strParam;
         } else {
             $strParam = "&" . $strParam;
         }
     }
     //create the list-button and the js code to show the dialog
     $strButton = class_link::getLinkAdminManual("href=\"#\" onclick=\"javascript:jsDialog_1.setTitle('" . class_carrier::getInstance()->getObjLang()->getLang("dialog_deleteHeader", "system") . "'); jsDialog_1.setContent('" . $strQuestion . "', '" . class_carrier::getInstance()->getObjLang()->getLang("dialog_deleteButton", "system") . "',  '" . $strLinkHref . $strParam . "'); jsDialog_1.init(); return false;\"", "", class_carrier::getInstance()->getObjLang()->getLang("commons_delete", "system"), "icon_delete");
     return $this->listButton($strButton);
 }