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


PHP X2Html::unorderedList方法代码示例

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


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

示例1: array

 * 02110-1301 USA.
 * 
 * You can contact X2Engine, Inc. P.O. Box 66752, Scotts Valley,
 * California 95067, USA. or at email address contact@x2engine.com.
 * 
 * The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU Affero General Public License version 3.
 * 
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * X2Engine" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by X2Engine".
 *****************************************************************************************/
?>
<div class='widget-error-summary'>
<?php 
if (count($errors) === 1) {
    ?>
<span class='widget-error-message'><?php 
    echo CHtml::encode($errors[0]);
    ?>
</span>
<?php 
} else {
    echo X2Html::unorderedList(X2Html::encodeArray($errors), array('style' => 'display: inline-block;'));
}
?>
</div>
开发者ID:dsyman2,项目名称:X2CRM,代码行数:30,代码来源:_widgetError.php

示例2: array

 * X2Engine" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by X2Engine".
 *****************************************************************************************/
Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl . '/css/views/profile/googleProjectForm.css');
echo CHtml::openTag('div', array('id' => 'google-project-form'));
$admin = Yii::app()->settings;
echo CHtml::activeCheckbox($admin, 'googleIntegration');
echo CHtml::activeLabel($admin, 'googleIntegration', array('style' => 'display:inline;'));
echo '<br>';
echo '<br>';
?>
<div class='integration-description'>
<?php 
echo Yii::t('app', 'Activating Google Integration enables the following features:');
echo X2Html::unorderedList(array(CHtml::encode(Yii::t('app', 'Google sign in')), CHtml::encode(Yii::t('app', 'Google Calendar sync')), CHtml::encode(Yii::t('app', 'Google Drive access'))));
?>
</div>
<?php 
echo CHtml::tag('h3', array(), Yii::t('app', 'Configuring Google Integration'));
?>
<hr>
<?php 
echo X2Html::orderedList(array(Yii::t('app', 'Visit {link} and create or select a Google project.', array('{link}' => '<a href="https://console.developers.google.com/">' . 'https://console.developers.google.com</a>')), CHtml::encode(Yii::t('app', 'To configure Google integration for Calendar sync, Google login, and ' . 'Google Drive access:')) . X2Html::orderedList(array(CHtml::encode(Yii::t('app', 'From the "APIs & auth" section in the left sidebar, select "APIs."')), CHtml::encode(Yii::t('app', 'Search for and enable the Calendar and Drive APIs.')), CHtml::encode(Yii::t('app', 'From the "APIs & auth" section in the left sidebar, select ' . '"Credentials."')), CHtml::encode(Yii::t('app', 'Create an OAuth 2.0 client ID.')), CHtml::encode(Yii::t('app', 'When asked for "Authorized Redirect URIs," input the following ' . 'urls:')) . CHtml::tag('textarea', array('readonly' => 'readonly', 'class' => 'authorized-js-origins'), (@$_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . Yii::app()->controller->createUrl('/calendar/calendar/syncActionsToGoogleCalendar') . "\n" . (@$_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . Yii::app()->controller->createUrl('/site/googleLogin') . "\n" . (@$_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . Yii::app()->controller->createUrl('/site/upload')), CHtml::encode(Yii::t('app', 'When asked for "Authorized JavaScript Origins," input the ' . 'following urls:')) . CHtml::tag('textarea', array('readonly' => 'readonly'), (@$_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://') . $_SERVER['HTTP_HOST']), Yii::t('app', 'Copy the Client ID and Client Secret into OAuth 2.0 Credentials ' . 'section {below}.', array('{below}' => CHtml::link(Yii::t('app', 'below'), '#oauth-2.0')))), array('style' => 'list-style-type: lower-latin;'))), array('class' => 'config-instructions'));
echo X2Html::fragmentTarget('oauth-2.0');
echo CHtml::tag('h3', array('class' => 'oauth-header'), Yii::t('app', 'OAuth 2.0 Credentials'));
echo X2Html::hint2(Yii::t('app', 'Needed for Google Calendar sync, Google login, and Google Drive access.'));
echo '<hr />';
echo CHtml::activeLabel($model, 'clientId');
$model->renderProtectedInput('clientId');
echo CHtml::activeLabel($model, 'clientSecret');
开发者ID:tymiles003,项目名称:X2CRM,代码行数:31,代码来源:_googleProjectForm.php


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