本文整理匯總了PHP中CApi::I18N方法的典型用法代碼示例。如果您正苦於以下問題:PHP CApi::I18N方法的具體用法?PHP CApi::I18N怎麽用?PHP CApi::I18N使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CApi
的用法示例。
在下文中一共展示了CApi::I18N方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: SystemSecurity
public function SystemSecurity()
{
$bDoSave = true;
if (CApi::getCsrfToken('p7admToken') === CPost::get('txtToken')) {
if (CPost::Has('txtNewPassword') && CPost::Has('txtConfirmNewPassword')) {
$oWebmailApi = CApi::Manager('webmail');
if (!$oWebmailApi->validateAdminPassword(trim(CPost::get('txtOldPassword')))) {
$bDoSave = false;
$this->LastError = CM_PASSWORDS_INVALID_OLD;
} else {
if ((string) CPost::get('txtNewPassword') !== (string) CPost::get('txtConfirmNewPassword')) {
$bDoSave = false;
$this->LastError = CM_PASSWORDS_NOT_MATCH;
} else {
if (AP_DUMMYPASSWORD !== (string) CPost::get('txtNewPassword')) {
$this->oSettings->SetConf('Common/AdminPassword', md5(trim(CPost::get('txtNewPassword'))));
}
}
}
if ($bDoSave) {
if (CPost::Has('txtUserName')) {
$this->oSettings->SetConf('Common/AdminLogin', CPost::get('txtUserName'));
}
$this->saveSettingsXmlWithMessage();
}
}
} else {
$this->LastError = CApi::I18N('API/INVALID_TOKEN');
}
}
示例2:
<table class="wm_contacts_view">
<tr>
<td class="wm_field_title" colspan="2">
<input type="checkbox" class="wm_checkbox override" name="chEnableAddressBook" id="chEnableAddressBook"
value="1" <?php
$this->Data->PrintCheckedValue('chEnableAddressBook');
?>
/>
<label id="chEnableAddressBook_label" for="chEnableAddressBook"><?php
echo CApi::I18N('ADMIN_PANEL/DOMAINS_ADDRBOOK_ENABLED');
?>
</label>
</td>
</tr>
<tr>
<td class="wm_field_title">
<span id="selContactsPerPage_label">
<?php
echo CApi::I18N('ADMIN_PANEL/DOMAINS_ADDRBOOK_CONTACTS');
?>
</span>
</td>
<td class="wm_field_value">
<select name="selContactsPerPage" class="wm_select override" id="selContactsPerPage">
<?php
$this->Data->PrintValue('selContactsPerPageOptions');
?>
</select>
</td>
</tr>
</table>
示例3: define
/* langs */
define('CM_MODE_RESOURCE_USAGE_NAME', CApi::I18N('ADMIN_PANEL/SUBTABNAME_RESOURCE_USAGE'));
define('CM_MODE_HELPDESK_NAME', CApi::I18N('ADMIN_PANEL/SUBTABNAME_HELPDESK'));
define('CM_MODE_SIP_NAME', CApi::I18N('ADMIN_PANEL/SUBTABNAME_SIP'));
define('CM_MODE_TWILIO_NAME', CApi::I18N('ADMIN_PANEL/SUBTABNAME_TWILIO'));
define('CM_MODE_SOCIAL_NAME', CApi::I18N('ADMIN_PANEL/SUBTABNAME_SOCIAL'));
define('CM_MODE_TENANT_NAME', CApi::I18N('ADMIN_PANEL/SUBTABNAME_TENANT'));
define('CM_MODE_BRANDING_NAME', CApi::I18N('ADMIN_PANEL/SUBTABNAME_BRANDING'));
define('CM_MODE_INVITATIONS_NAME', CApi::I18N('ADMIN_PANEL/SUBTABNAME_INVITATIONS'));
define('CM_MODE_DB_NAME', CApi::I18N('ADMIN_PANEL/SUBTABNAME_DATABASE'));
define('CM_MODE_SECURITY_NAME', CApi::I18N('ADMIN_PANEL/SUBTABNAME_SECURITY'));
define('CM_SWITCHER_MODE_NEW_DOMAIN_NAME', CApi::I18N('ADMIN_PANEL/TOOLBAR_BUTTON_NEW_DOMAIN'));
define('CM_SWITCHER_MODE_EDIT_DOMAIN_GENERAL_NAME', CApi::I18N('ADMIN_PANEL/EDIT_DOMAIN_GENERAL_NAME'));
define('CM_SWITCHER_MODE_INVITE_USER_NAME', CApi::I18N('ADMIN_PANEL/TOOLBAR_BUTTON_INVITE_USER'));
define('CM_SWITCHER_MODE_NEW_USER_NAME', CApi::I18N('ADMIN_PANEL/TOOLBAR_BUTTON_NEW_USER'));
define('CM_SWITCHER_MODE_EDIT_USER_GENERAL_NAME', CApi::I18N('ADMIN_PANEL/EDIT_USERS_GENERAL_NAME'));
define('CM_SWITCHER_MODE_EDIT_USER_SIP_NAME', CApi::I18N('ADMIN_PANEL/EDIT_USERS_SIP_NAME'));
define('CM_SWITCHER_MODE_EDIT_USER_TWILIO_NAME', CApi::I18N('ADMIN_PANEL/EDIT_USERS_TWILIO_NAME'));
define('CM_SWITCHER_MODE_EDIT_USER_SOCIAL_NAME', CApi::I18N('ADMIN_PANEL/EDIT_USERS_SOCIAL_NAME'));
define('CM_LANG_NODOMAINS', CApi::I18N('ADMIN_PANEL/INFO_NODOMAINS'));
define('CM_LANG_NODOMAINS_RESULTEMPTY', CApi::I18N('ADMIN_PANEL/INFO_DOMAINS_NOT_FOUND'));
define('CM_LANG_NOUSERSINDOMAIN', CApi::I18N('ADMIN_PANEL/INFO_NOUSERS'));
define('CM_LANG_USERS_RESULTEMPTY', CApi::I18N('ADMIN_PANEL/INFO_USERS_NOT_FOUND'));
define('CM_LANG_TOTAL_USERS', CApi::I18N('ADMIN_PANEL/INFO_USERS_TOTAL'));
define('CM_LANG_ACCOUNT_EXIST', CApi::I18N('ADMIN_PANEL/MSG_USER_EXIST'));
define('CM_LANG_DOMAIN_EXIST', CApi::I18N('ADMIN_PANEL/MSG_DOMAIN_EXIST'));
define('CM_LANG_DELETE_SUCCESSFUL', CApi::I18N('ADMIN_PANEL/MSG_DELETE_SUCCESSFUL'));
define('CM_LANG_DELETE_UNSUCCESSFUL', CApi::I18N('ADMIN_PANEL/MSG_DELETE_UNSUCCESSFUL'));
define('CM_PASSWORDS_NOT_MATCH', CApi::I18N('ADMIN_PANEL/MSG_PASSWORD_MISMATCH'));
define('CM_PASSWORDS_INVALID_OLD', CApi::I18N('ADMIN_PANEL/MSG_INVALID_OLD_PASSWORD'));
示例4:
$this->Data->PrintSelectedValue('optDateFormatMMDDYYYY');
?>
><?php
echo CApi::I18N('ADMIN_PANEL/DOMAINS_GENERAL_DATEFORMAT_MMDD');
?>
</option>
<option value="<?php
echo EDateFormat::DDMMYYYY;
?>
" <?php
$this->Data->PrintSelectedValue('optDateFormatDDMMYYYY');
?>
><?php
echo CApi::I18N('ADMIN_PANEL/DOMAINS_GENERAL_DATEFORMAT_DDMM');
?>
</option>
<option value="<?php
echo EDateFormat::DD_MONTH_YYYY;
?>
" <?php
$this->Data->PrintSelectedValue('optDateFormatDDMonthYYYY');
?>
><?php
echo CApi::I18N('ADMIN_PANEL/DOMAINS_GENERAL_DATEFORMAT_DD_MONTH_YYYY');
?>
</option>
</select>
</td>
</tr>
</table>
示例5: initAuth
/**
* @return void
*/
protected function initAuth()
{
$this->iAuthType = AP_SESS_AUTH_TYPE_NONE;
if ((isset($_GET['login']) || isset($_POST['login'])) && (CPost::Has('AdmloginInput') || CGet::Has('AdmloginInput')) && CPost::Has('AdmpasswordInput')) {
$sAdmloginInput = CPost::Get('AdmloginInput');
if (CGet::Has('AdmloginInput')) {
$sAdmloginInput = CGet::Get('AdmloginInput');
}
$sLoginSuffix = CPost::Get('LoginSuffix', '');
if (CGet::Has('LoginSuffix')) {
$sLoginSuffix = CGet::Get('LoginSuffix', '');
}
if ($this->CallModuleFunction('CCommonModule', 'AuthLogin', array($sAdmloginInput . $sLoginSuffix, CPost::Get('AdmpasswordInput')))) {
CApi::Location(AP_INDEX_FILE . '?enter');
} else {
CSession::Destroy();
CApi::Location(AP_INDEX_FILE . '?auth_error');
}
exit;
} else {
if ($this->bSessionIsStarted) {
$this->CallModuleFunction('CCommonModule', 'AuthCheckSet');
if ($this->IsTenantAuthType()) {
$aTabs =& $this->GetTabs();
$aNewTabs = array();
foreach ($aTabs as $aTabValue) {
if (in_array($aTabValue[0], array(CApi::I18N('ADMIN_PANEL/TABNAME_COMMON'), CApi::I18N('ADMIN_PANEL/TABNAME_DOMAINS'), CApi::I18N('ADMIN_PANEL/TABNAME_USERS')))) {
$aNewTabs[] = $aTabValue;
}
}
$aTabs = $aNewTabs;
}
} else {
CSession::Destroy();
CApi::Location(AP_INDEX_FILE . '?sess_error');
exit;
}
}
}
示例6: WriteMain
/**
* @return void
*/
public function WriteMain()
{
$sCurrentMode = $this->GetCurrentMode();
foreach ($this->aMenu as $sMode => $aItems) {
if ($sMode === $sCurrentMode && is_array($aItems) && 0 < count($aItems)) {
echo '<form autocomplete="off" action="' . AP_INDEX_FILE . '?submit" method="POST" id="' . $sMode . '_form"><input type="hidden" name="form_id" value="' . $sMode . '"><table class="wm_settings_common" width="650">';
foreach ($aItems as $oItem) {
if (@file_exists($oItem->Template())) {
include $oItem->Template();
}
}
echo '</table>
<table class="wm_settings_common" width="100%">
<tr>
<td>
<hr />
</td>
</tr>
<tr>
<td align="right">
<span class="wm_secondary_info" style="float: left; display: none;">' . CApi::I18N('ADMIN_PANEL/FORM_REQUIRED_FIELDS') . '</span>
<input type="submit" name="submit_btn" value="' . CApi::I18N('ADMIN_PANEL/FORM_BUTTON_SAVE') . '" class="wm_button" style="width: 100px">
</td>
</tr>
</table></form>';
}
}
}
示例7: define
<?php
/*
* Copyright (C) 2002-2013 AfterLogic Corp. (www.afterlogic.com)
* Distributed under the terms of the license described in LICENSE
*
*/
define('WM_MODE_LOGGING', 'logging');
define('WM_MODE_DAV', 'dav');
define('WM_SWITCHER_MODE_NEW_DOMAIN', 'newdomain');
define('WM_SWITCHER_MODE_EDIT_DOMAIN_GENERAL', 'editgeneral');
define('WM_SWITCHER_MODE_EDIT_DOMAIN_WEBMAIL', 'editwebmail');
define('WM_SWITCHER_MODE_EDIT_DOMAIN_ADDRESS_BOOK', 'editaddressbook');
define('WM_SWITCHER_MODE_EDIT_DOMAIN_FILES', 'editfiles');
define('WM_SWITCHER_MODE_EDIT_DOMAIN_HELPDESK', 'edithelpdesk');
define('WM_SWITCHER_MODE_EDIT_USERS_GENERAL', 'editgeneral');
/* langs */
define('WM_MODE_DAV_NAME', CApi::I18N('ADMIN_PANEL/SUBTABNAME_MOBILE_SYNC'));
define('WM_MODE_LOGGING_NAME', CApi::I18N('ADMIN_PANEL/SUBTABNAME_LOGGING'));
define('WM_SWITCHER_MODE_NEW_DOMAIN_NAME', CApi::I18N('ADMIN_PANEL/TOOLBAR_BUTTON_NEW_DOMAIN'));
define('WM_SWITCHER_MODE_EDIT_DOMAIN_GENERAL_NAME', CApi::I18N('ADMIN_PANEL/EDIT_DOMAIN_GENERAL_NAME'));
define('WM_SWITCHER_MODE_EDIT_DOMAIN_WEBMAIL_NAME', CApi::I18N('ADMIN_PANEL/EDIT_DOMAIN_WEBMAIL_NAME'));
define('WM_SWITCHER_MODE_EDIT_DOMAIN_ADDRESS_BOOK_NAME', CApi::I18N('ADMIN_PANEL/EDIT_DOMAIN_ADDRESS_BOOK_NAME'));
define('WM_SWITCHER_MODE_EDIT_DOMAIN_FILES_NAME', CApi::I18N('ADMIN_PANEL/EDIT_DOMAIN_FILES_NAME'));
define('WM_SWITCHER_MODE_EDIT_DOMAIN_HELPDESK_NAME', CApi::I18N('ADMIN_PANEL/EDIT_DOMAIN_HELPDESK_NAME'));
define('WM_SWITCHER_MODE_EDIT_USERS_GENERAL_NAME', CApi::I18N('ADMIN_PANEL/EDIT_USERS_GENERAL_NAME'));
define('WM_INFO_LOGCLEARSUCCESSFUL', CApi::I18N('ADMIN_PANEL/MSG_LOGCLEAR_OK'));
示例8:
x-data-label="radioLayout_lable" />
<label class="wm_settings_layout_icon_side" for="radioLayoutSide"></label>
<input type="radio" class="wm_checkbox override" name="radioLayout" id="radioLayoutBottom"
value="<?php
// echo EnumConvert::ToPost(ELayout::Bottom, 'ELayout');
?>
" <?php
//$this->Data->PrintCheckedValue('radioLayoutBottom');
?>
x-data-label="radioLayout_lable" />
<label class="wm_settings_layout_icon_bottom" for="radioLayoutBottom"></label>
</td>
</tr>
<tr>-->
<td class="wm_field_title">
<span id="selAutocheckMail_label">
<?php
echo CApi::I18N('ADMIN_PANEL/DOMAINS_WEBMAIL_AUTO');
?>
</span>
</td>
<td class="wm_field_value">
<select name="selAutocheckMail" id="selAutocheckMail" class="wm_select override">
<?php
$this->Data->PrintValue('selAutocheckMailOptions');
?>
</select>
</td>
</tr>
</table>
示例9:
?>
/>
<label for="chSocialDropboxAllow"><?php
echo CApi::I18N('ADMIN_PANEL/DROPBOX');
?>
</label>
<br />
<br />
<span><?php
echo CApi::I18N('ADMIN_PANEL/SOCIAL_DROPBOX_SECRET');
?>
</span>
<br />
<br />
<span><?php
echo CApi::I18N('ADMIN_PANEL/SOCIAL_DROPBOX_KEY');
?>
</span>
</td>
<td>
<br />
<br />
<input type="text" id="txtSocialDropboxSecret" name="txtSocialDropboxSecret" value="<?php
$this->Data->PrintInputValue('txtSocialDropboxSecret');
?>
" size="60" />
<br />
<input type="text" id="txtSocialDropboxKey" name="txtSocialDropboxKey" value="<?php
$this->Data->PrintInputValue('txtSocialDropboxKey');
?>
" size="60" />
示例10:
<tr>
<td valign="top" colspan="2">
<div class="wm_information_com">
<?php
echo CApi::I18N('ADMIN_PANEL/HELPDESK_SOCIAL_DESK');
?>
</div>
</td>
</tr>
示例11: Handle
//.........這裏部分代碼省略.........
}
}
if (empty($sResult)) {
$usec = $sec = 0;
list($usec, $sec) = \explode(' ', microtime());
$sResult = \implode("\n", array('<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">', empty($aMatches[1]) ? ' <Response>' : ' <Response xmlns="' . $aMatches[1] . '">', ' <Error Time="' . \gmdate('H:i:s', $sec) . \substr($usec, 0, \strlen($usec) - 2) . '" Id="2477272013">', ' <ErrorCode>600</ErrorCode>', ' <Message>Invalid Request</Message>', ' <DebugData />', ' </Error>', ' </Response>', '</Autodiscover>'));
}
header('Content-Type: text/xml');
$sResult = '<' . '?xml version="1.0" encoding="utf-8"?' . '>' . "\n" . $sResult;
\CApi::Log('');
\CApi::Log($sResult);
} else {
if ('profile' === $sFirstPart) {
/* @var $oApiIosManager \CApiIosManager */
$oApiIosManager = \CApi::Manager('ios');
$oAccount = $oApiIntegrator->GetLogginedDefaultAccount();
$mResultProfile = $oApiIosManager && $oAccount ? $oApiIosManager->GenerateXMLProfile($oAccount) : false;
if ($mResultProfile !== false) {
header('Content-type: application/x-apple-aspen-config; chatset=utf-8');
header('Content-Disposition: attachment; filename="afterlogic.mobileconfig"');
echo $mResultProfile;
} else {
\CApi::Location('./?IOS/Error');
}
} else {
if ('ios' === $sFirstPart) {
$sResult = file_get_contents(PSEVEN_APP_ROOT_PATH . 'templates/Ios.html');
$iUserId = $oApiIntegrator->GetLogginedUserId();
if (0 < $iUserId) {
$oAccount = $oApiIntegrator->GetLogginedDefaultAccount();
$bError = isset($aPaths[1]) && 'error' === strtolower($aPaths[1]);
// TODO
@setcookie('skip_ios', '1', time() + 3600 * 3600, '/', null, null, true);
$sResult = strtr($sResult, array('{{IOS/HELLO}}' => \CApi::I18N('IOS/HELLO'), '{{IOS/DESC_P1}}' => \CApi::I18N('IOS/DESC_P1'), '{{IOS/DESC_P2}}' => \CApi::I18N('IOS/DESC_P2'), '{{IOS/DESC_P3}}' => \CApi::I18N('IOS/DESC_P3'), '{{IOS/DESC_P4}}' => \CApi::I18N('IOS/DESC_P4'), '{{IOS/DESC_P5}}' => \CApi::I18N('IOS/DESC_P5'), '{{IOS/DESC_P6}}' => \CApi::I18N('IOS/DESC_P6'), '{{IOS/DESC_P7}}' => \CApi::I18N('IOS/DESC_P7'), '{{IOS/DESC_BUTTON_YES}}' => \CApi::I18N('IOS/DESC_BUTTON_YES'), '{{IOS/DESC_BUTTON_SKIP}}' => \CApi::I18N('IOS/DESC_BUTTON_SKIP'), '{{IOS/DESC_BUTTON_OPEN}}' => \CApi::I18N('IOS/DESC_BUTTON_OPEN'), '{{AppVersion}}' => PSEVEN_APP_VERSION, '{{IntegratorLinks}}' => $oApiIntegrator->BuildHeadersLink()));
} else {
\CApi::Location('./');
}
} else {
if ('raw' === $sFirstPart) {
$sAction = empty($aPaths[1]) ? '' : $aPaths[1];
try {
if (!empty($sAction)) {
$sMethodName = 'Raw' . $sAction;
if (method_exists($this->oActions, $sMethodName)) {
$this->oActions->SetActionParams(array('AccountID' => empty($aPaths[2]) || '0' === (string) $aPaths[2] ? '' : $aPaths[2], 'RawKey' => empty($aPaths[3]) ? '' : $aPaths[3], 'IsExt' => empty($aPaths[4]) ? '0' : ('1' === (string) $aPaths[4] ? '1' : 0), 'TenantHash' => empty($aPaths[5]) ? '' : $aPaths[5]));
if (!call_user_func(array($this->oActions, $sMethodName))) {
\CApi::Log('False result.', \ELogLevel::Error);
}
} else {
\CApi::Log('Invalid action.', \ELogLevel::Error);
}
} else {
\CApi::Log('Empty action.', \ELogLevel::Error);
}
} catch (\Exception $oException) {
\CApi::LogException($oException, \ELogLevel::Error);
}
} else {
if ('post' === $sFirstPart) {
$sAction = $this->oHttp->GetPost('Action');
try {
if (!empty($sAction)) {
$sMethodName = 'Post' . $sAction;
if (method_exists($this->oActions, $sMethodName) && is_callable(array($this->oActions, $sMethodName))) {
$this->oActions->SetActionParams($this->oHttp->GetPostAsArray());
if (!call_user_func(array($this->oActions, $sMethodName))) {
示例12:
<span id="txtNewPassword_label"><?php
echo CApi::I18N('ADMIN_PANEL/SCREEN_SECURITY_PASSWORD');
?>
</span>
</td>
<td>
<input type="password" class="wm_input" name="txtNewPassword" id="txtNewPassword" value="<?php
$this->Data->PrintInputValue('txtNewPassword');
?>
" size="30" />
</td>
</tr>
<tr>
<td align="left">
<span id="txtConfirmNewPassword_label"><?php
echo CApi::I18N('ADMIN_PANEL/SCREEN_SECURITY_CONFIRM_PASSWORD');
?>
</span>
</td>
<td>
<input type="password" class="wm_input" name="txtConfirmNewPassword" id="txtConfirmNewPassword" value="<?php
$this->Data->PrintInputValue('txtConfirmNewPassword');
?>
" size="30" />
</td>
</tr>
<input type="hidden" name="txtToken" value="<?php
$this->Data->PrintInputValue('txtToken');
?>
" />
示例13: define
define('CM_SWITCHER_MODE_NEW_USER', 'newuser');
define('CM_SWITCHER_MODE_EDIT_USER_GENERAL', 'editgeneral');
define('CM_SWITCHER_MODE_EDIT_USER_VOICE', 'editvoice');
define('CM_SWITCHER_MODE_EDIT_USER_TWILIO', 'edittwitio');
/* langs */
define('CM_MODE_RESOURCE_USAGE_NAME', CApi::I18N('ADMIN_PANEL/SUBTABNAME_RESOURCE_USAGE'));
define('CM_MODE_HELPDESK_NAME', CApi::I18N('ADMIN_PANEL/SUBTABNAME_HELPDESK'));
define('CM_MODE_SIP_NAME', CApi::I18N('ADMIN_PANEL/SUBTABNAME_SIP'));
define('CM_MODE_TWILIO_NAME', CApi::I18N('ADMIN_PANEL/SUBTABNAME_TWILIO'));
define('CM_MODE_SOCIAL_NAME', CApi::I18N('ADMIN_PANEL/SUBTABNAME_SOCIAL'));
define('CM_MODE_TENANT_NAME', CApi::I18N('ADMIN_PANEL/SUBTABNAME_TENANT'));
define('CM_MODE_BRANDING_NAME', CApi::I18N('ADMIN_PANEL/SUBTABNAME_BRANDING'));
define('CM_MODE_DB_NAME', CApi::I18N('ADMIN_PANEL/SUBTABNAME_DATABASE'));
define('CM_MODE_SECURITY_NAME', CApi::I18N('ADMIN_PANEL/SUBTABNAME_SECURITY'));
define('CM_SWITCHER_MODE_NEW_DOMAIN_NAME', CApi::I18N('ADMIN_PANEL/TOOLBAR_BUTTON_NEW_DOMAIN'));
define('CM_SWITCHER_MODE_EDIT_DOMAIN_GENERAL_NAME', CApi::I18N('ADMIN_PANEL/EDIT_DOMAIN_GENERAL_NAME'));
define('CM_SWITCHER_MODE_NEW_USER_NAME', CApi::I18N('ADMIN_PANEL/TOOLBAR_BUTTON_NEW_USER'));
define('CM_SWITCHER_MODE_EDIT_USER_GENERAL_NAME', CApi::I18N('ADMIN_PANEL/EDIT_USERS_GENERAL_NAME'));
define('CM_SWITCHER_MODE_EDIT_USER_VOICE_NAME', CApi::I18N('ADMIN_PANEL/EDIT_USERS_VOICE_NAME'));
define('CM_SWITCHER_MODE_EDIT_USER_TWILIO_NAME', CApi::I18N('ADMIN_PANEL/EDIT_USERS_TWILIO_NAME'));
define('CM_LANG_NODOMAINS', CApi::I18N('ADMIN_PANEL/INFO_NODOMAINS'));
define('CM_LANG_NODOMAINS_RESULTEMPTY', CApi::I18N('ADMIN_PANEL/INFO_DOMAINS_NOT_FOUND'));
define('CM_LANG_NOUSERSINDOMAIN', CApi::I18N('ADMIN_PANEL/INFO_NOUSERS'));
define('CM_LANG_USERS_RESULTEMPTY', CApi::I18N('ADMIN_PANEL/INFO_USERS_NOT_FOUND'));
define('CM_LANG_TOTAL_USERS', CApi::I18N('ADMIN_PANEL/INFO_USERS_TOTAL'));
define('CM_LANG_ACCOUNT_EXIST', CApi::I18N('ADMIN_PANEL/MSG_USER_EXIST'));
define('CM_LANG_DOMAIN_EXIST', CApi::I18N('ADMIN_PANEL/MSG_DOMAIN_EXIST'));
define('CM_LANG_DELETE_SUCCESSFUL', CApi::I18N('ADMIN_PANEL/MSG_DELETE_SUCCESSFUL'));
define('CM_LANG_DELETE_UNSUCCESSFUL', CApi::I18N('ADMIN_PANEL/MSG_DELETE_UNSUCCESSFUL'));
define('CM_PASSWORDS_NOT_MATCH', CApi::I18N('ADMIN_PANEL/MSG_PASSWORD_MISMATCH'));
示例14:
<span id="txtSqlName_label"><?php echo CApi::I18N('ADMIN_PANEL/SCREEN_DATABASE_NAME'); ?></span>
</td>
<td>
<input type="text" class="wm_input" name="txtSqlName" id="txtSqlName" value="<?php $this->Data->PrintInputValue('txtSqlName') ?>" size="35" />
</td>
</tr>
<tr>
<td align="left">
<span id="txtSqlSrc_label"><?php echo CApi::I18N('ADMIN_PANEL/SCREEN_DATABASE_HOST'); ?></span>
</td>
<td>
<input type="text" class="wm_input" name="txtSqlSrc" id="txtSqlSrc" value="<?php $this->Data->PrintInputValue('txtSqlSrc') ?>" size="35" />
</td>
</tr>
<tr>
<td align="left">
</td>
<td>
<input type="hidden" name="isTestConnection" id="isTestConnection" value="0" />
<input type="button" name="test_btn" id="test_btn" value="<?php echo CApi::I18N('ADMIN_PANEL/SCREEN_DATABASE_TEST'); ?>" class="wm_button" style="font-size: 11px;" />
</td>
</tr>
<tr><td colspan="2"><br /></td></tr>
<tr>
<td colspan="2" valign="top">
<input type="button" name="create_btn" id="create_btn" value="<?php echo CApi::I18N('ADMIN_PANEL/SCREEN_DATABASE_CREATE'); ?>" class="wm_button" style="font-size: 11px;" />
<input type="button" name="update_btn" id="update_btn" value="<?php echo CApi::I18N('ADMIN_PANEL/SCREEN_DATABASE_UPDATE'); ?>" class="wm_button" style="font-size: 11px;" />
</td>
</tr>
示例15: foreach
<tr>
<td align="left" width="80" valign="top"></td>
<td>
<div class="wm_information_com" style="margin: 0px 0px 5px 0px;"><?php
echo CApi::I18N('ADMIN_PANEL/SOCIAL_GOOGLE_API_KEY_DESCRIPTION');
?>
</div>
</td>
</tr>
<?php
}
?>
<tr>
<td>
<?php
echo CApi::I18N('ADMIN_PANEL/SOCIAL_SCOPES');
?>
</td>
<td>
<?php
foreach ($SocialItem->SupportedScopes as $iKey => $sScope) {
?>
<input type="checkbox" class="wm_checkbox" name="<?php
echo $sSocialKey;
?>
_chSocialScopes[<?php
echo $sScope;
?>
]" id="<?php
echo $sSocialKey;
?>