~ubuntu-branches/debian/sid/php-horde-turba/sid

« back to all changes in this revision

Viewing changes to turba-4.1.1/templates/search/duplicate/list.html.php

  • Committer: Package Import Robot
  • Author(s): Mathieu Parent
  • Date: 2013-08-11 13:16:25 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20130811131625-z91stjvq51jr9onv
Tags: 4.1.1-1
New upstream version 4.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php if ($this->hasDuplicate): ?>
 
2
<br class="clear" />
 
3
<?php endif; ?>
 
4
<br />
 
5
<?php if (empty($this->duplicates)): ?>
 
6
<h3>
 
7
 <?php echo $this->h(_("No duplicates found.")) ?>
 
8
</h3>
 
9
<?php else: ?>
 
10
<?php foreach ($this->duplicates as $field => $duplicates): ?>
 
11
<h3><?php echo $this->h(sprintf(_("Duplicates of %s"), $this->attributes[$field]['label'])) ?></h3>
 
12
<table class="horde-table horde-block-links sortable">
 
13
  <thead>
 
14
    <tr>
 
15
      <th><?php echo $this->h($this->attributes[$field]['label']) ?></th>
 
16
      <th class="horde-split-left"><?php echo _("Count") ?></th>
 
17
    </tr>
 
18
  </thead>
 
19
  <tbody>
 
20
    <?php foreach ($duplicates as $value => $list): ?>
 
21
    <tr>
 
22
      <td><a href="<?php echo $this->link->add(array('type' => $field, 'dupe' => $value)) ?>"><?php echo $this->h($value) ?></a></td>
 
23
      <td><a href="<?php echo $this->link->add(array('type' => $field, 'dupe' => $value)) ?>"><?php echo count($list) ?></a></td>
 
24
    </tr>
 
25
    <?php endforeach; ?>
 
26
  </tbody>
 
27
</table>
 
28
<?php endforeach; ?>
 
29
<?php endif; ?>