예제 #1
0
 /**
  *
  * @param array $params
  * @return string
  */
 public function getCode($params)
 {
     return "<a href=\"" . $this->getDestination($params) . "\" title=\"" . htmlentities($this->label) . "\"><img src=\"" . Icons::getIcon($this->icon) . "\" /></a>";
 }
예제 #2
0
파일: ajaxline.php 프로젝트: demental/m
  </a>
  <?php 
}
?>
  <?php 
if ($delete) {
    ?>
  <a href="<?php 
    echo M_Office_Util::getQueryParams(array('module' => $table, 'deleteFromTableRecord' => $do->{$pk}, 'ajaxfromtable' => 1), array_keys($_GET), false);
    ?>
"  class="deletelinelink"  rel="<?php 
    echo $table . $do->{$pk};
    ?>
">
    <?php 
    echo Icons::getIcon('delete');
    ?>
  </a>
  <?php 
}
?>
</span>
<span><?php 
echo $this->i('recordhtmlsummary', array('record' => $do));
?>
</span>
<?php 
if ($layouted) {
    ?>
</li>
<?php 
예제 #3
0
 private function replaceIcons()
 {
     preg_match_all("/{ICON:(.+)}/", $this->template, $matches, PREG_SET_ORDER);
     foreach ($matches as $match) {
         $translation = htmlentities(Icons::getIcon($match[1]));
         $this->template = str_ireplace($match[0], $translation, $this->template);
     }
 }