当前位置: 首页>>代码示例>>PHP>>正文


PHP rex_tabindex函数代码示例

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


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

示例1: formatButton

 function formatButton($name, $attributes = '', $prefix = '', $suffix = '')
 {
     $button = $this->getButton($name);
     if (!$button['status']) {
         return '';
     }
     return sprintf('%s<input type="submit" name="%s" value="%s" tabindex="%s"%s />%s', $prefix, $name, $button['label'], rex_tabindex(false), $attributes, $suffix);
 }
开发者ID:BackupTheBerlios,项目名称:redaxo-addons,代码行数:8,代码来源:field.buttonField.inc.php

示例2: getButtons

 function getButtons()
 {
     $s = '';
     $id = $this->getId();
     foreach ($this->buttons as $button) {
         foreach ($button as $attr_name => $attr_value) {
             $button[$attr_name] = str_replace('%id%', $id, $attr_value);
         }
         $s .= sprintf('      <a href="%s" tabindex="%s"><img src="media/%s" width="16" height="16" alt="%s" title="%s" /></a>' . "\n", $button['href'], rex_tabindex(false), $button['image'], $button['title'], $button['title']);
     }
     return $s;
 }
开发者ID:BackupTheBerlios,项目名称:redaxo-addons,代码行数:12,代码来源:field.popupButtonField.inc.php

示例3: rex_asd_news_language

function rex_asd_news_language($curClang, $urlParam)
{
    global $REX;
    global $I18N;
    reset($REX['CLANG']);
    $num_clang = count($REX['CLANG']);
    if ($num_clang > 1) {
        echo '
<div id="rex-clang" class="rex-toolbar">
    <div class="rex-toolbar-content">
        <ul>
            <li>' . $I18N->msg('languages') . ' : </li>';
        $stop = false;
        $i = 1;
        foreach ($REX['CLANG'] as $key => $val) {
            if ($i == 1) {
                echo '<li class="rex-navi-first rex-navi-clang-' . $key . '">';
            } else {
                echo '<li class="rex-navi-clang-' . $key . '">';
            }
            $val = rex_translate($val);
            if (!$REX['USER']->isAdmin() && !$REX['USER']->hasPerm('clang[all]') && !$REX['USER']->hasPerm('clang[' . $key . ']')) {
                echo '<span class="rex-strike">' . $val . '</span>';
                if ($curClang == $key) {
                    $stop = true;
                }
            } else {
                $class = '';
                if ($key == $curClang) {
                    $class = ' class="rex-active"';
                }
                echo '<a' . $class . ' href="index.php?page=' . $REX['PAGE'] . '&amp;clang=' . $key . $urlParam . '"' . rex_tabindex() . '>' . $val . '</a>';
            }
            echo '</li>';
            $i++;
        }
        echo '
        </ul>
    </div>
</div>';
        if ($stop) {
            echo rex_warning('You have no permission to this area');
            require $REX['INCLUDE_PATH'] . '/layout/bottom.php';
            exit;
        }
    }
}
开发者ID:Sysix,项目名称:asd_news,代码行数:47,代码来源:rex_asd_news_language.php

示例4: a587_rexsearch_reindex_article

function a587_rexsearch_reindex_article($_params)
{
    global $REX, $I18N;
    $get = $_GET;
    if (!array_key_exists('article_id', $get)) {
        $get['article_id'] = rex_request('article_id', 'int', $REX['ARTICLE_ID']);
    }
    if (!array_key_exists('clang', $get)) {
        $get['clang'] = rex_request('clang', 'int', $REX['CUR_CLANG']);
    }
    if (!array_key_exists('ctype', $get) and array_key_exists('ctype', $_REQUEST)) {
        $get['ctype'] = rex_request('ctype');
    }
    if (!array_key_exists('mode', $get) and array_key_exists('mode', $_REQUEST)) {
        $get['mode'] = rex_request('mode');
    }
    $get['func'] = 'reindex';
    $_params['subject'][] = '<a href="index.php?' . http_build_query($get, null, '&amp;') . '" class="rex-active"' . rex_tabindex() . '>' . $I18N->msg('a587_reindex_article') . '</a>';
    return $_params['subject'];
}
开发者ID:olien,项目名称:rexsearch,代码行数:20,代码来源:function.reindex_article.inc.php

