• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP htmlReady函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中htmlReady函数的典型用法代码示例。如果您正苦于以下问题:PHP htmlReady函数的具体用法?PHP htmlReady怎么用?PHP htmlReady使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了htmlReady函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: getDefaultConfig

 /**
 * 
 */
 function getDefaultConfig () {
     
     $config = array(
         "name" => '',
         /*
         "order" => '|0|1|2|3|4|5|6|7|8',
         "visible" => '|1|1|1|1|1|1|1|1|1',
         "aliases" => '||'._("Lebenslauf").'|'._("Schwerpunkte").'|'._("Lehrveranstaltungen").'|'
                 ._("Aktuell").'|'._("Termine").'|'._("Publikationen").'|'._("Literaturlisten").'|',
         */
         "order" => '|0|1|2|3|4|5|6|7',
         "visible" => '|1|1|1|1|1|1|1|1',
         "aliases" => '||'._("Lebenslauf").'|'._("Schwerpunkte").'|'._("Lehrveranstaltungen").'|'
                 ._("Aktuell").'|'._("Termine").'|'._("Publikationen").'|',
         "showcontact" => '1',
         "showimage" => 'right',
         "wholesite" => '0',
         "nameformat" => '',
         "dateformat" => '%d. %b. %Y',
         "language" => '',
         "studiplink" => 'top',
         "urlcss" => '',
         "title" => _("MitarbeiterInnen"),
         "copyright" => htmlReady($GLOBALS['UNI_NAME_CLEAN']
                 . " ({$GLOBALS['UNI_CONTACT']})"),
         "author" => ''
     );
     
     get_default_generic_datafields($config, "user");
     
     return $config;
 }
开发者ID:ratbird,项目名称:hope,代码行数:35,代码来源:ExternElementMainPersondetails.class.php


示例2: map

 /**
  * Mapping function where to find what
  * @param type $object the object
  * @param type $function the called function
  * @return string output
  */
 private static function map($object, $function)
 {
     /**
      * If you want to add an object to the helper simply add to this array
      */
     $mapping = array('User' => array('link' => function ($obj) {
         return URLHelper::getLink('dispatch.php/profile', array('username' => $obj->username));
     }, 'name' => function ($obj) {
         return htmlReady($obj->getFullname());
     }, 'avatar' => function ($obj) {
         return Avatar::getAvatar($obj->id, $obj->username)->getImageTag(Avatar::SMALL, array('title' => htmlReady($obj->getFullname('no_title'))));
     }), 'Course' => array('link' => function ($obj) {
         return URLHelper::getLink('seminar_main.php', array('auswahl' => $obj->id));
     }, 'name' => function ($obj) {
         return htmlReady($obj->name);
     }, 'avatar' => function ($obj) {
         return CourseAvatar::getAvatar($obj->id)->getImageTag($size = CourseAvatar::SMALL, array('title' => htmlReady($obj->name)));
     }));
     /*
      * Some php magic to call the right function if it exists
      */
     if ($object && $mapping[get_class($object)]) {
         return $mapping[get_class($object)][$function]($object);
     }
     return "";
 }
开发者ID:ratbird,项目名称:hope,代码行数:32,代码来源:ObjectdisplayHelper.php


示例3: highlight

 /**
  * Highlights the given needle in given subject with the given format.
  *
  * @param String $needle  Search for this string...
  * @param String $subject ...inside this string...
  * @param String $format  ...and replace it with this string (regexp
  *                        syntax)
  *
  * @return String containing the subject with highlighted needle
  */
 private function highlight($needle, $subject, $format = '<b>$0</b>')
 {
     $needle = htmlReady($needle);
     $subject = htmlReady($subject);
     $regexp = '/' . preg_quote($needle, '/') . '/i';
     return preg_replace($regexp, $format, $subject);
 }
开发者ID:ratbird,项目名称:hope,代码行数:17,代码来源:quicksearch.php


