當前位置: 首頁>>代碼示例>>PHP>>正文


PHP FunctionsPrint::printFindPlaceLink方法代碼示例

本文整理匯總了PHP中Fisharebest\Webtrees\Functions\FunctionsPrint::printFindPlaceLink方法的典型用法代碼示例。如果您正苦於以下問題:PHP FunctionsPrint::printFindPlaceLink方法的具體用法?PHP FunctionsPrint::printFindPlaceLink怎麽用?PHP FunctionsPrint::printFindPlaceLink使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Fisharebest\Webtrees\Functions\FunctionsPrint的用法示例。


在下文中一共展示了FunctionsPrint::printFindPlaceLink方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: elseif

                        $display = I18N::translateContext($match[1], $match[2]);
                    }
                    echo '<option value="', Filter::escapeHtml($value), '" ';
                    if ($opt[0] == $input['default']) {
                        echo 'selected';
                    }
                    echo '>', Filter::escapeHtml($display), '</option>';
                }
                echo '</select>';
            }
            if (isset($input['lookup'])) {
                echo '<input type="hidden" name="type[', Filter::escapeHtml($input['name']), ']" value="', Filter::escapeHtml($input['lookup']), '">';
                if ($input['lookup'] == 'INDI') {
                    echo FunctionsPrint::printFindIndividualLink('pid');
                } elseif ($input['lookup'] == 'PLAC') {
                    echo FunctionsPrint::printFindPlaceLink($input['name']);
                } elseif ($input['lookup'] == 'FAM') {
                    echo FunctionsPrint::printFindFamilyLink('famid');
                } elseif ($input['lookup'] == 'SOUR') {
                    echo FunctionsPrint::printFindSourceLink($input['name']);
                } elseif ($input['lookup'] == 'DATE') {
                    echo ' <a href="#" onclick="cal_toggleDate(\'div_', Filter::EscapeJs($input['name']), '\', \'', Filter::EscapeJs($input['name']), '\'); return false;" class="icon-button_calendar" title="', I18N::translate('Select a date'), '"></a>';
                    echo '<div id="div_', Filter::EscapeHtml($input['name']), '" style="position:absolute;visibility:hidden;background-color:white;"></div>';
                }
            }
            echo '</td></tr>';
        }
        echo '<tr>
		<td colspan="2" class="optionbox">
		<div class="report-type">
		<div>
開發者ID:jflash,項目名稱:webtrees,代碼行數:31,代碼來源:reportengine.php

示例2: addSimpleTag


//.........這裏部分代碼省略.........
                     // Shared notes. Inline notes are handled elsewhere.
                     echo ' data-autocomplete-type="NOTE"';
                     break;
                 case 'OBJE':
                     echo ' data-autocomplete-type="OBJE"';
                     break;
                 case 'PAGE':
                     echo ' data-autocomplete-type="PAGE" data-autocomplete-extra="#' . $source_element_id . '"';
                     break;
                 case 'PLAC':
                     echo ' data-autocomplete-type="PLAC"';
                     break;
                 case 'REPO':
                     echo ' data-autocomplete-type="REPO"';
                     break;
                 case 'SOUR':
                     $source_element_id = $element_id;
                     echo ' data-autocomplete-type="SOUR"';
                     break;
                 case 'SURN':
                 case '_MARNM_SURN':
                     echo ' data-autocomplete-type="SURN"';
                     break;
                 case 'TIME':
                     echo ' pattern="([0-1][0-9]|2[0-3]):[0-5][0-9](:[0-5][0-9])?" dir="ltr" placeholder="' . I18N::translate('hh:mm or hh:mm:ss') . '"';
                     break;
             }
             echo '>';
         }
         $tmp_array = array('TYPE', 'TIME', 'NOTE', 'SOUR', 'REPO', 'OBJE', 'ASSO', '_ASSO', 'AGE');
         // split PLAC
         if ($fact === 'PLAC') {
             echo '<div id="', $element_id, '_pop" style="display: inline;">';
             echo FunctionsPrint::printSpecialCharacterLink($element_id), ' ', FunctionsPrint::printFindPlaceLink($element_id);
             echo '<span  onclick="jQuery(\'tr[id^=', $upperlevel, '_LATI],tr[id^=', $upperlevel, '_LONG],tr[id^=LATI],tr[id^=LONG]\').toggle(\'fast\'); return false;" class="icon-target" title="', GedcomTag::getLabel('LATI'), ' / ', GedcomTag::getLabel('LONG'), '"></span>';
             echo '</div>';
             if (Module::getModuleByName('places_assistant')) {
                 \PlacesAssistantModule::setup_place_subfields($element_id);
                 \PlacesAssistantModule::print_place_subfields($element_id);
             }
         } elseif (!in_array($fact, $tmp_array)) {
             echo FunctionsPrint::printSpecialCharacterLink($element_id);
         }
     }
     // MARRiage TYPE : hide text field and show a selection list
     if ($fact === 'TYPE' && $level === 2 && $tags[0] === 'MARR') {
         echo '<script>';
         echo 'document.getElementById(\'', $element_id, '\').style.display=\'none\'';
         echo '</script>';
         echo '<select id="', $element_id, '_sel" onchange="document.getElementById(\'', $element_id, '\').value=this.value;" >';
         foreach (array('Unknown', 'Civil', 'Religious', 'Partners') as $key) {
             if ($key === 'Unknown') {
                 echo '<option value="" ';
             } else {
                 echo '<option value="', $key, '" ';
             }
             $a = strtolower($key);
             $b = strtolower($value);
             if ($b !== '' && strpos($a, $b) !== false || strpos($b, $a) !== false) {
                 echo 'selected';
             }
             echo '>', GedcomTag::getLabel('MARR_' . strtoupper($key)), '</option>';
         }
         echo '</select>';
     } elseif ($fact === 'TYPE' && $level === 0) {
         // NAME TYPE : hide text field and show a selection list
開發者ID:josefpavlik,項目名稱:webtrees,代碼行數:67,代碼來源:FunctionsEdit.php


注:本文中的Fisharebest\Webtrees\Functions\FunctionsPrint::printFindPlaceLink方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。