• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP WT_I18N类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中WT_I18N的典型用法代码示例。如果您正苦于以下问题:PHP WT_I18N类的具体用法?PHP WT_I18N怎么用?PHP WT_I18N使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了WT_I18N类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: getSidebarContent

 public function getSidebarContent()
 {
     global $SHOW_COUNTER, $controller;
     $indifacts = array();
     // The individual’s own facts
     foreach ($controller->record->getFacts() as $fact) {
         if (self::showFact($fact)) {
             $indifacts[] = $fact;
         }
     }
     ob_start();
     if (!$indifacts) {
         echo WT_I18N::translate('There are no facts for this individual.');
     } else {
         foreach ($indifacts as $fact) {
             print_fact($fact, $controller->record);
         }
     }
     echo '<div id="hitcounter">';
     if ($SHOW_COUNTER && empty($SEARCH_SPIDER)) {
         //print indi counter only if displaying a non-private person
         require WT_ROOT . 'includes/hitcount.php';
         echo WT_I18N::translate('Hit count:') . ' ' . $hitCount;
     }
     echo '</div>';
     // close #hitcounter
     return strip_tags(ob_get_clean(), '<a><div><span>');
 }
开发者ID:brambravo,项目名称:webtrees,代码行数:28,代码来源:module.php


示例2: statusName

 public static function statusName($status_code)
 {
     switch ($status_code) {
         case 'BIC':
             return WT_I18N::translate('Born in the covenant');
         case 'CANCELED':
             return WT_I18N::translate('Sealing cancelled (divorce)');
         case 'CHILD':
             return WT_I18N::translate('Died as a child: exempt');
         case 'CLEARED':
             // This status appears in PGV, but not in the GEDCOM 5.5.1 specification.
             return WT_I18N::translate('Cleared but not yet completed');
         case 'COMPLETED':
             return WT_I18N::translate('Completed; date unknown');
         case 'DNS':
             return WT_I18N::translate('Do not seal: unauthorized');
         case 'DNS/CAN':
             return WT_I18N::translate('Do not seal, previous sealing cancelled');
         case 'EXCLUDED':
             return WT_I18N::translate('Excluded from this submission');
         case 'INFANT':
             return WT_I18N::translate('Died as an infant: exempt');
         case 'PRE-1970':
             return WT_I18N::translate('Completed before 1970; date not available');
         case 'STILLBORN':
             return WT_I18N::translate('Stillborn: exempt');
         case 'SUBMITTED':
             return WT_I18N::translate('Submitted but not yet cleared');
         case 'UNCLEARED':
             return WT_I18N::translate('Uncleared: insufficient data');
         default:
             return $status_code;
     }
 }
开发者ID:brambravo,项目名称:webtrees,代码行数:34,代码来源:Stat.php


示例3: getEditMenu

 /**
  * get edit menu
  */
 function getEditMenu()
 {
     if (!$this->record || $this->record->isOld()) {
         return null;
     }
     // edit menu
     $menu = new WT_Menu(WT_I18N::translate('Edit'), '#', 'menu-note');
     if (WT_USER_CAN_EDIT) {
         $submenu = new WT_Menu(WT_I18N::translate('Edit note'), '#', 'menu-note-edit');
         $submenu->addOnclick('return edit_note(\'' . $this->record->getXref() . '\');');
         $menu->addSubmenu($submenu);
     }
     // delete
     if (WT_USER_CAN_EDIT) {
         $submenu = new WT_Menu(WT_I18N::translate('Delete'), '#', 'menu-note-del');
         $submenu->addOnclick("return delete_note('" . WT_I18N::translate('Are you sure you want to delete “%s”?', strip_tags($this->record->getFullName())) . "', '" . $this->record->getXref() . "');");
         $menu->addSubmenu($submenu);
     }
     // add to favorites
     if (array_key_exists('user_favorites', WT_Module::getActiveModules())) {
         $submenu = new WT_Menu(WT_I18N::translate('Add to favorites'), '#', 'menu-note-addfav');
         $submenu->addOnclick("jQuery.post('module.php?mod=user_favorites&amp;mod_action=menu-add-favorite',{xref:'" . $this->record->getXref() . "'},function(){location.reload();})");
         $menu->addSubmenu($submenu);
     }
     //-- get the link for the first submenu and set it as the link for the main menu
     if (isset($menu->submenus[0])) {
         $link = $menu->submenus[0]->onclick;
         $menu->addOnclick($link);
     }
     return $menu;
 }
