コード例 #1
0
 /**
  * @access private
  * @return string
  */
 function _InlineMenuRemoveEntryPage($PageID)
 {
     $entryID = GetPostOrGet('entryID');
     $confirmation = GetPostOrGet('confirmation');
     $adminLang =& $this->_AdminLang;
     if ($confirmation == 1) {
         $this->_PageStructure->RemoveInlineMenuEntry($entryID);
         return $this->_InlineMenuHomePage($PageID);
     } else {
         $sql = "SELECT *\r\n\t\t\t\t\tFROM " . DB_PREFIX . "inlinemenu_entries\r\n\t\t\t\t\tWHERE inlineentry_id={$entryID}";
         $entryResult = $this->_SqlConnection->SqlQuery($sql);
         if ($entry = mysql_fetch_object($entryResult)) {
             return "Sind sie sicher, dass sie das Element &quot;{$entry->inlineentry_text}&quot; unwiederruflich l&ouml;schen m&ouml;chten?<br />\r\n\t\t\t\t\t\t<a href=\"admin.php?page=pagestructure&amp;action=pageInlineMenu&amp;entryID={$entryID}&amp;action2=removeEntry&amp;confirmation=1&amp;pageID={$PageID}\" class=\"button\">" . $adminLang['yes'] . "</a >\r\n\t\t\t\t\t\t<a href=\"admin.php?page=pagestructure&amp;action=pageInlineMenu&amp;pageID={$PageID}\"class=\"button\">" . $adminLang['no'] . "</a >";
         }
     }
 }