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


PHP link_to1函数代码示例

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


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

示例1: linkToHistory

 public function linkToHistory($object, $params)
 {
     if (!$object->getTable()->isVersionable()) {
         return '';
     }
     return '<li class="sf_admin_action_history">' . link_to1(__($params['label']), $this->getRouteArrayForAction('history', $object), array('class' => 'sf_admin_action s16 s16_clock_history', 'title' => __($params['title'], array('%1%' => strtolower(__($this->getModule()->getName())))))) . '</li>';
 }
开发者ID:jdart,项目名称:diem,代码行数:7,代码来源:dmAdminModelGeneratorHelper.php

示例2: linkTo_preview

 public function linkTo_preview($object, $params)
 {
     if ($this->module->getSecurityManager()->userHasCredentials('edit', $object)) {
         $title = __(isset($params['title']) ? $params['title'] : $params['label'], array('%1%' => dmString::strtolower(__($this->getModule()->getName()))), 'dm');
         return '<li class="sf_admin_action_preview">' . link_to1(__($params['label'], array(), $this->getI18nCatalogue()), $this->getRouteArrayForAction('preview', $object), array('class' => 's16 s16_right_little dm_preview_link sf_admin_action', 'title' => $title, 'method' => 'get')) . '</li>';
     }
     return '';
 }
开发者ID:runopencode,项目名称:diem-extended,代码行数:8,代码来源:dmMailTemplateGeneratorHelper.class.php

示例3: linkToImportSentences

 public function linkToImportSentences($object, $params)
 {
     if ($this->module->getSecurityManager()->userHasCredentials('edit', $object)) {
         $title = __(isset($params['title']) ? $params['title'] : $params['label'], array('%1%' => dmString::strtolower(__($this->getModule()->getName()))), 'dm');
         return '<li class="sf_admin_action_import_sentences">' . link_to1(__($params['label'], array(), $this->getI18nCatalogue()), $this->getRouteArrayForAction('importSentences', $object), array('class' => 's16 s16_save dm_import_link sf_admin_action', 'title' => $title)) . '</li>';
     }
     return '';
 }
开发者ID:theolymp,项目名称:diem,代码行数:8,代码来源:dmCatalogueGeneratorHelper.class.php

示例4: link_to1

            <?php 
if (!is_null($ei_fonction)) {
    ?>
            <li> <?php 
    echo link_to1('Editer', 'eifonction/edit?id=' . $ei_fonction->id);
    ?>
</li>
            <li> <?php 
    echo link_to1('Supprimer', 'eifonction/delete?id=' . $ei_fonction->id);
    ?>
</li>
            <li> <?php 
    echo link_to1('Générer le code robot', 'eifonction/generateRobotCode?id=' . $ei_fonction->id);
    ?>
</li>
            <li> <?php 
    echo link_to1(' jouer sur le robot', 'eifonction/playOnRobot?id=' . $ei_fonction->id);
    ?>
</li>
            <li> <?php 
    echo link_to1(' Vers le scénario', 'eiscenario/show?id=' . $ei_fonction->getEiScenario()->id);
    ?>
</li>
            <li> <?php 
    echo link_to1(' Retour à la liste', 'eifonction/index?ei_scenario_id=' . $ei_fonction->ei_scenario_id . '&id_version=' . $ei_fonction->id_version);
    ?>
</li>
            <?php 
}
?>
        </ul>
开发者ID:lendji4000,项目名称:compose,代码行数:31,代码来源:_menuDetailsFonction.php

示例5: _markupBasicLinksInText

 /**
  * Replace occurances of markdown link tag with html link tag pointing at attached asset.
  *
  * @param array $matches
  * @return string
  */
 protected function _markupBasicLinksInText($matches)
 {
     return link_to1($matches[1], $matches[2]);
 }
开发者ID:pierswarmers,项目名称:rtCorePlugin,代码行数:10,代码来源:rtTypeString.class.php

示例6: link_to1

            <?php 
}
?>
            <?php 
if (!is_null($ei_fonctions)) {
    ?>
            <li> <?php 
    echo link_to1('xml exemple php', '@ei_scenario_xml?sf_format=html&ei_scenario_id=' . $ei_scenario->id . '&id_version=' . $ei_version->id);
    ?>
</li>
            <li> <?php 
    echo link_to1(' xml exemple ', '@ei_scenario_xml?sf_format=xml&ei_scenario_id=' . $ei_scenario->id . '&id_version=' . $ei_version->id);
    ?>
</li>
            <li> <?php 
    echo link_to1('Jouer le scénario dans un robot ', 'eiscenario/playOnRobot?ei_scenario_id=' . $ei_scenario->id . '&id_version=' . $ei_version->id);
    ?>
</li>
            <?php 
}
?>
        </ul>
        <div class="search_version_name">
                <b>Filtre des fonctions</b>
                <input type="text" name="recherche_version"  id="recherche_version" />
         </div>
        <div id="resultat_recherche_version">

        </div>
        <div class="list_versions">
            