示例5: get

 /**
  * Gibt den HTML Content zurück
  */
 function get()
 {
     $s = '';
     $name = $this->getName();
     $id = $this->getId();
     $value = $this->getValue();
     $attributes = $this->getAttributes();
     $i = 0;
     $s = '<div id="' . $id . '">';
     foreach ($this->getRadios() as $box) {
         $boxid = $id . $i;
         $checked = '';
         if (in_array($box[1], $value)) {
             $checked = ' checked="checked"';
         }
         $s .= sprintf('<input type="radio" name="%s" value="%s" id="%s" tabindex="%s"%s%s /><label for="%s">%s</label>', $name, $box[1], $boxid, rex_tabindex(false), $checked, $attributes, $boxid, $box[0]);
         $i++;
     }
     $s .= '</div>';
     return $s;
 }
开发者ID:BackupTheBerlios,项目名称:redaxo-addons,代码行数:24,代码来源:field.radioField.inc.php

示例6: foreach

    $stop = false;
    $i = 1;
    foreach ($REX['CLANG'] as $key => $val) {
        echo '<li>';
        $val = rex_translate($val);
        if (!$REX_USER->hasPerm('admin[]') && !$REX_USER->hasPerm('clang[all]') && !$REX_USER->hasPerm('clang[' . $key . ']')) {
            echo '<span class="rex-strike">' . $val . '</span>';
            if ($clang == $key) {
                $stop = true;
            }
        } else {
            $class = '';
            if ($key == $clang) {
                $class = ' class="rex-active"';
            }
            echo '<a' . $class . ' href="index.php?page=' . $page . '&amp;clang=' . $key . $sprachen_add . '&amp;ctype=' . $ctype . '"' . rex_tabindex() . '>' . $val . '</a>';
        }
        if ($i != $num_clang) {
            echo ' | ';
        }
        echo '</li>';
        $i++;
    }
    echo '
     </ul>
   </div>