开发者ID:jacoline,项目名称:webtrees,代码行数:34,代码来源:Note.php


示例4: formatLongYear

 protected function formatLongYear()
 {
     if ($this->y < 0) {
         return WT_I18N::translate('%s&nbsp;BCE', WT_I18N::digits(-$this->y));
     } else {
         if ($this->new_old_style) {
             return WT_I18N::translate('%s&nbsp;CE', WT_I18N::digits(sprintf('%d/%02d', $this->y - 1, $this->y % 100)));
         } else {
             return WT_I18N::translate('%s&nbsp;CE', WT_I18N::digits($this->y));
         }
     }
 }
开发者ID:brambravo,项目名称:webtrees,代码行数:12,代码来源:Julian.php


示例5: extractNames

 /**
  * Create a name for this note - apply (and remove) markup, then take
  * a maximum of 100 characters from the first line.
  */
 public function extractNames()
 {
     global $WT_TREE;
     $text = $this->getNote();
     switch ($WT_TREE->preference('FORMAT_TEXT')) {
         case 'markdown':
             $text = WT_Filter::markdown($text);
             $text = strip_tags($text);
             break;
     }
     list($text) = explode("\n", $text);
     $this->_addName('NOTE', strlen($text) > 100 ? mb_substr($text, 0, 100) . WT_I18N::translate('…') : $text, $this->getGedcom());
 }
开发者ID:brambravo,项目名称:webtrees,代码行数:17,代码来源:Note.php


示例6: modAction

 public function modAction($modAction)
 {
     global $controller;
     switch ($modAction) {
         case 'menu-add-favorite':
             // Process the "add to user favorites" menu item on indi/fam/etc. pages
             $record = WT_GedcomRecord::getInstance(WT_Filter::post('xref', WT_REGEX_XREF));
             if (WT_USER_ID && $record->canShowName()) {
                 self::addFavorite(array('user_id' => WT_USER_ID, 'gedcom_id' => $record->getGedcomId(), 'gid' => $record->getXref(), 'type' => $record::RECORD_TYPE, 'url' => null, 'note' => null, 'title' => null));
                 WT_FlashMessages::addMessage(WT_I18N::translate('“%s” has been added to your favorites.', $record->getFullName()));
             }
             break;
     }
 }
开发者ID:brambravo,项目名称:webtrees,代码行数:14,代码来源:module.php


示例7: getValue

 public static function getValue($type)
 {
     switch ($type) {
         case '3':
             return WT_I18N::translate('primary evidence');
         case '2':
             return WT_I18N::translate('secondary evidence');
         case '1':
             return WT_I18N::translate('questionable evidence');
         case '0':
             return WT_I18N::translate('unreliable evidence');
         default:
             return $type;
     }
 }
开发者ID:brambravo,项目名称:webtrees,代码行数:15,代码来源:Quay.php


示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->rootid = WT_Filter::get('rootid', WT_REGEX_XREF);
     if ($this->rootid) {
         $this->root = WT_Individual::getInstance($this->rootid);
     } else {
         // Missing rootid parameter?  Do something.
         $this->root = $this->getSignificantIndividual();
         $this->rootid = $this->root->getXref();
     }
     if (!$this->root || !$this->root->canShowName()) {
         header($_SERVER['SERVER_PROTOCOL'] . ' 403 Forbidden');
         $this->error_message = WT_I18N::translate('This individual does not exist or you do not have permission to view it.');
         $this->rootid = null;
     }
 }
开发者ID:brambravo,项目名称:webtrees,代码行数:17,代码来源:Chart.php


