示例#1
0
 public function getWcaLink($name = null)
 {
     if ($name === null) {
         $name = $this->getCompetitionName();
     }
     if ($this->wcaid === '' || $name === '') {
         return $name;
     }
     return Persons::getLinkByNameNId($name, $this->wcaid);
 }
示例#2
0
<div class="table-responsive">
  <table class="table table-bordered table-condensed table-hover table-boxed pk-table">
    <thead>
      <tr class="persons-<?php 
echo count($persons);
?>
">
        <th colspan="2" class="pk-attribute"><?php 
echo Yii::t('Results', 'Name');
?>
</th>
        <?php 
foreach ($persons as $person) {
    ?>
        <th><?php 
    echo Persons::getLinkByNameNId($person['person']->name, $person['person']->id);
    ?>
</th>
        <?php 
}
?>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td colspan="2"><?php 
echo Yii::t('common', 'WCA ID');
?>
</td>
        <?php 
foreach ($persons as $person) {