<!-- *** OUTPUT OF CLANG-TOOLBAR - END *** -->
';
    if ($stop) {
        echo '
<!-- *** OUTPUT OF CLANG-VALIDATE - START *** -->
开发者ID:BackupTheBerlios,项目名称:redaxo-svn,代码行数:31,代码来源:function_rex_languages.inc.php

示例7: getLinkButton

    /**
     * Gibt das Button Template zurück
     */
    function getLinkButton($id, $article_id, $category = '')
    {
        global $REX;
        $art_name = '';
        $clang = '';
        $art = OOArticle::getArticleById($article_id);
        // Falls ein Artikel vorausgewählt ist, dessen Namen anzeigen und beim öffnen der Linkmap dessen Kategorie anzeigen
        if (OOArticle::isValid($art)) {
            $art_name = $art->getName();
            $category = $art->getCategoryId();
        }
        $open_params = '&clang=' . $REX['CUR_CLANG'];
        if ($category != '') {
            $open_params .= '&category_id=' . $category;
        }
        $media = '
	<div class="rex-wdgt">
		<div class="rex-wdgt-lnk">
          <p class="rex-wdgt-fld">
  			<input type="hidden" name="LINK[' . $id . ']" id="LINK_' . $id . '" value="' . $article_id . '" />
  			<input type="text" size="30" name="LINK_NAME[' . $id . ']" value="' . $art_name . '" id="LINK_' . $id . '_NAME" readonly="readonly" />
  		  </p>
          <p class="rex-wdgt-icons">
          	<a href="#" onclick="openLinkMap(\'LINK_' . $id . '\', \'' . $open_params . '\');return false;"' . rex_tabindex() . '><img src="media/file_open.gif" width="16" height="16" alt="Open Linkmap" title="Open Linkmap" /></a>
 			<a href="#" onclick="deleteREXLink(' . $id . ');return false;"' . rex_tabindex() . '><img src="media/file_del.gif" width="16" height="16" title="Remove Selection" alt="Remove Selection" /></a>
 		  </p>
 		  <div class="rex-clearer"></div>
 		</div>
 	</div>';
        return $media;
    }
开发者ID:BackupTheBerlios,项目名称:redaxo-svn,代码行数:34,代码来源:class.rex_var_link.inc.php

示例8: rex_tabindex

	<div id="rex-ftr">
		<ul>
			<li><a href="http://www.yakamara.de" target="_blank" class="black"<?php 
echo rex_tabindex();
?>
>yakamara.de</a> | </li>
      <li><a href="http://www.redaxo.de" target="_blank" class="black"<?php 
echo rex_tabindex();
?>
>redaxo.de</a> | </li>
			<?php 
if (isset($REX_USER)) {
    echo '<li><a href="index.php?page=credits" class="black">' . $I18N->msg('credits') . '</a> | </li>';
}
?>
      <li><a href="http://forum.redaxo.de"<?php 
echo rex_tabindex();
?>
>?</a></li>
		</ul>
		<p><?php 
echo showScripttime();
?>
 sec | <?php 
echo rex_formatter::format(time(), 'strftime', 'date');
?>
</p>
	</div>
   </body>
</html>
开发者ID:BackupTheBerlios,项目名称:redaxo-svn,代码行数:30,代码来源:bottom.php

示例9: getMedialistButton

 /**
  * Gibt das ListButton Template zurück
  */
 static function getMedialistButton($id, $value, $category = '', $args = array())
 {
     global $REX, $I18N;
     $open_params = '';
     if ($category != '') {
         $open_params .= '&amp;rex_file_category=' . $category;
     }
     foreach ($args as $aname => $avalue) {
         $open_params .= '&amp;args[' . $aname . ']=' . urlencode($avalue);
     }
     $wdgtClass = 'rex-widget-medialist';
     if (isset($args['preview']) && $args['preview']) {
         $wdgtClass .= ' rex-widget-preview';
         if (OOAddon::isAvailable('image_manager')) {
             $wdgtClass .= ' rex-widget-preview-image-manager';
         } elseif (OOAddon::isAvailable('image_resize')) {
             $wdgtClass .= ' rex-widget-preview-image-resize';
         }
     }
     $options = '';
     $medialistarray = explode(',', $value);
     if (is_array($medialistarray)) {
         foreach ($medialistarray as $file) {
             if ($file != '') {
                 $options .= '<option value="' . $file . '">' . $file . '</option>';
             }
         }
     }
     $open_class = 'rex-icon-file-open rex-icon-file-open-inactive';
     $add_class = 'rex-icon-file-add rex-icon-file-add-inactive';
     $delete_class = 'rex-icon-file-delete rex-icon-file-delete-inactive';
     $view_class = 'rex-icon-file-view rex-icon-file-view-inactive';
     $open_func = '';
     $add_func = '';
     $delete_func = '';
     $view_func = '';
     if ($REX['USER']->hasMediaPerm()) {
         $open_class = 'rex-icon-file-open';
         $add_class = 'rex-icon-file-add';
         $delete_class = 'rex-icon-file-delete';
         $view_class = 'rex-icon-file-view';
         $open_func = 'openREXMedialist(' . $id . ',\'' . $open_params . '\');';
         $add_func = 'addREXMedialist(' . $id . ',\'' . $open_params . '\');';
         $delete_func = 'deleteREXMedialist(' . $id . ');';
         $view_func = 'viewREXMedialist(' . $id . ',\'' . $open_params . '\');';
     }
     $media = '
     <div class="rex-widget">
         <div class="' . $wdgtClass . '">
             <input type="hidden" name="MEDIALIST[' . $id . ']" id="REX_MEDIALIST_' . $id . '" value="' . $value . '" />
             <p class="rex-widget-field">
                 <select name="MEDIALIST_SELECT[' . $id . ']" id="REX_MEDIALIST_SELECT_' . $id . '" size="8"' . rex_tabindex() . '>
                     ' . $options . '
                 </select>
             </p>
             <p class="rex-widget-icons rex-widget-2col">
                 <span class="rex-widget-column rex-widget-column-first">
                     <a href="#" class="rex-icon-file-top" onclick="moveREXMedialist(' . $id . ',\'top\');return false;" title="' . $I18N->msg('var_medialist_move_top') . '"' . rex_tabindex() . '></a>
                     <a href="#" class="rex-icon-file-up" onclick="moveREXMedialist(' . $id . ',\'up\');return false;" title="' . $I18N->msg('var_medialist_move_up') . '"' . rex_tabindex() . '></a>
                     <a href="#" class="rex-icon-file-down" onclick="moveREXMedialist(' . $id . ',\'down\');return false;" title="' . $I18N->msg('var_medialist_move_down') . '"' . rex_tabindex() . '></a>
                     <a href="#" class="rex-icon-file-bottom" onclick="moveREXMedialist(' . $id . ',\'bottom\');return false;" title="' . $I18N->msg('var_medialist_move_bottom') . '"' . rex_tabindex() . '></a>
                 </span>
                 <span class="rex-widget-column">
                     <a href="#" class="' . $open_class . '" onclick="' . $open_func . 'return false;" title="' . $I18N->msg('var_media_open') . '"' . rex_tabindex() . '></a>
                     <a href="#" class="' . $add_class . '" onclick="' . $add_func . 'return false;" title="' . $I18N->msg('var_media_new') . '"' . rex_tabindex() . '></a>
                     <a href="#" class="' . $delete_class . '" onclick="' . $delete_func . 'return false;" title="' . $I18N->msg('var_media_remove') . '"' . rex_tabindex() . '></a>
                     <a href="#" class="' . $view_class . '" onclick="' . $view_func . 'return false;" title="' . $I18N->msg('var_media_view') . '"' . rex_tabindex() . '></a>
                 </span>
             </p>
             <div class="rex-media-preview"></div>
         </div>
     </div>
     <div class="rex-clearer"></div>
     ';
     return $media;
 }
开发者ID:Barnhiac,项目名称:MTW_REDAXO,代码行数:79,代码来源:class.rex_var_media.inc.php

示例10: get

 function get()
 {
     return sprintf('<input type="text" name="%s" value="%s" id="%s" tabindex="%s"%s />', $this->getName(), $this->getValue(), $this->getId(), rex_tabindex(false), $this->getAttributes());
 }
开发者ID:BackupTheBerlios,项目名称:redaxo-addons,代码行数:4,代码来源:field.textField.inc.php

示例11: getMedialistButton

    /**
     * Gibt das ListButton Template zurück
     */
    function getMedialistButton($id, $value, $category = '', $args = array())
    {
        global $I18N;
        $open_params = '';
        if ($category != '') {
            $open_params .= '&amp;rex_file_category=' . $category;
        }
        foreach ($args as $aname => $avalue) {
            $open_params .= '&amp;args[' . $aname . ']=' . urlencode($avalue);
        }
        $wdgtClass = 'rex-widget-medialist';
        if (isset($args['preview']) && $args['preview'] && OOAddon::isAvailable('image_resize')) {
            $wdgtClass .= ' rex-widget-preview';
        }
        $options = '';
        $medialistarray = explode(',', $value);
        if (is_array($medialistarray)) {
            foreach ($medialistarray as $file) {
                if ($file != '') {
                    $options .= '<option value="' . $file . '">' . $file . '</option>';
                }
            }
        }
        $media = '
    <div class="rex-widget">
      <div class="' . $wdgtClass . '">
        <input type="hidden" name="MEDIALIST[' . $id . ']" id="REX_MEDIALIST_' . $id . '" value="' . $value . '" />
        <p class="rex-widget-field">
          <select name="MEDIALIST_SELECT[' . $id . ']" id="REX_MEDIALIST_SELECT_' . $id . '" size="8"' . rex_tabindex() . '>
            ' . $options . '
          </select>
        </p>
        <p class="rex-widget-icons">
          <a href="#" class="rex-icon-file-top" onclick="moveREXMedialist(' . $id . ',\'top\');return false;"' . rex_tabindex() . '><img src="media/file_top.gif" width="16" height="16" title="' . $I18N->msg('var_medialist_move_top') . '" alt="' . $I18N->msg('var_medialist_move_top') . '" /></a>
          <a href="#" class="rex-icon-file-open" onclick="openREXMedialist(' . $id . ');return false;"' . rex_tabindex() . '><img src="media/file_open.gif" width="16" height="16" title="' . $I18N->msg('var_media_open') . '" alt="' . $I18N->msg('var_media_open') . '" /></a><br />
          <a href="#" class="rex-icon-file-up" onclick="moveREXMedialist(' . $id . ',\'up\');return false;"' . rex_tabindex() . '><img src="media/file_up.gif" width="16" height="16" title="' . $I18N->msg('var_medialist_move_up') . '" alt="' . $I18N->msg('var_medialist_move_top') . '" /></a>
          <a href="#" class="rex-icon-file-add" onclick="addREXMedialist(' . $id . ');return false;"' . rex_tabindex() . '><img src="media/file_add.gif" width="16" height="16" title="' . $I18N->msg('var_media_new') . '" alt="' . $I18N->msg('var_media_new') . '" /></a><br />
          <a href="#" class="rex-icon-file-down" onclick="moveREXMedialist(' . $id . ',\'down\');return false;"' . rex_tabindex() . '><img src="media/file_down.gif" width="16" height="16" title="' . $I18N->msg('var_medialist_move_down') . '" alt="' . $I18N->msg('var_medialist_move_down') . '" /></a>
          <a href="#" class="rex-icon-file-delete" onclick="deleteREXMedialist(' . $id . ');return false;"' . rex_tabindex() . '><img src="media/file_del.gif" width="16" height="16" title="' . $I18N->msg('var_media_remove') . '" alt="' . $I18N->msg('var_media_remove') . '" /></a><br />
          <a href="#" class="rex-icon-file-bottom" onclick="moveREXMedialist(' . $id . ',\'bottom\');return false;"' . rex_tabindex() . '><img src="media/file_bottom.gif" width="16" height="16" title="' . $I18N->msg('var_medialist_move_bottom') . '" alt="' . $I18N->msg('var_medialist_move_bottom') . '" /></a>
        </p>
        <div class="rex-media-preview"></div>
      </div>
    </div>
	 	<div class="rex-clearer"></div>
    ';
        return $media;
    }
开发者ID:BackupTheBerlios,项目名称:redaxo-svn,代码行数:51,代码来源:class.rex_var_media.inc.php

示例12: foreach

    foreach ($REX['USER']->pages as $p => $pageContainer) {
        $p = strtolower($p);
        if (rex_be_main_page::isValid($pageContainer)) {
            $pageObj =& $pageContainer->getPage();
            $pageObj->setItemAttr('id', 'rex-navi-page-' . strtolower(preg_replace('/[^a-zA-Z0-9\\-_]*/', '', $p)));
            if (!$pageContainer->getBlock()) {
                $pageContainer->setBlock('addons');
            }
            if (!$pageObj->getHref()) {
                $pageObj->setHref('index.php?page=' . $p);
            }
            /*
             if(isset ($REX['ACKEY']['ADDON'][$page]))
                $item['extra'] = rex_accesskey($name, $REX['ACKEY']['ADDON'][$page]);
            else
                $item['extra'] = rex_accesskey($pageArr['title'], $accesskey++);
            */
            $pageObj->setLinkAttr('tabindex', rex_tabindex(false));
            $n->addPage($pageContainer);
        }
    }
    $n->setActiveElements();
    echo $n->getNavigation();
}
?>
</div>