示例9: getEditMenu

 /**
  * get edit menu
  */
 function getEditMenu()
 {
     $SHOW_GEDCOM_RECORD = get_gedcom_setting(WT_GED_ID, 'SHOW_GEDCOM_RECORD');
     if (!$this->record || $this->record->isOld()) {
         return null;
     }
     // edit menu
     $menu = new WT_Menu(WT_I18N::translate('Edit'), '#', 'menu-repo');
     if (WT_USER_CAN_EDIT) {
         $fact = $this->record->getFirstFact('NAME');
         $submenu = new WT_Menu(WT_I18N::translate('Edit repository'), '#', 'menu-repo-edit');
         if ($fact) {
             // Edit existing name
             $submenu->addOnclick('return edit_record(\'' . $this->record->getXref() . '\', \'' . $fact->getFactId() . '\');');
         } else {
             // Add new name
             $submenu->addOnclick('return add_fact(\'' . $this->record->getXref() . '\', \'NAME\');');
         }
         $menu->addSubmenu($submenu);
     }
     // delete
     if (WT_USER_CAN_EDIT) {
         $submenu = new WT_Menu(WT_I18N::translate('Delete'), '#', 'menu-repo-del');
         $submenu->addOnclick("return delete_repository('" . WT_I18N::translate('Are you sure you want to delete “%s”?', strip_tags($this->record->getFullName())) . "', '" . $this->record->getXref() . "');");
         $menu->addSubmenu($submenu);
     }
     // edit raw
     if (Auth::isAdmin() || WT_USER_CAN_EDIT && $SHOW_GEDCOM_RECORD) {
         $submenu = new WT_Menu(WT_I18N::translate('Edit raw GEDCOM'), '#', 'menu-repo-editraw');
         $submenu->addOnclick("return edit_raw('" . $this->record->getXref() . "');");
         $menu->addSubmenu($submenu);
     }
     // add to favorites
     if (array_key_exists('user_favorites', WT_Module::getActiveModules())) {
         $submenu = new WT_Menu(WT_I18N::translate('Add to favorites'), '#', 'menu-repo-addfav');
         $submenu->addOnclick("jQuery.post('module.php?mod=user_favorites&amp;mod_action=menu-add-favorite',{xref:'" . $this->record->getXref() . "'},function(){location.reload();})");
         $menu->addSubmenu($submenu);
     }
     //-- get the link for the first submenu and set it as the link for the main menu
     if (isset($menu->submenus[0])) {
         $link = $menu->submenus[0]->onclick;
         $menu->addOnclick($link);
     }
     return $menu;
 }
开发者ID:jacoline,项目名称:webtrees,代码行数:48,代码来源:Repository.php


示例10: __construct

 public function __construct()
 {
     // Automatically fix broken links
     if ($this->record && $this->record->canEdit()) {
         $broken_links = 0;
         foreach ($this->record->getFacts('HUSB|WIFE|CHIL|FAMS|FAMC|REPO') as $fact) {
             if (!$fact->isOld() && $fact->getTarget() === null) {
                 $this->record->deleteFact($fact->getFactId(), false);
                 WT_FlashMessages::addMessage(WT_I18N::translate('The link from “%1$s” to “%2$s” has been deleted.', $this->record->getFullName(), $fact->getValue()));
                 $broken_links = true;
             }
         }
         foreach ($this->record->getFacts('NOTE|SOUR|OBJE') as $fact) {
             // These can be links or inline.  Only delete links.
             if (!$fact->isOld() && $fact->getTarget() === null && preg_match('/^@.*@$/', $fact->getValue())) {
                 $this->record->deleteFact($fact->getFactId(), false);
                 WT_FlashMessages::addMessage(WT_I18N::translate('The link from “%1$s” to “%2$s” has been deleted.', $this->record->getFullName(), $fact->getValue()));
                 $broken_links = true;
             }
         }
         if ($broken_links) {
             // Reload the updated family
             $this->record = WT_GedcomRecord::getInstance($this->record->getXref());
         }
     }
     parent::__construct();
     // We want robots to index this page
     $this->setMetaRobots('index,follow');
     // Set a page title
     if ($this->record) {
         $this->setCanonicalUrl($this->record->getHtmlUrl());
         if ($this->record->canShowName()) {
             // e.g. "John Doe" or "1881 Census of Wales"
             $this->setPageTitle($this->record->getFullName());
         } else {
             // e.g. "Individual" or "Source"
             $record = $this->record;
             $this->setPageTitle(WT_Gedcom_Tag::getLabel($record::RECORD_TYPE));
         }
     } else {
         // No such record
         $this->setPageTitle(WT_I18N::translate('Private'));
     }
 }
开发者ID:brambravo,项目名称:webtrees,代码行数:44,代码来源:GedcomRecord.php


