当前位置: 首页>>代码示例>>PHP>>正文


PHP I18n::languageList方法代码示例

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


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

示例1: array

    $_POST['firstName'] = "John";
    $_POST['surname1'] = "Doe";
    $_POST['surname2'] = "Smith";
    $_POST['adminAddress'] = "";
    $_POST['adminPhone'] = "";
    $_POST['passwd'] = "";
    $_POST['email'] = "";
    $_POST['adminTheme'] = 1;
    // OpenClinic theme by default
}
// end step 0
/**
 * i18n l10n
 */
require_once "../config/i18n.php";
$locale = I18n::languageList();
// end i18n l10n
/**
 * XHTML Start (XML prolog, DOCTYPE, title page and meta data)
 */
$title = _("OpenClinic Install Wizard");
require_once "../layout/xhtml_start.php";
echo HTML::start('link', array('rel' => 'stylesheet', 'href' => '../css/wizard.css', 'type' => 'text/css'), true);
echo HTML::insertScript('wizard.js');
echo HTML::end('head');
echo HTML::start('body');
//echo "<!-- Header -->\n";
echo HTML::start('form', array('method' => 'post', 'action' => $_SERVER['PHP_SELF'], 'onsubmit' => 'return validateInstall();'));
//Error::debug($_POST);
$_POST = Check::safeArray($_POST);
echo Form::hidden("alreadyVisited", 1, array('id' => 'h_alreadyVisited'));
开发者ID:edubort,项目名称:openclinic-1,代码行数:31,代码来源:wizard.php

示例2: dirname

 */
require_once dirname(__FILE__) . "/../lib/exe_protect.php";
executionProtection(__FILE__);
require_once "../lib/File.php";
$body = array();
$row = Form::label("session_timeout", _("Session Timeout") . ":", array('class' => 'required'));
$row .= Form::text("session_timeout", $formVar["session_timeout"], array('size' => 3, 'error' => isset($formError["session_timeout"]) ? $formError["session_timeout"] : null));
$row .= _("minutes");
$body[] = $row;
$row = Form::label("items_per_page", _("Search Results") . ":", array('class' => 'required'));
$row .= Form::text("items_per_page", $formVar["items_per_page"], array('size' => 3, 'error' => isset($formError["items_per_page"]) ? $formError["items_per_page"] : null));
$row .= _("items per page") . "**";
$body[] = $row;
if (defined("OPEN_DEMO") && !OPEN_DEMO) {
    $row = Form::label("language", _("Language") . ":");
    $languageList = I18n::languageList();
    $row .= Form::select("language", $languageList, $formVar["language"]);
    $body[] = $row;
} elseif (defined("OPEN_DEMO") && OPEN_DEMO) {
    $row = Form::hidden("language", "en");
    $body[] = $row;
}
$row = Form::label("id_theme", _("Theme by default") . ":");
$row .= Form::selectTable("theme_tbl", "id_theme", $formVar["id_theme"], "theme_name");
$body[] = $row;
$appFields = Form::fieldset(_("Application"), $body);
$body = array();
$row = Form::label("clinic_name", _("Clinic Name") . ":");
$row .= Form::text("clinic_name", isset($formVar["clinic_name"]) ? $formVar["clinic_name"] : null, array('size' => 40, 'maxlength' => 128, 'error' => isset($formError["clinic_name"]) ? $formError["clinic_name"] : null));
$body[] = $row;
$row = Form::label("clinic_hours", _("Clinic Hours") . ":");
开发者ID:edubort,项目名称:openclinic-1,代码行数:31,代码来源:setting_fields.php


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