开发者ID:lendji4000,项目名称:compose,代码行数:30,代码来源:_menuFonctions.php

示例7: link_to1

    echo $alert_tab['text'];
    ?>
        </div>
    </div>
<?php 
}
?>
     
<div class="row">		
    <div class="col-lg-12">
        <div class="panel panel-default eiPanel">
            <div class="panel-heading" data-original-title>
                <h2 class="title_project"><i class="fa fa-desktop"></i><span class="break"></span>Projects</h2>
                <div class="panel-actions"> 
                    <?php 
echo link_to1('<i class="fa fa-refresh "></i> Refresh', "@recharger_projet", array('id' => 'verifiedProjectState', 'class' => 'btn-primary', 'title' => 'Refresh projects'));
?>
  
                </div>
            </div>
            <div class="panel-body table-responsive"> 
                <table class="table table-striped table-bordered bootstrap-datatable dataTable  " id="eiProjectList">
                    <thead>
                        <tr>
                            <th class="libelle_projet">Name</th>
                            <th class="description_projet">Description</th>
                            <th>Checked at</th>
                            <th>Updated at </th>
                            <th>State</th>
                        </tr>
                    </thead> 
开发者ID:lendji4000,项目名称:compose,代码行数:31,代码来源:indexSuccess.php

示例8: link_to_if

/**
 * If the condition passed as first argument is true,
 * creates a <a> link tag of the given name using a routed URL
 * based on the module/action passed as argument and the routing configuration.
 * If the condition is false, the given name is returned between <span> tags
 *
 * <b>Options:</b>
 * - 'tag' - the HTML tag that must enclose the name if the condition is false, defaults to <span>
 * - 'absolute' - if set to true, the helper outputs an absolute URL
 * - 'query_string' - to append a query string (starting by ?) to the routed url
 * - 'anchor' - to append an anchor (starting by #) to the routed url
 * - 'confirm' - displays a javascript confirmation alert when the link is clicked
 * - 'popup' - if set to true, the link opens a new browser window 
 * - 'post' - if set to true, the link submits a POST request instead of GET (caution: do not use inside a form)
 *
 * <b>Examples:</b>
 * <code>
 *  echo link_to_if($user->isAdministrator(), 'Delete this page', 'my_module/my_action');
 *    => <a href="/path/to/my/action">Delete this page</a>
 *  echo link_to_if(!$user->isAdministrator(), 'Delete this page', 'my_module/my_action'); 
 *    => <span>Delete this page</span>
 * </code>
 *
 * @param  bool   $condition     condition
 * @param  string $name          name of the link, i.e. string to appear between the <a> tags
 * @param  string $internal_uri  'module/action' or '@rule' of the action
 * @param  array  $options       additional HTML compliant <a> tag parameters
 *
 * @return string XHTML compliant <a href> tag or name
 *
 * @see    link_to
 */
function link_to_if()
{
    $arguments = func_get_args();
    if (!is_string($arguments[2]) || '@' == substr($arguments[2], 0, 1) || false !== strpos($arguments[2], '/')) {
        list($condition, $name, $params, $options) = array_pad($arguments, 4, null);
    } else {
        list($condition, $name, $routeName, $params, $options) = array_pad($arguments, 5, null);
        $params = array_merge(array('sf_route' => $routeName), is_object($params) ? array('sf_subject' => $params) : (array) $params);
    }
    $html_options = _parse_attributes($options);
    if ($condition) {
        unset($html_options['tag']);
        return link_to1($name, $params, $html_options);
    } else {
        unset($html_options['query_string']);
        unset($html_options['absolute_url']);
        unset($html_options['absolute']);
        $tag = _get_option($html_options, 'tag', 'span');
        return content_tag($tag, $name, $html_options);
    }
}
开发者ID:nurfiantara,项目名称:ehri-ica-atom,代码行数:53,代码来源:UrlHelper.php

示例9: link_to2

/**
 * UrlHelper.
 *
 * @package    symfony
 * @subpackage helper
 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
 * @version    SVN: $Id: UrlHelper.php 27597 2010-02-05 16:37:22Z FabianLange $
 */
function link_to2($name, $routeName, $params, $options = array())
{
    $params = array_merge(array('sf_route' => $routeName), is_object($params) ? array('sf_subject' => $params) : $params);
    return link_to1($name, $params, $options);
}
开发者ID:nvidela,项目名称:kimkelen,代码行数:13,代码来源:UrlHelper.php

示例10: link_to

                    <?php 
    echo link_to('Mi Panel de Control', '@controlpanel');
    ?>