示例11: getBlock

 public function getBlock($block_id, $template = true, $cfg = null)
 {
     $id = $this->getName() . $block_id;
     $class = $this->getName() . '_block';
     $title = '<span dir="auto">' . WT_I18N::translate('Welcome %s', Auth::user()->getRealName()) . '</span>';
     $content = '<table><tr>';
     if (Auth::user()->getSetting('editaccount')) {
         $content .= '<td><a href="edituser.php"><i class="icon-mypage"></i><br>' . WT_I18N::translate('My account') . '</a></td>';
     }
     if (WT_USER_GEDCOM_ID) {
         $content .= '<td><a href="pedigree.php?rootid=' . WT_USER_GEDCOM_ID . '&amp;ged=' . WT_GEDURL . '"><i class="icon-pedigree"></i><br>' . WT_I18N::translate('My pedigree') . '</a></td>';
         $content .= '<td><a href="individual.php?pid=' . WT_USER_GEDCOM_ID . '&amp;ged=' . WT_GEDURL . '"><i class="icon-indis"></i><br>' . WT_I18N::translate('My individual record') . '</a></td>';
     }
     $content .= '</tr></table>';
     if ($template) {
         require WT_THEME_DIR . 'templates/block_main_temp.php';
     } else {
         return $content;
     }
 }
开发者ID:brambravo,项目名称:webtrees,代码行数:20,代码来源:module.php


示例12: getEditMenu

 /**
  * get edit menu
  */
 function getEditMenu()
 {
     $SHOW_GEDCOM_RECORD = get_gedcom_setting(WT_GED_ID, 'SHOW_GEDCOM_RECORD');
     if (!$this->record || $this->record->isOld()) {
         return null;
     }
     // edit menu
     $menu = new WT_Menu(WT_I18N::translate('Edit'), '#', 'menu-note');
     if (WT_USER_CAN_EDIT) {
         $submenu = new WT_Menu(WT_I18N::translate('Edit note'), '#', 'menu-note-edit');
         $submenu->addOnclick('return edit_note(\'' . $this->record->getXref() . '\');');
         $menu->addSubmenu($submenu);
     }
     // edit raw
     /* Does not currently work - NOTE records do not contain nice level 1 facts
     		if (Auth::isAdmin() || WT_USER_CAN_EDIT && $SHOW_GEDCOM_RECORD) {
     			$submenu = new WT_Menu(WT_I18N::translate('Edit raw GEDCOM'), '#', 'menu-note-editraw');
     			$submenu->addOnclick("return edit_raw('" . $this->record->getXref() . "');");
     			$menu->addSubmenu($submenu);
     		}
     		 */
     // delete
     if (WT_USER_CAN_EDIT) {
         $submenu = new WT_Menu(WT_I18N::translate('Delete'), '#', 'menu-note-del');
         $submenu->addOnclick("return delete_note('" . WT_I18N::translate('Are you sure you want to delete “%s”?', strip_tags($this->record->getFullName())) . "', '" . $this->record->getXref() . "');");
         $menu->addSubmenu($submenu);
     }
     // add to favorites
     if (array_key_exists('user_favorites', WT_Module::getActiveModules())) {
         $submenu = new WT_Menu(WT_I18N::translate('Add to favorites'), '#', 'menu-note-addfav');
         $submenu->addOnclick("jQuery.post('module.php?mod=user_favorites&amp;mod_action=menu-add-favorite',{xref:'" . $this->record->getXref() . "'},function(){location.reload();})");
         $menu->addSubmenu($submenu);
     }
     //-- get the link for the first submenu and set it as the link for the main menu
     if (isset($menu->submenus[0])) {
         $link = $menu->submenus[0]->onclick;
         $menu->addOnclick($link);
     }
     return $menu;
 }
开发者ID:brambravo,项目名称:webtrees,代码行数:43,代码来源:Note.php


示例13: getValue

 public static function getValue($type, $record = null)
 {
     if ($record instanceof WT_Individual) {
         $sex = $record->getSex();
     } else {
         $sex = 'U';
     }
     switch ($type) {
         case 'BOTH':
             switch ($sex) {
                 case 'M':
                     return WT_I18N::translate_c('MALE', 'Adopted by both parents');
                 case 'F':
                     return WT_I18N::translate_c('FEMALE', 'Adopted by both parents');
                 default:
                     return WT_I18N::translate('Adopted by both parents');
             }
         case 'HUSB':
             switch ($sex) {
                 case 'M':
                     return WT_I18N::translate_c('MALE', 'Adopted by father');
                 case 'F':
                     return WT_I18N::translate_c('FEMALE', 'Adopted by father');
                 default:
                     return WT_I18N::translate('Adopted by father');
             }
         case 'WIFE':
             switch ($sex) {
                 case 'M':
                     return WT_I18N::translate_c('MALE', 'Adopted by mother');
                 case 'F':
                     return WT_I18N::translate_c('FEMALE', 'Adopted by mother');
                 default:
                     return WT_I18N::translate('Adopted by mother');
             }
         default:
             return $type;
     }
 }
