'; echo ''; if (!empty($mediaid)) { echo ''; } if (!empty($linktoid)) { echo ''; } echo ''; echo ''; echo '
| '; echo i18n::translate('Link media'), help_link('add_media_linkid'), ' ', $toitems; echo ' | |||||
| ', i18n::translate('Media ID'), ' | '; echo ''; if (!empty($mediaid)) { //-- Get the title of this existing Media item $title= WT_DB::prepare("SELECT m_titl FROM `##media` where m_media=? AND m_gedfile=?") ->execute(array($mediaid, WT_GED_ID)) ->fetchOne(); if ($title) { echo '', PrintReady($title), ' '; if ($TEXT_DIRECTION=="rtl") echo getRLM(); echo '(', $mediaid, ')'; if ($TEXT_DIRECTION=="rtl") echo getRLM(); } else { echo '', $mediaid, ''; } } else { echo ''; print_findmedia_link("mediaid", "1media"); echo " | ||||
| '; if ($linkto == "person") { echo i18n::translate('Enter Individual ID'), " | "; echo ''; if ($linktoid=="") { echo ''; print_findindi_link("linktopid", ""); } else { $record=Person::getInstance($linktoid); echo '', PrintReady($record->getFullName()), ' '; if ($TEXT_DIRECTION=="rtl") print getRLM(); echo '(', $linktoid, ')'; if ($TEXT_DIRECTION=="rtl") print getRLM(); } } if ($linkto == "family") { echo i18n::translate('Family'), ' | '; echo ''; if ($linktoid=="") { echo ''; print_findfamily_link("linktofamid"); } else { $record=Family::getInstance($linktoid); echo '', PrintReady($record->getFullName()), ' '; if ($TEXT_DIRECTION=="rtl") print getRLM(); echo '(', $linktoid, ')'; if ($TEXT_DIRECTION=="rtl") print getRLM(); } } if ($linkto == "source") { echo i18n::translate('Source'), " | "; echo ''; if ($linktoid=="") { echo ''; print_findsource_link("linktosid"); } else { $record=Source::getInstance($linktoid); echo '', PrintReady($record->getFullName()), ' '; if ($TEXT_DIRECTION=="rtl") print getRLM(); echo '(', $linktoid, ')'; if ($TEXT_DIRECTION=="rtl") print getRLM(); } } if ($linkto == "repository") { echo i18n::translate('Repository'), " | "; echo ''; if ($linktoid=="") { echo ''; // print_findsource_link("linktosid"); } else { $record=Repository::getInstance($linktoid); echo '', PrintReady($record->getFullName()), ' '; if ($TEXT_DIRECTION=="rtl") print getRLM(); echo '(', $linktoid, ')'; if ($TEXT_DIRECTION=="rtl") print getRLM(); } } if ($linkto == "note") { echo i18n::translate('Shared note'), " | "; echo ''; if ($linktoid=="") { echo ''; // print_findsource_link("linktosid"); } else { $record=Note::getInstance($linktoid); echo '', PrintReady($record->getFullName()), ' '; if ($TEXT_DIRECTION=="rtl") print getRLM(); echo '(', $linktoid, ')'; if ($TEXT_DIRECTION=="rtl") print getRLM(); } } echo ' |