示例4: before_filter

 /**
  * This function is called before any output is generated or any other
  * actions are performed. Initializations happen here.
  *
  * @param $action Name of the action to perform
  * @param $args   Arguments for the given action
  */
 public function before_filter(&$action, &$args)
 {
     parent::before_filter($action, $args);
     $this->modules = array();
     // Set Navigation
     PageLayout::setHelpKeyword("Basis.ProfileModules");
     PageLayout::setTitle(_("Mehr Funktionen"));
     PageLayout::addSqueezePackage('lightbox');
     Navigation::activateItem('/profile/modules');
     // Get current user.
     $this->username = Request::username('username', $GLOBALS['user']->username);
     $this->user_id = get_userid($this->username);
     $this->plugins = array();
     $blubber = PluginEngine::getPlugin('Blubber');
     // Add blubber to plugin list so status can be updated.
     if ($blubber) {
         $this->plugins[] = $blubber;
     }
     // Get homepage plugins from database.
     $this->plugins = array_merge($this->plugins, PluginEngine::getPlugins('HomepagePlugin'));
     // Show info message if user is not on his own profile
     if ($this->user_id != $GLOBALS['user']->id) {
         $current_user = User::find($this->user_id);
         $message = sprintf(_('Daten von: %s %s (%s), Status: %s'), htmlReady($current_user->Vorname), htmlReady($current_user->Nachname), htmlReady($current_user->username), htmlReady($current_user->perms));
         PageLayout::postMessage(MessageBox::info($message));
     }
     $this->setupSidebar();
 }
开发者ID:ratbird,项目名称:hope,代码行数:35,代码来源:profilemodules.php


示例5: getAdminModuleLinks

 /**
  * get admin module links
  *
  * returns links add or remove a module from course
  * @access public
  * @return string returns html-code
  */
 function getAdminModuleLinks()
 {
     global $connected_cms, $view, $search_key, $cms_select, $current_module;
     $output .= "<form method=\"POST\" action=\"" . URLHelper::getLink() . "\">\n";
     $output .= CSRFProtection::tokenTag();
     $output .= "<input type=\"HIDDEN\" name=\"view\" value=\"" . htmlReady($view) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"search_key\" value=\"" . htmlReady($search_key) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"cms_select\" value=\"" . htmlReady($cms_select) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"module_type\" value=\"" . htmlReady($connected_cms[$this->cms_type]->content_module[$current_module]->getModuleType()) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"module_id\" value=\"" . htmlReady($connected_cms[$this->cms_type]->content_module[$current_module]->getId()) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"module_system_type\" value=\"" . htmlReady($this->cms_type) . "\">\n";
     if ($connected_cms[$this->cms_type]->content_module[$current_module]->isConnected()) {
         $output .= "&nbsp;" . Button::create(_('Entfernen'), 'remove');
     } elseif ($connected_cms[$this->cms_type]->content_module[$current_module]->isAllowed(OPERATION_WRITE)) {
         $output .= "<div align=\"left\"><input type=\"CHECKBOX\" value=\"1\" name=\"write_permission\" style=\"vertical-align:middle\">";
         $output .= _("Mit Schreibrechten für alle Dozenten/Tutoren dieser Veranstaltung") . "<br>";
         $output .= "<input type=\"CHECKBOX\" value=\"1\" style=\"vertical-align:middle\" name=\"write_permission_autor\">";
         $output .= _("Mit Schreibrechten für alle Teilnehmer dieser Veranstaltung") . "</div>";
         $output .= Button::create(_('Hinzufügen'), 'add') . "<br>";
     } else {
         $output .= "&nbsp;" . Button::create(_('Hinzufügen'), 'add');
     }
     $output .= "</form>";
     return $output;
     //      $output .= parent::getAdminModuleLinks();
 }
开发者ID:ratbird,项目名称:hope,代码行数:33,代码来源:Ilias3ConnectedLink.class.php


示例6: getDefaultConfig

 /**
 * 
 */
 function getDefaultConfig () {
     
     $config = array(
         "name" => "",
         "order" => "|0|1",
         "visible" => "|1|1",
         "aliases" => "|"._("Datum")."|"._("Nachricht"),
         "width" => "|10%|90%",
         "widthpp" => "",
         "sort" => "|1|0",
         "wholesite" => "",
         "studiplink" => "top",
         "nameformat" => "",
         "dateformat" => "%d. %b. %Y",
         "language" => "",
         "urlcss" => "",
         "title" => _("News"),
         "nodatatext" => _("Keine aktuellen News"),
         "copyright" => htmlReady($GLOBALS['UNI_NAME_CLEAN']
                 . " ({$GLOBALS['UNI_CONTACT']})"),
         "author" => "",
         "showdateauthor" => "0",
         "notauthorlink" => ""
     );
     
     return $config;
 }
开发者ID:ratbird,项目名称:hope,代码行数:30,代码来源:ExternElementMainNews.class.php