开发者ID:brambravo,项目名称:webtrees,代码行数:39,代码来源:Adop.php


示例14: color_theme_dropdown

function color_theme_dropdown()
{
    global $COLOR_THEME_LIST, $WT_SESSION, $subColor;
    $menu = new WT_Menu(WT_I18N::translate('Palette'), '#', 'menu-color');
    uasort($COLOR_THEME_LIST, array('WT_I18N', 'strcasecmp'));
    foreach ($COLOR_THEME_LIST as $colorChoice => $colorName) {
        $submenu = new WT_Menu($colorName, get_query_url(array('themecolor' => $colorChoice), '&amp;'), 'menu-color-' . $colorChoice);
        if (isset($WT_SESSION->subColor)) {
            if ($WT_SESSION->subColor == $colorChoice) {
                $submenu->addClass('', '', 'theme-active');
            }
        } elseif (WT_Site::preference('DEFAULT_COLOR_PALETTE') == $colorChoice) {
            /* here when visitor changes palette from default */
            $submenu->addClass('', '', 'theme-active');
        } elseif ($subColor == 'ash') {
            /* here when site has different theme as default and user switches to colors */
            if ($subColor == $colorChoice) {
                $submenu->addClass('', '', 'theme-active');
            }
        }
        $menu->addSubMenu($submenu);
    }
    return $menu->getMenuAsList();
}
开发者ID:brambravo,项目名称:webtrees,代码行数:24,代码来源:theme.php


示例15: monthNameInstrumentalCase

 static function monthNameInstrumentalCase($n, $leap_year)
 {
     switch ($n) {
         case 1:
             return WT_I18N::translate_c('INSTRUMENTAL', 'Muharram');
         case 2:
             return WT_I18N::translate_c('INSTRUMENTAL', 'Safar');
         case 3:
             return WT_I18N::translate_c('INSTRUMENTAL', 'Rabi’ al-awwal');
         case 4:
             return WT_I18N::translate_c('INSTRUMENTAL', 'Rabi’ al-thani');
         case 5:
             return WT_I18N::translate_c('INSTRUMENTAL', 'Jumada al-awwal');
         case 6:
             return WT_I18N::translate_c('INSTRUMENTAL', 'Jumada al-thani');
         case 7:
             return WT_I18N::translate_c('INSTRUMENTAL', 'Rajab');
         case 8:
             return WT_I18N::translate_c('INSTRUMENTAL', 'Sha’aban');
         case 9:
             return WT_I18N::translate_c('INSTRUMENTAL', 'Ramadan');
         case 10:
             return WT_I18N::translate_c('INSTRUMENTAL', 'Shawwal');
         case 11:
             return WT_I18N::translate_c('INSTRUMENTAL', 'Dhu al-Qi’dah');
         case 12:
             return WT_I18N::translate_c('INSTRUMENTAL', 'Dhu al-Hijjah');
         default:
             return '';
     }
 }
开发者ID:brambravo,项目名称:webtrees,代码行数:31,代码来源:Hijri.php


