diff options
| author | Łukasz Wilenski <wooc@gazeta.pl> | 2010-12-28 17:14:43 +0000 |
|---|---|---|
| committer | Łukasz Wilenski <wooc@gazeta.pl> | 2010-12-28 17:14:43 +0000 |
| commit | 0d1d4ee3bd661e99d3b7bbb4610366ba87ab9695 (patch) | |
| tree | b1ad80f6206e5b2b878eefbcbbc45af025000ddf /includes | |
| parent | 246d092d74f0968db839d170ab9076da2ef1a84d (diff) | |
| download | webtrees-0d1d4ee3bd661e99d3b7bbb4610366ba87ab9695.tar.gz webtrees-0d1d4ee3bd661e99d3b7bbb4610366ba87ab9695.tar.bz2 webtrees-0d1d4ee3bd661e99d3b7bbb4610366ba87ab9695.zip | |
don't display IDs
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/controllers/media_ctrl.php | 2 | ||||
| -rw-r--r-- | includes/controllers/note_ctrl.php | 2 | ||||
| -rw-r--r-- | includes/controllers/source_ctrl.php | 2 | ||||
| -rw-r--r-- | includes/functions/functions_print_lists.php | 87 |
4 files changed, 47 insertions, 46 deletions
diff --git a/includes/controllers/media_ctrl.php b/includes/controllers/media_ctrl.php index 8eac30f987..7d6feb408b 100644 --- a/includes/controllers/media_ctrl.php +++ b/includes/controllers/media_ctrl.php @@ -163,7 +163,7 @@ class MediaController extends BaseController{ */ function getPageTitle() { if ($this->mediaobject) { - return $this->mediaobject->getFullName()." - ".$this->mediaobject->getXref(); + return $this->mediaobject->getFullName()." - ".i18n::translate('Multimedia Information'); } else { return i18n::translate('Unable to find record with ID'); } diff --git a/includes/controllers/note_ctrl.php b/includes/controllers/note_ctrl.php index bf3c8d923f..33c1a45436 100644 --- a/includes/controllers/note_ctrl.php +++ b/includes/controllers/note_ctrl.php @@ -141,7 +141,7 @@ class NoteController extends BaseController { */ function getPageTitle() { if ($this->note) { - return $this->note->getFullName()." - ".$this->nid." - ".i18n::translate('Shared Note Information'); + return $this->note->getFullName()." - ".i18n::translate('Shared Note Information'); } else { return i18n::translate('Unable to find record with ID'); } diff --git a/includes/controllers/source_ctrl.php b/includes/controllers/source_ctrl.php index a100a997dc..93f32b05fd 100644 --- a/includes/controllers/source_ctrl.php +++ b/includes/controllers/source_ctrl.php @@ -141,7 +141,7 @@ class SourceController extends BaseController { */ function getPageTitle() { if ($this->source) { - return $this->source->getFullName()." - ".$this->sid." - ".i18n::translate('Source Information'); + return $this->source->getFullName()." - ".i18n::translate('Source Information'); } else { return i18n::translate('Unable to find record with ID'); } diff --git a/includes/functions/functions_print_lists.php b/includes/functions/functions_print_lists.php index d7ca1cf39a..1f64445957 100644 --- a/includes/functions/functions_print_lists.php +++ b/includes/functions/functions_print_lists.php @@ -1068,53 +1068,54 @@ function print_media_table($datalist, $legend="") { if (is_null($media)) $media = Media::getInstance($key); if (is_null($media)) continue; } - //-- Counter - echo "<tr>"; - echo "<td class=\"list_value_wrap rela list_item\">", ++$n, "</td>"; - //-- Object name(s) - $name = $media->getFullName(); - echo "<td class=\"list_value_wrap\" align=\"", get_align($name), "\">"; - echo "<a href=\"", $media->getHtmlUrl(), "\" class=\"list_item name2\">"; - if ($media->canDisplayDetails()) + if ($media->canDisplayDetails()) { + //-- Counter + echo "<tr>"; + echo "<td class=\"list_value_wrap rela list_item\">", ++$n, "</td>"; + //-- Object name(s) + $name = $media->getFullName(); + echo "<td class=\"list_value_wrap\" align=\"", get_align($name), "\">"; + echo "<a href=\"", $media->getHtmlUrl(), "\" class=\"list_item name2\">"; echo '<img src=', thumbnail_file($media->file, false), ' height="15" /> '; - echo PrintReady($name), "</a>"; - if ($SHOW_MEDIA_FILENAME || WT_USER_IS_ADMIN) - echo "<br /><a href=\"", $media->getHtmlUrl(), "\">", basename($media->file), "</a>"; - //echo "<br />", $media->getFiletype(); - //echo " ", $media->width, "x", $media->height; - //echo " ", $media->getFilesize(), "kB"; - if ($media->getNote()) echo "<br />", print_fact_notes("1 NOTE ".$media->getNote(), 1); - echo "</td>"; + echo PrintReady($name), "</a>"; + if ($SHOW_MEDIA_FILENAME || WT_USER_IS_ADMIN) + echo "<br /><a href=\"", $media->getHtmlUrl(), "\">", basename($media->file), "</a>"; + //echo "<br />", $media->getFiletype(); + //echo " ", $media->width, "x", $media->height; + //echo " ", $media->getFilesize(), "kB"; + if ($media->getNote()) echo "<br />", print_fact_notes("1 NOTE ".$media->getNote(), 1); + echo "</td>"; - //-- Linked INDIs - $tmp=$media->countLinkedIndividuals(); - echo '<td class="list_value_wrap"><a href="', $media->getHtmlUrl(), '" class="list_item" name="', $tmp, '">', $tmp, '</a></td>'; - //-- Linked FAMs - $tmp=$media->countLinkedfamilies(); - echo '<td class="list_value_wrap"><a href="', $media->getHtmlUrl(), '" class="list_item" name="', $tmp, '">', $tmp, '</a></td>'; - //-- Linked SOURces - $tmp=$media->countLinkedSources(); - echo '<td class="list_value_wrap"><a href="', $media->getHtmlUrl(), '" class="list_item" name="', $tmp, '">', $tmp, '</a></td>'; -/* - //-- Linked records - foreach (array("INDI", "FAM", "SOUR") as $rectype) { - $resu = array(); - foreach ($value["LINKS"] as $k=>$v) { - if ($v!=$rectype) continue; - $record = GedcomRecord::getInstance($k); - $txt = $record->getListName(); - $resu[] = $txt; + //-- Linked INDIs + $tmp=$media->countLinkedIndividuals(); + echo '<td class="list_value_wrap"><a href="', $media->getHtmlUrl(), '" class="list_item" name="', $tmp, '">', $tmp, '</a></td>'; + //-- Linked FAMs + $tmp=$media->countLinkedfamilies(); + echo '<td class="list_value_wrap"><a href="', $media->getHtmlUrl(), '" class="list_item" name="', $tmp, '">', $tmp, '</a></td>'; + //-- Linked SOURces + $tmp=$media->countLinkedSources(); + echo '<td class="list_value_wrap"><a href="', $media->getHtmlUrl(), '" class="list_item" name="', $tmp, '">', $tmp, '</a></td>'; + /* + //-- Linked records + foreach (array("INDI", "FAM", "SOUR") as $rectype) { + $resu = array(); + foreach ($value["LINKS"] as $k=>$v) { + if ($v!=$rectype) continue; + $record = GedcomRecord::getInstance($k); + $txt = $record->getListName(); + $resu[] = $txt; + } + sort($resu); + echo "<td class=\"list_value_wrap\" align=\"", get_align(@$resu[0]), "\">"; + foreach ($resu as $txt) echo "<a href=\"", $record->getHtmlUrl(), "\" class=\"list_item\">", PrintReady("• ".$txt), "</a><br />"; + echo "</td>"; } - sort($resu); - echo "<td class=\"list_value_wrap\" align=\"", get_align(@$resu[0]), "\">"; - foreach ($resu as $txt) echo "<a href=\"", $record->getHtmlUrl(), "\" class=\"list_item\">", PrintReady("• ".$txt), "</a><br />"; - echo "</td>"; + */ + //-- Last change + if ($SHOW_LAST_CHANGE) + echo "<td class=\"list_value_wrap rela\">".$media->LastChangeTimestamp(empty($SEARCH_SPIDER))."</td>"; + echo "</tr>"; } -*/ - //-- Last change - if ($SHOW_LAST_CHANGE) - echo "<td class=\"list_value_wrap rela\">".$media->LastChangeTimestamp(empty($SEARCH_SPIDER))."</td>"; - echo "</tr>"; } echo "</table>"; echo "</fieldset>"; |