示例7: testHtmlReady

 public function testHtmlReady()
 {
     $pairs = array('abc' => 'abc', 'äöü' => 'äöü', '<' => '&lt;', '"' => '&quot;', "'" => '&#039;', '&amp;' => '&amp;amp;', '&#039;' => '&amp;#039;', '' => '', NULL => NULL);
     foreach ($pairs as $string => $expected) {
         $this->assertEquals($expected, htmlReady($string));
     }
 }
开发者ID:ratbird,项目名称:hope,代码行数:7,代码来源:VisualTest.php


示例8: do_highlight

 /**
  * helper_function for highlight($text, $highlight)
  *
  * @param  string  $text
  * @param  array   $highlight
  * @return string
  */
 static function do_highlight($text, $highlight)
 {
     foreach ($highlight as $hl) {
         $text = preg_replace('/' . preg_quote(htmlReady($hl), '/') . '/i', '<span class="highlight">$0</span>', $text);
     }
     return $text;
 }
开发者ID:ratbird,项目名称:hope,代码行数:14,代码来源:ForumHelpers.php


示例9: getDefaultConfig

 /**
 * 
 */
 function getDefaultConfig () {
     $config = array(
         "name" => "",
         "order" => "|0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15",
         "visible" => "|1|1|1|1|1|1|1|1|1|1|1|1|1|1|1|1",
         "aliases" => "|"._("Untertitel:")." |"._("Lehrende")." |"._("Veranstaltungsart:")
             ." |"._("Veranstaltungstyp:")." |"._("Beschreibung:")." |"._("Ort:")." |"._("Semester:")
             ." |"._("Zeiten:")." |"._("Veranstaltungsnummer:")." |"._("Teilnehmende:")
             ." |"._("Voraussetzungen:")." |"._("Lernorganisation:")." |"._("Leistungsnachweis:")
             ." |"._("Bereichseinordnung:")." |"._("Sonstiges:")." |"._("ECTS-Punkte:"),
         "aliaspredisc" => _("Vorbesprechung:") . " ",
         "aliasfirstmeeting" => _("Erster Termin:") . " ",
         "headlinerow" => "1",
         "rangepathlevel" => "1",
         "studipinfo" => "1",
         "studiplink" => "top",
         "studiplinktarget" => "admin",
         "wholesite" => "",
         "nameformat" => "",
         "urlcss" => "",
         "title" => _("Veranstaltungsdaten"),
         "language" => "",
         "copyright" => htmlReady($GLOBALS['UNI_NAME_CLEAN']
                 . " ({$GLOBALS['UNI_CONTACT']})"),
         "author" => ""
     );
     
     get_default_generic_datafields($config, "sem");
     
     return $config;
 }
开发者ID:ratbird,项目名称:hope,代码行数:34,代码来源:ExternElementMainLecturedetails.class.php


示例10: getDisplayValue

 /**
  * Returns the display/rendered value of this datafield
  *
  * @param bool $entities Should html entities be encoded (defaults to true)
  * @return String containg the rendered value
  */
 public function getDisplayValue($entities = true)
 {
     if ($entities) {
         return htmlReady($this->getValue(), true, true);
     }
     return $this->getValue();
 }
开发者ID:ratbird,项目名称:hope,代码行数:13,代码来源:DataFieldTextareaEntry.class.php


示例11: render

 public function render($variables = array())
 {
     $attributes = array();
     foreach ((array) $this->template_variables['attributes'] as $key => $value) {
         $attributes[] = sprintf('%s="%s"', htmlReady($key), htmlReady($value));
     }
     $this->template_variables['attributes'] = implode(' ', $attributes) ?: '';
     return parent::render($variables);
 }
开发者ID:ratbird,项目名称:hope,代码行数:9,代码来源:SelectWidget.php


示例12: markupHashtags

 /**
  * Markup-rule for hashtags. Inserts links to blubber-globalstream for each tag.
  * @param StudipFormat $markup
  * @param array $matches
  * @return string : marked-up text
  */
 public static function markupHashtags($markup, $matches)
 {
     if (self::$course_hashes) {
         $url = URLHelper::getLink("plugins.php/Blubber/streams/forum", array('hash' => $matches[2], 'cid' => self::$course_hashes));
     } else {
         $url = URLHelper::getLink("plugins.php/Blubber/streams/global", array('hash' => $matches[2]));
     }
     return $matches[1] . '<a href="' . $url . '" class="hashtag">#' . htmlReady($matches[2]) . '</a>';
 }
开发者ID:ratbird,项目名称:hope,代码行数:15,代码来源:BlubberPosting.class.php