示例16: array_unshift

    // Insert the label into the submenu
    if (is_array($menu->submenus)) {
        array_unshift($menu->submenus, $tmp);
    } else {
        $menu->addSubmenu($tmp);
    }
    // Neutralise the top-level menu
    $menu->label = '';
    $menu->onclick = '';
    $menu->iconclass = '';
    return $menu->getMenuAsList();
}
// Theme name - this needs double quotes, as file is scanned/parsed by script
$theme_name = "clouds";
/* I18N: Name of a theme. */
WT_I18N::translate('clouds');
// A version number in the path prevents browser-cache problems during upgrade
define('WT_CSS_URL', WT_THEME_URL . 'css-1.5.4/');
$headerfile = WT_THEME_DIR . 'header.php';
$footerfile = WT_THEME_DIR . 'footer.php';
$WT_IMAGES = array('dline' => WT_CSS_URL . 'images/dline.png', 'dline2' => WT_CSS_URL . 'images/dline2.png', 'hline' => WT_CSS_URL . 'images/hline.png', 'spacer' => WT_CSS_URL . 'images/spacer.png', 'vline' => WT_CSS_URL . 'images/vline.png', 'add' => WT_CSS_URL . 'images/add.png', 'button_family' => WT_CSS_URL . 'images/buttons/family.png', 'minus' => WT_CSS_URL . 'images/minus.png', 'plus' => WT_CSS_URL . 'images/plus.png', 'remove' => WT_CSS_URL . 'images/delete.png', 'search' => WT_CSS_URL . 'images/go.png', 'default_image_F' => WT_CSS_URL . 'images/silhouette_female.png', 'default_image_M' => WT_CSS_URL . 'images/silhouette_male.png', 'default_image_U' => WT_CSS_URL . 'images/silhouette_unknown.png');
// Variables for the Fan chart
$fanChart = array('font' => WT_ROOT . 'includes/fonts/DejaVuSans.ttf', 'size' => 7, 'color' => '#000000', 'bgColor' => '#eeeeee', 'bgMColor' => '#b1cff0', 'bgFColor' => '#e9daf1');
// This section defines variables for the charts
$bwidth = 250;
// width of boxes on all person-box based charts
$bheight = 80;
// height of boxes on all person-box based chart
$baseyoffset = 10;
// position the timeline chart relative to the top of the page
$basexoffset = 10;
开发者ID:brambravo,项目名称:webtrees,代码行数:31,代码来源:theme.php


