diff options
Diffstat (limited to 'modules_v3/GEDFact_assistant')
6 files changed, 62 insertions, 66 deletions
diff --git a/modules_v3/GEDFact_assistant/_CENS/addnoteaction_assisted.php b/modules_v3/GEDFact_assistant/_CENS/addnoteaction_assisted.php index 415f587248..e96ce72cf9 100644 --- a/modules_v3/GEDFact_assistant/_CENS/addnoteaction_assisted.php +++ b/modules_v3/GEDFact_assistant/_CENS/addnoteaction_assisted.php @@ -1,31 +1,27 @@ <?php -/** -* Include for GEDFact Assistant - Census. -* -* webtrees: Web based Family History software - * Copyright (C) 2011 webtrees development team. - * - * Derived from PhpGedView -* Copyright (C) 2002 to 2010 PGV Development Team. All rights reserved. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -* -* @package webtrees - * @subpackage GEDFact_assistant -* @version $Id$ -*/ +// Include for GEDFact Assistant - Census. +// +// webtrees: Web based Family History software +// Copyright (C) 2011 webtrees development team. +// +// Derived from PhpGedView +// Copyright (C) 2002 to 2010 PGV Development Team. All rights reserved. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// $Id$ // This file is required by the addnoteaction_assisted function in edit_interface.php @@ -114,7 +110,7 @@ if ($xref != "none") { echo " The Census event (when saved) will be linked to Indi id's: ". $pid_array; echo '<br /><br />'; echo '<br /><br />'; - echo " <a href=\"javascript://NOTE $xref\" onclick=\"openerpasteid('$xref'); return false;\">".WT_I18N::translate('Paste the following ID into your editing fields to reference the newly created record ')." <b>$xref</b></a>\n"; + echo " <a href=\"#\" onclick=\"openerpasteid('$xref'); return false;\">".WT_I18N::translate('Paste the following ID into your editing fields to reference the newly created record ')." <b>$xref</b></a>\n"; echo '<br /><br /><br /><br />'; ?> diff --git a/modules_v3/GEDFact_assistant/_CENS/census_3_find.php b/modules_v3/GEDFact_assistant/_CENS/census_3_find.php index ded88fd038..dd6310ecce 100644 --- a/modules_v3/GEDFact_assistant/_CENS/census_3_find.php +++ b/modules_v3/GEDFact_assistant/_CENS/census_3_find.php @@ -308,7 +308,7 @@ if ($type == 'media') { echo "<tr><td class=\"list_label width10\" wstyle=\"padding: 5px;\">"; echo "<input type=\"checkbox\" name=\"showthumb\" value=\"true\""; if ($showthumb) echo "checked=\"checked\""; - echo "onclick=\"javascript: this.form.submit();\" />", WT_I18N::translate('Show thumbnails'); + echo "onclick=\"this.form.submit();\" />", WT_I18N::translate('Show thumbnails'); echo "</td></tr>"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo "<input type=\"submit\" name=\"search\" value=\"", WT_I18N::translate('Filter'), "\" onclick=\"this.form.subclick.value=this.name\" /> "; @@ -418,7 +418,7 @@ if ($type == "specialchar") { } $language_options = str_replace("\"$language_filter\"", "\"$language_filter\" selected", $language_options); echo $language_options; - echo "</select><br /><a href=\"javascript:;\" onclick=\"setMagnify()\">", WT_I18N::translate('Magnify'), "</a>"; + echo "</select><br /><a href=\"#\" onclick=\"setMagnify()\">", WT_I18N::translate('Magnify'), "</a>"; echo "</td></tr></table>"; echo "</form></div>"; } @@ -607,7 +607,7 @@ echo "</td></tr>"; echo "</table>"; // Close table with find options echo "<br />"; -echo "<a href=\"javascript:;\" onclick=\"if (window.opener.showchanges) window.opener.showchanges(); window.close();\">", WT_I18N::translate('Close Window'), "</a><br />"; +echo "<a href=\"#\" onclick=\"if (window.opener.showchanges) window.opener.showchanges(); window.close();\">", WT_I18N::translate('Close Window'), "</a><br />"; echo "<br />"; if ($action=="filter") { @@ -691,7 +691,7 @@ if ($action=="filter") { // ============================================================================================================================== // NOTES = is equivalent to= function pasterow(id, nam, mnam, label, gend, cond, dom, dob, age, dod, occu, birthpl, fbirthpl, mbirthpl, chilBLD) { // ============================================================================================================================== - echo "<a href=\"javascript:;\" onclick=\"window.opener.insertRowToTable("; + echo "<a href=\"#\" onclick=\"window.opener.insertRowToTable("; echo "'".$indi->getXref()."', "; // id - Indi Id echo "'".addslashes(strip_tags($fulln))."', "; // nam - Name echo "'".addslashes(strip_tags($fulmn))."', "; // mnam - Married Name @@ -849,7 +849,7 @@ if ($action=="filter") { //-- thumbnail field if ($showthumb) { echo "<td class=\"list_value $TEXT_DIRECTION width10\">"; - if (isset($media["THUMB"])) echo "<a href=\"javascript:;\" onclick=\"return openImage('", rawurlencode($media["FILE"]), "', $imgwidth, $imgheight);\"><img src=\"", filename_decode($media["THUMB"]), "\" border=\"0\" width=\"50\" alt=\"\" /></a>"; + if (isset($media["THUMB"])) echo "<a href=\"#\" onclick=\"return openImage('", rawurlencode($media["FILE"]), "', $imgwidth, $imgheight);\"><img src=\"", filename_decode($media["THUMB"]), "\" border=\"0\" width=\"50\" alt=\"\" /></a>"; else echo " "; } @@ -863,10 +863,10 @@ if ($action=="filter") { echo "<br />"; } if (!$embed) { - echo "<a href=\"javascript:;\" onclick=\"pasteid('", addslashes($media["FILE"]), "');\"><span dir=\"ltr\">", $media["FILE"], "</span></a> -- "; + echo "<a href=\"#\" onclick=\"pasteid('", addslashes($media["FILE"]), "');\"><span dir=\"ltr\">", $media["FILE"], "</span></a> -- "; } - else echo "<a href=\"javascript:;\" onclick=\"pasteid('", $media["XREF"], "', '", addslashes($media["TITL"]), "', '", addslashes($media["THUMB"]), "');\"><span dir=\"ltr\">", $media["FILE"], "</span></a> -- "; - echo "<a href=\"javascript:;\" onclick=\"return openImage('", rawurlencode($media["FILE"]), "', $imgwidth, $imgheight);\">", WT_I18N::translate('View'), "</a><br />"; + else echo "<a href=\"#\" onclick=\"pasteid('", $media["XREF"], "', '", addslashes($media["TITL"]), "', '", addslashes($media["THUMB"]), "');\"><span dir=\"ltr\">", $media["FILE"], "</span></a> -- "; + echo "<a href=\"#\" onclick=\"return openImage('", rawurlencode($media["FILE"]), "', $imgwidth, $imgheight);\">", WT_I18N::translate('View'), "</a><br />"; if (!$media["EXISTS"] && !isFileExternal($media["FILE"])) echo $media["FILE"], "<br /><span class=\"error\">", WT_I18N::translate('The filename entered does not exist.'), "</span><br />"; else if (!isFileExternal($media["FILE"]) && !empty($imgsize[0])) { echo WT_Gedcom_Tag::getLabelValue('__IMAGE_SIZE__', $imgsize[0].' × '.$imgsize[1]); @@ -933,7 +933,7 @@ if ($action=="filter") { uasort($revplacelist, "utf8_strcasecmp"); echo "<td class=\"list_value_wrap $TEXT_DIRECTION\"><ul>"; foreach ($revplacelist as $place) { - echo "<li><a href=\"javascript:;\" onclick=\"pasteid('", str_replace(array("'", '"'), array("\'", '"'), $place), "');\">", PrintReady($place), "</a></li>"; + echo "<li><a href=\"#\" onclick=\"pasteid('", str_replace(array("'", '"'), array("\'", '"'), $place), "');\">", PrintReady($place), "</a></li>"; } echo "</ul></td></tr>"; echo "<tr><td class=\"list_label\">", WT_I18N::translate('Places found'), " ", $ctplace; diff --git a/modules_v3/GEDFact_assistant/_CENS/census_3_search_add.php b/modules_v3/GEDFact_assistant/_CENS/census_3_search_add.php index b321367aaa..85f894f624 100644 --- a/modules_v3/GEDFact_assistant/_CENS/census_3_search_add.php +++ b/modules_v3/GEDFact_assistant/_CENS/census_3_search_add.php @@ -57,7 +57,7 @@ if (!defined('WT_WEBTREES')) { </script> <?php echo "<input id=personid type=\"text\" size=\"20\" STYLE=\"color: #000000;\" value=\"\" />"; - echo "<a href=\"javascript: onclick=findindi()\">" ; + echo "<a href=\"#\" onclick=\"findindi()\">" ; echo " <font size=\"2\"> ".WT_I18N::translate('Search')."</font>"; echo '</a>'; ?> @@ -1551,7 +1551,7 @@ function print_pedigree_person_nav2($pid, $style=1, $count=0, $personcount="1", $fulmn = rtrim($nam[$i]['givn'],'*')." ".$nam[$i]['surname']; } } - $parentlinks .= "<a class=\"linka\" href=\"javascript:insertRowToTable("; + $parentlinks .= "<a class=\"linka\" href=\"#\" onclick=\"insertRowToTable("; $parentlinks .= "'".$husb->getXref()."',"; // pid = PID $parentlinks .= "'".addslashes(strip_tags($fulln))."',"; // nam = Name if (isset($fulmn)) { @@ -1646,7 +1646,7 @@ function print_pedigree_person_nav2($pid, $style=1, $count=0, $personcount="1", } } - $parentlinks .= "<a class=\"linka\" href=\"javascript:insertRowToTable("; + $parentlinks .= "<a class=\"linka\" href=\"#\" onclick=\"insertRowToTable("; $parentlinks .= "'".$wife->getXref()."',"; // pid = PID $parentlinks .= "'".addslashes(strip_tags($fulln))."',"; // nam = Name if (isset($fulmn)) { @@ -1761,7 +1761,7 @@ function print_pedigree_person_nav2($pid, $style=1, $count=0, $personcount="1", $fulmn = rtrim($nam[$i]['givn'],'*')." ".$nam[$i]['surname']; } } - $parentlinks .= "<a class=\"linka\" href=\"javascript:insertRowToTable("; + $parentlinks .= "<a class=\"linka\" href=\"#\" onclick=\"insertRowToTable("; $parentlinks .= "'".$husb->getXref()."',"; // pid = PID $parentlinks .= "'".addslashes(strip_tags($fulln))."',"; // nam = Name if (isset($fulmn)) { @@ -1859,7 +1859,7 @@ function print_pedigree_person_nav2($pid, $style=1, $count=0, $personcount="1", } } - $parentlinks .= "<a class=\"linka\" href=\"javascript:insertRowToTable("; + $parentlinks .= "<a class=\"linka\" href=\"#\" onclick=\"insertRowToTable("; $parentlinks .= "'".$wife->getXref()."',"; // pid = PID $parentlinks .= "'".addslashes(strip_tags($fulln))."',"; // nam = Name if (isset($fulmn)) { @@ -1977,7 +1977,7 @@ function print_pedigree_person_nav2($pid, $style=1, $count=0, $personcount="1", } } - $spouselinks .= "<a href=\"javascript:insertRowToTable("; + $spouselinks .= "<a href=\"#\" onclick=\"insertRowToTable("; $spouselinks .= "'".$spouse->getXref()."',"; // pid = PID $spouselinks .= "'".addslashes(strip_tags($fulln))."',"; // nam = Name if (isset($fulmn)) { @@ -2115,7 +2115,7 @@ function print_pedigree_person_nav2($pid, $style=1, $count=0, $personcount="1", } } - $spouselinks .= "<a href=\"javascript:insertRowToTable("; + $spouselinks .= "<a href=\"#\" onclick=\"insertRowToTable("; $spouselinks .= "'".$child->getXref()."',"; // pid = PID $spouselinks .= "'".addslashes(strip_tags($fulln))."',"; // nam = Name if (isset($chfulmn)) { diff --git a/modules_v3/GEDFact_assistant/_MEDIA/media_0_inverselink.php b/modules_v3/GEDFact_assistant/_MEDIA/media_0_inverselink.php index d9ac19d68f..f4c64e37fd 100644 --- a/modules_v3/GEDFact_assistant/_MEDIA/media_0_inverselink.php +++ b/modules_v3/GEDFact_assistant/_MEDIA/media_0_inverselink.php @@ -165,7 +165,7 @@ if ($action == "choose" && $paramok) { if ($record->getType()=='INDI') { ?> - <td align="center"><a href="#"><img style="border-style:none; margin-top:5px;" src="<?php echo $WT_IMAGES['button_family']; ?>" alt="<?php echo WT_I18N::translate('Open Family Navigator'); ?>" title="<?php echo WT_I18N::translate('Open Family Navigator'); ?>" name="family_'<?php echo $link; ?>'" onclick="javascript:openFamNav('<?php echo $link; ?>');" /></a></td> + <td align="center"><img style="border-style:none; margin-top:5px;" src="<?php echo $WT_IMAGES['button_family']; ?>" alt="<?php echo WT_I18N::translate('Open Family Navigator'); ?>" title="<?php echo WT_I18N::translate('Open Family Navigator'); ?>" name="family_'<?php echo $link; ?>'" onclick="openFamNav('<?php echo $link; ?>');" /></td> <?php } elseif ($record->getType()=='FAM') { if ($record->getHusband()) { @@ -176,7 +176,7 @@ if ($action == "choose" && $paramok) { $head=''; } ?> - <td align="center"><a href="#"><img style="border-style:none; margin-top:5px;" src="<?php echo $WT_IMAGES['button_family']; ?>" alt="<?php echo WT_I18N::translate('Open Family Navigator'); ?>" title="<?php echo WT_I18N::translate('Open Family Navigator'); ?>" name="family_'<?php echo $link; ?>'" onclick="javascript:openFamNav('<?php echo $head; ?>');" /></a></td> + <td align="center"><img style="border-style:none; margin-top:5px;" src="<?php echo $WT_IMAGES['button_family']; ?>" alt="<?php echo WT_I18N::translate('Open Family Navigator'); ?>" title="<?php echo WT_I18N::translate('Open Family Navigator'); ?>" name="family_'<?php echo $link; ?>'" onclick="openFamNav('<?php echo $head; ?>');" /></td> <?php } else { echo '<td></td>'; @@ -207,9 +207,9 @@ if ($action == "choose" && $paramok) { echo '</td><td style=" padding-bottom:2px; vertical-align:middle">'; echo ' '; if (isset($WT_IMAGES["add"])) { - echo '<a href="#"><img style="border-style:none;" src="', $WT_IMAGES["add"], '" alt="', WT_I18N::translate('Add'), ' "title="', WT_I18N::translate('Add'), '" align="middle" name="addLink" value="" onClick="javascript:blankwin(); return false;" />'; + echo '<img style="border-style:none;" src="', $WT_IMAGES["add"], '" alt="', WT_I18N::translate('Add'), ' "title="', WT_I18N::translate('Add'), '" align="middle" name="addLink" value="" onclick="blankwin(); return false;" />'; } else { - echo '<button name="addLink" value="" type="button" onClick="javascript:blankwin(); return false;">', WT_I18N::translate('Add'), '</button>'; + echo '<button name="addLink" value="" type="button" onclick="blankwin(); return false;">', WT_I18N::translate('Add'), '</button>'; } echo ' '; print_findindi_link("gid", ""); @@ -612,7 +612,7 @@ function openInNewWindow(frm) echo '<tr><td colspan="2">'; echo '</td></tr>'; echo '<tr><td class="topbottombar" colspan="2">'; - echo '<center><input type="submit" value="', WT_I18N::translate('Save'), '" onclick="javascript:shiftlinks();" />'; + echo '<center><input type="submit" value="', WT_I18N::translate('Save'), '" onclick="shiftlinks();" />'; echo '</center></td></tr>'; ?> <script> @@ -687,7 +687,7 @@ function shiftlinks() { <?php echo '</table>'; echo '</form>'; - echo '<br/><br/><center><a href="javascript:;" onclick="if (window.opener.showchanges) window.opener.showchanges(); window.close(); winNav.close(); ">', WT_I18N::translate('Close Window'), '</a><br /></center>'; + echo '<br/><br/><center><a href="#" onclick="if (window.opener.showchanges) window.opener.showchanges(); window.close(); winNav.close(); ">', WT_I18N::translate('Close Window'), '</a><br /></center>'; } elseif ($action == "update" && $paramok) { @@ -731,8 +731,8 @@ function shiftlinks() { echo '<br />'; } - echo '<br/><br/><center><a href="javascript:;" onclick="if (window.opener.showchanges) window.opener.showchanges(); window.close(); winNav.close(); ">', WT_I18N::translate('Close Window'), '</a><br /></center>'; + echo '<br/><br/><center><a href="#" onclick="if (window.opener.showchanges) window.opener.showchanges(); window.close(); winNav.close(); ">', WT_I18N::translate('Close Window'), '</a><br /></center>'; } else { // echo '<center>You must be logged in as an Administrator<center>'; - echo '<br/><br/><center><a href="javascript:;" onclick="if (window.opener.showchanges) window.opener.showchanges(); window.close(); winNav.close();">', WT_I18N::translate('Close Window'), '</a><br /></center>'; + echo '<br/><br/><center><a href="#" onclick="if (window.opener.showchanges) window.opener.showchanges(); window.close(); winNav.close();">', WT_I18N::translate('Close Window'), '</a><br /></center>'; } diff --git a/modules_v3/GEDFact_assistant/_MEDIA/media_1_ctrl.php b/modules_v3/GEDFact_assistant/_MEDIA/media_1_ctrl.php index d3ff2872ef..0a0a16d5ab 100644 --- a/modules_v3/GEDFact_assistant/_MEDIA/media_1_ctrl.php +++ b/modules_v3/GEDFact_assistant/_MEDIA/media_1_ctrl.php @@ -104,7 +104,7 @@ if ($pid=="") { </script> <?php echo '<input id="personid" type="text" value="" />'; - echo '<a href="javascript: onclick=findindi()">' ; + echo '<a href="#" onclick="onclick=findindi()">' ; echo ' <font size="2"> ', WT_I18N::translate('Search'), '</font>'; echo '</a>'; ?> @@ -1121,7 +1121,7 @@ function print_pedigree_person_nav2($pid, $style=1, $count=0, $personcount="1", $fulmn = rtrim($nam[1]['givn'],'*')." ".$nam[1]['surn']; $marn = $nam[1]['surn']; } - $parentlinks .= "<a href=\"javascript:opener.insertRowToTable("; + $parentlinks .= "<a href=\"#\" onclick=\"opener.insertRowToTable("; $parentlinks .= "'".$husb->getXref()."', "; // pid = PID $parentlinks .= "'".$fulln."', "; // nam = Name if ($currpid=="Wife" || $currpid=="Husband") { @@ -1167,7 +1167,7 @@ function print_pedigree_person_nav2($pid, $style=1, $count=0, $personcount="1", $fulmn = $nam[1]['fullNN']; $marn = $nam[1]['surname']; } - $parentlinks .= "<a href=\"javascript:opener.insertRowToTable("; + $parentlinks .= "<a href=\"#\" onclick=\"opener.insertRowToTable("; $parentlinks .= "'".$wife->getXref()."',"; // pid = PID // $parentlinks .= "'".$fulln."',"; // nam = Name @@ -1304,7 +1304,7 @@ function print_pedigree_person_nav2($pid, $style=1, $count=0, $personcount="1", $fulmn = rtrim($nam[1]['givn'],'*')." ".$nam[1]['surname']; $marn = $nam[1]['surname']; } - $spouselinks .= "<a href=\"javascript:opener.insertRowToTable("; + $spouselinks .= "<a href=\"#\" onclick=\"opener.insertRowToTable("; $spouselinks .= "'".$spouse->getXref()."',"; // pid = PID //$spouselinks .= "'".$fulln."',"; // nam = Name //if ($married>=0 && isset($nam[1])) { @@ -1371,7 +1371,7 @@ function print_pedigree_person_nav2($pid, $style=1, $count=0, $personcount="1", $marn = $nam[1]['surname']; } $spouselinks .= "<li>"; - $spouselinks .= "<a href=\"javascript:opener.insertRowToTable("; + $spouselinks .= "<a href=\"#\" onclick=\"opener.insertRowToTable("; $spouselinks .= "'".$child->getXref()."',"; // pid = PID //$spouselinks .= "'".$child->getFullName()."',"; // nam = Name $spouselinks .= "'".$fulln."',"; // nam = Name diff --git a/modules_v3/GEDFact_assistant/module.php b/modules_v3/GEDFact_assistant/module.php index 334875500d..c8aab93325 100644 --- a/modules_v3/GEDFact_assistant/module.php +++ b/modules_v3/GEDFact_assistant/module.php @@ -313,7 +313,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { echo "<tr><td class=\"list_label width10\" wstyle=\"padding: 5px;\">"; echo "<input type=\"checkbox\" name=\"showthumb\" value=\"true\""; if ($showthumb) echo "checked=\"checked\""; - echo "onclick=\"javascript: this.form.submit();\" />", WT_I18N::translate('Show thumbnails'); + echo "onclick=\"#\" onclick=\"this.form.submit();\" />", WT_I18N::translate('Show thumbnails'); echo "</td></tr>"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo "<input type=\"submit\" name=\"search\" value=\"", WT_I18N::translate('Filter'), "\" onclick=\"this.form.subclick.value=this.name\" /> "; @@ -424,7 +424,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { } $language_options = str_replace("\"$language_filter\"", "\"$language_filter\" selected", $language_options); echo $language_options; - echo "</select><br /><a href=\"javascript:;\" onclick=\"setMagnify()\">", WT_I18N::translate('Magnify'), "</a>"; + echo "</select><br /><a href=\"#\" onclick=\"setMagnify()\">", WT_I18N::translate('Magnify'), "</a>"; echo "</td></tr></table>"; echo "</form></div>"; } @@ -433,7 +433,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { echo "</table>"; // Close table with find options echo "<br />"; - echo "<a href=\"javascript:;\" onclick=\"if (window.opener.showchanges) window.opener.showchanges(); window.close();\">", WT_I18N::translate('Close Window'), "</a><br />"; + echo "<a href=\"#\" onclick=\"if (window.opener.showchanges) window.opener.showchanges(); window.close();\">", WT_I18N::translate('Close Window'), "</a><br />"; echo "<br />"; if ($action=="filter") { @@ -450,7 +450,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { foreach ($myindilist as $indi) { //echo $indi->format_list('li', true); $nam = htmlspecialchars($indi->getFullName()); - echo "<li><a href=\"javascript:;\" onclick=\"pasterow( + echo "<li><a href=\"#\" onclick=\"pasterow( '".$indi->getXref()."' , '".$nam."' , '".$indi->getSex()."' , @@ -595,7 +595,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { //-- thumbnail field if ($showthumb) { echo "<td class=\"list_value $TEXT_DIRECTION width10\">"; - if (isset($media["THUMB"])) echo "<a href=\"javascript:;\" onclick=\"return openImage('", rawurlencode($media["FILE"]), "', $imgwidth, $imgheight);\"><img src=\"", filename_decode($media["THUMB"]), "\" border=\"0\" width=\"50\" alt=\"\" /></a>"; + if (isset($media["THUMB"])) echo "<a href=\"#\" onclick=\"return openImage('", rawurlencode($media["FILE"]), "', $imgwidth, $imgheight);\"><img src=\"", filename_decode($media["THUMB"]), "\" border=\"0\" width=\"50\" alt=\"\" /></a>"; else echo " "; } @@ -609,10 +609,10 @@ class GEDFact_assistant_WT_Module extends WT_Module { echo "<br />"; } if (!$embed) { - echo "<a href=\"javascript:;\" onclick=\"pasteid('", addslashes($media["FILE"]), "');\"><span dir=\"ltr\">", $media["FILE"], "</span></a> -- "; + echo "<a href=\"#\" onclick=\"pasteid('", addslashes($media["FILE"]), "');\"><span dir=\"ltr\">", $media["FILE"], "</span></a> -- "; } - else echo "<a href=\"javascript:;\" onclick=\"pasteid('", $media["XREF"], "','", addslashes($media["TITL"]), "','", addslashes($media["THUMB"]), "');\"><span dir=\"ltr\">", $media["FILE"], "</span></a> -- "; - echo "<a href=\"javascript:;\" onclick=\"return openImage('", rawurlencode($media["FILE"]), "', $imgwidth, $imgheight);\">", WT_I18N::translate('View'), "</a><br />"; + else echo "<a href=\"#\" onclick=\"pasteid('", $media["XREF"], "','", addslashes($media["TITL"]), "','", addslashes($media["THUMB"]), "');\"><span dir=\"ltr\">", $media["FILE"], "</span></a> -- "; + echo "<a href=\"#\" onclick=\"return openImage('", rawurlencode($media["FILE"]), "', $imgwidth, $imgheight);\">", WT_I18N::translate('View'), "</a><br />"; if (!$media["EXISTS"] && !isFileExternal($media["FILE"])) echo $media["FILE"], "<br /><span class=\"error\">", WT_I18N::translate('The filename entered does not exist.'), "</span><br />"; else if (!isFileExternal($media["FILE"]) && !empty($imgsize[0])) { echo WT_Gedcom_Tag::getLabelValue('__IMAGE_SIZE__', $imgsize[0].' × '.$imgsize[1]); @@ -679,7 +679,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { uasort($revplacelist, "utf8_strcasecmp"); echo "<td class=\"list_value_wrap $TEXT_DIRECTION\"><ul>"; foreach ($revplacelist as $place) { - echo "<li><a href=\"javascript:;\" onclick=\"pasteid('", str_replace(array("'", '"'), array("\'", '"'), $place), "');\">", PrintReady($place), "</a></li>"; + echo "<li><a href=\"#\" onclick=\"pasteid('", str_replace(array("'", '"'), array("\'", '"'), $place), "');\">", PrintReady($place), "</a></li>"; } echo "</ul></td></tr>"; echo "<tr><td class=\"list_label\">", WT_I18N::translate('Places found'), " ", $ctplace; |