示例13: getColumnName

 function getColumnName($id, $print_view = false)
 {
     $res_obj = ResourceObject::Factory($this->show_columns[$id]);
     if (!$print_view) {
         $ret = '<a class="tree" href="' . URLHelper::getLink('?show_object=' . $this->show_columns[$id] . '&view=' . (Request::option('view') == 'openobject_group_schedule' ? 'openobject_schedule' : 'view_schedule')) . '">' . htmlReady($res_obj->getName()) . '</a>' . ($res_obj->getSeats() ? '<br>(' . $res_obj->getSeats() . ')' : '');
     } else {
         $ret = '<span style="font-size:10pt;">' . htmlReady($res_obj->getName()) . '</span>';
     }
     return $ret . chr(10);
 }
开发者ID:ratbird,项目名称:hope,代码行数:10,代码来源:SemGroupScheduleDayOfWeek.class.php


示例14: getError

 function getError($format = "clear")
 {
     if ($format == "clear") {
         return $this->error_msg;
     } else {
         for ($i = 0; $i < count($this->error_msg); ++$i) {
             $ret .= $this->error_msg[$i]['type'] . "§" . htmlReady($this->error_msg[$i]['msg']) . "§";
         }
         return $ret;
     }
 }
开发者ID:ratbird,项目名称:hope,代码行数:11,代码来源:StudipLitSearchPluginAbstract.class.php


示例15: __toString

 /**
  * @return  returns a HTML representation of this button.
  */
 function __toString()
 {
     // add "button" to attribute @class
     @($this->attributes["class"] .= " button");
     $attributes = array();
     ksort($this->attributes);
     foreach ($this->attributes as $k => $v) {
         $attributes[] = sprintf(' %s="%s"', $k, htmlReady($v));
     }
     return sprintf('<button type="reset"%s>%s</button>', join('', $attributes), htmlReady($this->label));
 }
开发者ID:ratbird,项目名称:hope,代码行数:14,代码来源:ResetButton.class.php


示例16: addContent

 /**
  *
  */
 function addContent($_content)
 {
     if (is_object($_content)) {
         $this->addHTMLContent($_content);
     } elseif (is_scalar($_content)) {
         $this->addHTMLContent(htmlReady((string) $_content));
     } else {
         $this->addHTMLContent("");
     }
     #      trigger_error("Parameter muss ein Scalar sein (Inhalt = ".
     #           ($_content === NULL ? "NULL": $_content)
     #           .", Typ = &lt;".$this->_name."&gt;)", E_USER_ERROR);
 }
开发者ID:ratbird,项目名称:hope,代码行数:16,代码来源:HTML.class.php


示例17: show_documents

/**
 * Returns an overview of certain documents
 *
 * @param Array $documents Ids of the documents in question
 * @param mixed $open      Array containing open states of documents
 * @return string Overview of documents as html, ready to be displayed
 */