示例17: FOUND_ROWS

        }
        // Total filtered/unfiltered rows
        $recordsFiltered = WT_DB::prepare("SELECT FOUND_ROWS()")->fetchColumn();
        $recordsTotal = WT_DB::prepare($SELECT2 . $WHERE)->execute($args)->fetchColumn();
        header('Content-type: application/json');
        echo json_encode(array('sEcho' => WT_Filter::getInteger('sEcho'), 'recordsTotal' => $recordsTotal, 'recordsFiltered' => $recordsFiltered, 'data' => $data));
        exit;
}
$controller->pageHeader()->addExternalJavascript(WT_JQUERY_DATATABLES_URL)->addInlineJavascript('
		jQuery("#log_list").dataTable( {
			dom: \'<"H"pf<"dt-clear">irl>t<"F"pl>\',
			processing: true,
			serverSide: true,
			ajax: "' . WT_SERVER_NAME . WT_SCRIPT_PATH . WT_SCRIPT_NAME . '?action=load_json&from=' . $from . '&to=' . $to . '&type=' . $type . '&text=' . rawurlencode($text) . '&ip=' . rawurlencode($ip) . '&user=' . rawurlencode($user) . '&gedc=' . rawurlencode($gedc) . '",
			' . WT_I18N::datatablesI18N(array(10, 20, 50, 100, 500, 1000, -1)) . ',
			jQueryUI: true,
			autoWidth: false,
			sorting: [[ 0, "desc" ]],
			pageLength: ' . Auth::user()->getSetting('admin_site_log_page_size', 20) . ',
			pagingType: "full_numbers"
		});
	');
$url = WT_SCRIPT_NAME . '?from=' . rawurlencode($from) . '&amp;to=' . rawurlencode($to) . '&amp;type=' . rawurlencode($type) . '&amp;text=' . rawurlencode($text) . '&amp;ip=' . rawurlencode($ip) . '&amp;user=' . rawurlencode($user) . '&amp;gedc=' . rawurlencode($gedc);
$users_array = array();
foreach (User::all() as $tmp_user) {
    $users_array[$tmp_user->getUserName()] = $tmp_user->getUserName();
}
echo '<form name="logs" method="get" action="' . WT_SCRIPT_NAME . '">', '<input type="hidden" name="action", value="show">', '<table class="site_logs">', '<tr>', '<td colspan="6">', WT_I18N::translate('From %s to %s', '<input class="log-date" name="from" value="' . WT_Filter::escapeHtml($from) . '">', '<input class="log-date" name="to" value="' . WT_Filter::escapeHtml($to) . '">'), '</td>', '</tr><tr>', '<td>', WT_I18N::translate('Type'), '<br>', select_edit_control('type', array('' => '', 'auth' => 'auth', 'config' => 'config', 'debug' => 'debug', 'edit' => 'edit', 'error' => 'error', 'media' => 'media', 'search' => 'search'), null, $type, ''), '</td>', '<td>', WT_I18N::translate('Message'), '<br><input class="log-filter" name="text" value="', WT_Filter::escapeHtml($text), '"> ', '</td>', '<td>', WT_I18N::translate('IP address'), '<br><input class="log-filter" name="ip" value="', WT_Filter::escapeHtml($ip), '"> ', '</td>', '<td>', WT_I18N::translate('User'), '<br>', select_edit_control('user', $users_array, '', $user, ''), '</td>', '<td>', WT_I18N::translate('Family tree'), '<br>', select_edit_control('gedc', WT_Tree::getNameList(), '', $gedc, Auth::isAdmin() ? '' : 'disabled'), '</td>', '</tr><tr>', '<td colspan="6">', '<input type="submit" value="', WT_I18N::translate('Filter'), '">', '<input type="submit" value="', WT_I18N::translate('Export'), '" onclick="document.logs.action.value=\'export\';return true;" ', $action == 'show' ? '' : 'disabled="disabled"', '>', '<input type="submit" value="', WT_I18N::translate('Delete'), '" onclick="if (confirm(\'', WT_Filter::escapeHtml(WT_I18N::translate('Permanently delete these records?')), '\')) {document.logs.action.value=\'delete\';return true;} else {return false;}" ', $action == 'show' ? '' : 'disabled="disabled"', '>', '</td>', '</tr>', '</table>', '</form>';
if ($action) {
    echo '<br>', '<table id="log_list">', '<thead>', '<tr>', '<th>', WT_I18N::translate('Timestamp'), '</th>', '<th>', WT_I18N::translate('Type'), '</th>', '<th>', WT_I18N::translate('Message'), '</th>', '<th>', WT_I18N::translate('IP address'), '</th>', '<th>', WT_I18N::translate('User'), '</th>', '<th>', WT_I18N::translate('Family tree'), '</th>', '</tr>', '</thead>', '<tbody>', '</tbody>', '</table>';
}
开发者ID:brambravo,项目名称:webtrees,代码行数:31,代码来源:admin_site_logs.php


示例18: dayNames

 static function dayNames($n)
 {
     switch ($n) {
         case 0:
             return WT_I18N::translate('Primidi');
         case 1:
             return WT_I18N::translate('Duodi');
         case 2:
             return WT_I18N::translate('Tridi');
         case 3:
             return WT_I18N::translate('Quartidi');
         case 4:
             return WT_I18N::translate('Quintidi');
         case 5:
             return WT_I18N::translate('Sextidi');
         case 6:
             return WT_I18N::translate('Septidi');
         case 7:
             return WT_I18N::translate('Octidi');
         case 8:
             return WT_I18N::translate('Nonidi');
         case 9:
             return WT_I18N::translate('Decidi');
     }
 }
开发者ID:brambravo,项目名称:webtrees,代码行数:25,代码来源:French.php


示例19:

    echo WT_GEDCOM;
    ?>
">
				<input type="hidden" name="topsearch" value="yes">
				<input type="search" name="query" size="25" placeholder="<?php 
    echo WT_I18N::translate('Search');
    ?>
">
				<input type="image" class="image" src="<?php 
    echo $WT_IMAGES['search'];
    ?>
" alt="<?php 
    echo WT_I18N::translate('Search');
    ?>
" title="<?php 
    echo WT_I18N::translate('Search');
    ?>
">
			</form>
		</div>
		<div id="topMenu">
			<ul id="main-menu">
				<?php 
    echo WT_MenuBar::getGedcomMenu();
    ?>
				<?php 
    echo WT_MenuBar::getMyPageMenu();
    ?>
				<?php 
    echo WT_MenuBar::getChartsMenu();
    ?>
开发者ID:brambravo,项目名称:webtrees,代码行数:31,代码来源:header.php


示例20: getDescription

 public function getDescription()
 {
     // This text also appears in the .XML file - update both together
     return WT_I18N::translate('A report of an individual’s descendants, in a narrative style.');
 }
开发者ID:brambravo,项目名称:webtrees,代码行数:5,代码来源:module.php



注:本文中的WT_I18N类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP WT_Site类代码示例发布时间:2022-05-23
下一篇:
PHP WT_Filter类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap