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>';
 }
 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 '';
 }
 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 '';
 }
            <?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>
 /**
  * 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]);
 }
示例#6
0
            <?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">
            
示例#7
0
    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> 
示例#8
0
/**
 * 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);
    }
}
示例#9
0
/**
 * UrlHelper.
 *
 * @package    symfony
 * @subpackage helper
 * @author     Fabien Potencier <*****@*****.**>
 * @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);
}
示例#10
0
                    <?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>
示例#11
0
    ?>
</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>
示例#12
0
?>
">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));
示例#13
0
<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>  
示例#14
0
 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 
}
?>
Panel de control

<br/><br/>

<?php 
echo link_to1('Ordenar', '@order');
 public function linkToHistory($object, $params)
 {
     if (!$object->getTable()->isVersionable() || !$this->module->getSecurityManager()->userHasCredentials('history', $object)) {
         return '';
     }
     return '<li class="sf_admin_action_history">' . link_to1(__($params['label'], array(), 'dm'), $this->getRouteArrayForAction('history', $object), array('class' => 'sf_admin_action s16 s16_clock_history', 'title' => __($params['title'], array('%1%' => dmString::strtolower(__($this->getModule()->getName()))), 'dm'))) . '</li>';
 }
示例#17
0
</td>
        <td><?php 
        echo $child->getName();
        ?>
</td>
        <td><?php 
        echo $child->getType();
        ?>
</td>
        <td><?php 
        echo $child->getUpdatedAt();
        ?>
</td>
        <td class="delete_node"></td>
        <td >
            <?php 
        $tab = MyFunction::getPathToTreeNode($child, $url_tab);
        $path_to_node = $tab['path_to_node'];
        echo link_to1('Details', $path_to_node);
        ?>
        </td>
    </tr>
<?php 
    }
    ?>
</tbody>    
<?php 
} else {
}
?>
</table>
<h1>sfBoleto Exemplos</h1>
<ul>
  <li><?php 
echo link_to1('Um boleto na página', 'boleto_demo/boleto');
?>
</li>
  <li><?php 
echo link_to1('Carnê (5 boletos de exemplo)', 'boleto_demo/carne');
?>
</li>
  <li><?php 
echo link_to1('Páginas (5 boletos de exemplo)', 'boleto_demo/pagina');
?>
</li>
</ul>

<pre>
# Boletos (Brazilian Payment Method) modelo CNAB - sfBoletoPlugin

GitHub: <http://github.com/rafaelgou/sfBoletoPlugin>

## Introdução

No Brasil existe um método de pagamento largamente utilizado por bancos que é o Boleto ou Bloquete de Cobrança.

Existem implementações em várias linguagens, e a mais conhecida em PHP é o projeto BoletoPHP [http://www.boletophp.com.br/].

Este plugin é baseado no projeto BoletoPHP, com uma versão em orientação a objeto e podendo ser utilizado dentro ou fora do symfony

No momento somente migrado o banco HSBC.
示例#19
0
              <nav class="span-24">
                  <ul>
                      <li>
                          <?php 
echo link_to("How It Works", "/");
?>
                      </li>
                      <li>
                          <?php 
echo link_to1("URL Builder", "/url-builder");
?>
                      </li>
                      <li>
                          <?php 
echo link_to1("Sign Up FREE", "/signup");
?>
                      </li>
                      <li>
                          <a href="https://github.com/rmillsap/image-monkey">GitHub</a>
                      </li>
                  </ul>
              </nav>

          </header>

          <div class="span-24">
                <?php 
echo $sf_content;
?>
          </div>
示例#20
0
                            <li>
                                <?php 
    echo link_to2(' <i class="fa fa-cubes">
                                </i> &nbsp; Resources', 'resources', array('module' => 'eiresources', 'action' => 'index'));
    ?>
 
                            </li>
                            <li>
                                <?php 
    echo link_to1(' <i class="fa fa-power-off">
                                </i> &nbsp; Sign out', '@sf_guard_signout', array('id' => 'eiUserLogOut'));
    ?>
 
                            </li>
                        </ul>
                    </li>
                    <li class=" visible-md visible-lg">
                        <?php 
    echo link_to1(' <i class="fa fa-power-off">
                        </i>', '@sf_guard_signout', array('title' => 'Log out', 'id' => 'eiLogOut'));
    ?>
 
                    </li>
                    <?php 
}
?>
 
            </ul>
        </div>  
    </div>
</div> 
示例#21
0
<?php

use_stylesheet('job.css');
use_helper('Text');
?>

<div id="job">
<h1><?php 
echo link_to1($gc_mailbox->getGcArea(), 'area/' . $gc_mailbox->getGcArea()->getSlug());
?>
</h1>
  <h2><?php 
echo link_to1($gc_mailbox->getGcGroup(), 'group/' . $gc_mailbox->getGcGroup()->getSlug());
?>
</h2>
  <h3>
      <?php 
echo $gc_mailbox->getName();
?>
    <small> - <?php 
echo $gc_mailbox->getEmail();
?>
</small>
  </h3>



<a href="<?php 
echo url_for('mailbox/index');
?>
">Listar</a>
示例#22
0
 * This file is part of Kimkëlen.
 *
 * Kimkëlen is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License v2.0 as published by
 * the Free Software Foundation.
 *
 * Kimkëlen is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Kimkëlen.  If not, see <http://www.gnu.org/licenses/gpl-2.0.html>.
 */
?>

<div style="float: left; margin-right: 10px;margin-top: 6px"><?php 
echo $absence_type->getOrder();
?>
</div>
<div >
  <div> <?php 
echo link_to1("<img src=" . image_path('control-090.png') . ">", "absence_type/incrementOrder?id=" . $absence_type->getId());
?>
</div>
  <div> <?php 
echo link_to1("<img src=" . image_path('control-270.png') . ">", "absence_type/decrementOrder?id=" . $absence_type->getId());
?>
</div>
</div>
示例#23
0
<?php

if ($ei_scenario != null && $ei_version != null) {
    $q = doctrine_core::getTable('EiProfilScenario')->getProfilScenarioByCriteria(null, $ei_scenario->id, $ei_version->id, null, null);
    if ($q != null && $q->execute()->getFirst()) {
        ?>
<ul>
   <?php 
        $profils_scenarios = $q->execute();
        foreach ($profils_scenarios as $profils_scenario) {
            ?>
    <li><?php 
            echo $profils_scenario->getEiProfil()->getNomProfil();
            ?>
</li>
<?php 
        }
        ?>
 
</ul>
<?php 
    }
}
echo link_to1('+profil', 'eiprofilscenario/new?ei_scenario_id=' . $ei_scenario->id . '&id_version=' . $ei_version->id);
示例#24
0
    <li>
        <font class="color-two">GREEN (url)</font>: the encoded URL of the image
        <ul style="list-style-type:none;margin-top:2em;">
            <li><h3>How To Encode 101</h3></li>
            <li>
                <pre>
    // Javascript
    encodeURI( 'http://www.example.com/image.jpg' );

    // PHP
    urlencode( 'http://www.example.com/image.jpg' );

    // Ruby on Rails
    CGI::escape( 'http://www.example.com/image.jpg' )

    // Perl
    uri_escape( 'http://www.example.com/image.jpg' );</pre>
            </li>
        </ul>

        For more help on encoding URL's try the <?php 
echo link_to1("URL Builder", "/url-builder");
?>

    </li>
    <li>
        <font class="color-three">BLUE (size)</font>: the dimensions of the new JPG image you would like served from Image Monkey
    </li>
</ol>