function show_documents($documents, $open = null)
{
    if (!is_array($documents)) {
        return;
    }
    if (!is_null($open) && !is_array($open)) {
        $open = null;
    }
    if (is_array($open)) {
        reset($open);
        $ank = key($open);
    }
    if (!empty($documents)) {
        $query = "SELECT {$GLOBALS['_fullname_sql']['full']} AS fullname, username, user_id,\n                         dokument_id, filename, filesize, downloads, protected, url, description,\n                         IF(IFNULL(name, '') = '', filename, name) AS t_name,\n                         GREATEST(a.chdate, a.mkdate) AS chdate\n                  FROM dokumente AS a\n                  LEFT JOIN auth_user_md5 USING (user_id)\n                  LEFT JOIN user_info USING (user_id)\n                  WHERE dokument_id IN (?)\n                  ORDER BY a.chdate DESC";
        $statement = DBManager::get()->prepare($query);
        $statement->execute(array($documents));
        $documents = $statement->fetchAll(PDO::FETCH_ASSOC);
    }
    foreach ($documents as $index => $document) {
        $type = empty($document['url']) ? 0 : 6;
        $is_open = is_null($open) || $open[$document['dokument_id']] ? 'open' : 'close';
        $extension = getFileExtension($document['filename']);
        // Create icon
        $icon = sprintf('<a href="%s">%s</a>', GetDownloadLink($document['dokument_id'], $document['filename'], $type), GetFileIcon($extension, true)->asImg());
        // Create open/close link
        $link = $is_open === 'open' ? URLHelper::getLink('#dok_anker', array('close' => $document['dokument_id'])) : URLHelper::getLink('#dok_anker', array('open' => $document['dokument_id']));
        // Create title including filesize and number of downloads
        $size = $document['filesize'] > 1024 * 1024 ? sprintf('%u MB', round($document['filesize'] / 1024 / 1024)) : sprintf('%u kB', round($document['filesize'] / 1024));
        $downloads = $document['downloads'] == 1 ? '1 ' . _('Download') : $document['downloads'] . ' ' . _('Downloads');
        $title = sprintf('<a href="%s"%s class="tree">%s</a> (%s / %s)', $link, $ank == $document['dokument_id'] ? ' name="dok_anker"' : '', htmlReady(mila($document['t_name'])), $size, $downloads);
        // Create additional information
        $addon = sprintf('<a href="%s">%s</a> %s', URLHelper::getLink('dispatch.php/profile', array('username' => $document['username'])), $document['fullname'], date('d.m.Y H:i', $document['chdate']));
        if ($document['protected']) {
            $addon = tooltipicon(_('Diese Datei ist urheberrechtlich geschützt!')) . ' ' . $addon;
        }
        if (!empty($document['url'])) {
            $addon .= ' ' . Icon::create('link-extern', 'clickable', ['title' => _('Diese Datei wird von einem externen Server geladen!')])->asImg(16);
        }
        // Attach created variables to document
        $documents[$index]['addon'] = $addon;
        $documents[$index]['extension'] = $extension;
        $documents[$index]['icon'] = $icon;
        $documents[$index]['is_open'] = $is_open;
        $documents[$index]['link'] = $link;
        $documents[$index]['title'] = $title;
        $documents[$index]['type'] = $type;
    }
    $template = $GLOBALS['template_factory']->open('user_activities/files-details');
    $template->documents = $documents;
    return $template->render();
}
开发者ID:ratbird,项目名称:hope,代码行数:58,代码来源:user_activities.php


示例18: get_highscore_list

function get_highscore_list()
{
    $db = new DB_Seminar("SELECT murmeln_highscore.*,username FROM murmeln_highscore LEFT JOIN auth_user_md5 USING(user_id) ORDER BY score DESC LIMIT 20");
    $ret = '<ol>';
    $maxscore = 0;
    while ($db->next_record()) {
        $ret .= '<li><b>' . $db->f('score') . '</b> - 
				' . ($db->f('username') ? '<a href="' . UrlHelper::getLink('about.php?username=' . $db->f('username')) . '">' . htmlReady(get_fullname_from_uname($db->f('username'))) . '</a>' : htmlready($db->f('name'))) . '</li>';
        $maxscore = $db->f('score');
    }
    $ret .= '</ol>';
    $db->query("DELETE FROM murmeln_highscore WHERE score < " . $maxscore);
    return $ret;
}
开发者ID:noackorama,项目名称:MurmelnPlugin,代码行数:14,代码来源:sajax_functions.php