<div id="rex-wrapper">
<div id="rex-wrapper2">
开发者ID:Barnhiac,项目名称:MTW_REDAXO,代码行数:30,代码来源:top.php

示例13: rex_accesskey

             // ***** AddOn
             if (isset($REX['ADDON']['link'][$pageKey]) && $REX['ADDON']['link'][$pageKey] != "") {
                 $item['href'] = $REX['ADDON']['link'][$pageKey];
             } else {
                 $item['href'] = 'index.php?page=' . $pageKey;
             }
             if (isset($REX['ACKEY']['ADDON'][$pageKey])) {
                 $item['extra'] = rex_accesskey($name, $REX['ACKEY']['ADDON'][$pageKey]);
             } else {
                 $item['extra'] = rex_accesskey($pageArr[0], $accesskey++);
             }
             $item['subpages'] = array();
             if (isset($REX['ADDON'][$pageKey]['SUBPAGES'])) {
                 $item['subpages'] = $REX['ADDON'][$pageKey]['SUBPAGES'];
             }
             $item['tabindex'] = rex_tabindex(false);
             if (isset($pageArr['NAVI']) && is_array($pageArr['NAVI'])) {
                 foreach ($pageArr['NAVI'] as $k => $v) {
                     $item[$k] = $v;
                 }
             }
             $navi_addons[$pageArr[0]] = $item;
         }
     }
 }
 echo '<dl class="rex-navi">';
 foreach (array('system' => $navi_system, 'addon' => $navi_addons) as $topic => $naviList) {
     if (count($naviList) == 0) {
         continue;
     }
     $headline = $topic == 'system' ? $I18N->msg('navigation_basis') : $I18N->msg('navigation_addons');
开发者ID:BackupTheBerlios,项目名称:redaxo-svn,代码行数:31,代码来源:top.php

示例14: get

 /**
  * Gibt den HTML Content zurück
  */
 function get()
 {
     $options = '';
     $name = $this->getName();
     $options = $this->outGroup($this->getFirstGroupId());
     if ($this->multiple) {
         $name .= '[]';
         $this->addAttribute('multiple', 'multiple');
         $this->addAttribute('size', '5', false);
     } else {
         $this->addAttribute('size', '3', false);
     }
     return sprintf('<select name="%s" id="%s" tabindex="%s"%s>%s</select>', $name, $this->getId(), rex_tabindex(false), $this->getAttributes(), $options);
 }
开发者ID:BackupTheBerlios,项目名称:redaxo-addons,代码行数:17,代码来源:field.selectField.inc.php

示例15: get

 function get()
 {
     return sprintf('<textarea name="%s" id="%s" tabindex="%s"%s>%s</textarea>', $this->getName(), $this->getId(), rex_tabindex(false), $this->getAttributes(), $this->getValue());
 }
开发者ID:BackupTheBerlios,项目名称:redaxo-addons,代码行数:4,代码来源:field.textAreaField.inc.php


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