<br/>        

                <?php 
}
?>

                  
              </div>                         
          </div>
          
          <div id="menu_izquierdo">
              <?php 
echo link_to1('Menu', '@order');
?>
       
              <a href="#">Delivery</a>
    
             <a href="#"> Our Company</a>
     
              <a href="#">Our Clients</a>
      
             <a href="#"> Blog</a>
         
             <a href="#"> F.A.Q</a>
          
              <a href="#">Idiomas</a>
         
             <a href="#"> Redes Sociales</a>
开发者ID:BGCX067,项目名称:f2gsym-svn-to-git,代码行数:31,代码来源:layout.php

示例11: link_to1

    ?>
</i></b></li>
                        <li><b><i><?php 
    echo link_to1('Versions', "@aide?eimodule=eiversion");
    ?>
</i></b></li>
                        <li><b><i><?php 
    echo link_to1("Fonctions", "@aide?eimodule=eifonction");
    ?>
</i></b></li>
                        <li><b><i><?php 
    echo link_to1('Profils', "@aide?eimodule=eiprofil");
    ?>
</i></b></li>
                        <li><b><i><?php 
    echo link_to1('Logs', "@aide?eimodule=eilog");
    ?>
</i></b></li>

                    </ul>
                    <?php 
} else {
    ?>
                    <b>Attente d'authentification ...</b>
                    <?php 
}
?>
                </div>
            </td>
        </tr>
    </table>
开发者ID:lendji4000,项目名称:compose,代码行数:31,代码来源:aideSuccess.php

示例12: link_to1

?>
">xml exemple </a>   </td>
                    <td><?php 
echo link_to1('xml exemple sous php', 'eifonction/generateXML?id_fonction=' . $ei_fonction->id);
?>
</td>
                    <td> <?php 
echo link_to1('Nouveau paramètre', 'eiparam/new?id_fonction=' . $ei_fonction->id);
?>
   </td>
                    <td> <?php 
echo link_to1('Nouvelle fonction kalifast', 'kalfonction/new');
?>
  </td>
                    <td> <?php 
echo link_to1('Jouer la fonction sur le robot', 'eifonction/playOnRobot');
?>
  </td>
                </tr>
            </tbody>
            <tfoot>

            </tfoot>
        </table>
    </div>
    <div class="part2">
        <?php 
if (!is_null($ei_fonction)) {
    ?>
        <?php 
    include_partial('menuDetailsFonction', array('ei_fonction' => $ei_fonction));
开发者ID:lendji4000,项目名称:compose,代码行数:31,代码来源:showSuccess.php

示例13: link_to1

<div class="navbar navbar-inverse  "> 
    <div class="navbar-inner">
        <ul class="nav">
            <li>
               <?php 
echo link_to1('<img src="/images/logos/picto_compose.png" alt="" class="alignment_img" />', "@recharger_projet");
?>
 
            </li>
            <li class="divider-vertical"></li>
            <li class="dropdown  active"> 
                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                    Projects <b class="caret"></b></a>  
                <ul class="dropdown-menu" role="menu">
                    <li><a href="#"><i></i>p1</a></li> 
                    <li><a href="#"><i></i>22</a></li>  
                </ul>
            </li>  
            <li class="divider-vertical"></li>
            <!-- Delivery-->
            <li class="dropdown active">
                <a class="dropdown-toggle" data-toggle="dropdown" href="#" >
                    Interventions<b class="caret"></b>
                </a> 
                <ul class="dropdown-menu">
                    <li class="dropdown-submenu">
                        <a href="#">Bugs</a>
                        <ul class="dropdown-menu">
                            <li><a href="#">Add</a></li>
                            <li class="divider"></li>
                            <li><a href="#">Search</a></li>  
开发者ID:lendji4000,项目名称:compose,代码行数:31,代码来源:_navBar.php

示例14: end_slot

 RSS" />
<?php 
end_slot();
?>
<div id="feed_link"><?php 
echo link_to(image_tag('rss.svg'), '@feed_user_atom?reddit_validation_key=' . $key);
?>
</div>
<h2 class="orangeredbar"><?php 
echo $user->getUsername();
?>
</h2>

<h3>Profile Information</h3>
<?php 
echo link_to1('Edit Profile', 'profile/edit');
echo $user->getTwitterAccount();
echo $user->getWebsite();
?>
<p><?php 
echo $user->getShortBio();
?>
</p>

<?php 
if ($user->getDisplayLocation()) {
    ?>

<?php 
}
?>
开发者ID:nocoolnametom,项目名称:OpenMicNight,代码行数:31,代码来源:indexSuccess.php

示例15: link_to1

Panel de control

<br/><br/>

<?php 
echo link_to1('Ordenar', '@order');
开发者ID:BGCX067,项目名称:f2gsym-svn-to-git,代码行数:6,代码来源:controlpanelSuccess.php


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