示例19: getAdminModuleLinks

 /**
  * get admin module links
  *
  * returns links add or remove a module from course
  * @access public
  * @return string returns html-code
  */
 function getAdminModuleLinks()
 {
     global $connected_cms, $view, $search_key, $cms_select, $current_module;
     if (!$connected_cms[$this->cms_type]->content_module[$current_module]->isDummy()) {
         $result = $connected_cms[$this->cms_type]->soap_client->getPath($connected_cms[$this->cms_type]->content_module[$current_module]->getId());
     }
     if ($result) {
         $output .= "<i>Pfad: " . htmlReady($result) . "</i><br><br>";
     }
     $output .= "<form method=\"POST\" action=\"" . URLHelper::getLink() . "\">\n";
     $output .= CSRFProtection::tokenTag();
     $output .= "<input type=\"HIDDEN\" name=\"view\" value=\"" . htmlReady($view) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"search_key\" value=\"" . htmlReady($search_key) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"cms_select\" value=\"" . htmlReady($cms_select) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"module_type\" value=\"" . htmlReady($connected_cms[$this->cms_type]->content_module[$current_module]->getModuleType()) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"module_id\" value=\"" . htmlReady($connected_cms[$this->cms_type]->content_module[$current_module]->getId()) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"module_system_type\" value=\"" . htmlReady($this->cms_type) . "\">\n";
     if ($connected_cms[$this->cms_type]->content_module[$current_module]->isConnected()) {
         $output .= "&nbsp;" . Button::create(_('Entfernen'), 'remove');
     } elseif ($connected_cms[$this->cms_type]->content_module[$current_module]->isAllowed(OPERATION_WRITE)) {
         $output .= "<div align=\"left\">";
         if ($connected_cms[$this->cms_type]->content_module[$current_module]->isAllowed(OPERATION_COPY) and !in_array($connected_cms[$this->cms_type]->content_module[$current_module]->module_type, array("lm", "htlm", "sahs", "cat", "crs", "dbk"))) {
             $output .= "<input type=\"CHECKBOX\" name=\"copy_object\" value=\"1\">";
             $output .= _("Als Kopie anlegen") . "&nbsp;";
             $output .= Icon::create('info-circle', 'inactive', ['title' => _('Wenn Sie diese Option wählen, wird eine identische Kopie als eigenständige Instanz des Lernmoduls erstellt. Anderenfalls wird ein Link zum Lernmodul gesetzt.')])->asImg();
             $output .= "<br>";
         }
         $output .= "<input type=\"RADIO\" name=\"write_permission\" value=\"none\" checked>";
         $output .= _("Keine Schreibrechte") . "&nbsp;";
         $output .= Icon::create('info-circle', 'inactive', ['title' => _('Nur der/die BesitzerIn des Lernmoduls hat Schreibzugriff für Inhalte und Struktur des Lernmoduls. Tutor/-innen und Lehrende können die Verknüpfung zur Veranstaltung wieder löschen.')])->asImg();
         $output .= "<br>";
         $output .= "<input type=\"RADIO\" name=\"write_permission\" value=\"dozent\">";
         $output .= _("Mit Schreibrechten für alle Lehrenden dieser Veranstaltung") . "&nbsp;";
         $output .= Icon::create('info-circle', 'inactive', ['title' => _('Lehrende haben Schreibzugriff für Inhalte und Struktur des Lernmoduls. Tutor/-innen und Lehrende können die Verknüpfung zur Veranstaltung wieder löschen.')])->asImg();
         $output .= "<br>";
         $output .= "<input type=\"RADIO\" name=\"write_permission\" value=\"tutor\">";
         $output .= _("Mit Schreibrechten für alle Lehrenden und Tutor/-innen dieser Veranstaltung") . "&nbsp;";
         $output .= Icon::create('info-circle', 'inactive', ['title' => _('Lehrende und Tutor/-innen haben Schreibzugriff für Inhalte und Struktur des Lernmoduls. Tutor/-innen und Lehrende können die Verknüpfung zur Veranstaltung wieder löschen.')])->asImg();
         $output .= "<br>";
         $output .= "<input type=\"RADIO\" name=\"write_permission\" value=\"autor\">";
         $output .= _("Mit Schreibrechten für alle Personen dieser Veranstaltung") . "&nbsp;";
         $output .= Icon::create('info-circle', 'inactive', ['title' => _('Lehrende, Tutor/-innen und Teilnehmer/-innen haben Schreibzugriff für Inhalte und Struktur des Lernmoduls. Tutor/-innen und Lehrende können die Verknüpfung zur Veranstaltung wieder löschen.')])->asImg();
         $output .= "</div>";
         $output .= "</div><br>" . Button::create(_('Hinzufügen'), 'add') . "<br>";
     } else {
         $output .= "&nbsp;" . Button::create(_('Hinzufügen'), 'add');
     }
     $output .= "</form>";
     return $output;
 }
开发者ID:ratbird,项目名称:hope,代码行数:57,代码来源:Ilias4ConnectedLink.class.php


示例20: __toString

 /**
  * @return  returns a HTML representation of this hyperlink.
  */
 function __toString()
 {
     // add "button" to attribute @class
     @($this->attributes["class"] .= " button");
     // add tabindex of zero to make buttons accesible when tabbing
     if (!isset($this->attributes['tabindex'])) {
         $this->attributes['tabindex'] = '0';
     }
     $attributes = array();
     ksort($this->attributes);
     foreach ($this->attributes as $k => $v) {
         $attributes[] = sprintf(' %s="%s"', $k, htmlReady($v));
     }
     // TODO: URLHelper...?!
     return sprintf('<a%s>%s</a>', join('', $attributes), htmlReady($this->label));
 }
开发者ID:ratbird,项目名称:hope,代码行数:19,代码来源:LinkButton.class.php



注:本文中的htmlReady函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP htmlSQLSelect函数代码示例发布时间:2022-05-15
下一篇:
PHP htmlQuotes函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap