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


PHP UserModule::isAdmin方法代码示例

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


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

示例1: array

<?php

$this->pageTitle = Yii::app()->name . ' - ' . UserModule::t("Profile");
$this->breadcrumbs = array(UserModule::t("Profile"));
$this->menu = array(array('label' => UserModule::t('Manage Users'), 'url' => array('/user/admin/admin'), 'visible' => UserModule::isAdmin()), array('label' => UserModule::t('List Users'), 'url' => array('/user/user/index')), array('label' => UserModule::t('Edit'), 'url' => array('edit')), array('label' => UserModule::t('Change password'), 'url' => array('changepassword')), array('label' => UserModule::t('Logout'), 'url' => array('/user/logout/logout')));
?>
<h1><?php 
echo UserModule::t('Your profile');
?>
</h1>

<?php 
$attributes = array('username', 'email');
$profileFields = ProfileField::model()->forOwner()->sort()->findAll();
if ($profileFields) {
    foreach ($profileFields as $field) {
        array_push($attributes, array('label' => UserModule::t($field->title), 'name' => $field->varname, 'type' => 'raw', 'value' => $field->widgetView($model->profile) ? $field->widgetView($model->profile) : ($field->range ? Profile::range($field->range, $model->profile->getAttribute($field->varname)) : $model->profile->getAttribute($field->varname))));
    }
}
array_push($attributes, 'create_at', 'lastvisit_at', array('name' => 'status', 'value' => User::itemAlias("UserStatus", $model->status)));
$this->widget('bootstrap.widgets.TbDetailView', array('data' => $model, 'attributes' => $attributes));
开发者ID:ttaufikhdy,项目名称:demotwitterapi,代码行数:21,代码来源:profile.php

示例2: array

?>
/css/custom.css">
		<link rel="stylesheet" type="text/css" href="<?php 
echo Yii::app()->request->baseUrl;
?>
/css/bootstrap_custom_navbar.css">
		<link rel="stylesheet" type="text/css" href="<?php 
echo Yii::app()->request->baseUrl;
?>
/css/bootstrap_custom_breadcrumb.css">
	</head>
	<body>
	<div id="wrapper">
		<header>
			<?php 
$this->widget('booster.widgets.TbNavbar', array('brand' => CHtml::encode(Yii::app()->name), 'fixed' => 'top', 'fluid' => true, 'items' => array(array('class' => 'booster.widgets.TbMenu', 'type' => 'navbar', 'items' => array(array('label' => 'Home', 'url' => array('/site/index'), 'active' => true), array('label' => 'About', 'url' => array('/site/page', 'view' => 'about'), 'active' => false), array('label' => 'Contact', 'url' => array('/site/contact'), 'active' => false), array('label' => 'Login', 'url' => array('/user/login'), 'active' => false, 'visible' => Yii::app()->user->isGuest), array('label' => Yii::app()->user->name, 'url' => '#', 'visible' => !Yii::app()->user->isGuest, 'items' => array(array('label' => 'Profile', 'url' => array('/user/profile')), array('label' => 'Account Settings', 'url' => array('/user/profile/edit')), array('label' => 'Rights', 'url' => array('/rights/authItem'), 'visible' => UserModule::isAdmin()), '---', array('label' => 'Logout', 'url' => array('/user/logout'))))), 'htmlOptions' => array('class' => 'navbar-right'))), 'htmlOptions' => array()));
?>
		</header>
		<div class="container">
			<div id="content">			
			<?php 
echo $content;
?>
			</div>
		</div>
		
		<footer>
			<div class="container">
				Copyright &copy;
				<?php 
echo date('Y');
开发者ID:piond,项目名称:new_rsud,代码行数:31,代码来源:main.php

示例3: array

<?php

$this->pageTitle = Yii::app()->name . ' - ' . UserModule::t("Profile");
$this->breadcrumbs = array(UserModule::t("Profile"));
$this->menu = array(UserModule::isAdmin() ? array('label' => UserModule::t('Manage Users'), 'url' => array('/user/admin')) : array(), Yii::app()->getModule('user')->showUserList ? array('label' => UserModule::t('List User'), 'url' => array('/user')) : array(), Yii::app()->getModule('user')->allowUserEditProfile ? array('label' => UserModule::t('Edit'), 'url' => array('edit')) : array(), array('label' => UserModule::t('Change password'), 'url' => array('changepassword')), array('label' => UserModule::t('Logout'), 'url' => array('/user/logout')));
?>
<h1><?php 
echo UserModule::t('Your profile');
?>
</h1>

<?php 
if (Yii::app()->user->hasFlash('profileMessage')) {
    ?>
<div class="success">
	<?php 
    echo Yii::app()->user->getFlash('profileMessage');
    ?>
</div>
<?php 
}
?>
<table class="dataGrid">
	<tr>
		<th class="label"><?php 
echo CHtml::encode($model->getAttributeLabel('username'));
?>
</th>
	    <td><?php 
echo CHtml::encode($model->username);
?>
开发者ID:ivarsju,项目名称:yii-user,代码行数:31,代码来源:profile.php

示例4: array

<?php

$this->pageTitle = Yii::app()->name . ' - ' . UserModule::t("Change password");
$this->breadcrumbs = array(UserModule::t("Profile") => array('/user/profile'), UserModule::t("Change password"));
$this->menu = array(UserModule::isAdmin() ? array('label' => UserModule::t('Manage Users'), 'icon' => 'cog', 'url' => array('/user/admin')) : array(), array('label' => UserModule::t('List User'), 'icon' => 'list', 'url' => array('/user')), array('label' => UserModule::t('Profile'), 'icon' => 'user', 'url' => array('/user/profile')), array('label' => UserModule::t('Edit'), 'icon' => 'pencil', 'url' => array('edit')), array('label' => UserModule::t('Logout'), 'icon' => 'off', 'url' => array('/user/logout')));
?>
<h1 class='title title-dashed'><?php 
echo UserModule::t('Change password');
?>
</h1>

<div class="form">
    <?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'changepassword-form', 'enableAjaxValidation' => true, 'clientOptions' => array('validateOnSubmit' => true)));
?>

    <p class="note"><?php 
echo UserModule::t('Fields with <span class="required">*</span> are required.');
?>
</p>
	<?php 
echo $form->errorSummary($model);
?>

    <div class="row">
	<?php 
echo $form->labelEx($model, 'oldPassword');
?>
	<?php 
echo $form->passwordField($model, 'oldPassword');
?>
开发者ID:zwq,项目名称:unpei,代码行数:31,代码来源:changepassword.php

示例5: ob_start

<?php 
ob_start();
include 'tabs.css';
$css = ob_get_clean();
ob_start();
include 'tabs.js';
$js = ob_get_clean();
Yii::app()->getClientScript()->registerCoreScript('jquery');
Yii::app()->getClientScript()->registerScript('user-tabs', $js);
Yii::app()->getClientScript()->registerCss('user-tabs', $css);
?>

<?php 
$this->pageTitle = Yii::app()->name . ' - ' . UserModule::t("Profile");
$this->breadcrumbs = array(UserModule::t("Profile"));
$this->menu = array(UserModule::isAdmin() ? array('label' => UserModule::t('Manage Users'), 'url' => array('/user/admin')) : array(), array('label' => UserModule::t('Edit'), 'url' => array('edit')), array('label' => UserModule::t('Change password'), 'url' => array('changepassword')), array('label' => UserModule::t('Logout'), 'url' => array('/user/logout')));
?>
<h1><?php 
echo UserModule::t('Your profile');
?>
</h1>

<?php 
if (Yii::app()->user->hasFlash('profileMessage')) {
    ?>
    <div class="success">
        <?php 
    echo Yii::app()->user->getFlash('profileMessage');
    ?>
    </div>
<?php 
开发者ID:rizkyramadhan,项目名称:yii-user,代码行数:31,代码来源:profile.php

示例6: array

<?php

$this->breadcrumbs = array(UserModule::t('Profile Fields') => array('admin'), $model->title => array('view', 'id' => $model->id), UserModule::t('Update'));
$this->menu = array(array('label' => UserModule::t('Create Profile Field'), 'url' => array('create')), array('label' => UserModule::t('View Profile Field'), 'url' => array('view', 'id' => $model->id)), array('label' => UserModule::t('Manage Profile Field'), 'url' => array('admin')), array('label' => UserModule::t('Manage Users'), 'url' => array('/user/admin/admin'), 'visible' => UserModule::isAdmin()));
?>

<h1><?php 
echo UserModule::t('Update Profile Field ') . $model->id;
?>
</h1>
<?php 
echo $this->renderPartial('_form', array('model' => $model));
开发者ID:alsvader,项目名称:hackbanero,代码行数:12,代码来源:update.php

示例7: array

<?php

$this->breadcrumbs = array(UserModule::t('Users') => array('/user'), UserModule::t('Manage'));
$this->menu = array(array('label' => UserModule::t('Create User'), 'url' => array('create')), array('label' => UserModule::t('Manage Users'), 'url' => array('/user/admin/admin'), 'visible' => UserModule::isAdmin()), array('label' => UserModule::t('Manage Profile Field'), 'url' => array('/user/profileField/admin')), array('label' => UserModule::t('List Users'), 'url' => array('/user/user/index')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n    \$('.search-form').toggle();\n    return false;\n});\t\n\$('.search-form form').submit(function(){\n    \$.fn.yiiGridView.update('user-grid', {\n        data: \$(this).serialize()\n    });\n    return false;\n});\n");
?>
<h1><?php 
echo UserModule::t("Manage Users");
?>
</h1>

<p><?php 
echo UserModule::t("You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b> or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.");
?>
</p>

<?php 
echo CHtml::link(UserModule::t('Advanced Search'), '#', array('class' => 'search-button'));
?>
<div class="search-form" style="display:none">
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'user-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array(array('name' => 'id', 'type' => 'raw', 'value' => 'CHtml::link(CHtml::encode($data->id),array("admin/update","id"=>$data->id))'), array('name' => 'username', 'type' => 'raw', 'value' => 'CHtml::link(UHtml::markSearch($data,"username"),array("admin/view","id"=>$data->id))'), array('name' => 'email', 'type' => 'raw', 'value' => 'CHtml::link(UHtml::markSearch($data,"email"), "mailto:".$data->email)'), 'create_at', 'lastvisit_at', array('name' => 'superuser', 'value' => 'User::itemAlias("AdminStatus",$data->superuser)', 'filter' => User::itemAlias("AdminStatus")), array('name' => 'status', 'value' => 'User::itemAlias("UserStatus",$data->status)', 'filter' => User::itemAlias("UserStatus")), array('class' => 'bootstrap.widgets.TbButtonColumn'))));
开发者ID:ttaufikhdy,项目名称:demotwitterapi,代码行数:27,代码来源:index.php

示例8: array

<?php

$this->pageTitle = Yii::app()->name . ' - ' . UserModule::t("Change Password");
$this->breadcrumbs = array(UserModule::t("Profile") => array('/user/profile'), UserModule::t("Change Password"));
$this->menu = array(array('label' => UserModule::t('Manage Users'), 'url' => array('/user/admin/admin'), 'visible' => UserModule::isAdmin()), array('label' => UserModule::t('List Users'), 'url' => array('/user/default/index')), array('label' => UserModule::t('Profile'), 'url' => array('/user/profile/profile')), array('label' => UserModule::t('Edit'), 'url' => array('edit')), array('label' => UserModule::t('Logout'), 'url' => array('/user/logout/logout')));
?>

<h1><?php 
echo UserModule::t("Change password");
?>
</h1>

<?php 
$form = $this->beginWidget('ext.bootstrap.widgets.TbActiveForm', array('type' => 'horizontal', 'id' => 'changepassword-form', 'enableAjaxValidation' => true, 'clientOptions' => array('validateOnSubmit' => true)));
?>

    <fieldset>
        
        <legend><?php 
echo UserModule::t('Fields with <span class="required">*</span> are required.');
?>
</legend>
        
        <?php 
echo $form->errorSummary($model);
?>
        
        <?php 
echo $form->passwordFieldRow($model, 'oldPassword');
?>
        <?php 
开发者ID:ttaufikhdy,项目名称:demotwitterapi,代码行数:31,代码来源:changepassword.php

示例9: rules

 /**
  * @return array validation rules for model attributes.
  */
 public function rules()
 {
     // NOTE: you should only define rules for those attributes that
     // will receive user inputs.
     return UserModule::isAdmin() ? array(array('createtime', 'default', 'value' => time()), array('lastvisit', 'default', 'value' => time()), array('superuser', 'default', 'value' => self::SUPERUSER_OFF), array('password', 'length', 'max' => 128, 'min' => 4, 'message' => UserModule::t("Incorrect password (minimal length 4 symbols).")), array('email', 'unique', 'message' => UserModule::t("This user's email address already exists.")), array('email', 'email'), array('status', 'in', 'range' => array(self::STATUS_NOACTIVE, self::STATUS_ACTIVE)), array('superuser', 'in', 'range' => array(0, 1)), array('email, superuser, status', 'required'), array('newPassword, verifyPassword, lastname, firstname', 'required'), array('verifyPassword', 'compare', 'compareAttribute' => 'newPassword', 'message' => UserModule::t("Retype Password is incorrect.")), array('user_id, email, firstname, lastname', 'safe', 'on' => 'search'), array('user_id, email, firstname, lastname', 'safe')) : (Yii::app()->user->id == $this->user_id ? array(array('email, password', 'required'), array('email', 'unique', 'message' => UserModule::t("This user's email address already exists.")), array('email', 'email'), array('email', 'unique', 'message' => UserModule::t("This user's email address already exists.")), array('user_id, email, firstname, lastname', 'safe', 'on' => 'search'), array('user_id, email, firstname, lastname', 'safe')) : array());
 }
开发者ID:andreyantonov78,项目名称:atmosphera,代码行数:9,代码来源:User.php

示例10: actionView

 /**
  * Displays a particular model.
  */
 public function actionView()
 {
     $this->layout = '';
     $model = $this->loadModel();
     //update record
     if (isset($_POST['user_role_name']) || isset($_POST['user_sys_ccmp_id'])) {
         //cheked roles
         $aChecked = Authassignment::model()->getUserRoles($model->id);
         //get in form checked
         $aPostRole = array();
         if (isset($_POST['user_role_name'])) {
             foreach ($_POST['user_role_name'] as $nRoleId) {
                 $aPostRole[] = $nRoleId;
             }
         }
         $aDelRole = array_diff($aChecked, $aPostRole);
         $aNewRole = array_diff($aPostRole, $aChecked);
         $UserAdminRoles = Yii::app()->getModule('user')->UserAdminRoles;
         foreach ($aNewRole as $sRoleName) {
             // can not add no User Admin roles defined in main config
             if (!in_array($sRoleName, $UserAdminRoles)) {
                 continue;
             }
             $aa_model = new Authassignment();
             $aa_model->itemname = $sRoleName;
             $aa_model->userid = $model->id;
             if (!$aa_model->save()) {
                 print_r($aa_model->errors);
                 exit;
             }
         }
         if (!empty($aDelRole)) {
             Authassignment::model()->deleteAll("`userid` = :userid AND itemname in('" . implode("','", $aDelRole) . "')", array(':userid' => $model->id));
         }
         //checked companies
         $aUserCompanies = CcucUserCompany::model()->getUserCompnies($model->id, CcucUserCompany::CCUC_STATUS_SYS);
         $aChecked = array();
         foreach ($aUserCompanies as $UC) {
             $aChecked[] = $UC->ccuc_ccmp_id;
         }
         //get in form checked
         $aPostSysCcmp = array();
         if (isset($_POST['user_sys_ccmp_id'])) {
             foreach ($_POST['user_sys_ccmp_id'] as $ccmp_id) {
                 $aPostSysCcmp[] = $ccmp_id;
             }
         }
         $aDelSysCcmpid = array_diff($aChecked, $aPostSysCcmp);
         $aNewSysCcmpid = array_diff($aPostSysCcmp, $aChecked);
         $list = array();
         if (UserModule::isAdmin()) {
             //for admin get all sys companies
             $criteria = new CDbCriteria();
             $criteria->compare('t.ccxg_ccgr_id', 1);
             //1 - syscompany
             $model_ccxg = CcxgCompanyXGroup::model()->findAll($criteria);
             foreach ($model_ccxg as $mCcxg) {
                 $list[$mCcxg->ccxg_ccmp_id] = 1;
             }
         } else {
             foreach (Yii::app()->sysCompany->getClientCompanies() as $mCcmp) {
                 $list[$mCcmp->ccucCcmp->ccmp_id] = 1;
             }
         }
         foreach ($aNewSysCcmpid as $cmmp_id) {
             // can not add no User Admin sys ccmp
             if (!isset($list[$cmmp_id])) {
                 continue;
             }
             //create ccuc (company <==> person)
             $mCcuc = new CcucUserCompany();
             $mCcuc->ccuc_ccmp_id = $cmmp_id;
             $mCcuc->ccuc_status = CcucUserCompany::CCUC_STATUS_SYS;
             $mCcuc->ccuc_person_id = $model->profile->person_id;
             $mCcuc->save();
             if (!$mCcuc->save()) {
                 print_r($mCcuc->errors);
                 exit;
             }
         }
         if (!empty($aDelSysCcmpid)) {
             CcucUserCompany::model()->deleteAll("`ccuc_status` = :ccuc_status " . " AND `ccuc_person_id` = :ccuc_person_id " . " AND ccuc_ccmp_id in('" . implode("','", $aDelSysCcmpid) . "')", array(':ccuc_person_id' => $model->profile->person_id, ':ccuc_status' => CcucUserCompany::CCUC_STATUS_SYS));
         }
     }
     $view = 'view';
     if (Yii::app()->getModule('user')->view) {
         $alt_view = Yii::app()->getModule('user')->view . '.admin.' . $view;
         if (is_readable(Yii::getPathOfAlias($alt_view) . '.php')) {
             $view = $alt_view;
             $this->layout = Yii::app()->getModule('user')->layout;
         }
     }
     $model = $this->loadModel();
     $this->render($view, array('model' => $model));
 }
开发者ID:ivarsju,项目名称:yii-user,代码行数:98,代码来源:AdminController.php

示例11: actionView

 /**
  * Displays a particular model.
  */
 public function actionView()
 {
     $this->layout = '';
     $model = $this->loadModel();
     //update record
     if (Yii::app()->user->checkAccess("UserAdmin") && (isset($_POST['user_role_name']) || isset($_POST['user_sys_ccmp_id']) || isset($_POST['ip_tables']))) {
         //cheked roles
         $aChecked = Authassignment::model()->getUserRoles($model->id);
         $admin_role = Yii::app()->getModule('rights')->superuserName;
         //for administrator can not save changes of roles
         if (!in_array($admin_role, $aChecked)) {
             //get in form checked
             $aPostRole = array();
             if (isset($_POST['user_role_name'])) {
                 foreach ($_POST['user_role_name'] as $nRoleId) {
                     $aPostRole[] = $nRoleId;
                 }
             }
             $aDelRole = array_diff($aChecked, $aPostRole);
             $aNewRole = array_diff($aPostRole, $aChecked);
             $UserAdminRoles = Yii::app()->getModule('user')->UserAdminRoles;
             foreach ($aNewRole as $sRoleName) {
                 // can not add no User Admin roles defined in main config
                 if (!in_array($sRoleName, $UserAdminRoles)) {
                     continue;
                 }
                 $aa_model = new Authassignment();
                 $aa_model->itemname = $sRoleName;
                 $aa_model->userid = $model->id;
                 if (!$aa_model->save()) {
                     print_r($aa_model->errors);
                     exit;
                 }
             }
             if (!empty($aDelRole)) {
                 $criteria = new CDbCriteria();
                 $criteria->compare('userid', $model->id)->compare('itemname', $aDelRole);
                 Authassignment::model()->deleteAll($criteria);
             }
         }
         //checked companies
         $aUserCompanies = CcucUserCompany::model()->getUserCompnies($model->id, CcucUserCompany::CCUC_STATUS_SYS);
         $aChecked = array();
         foreach ($aUserCompanies as $UC) {
             $aChecked[] = $UC->ccuc_ccmp_id;
         }
         //get in form checked
         $aPostSysCcmp = array();
         if (isset($_POST['user_sys_ccmp_id'])) {
             foreach ($_POST['user_sys_ccmp_id'] as $ccmp_id) {
                 $aPostSysCcmp[] = $ccmp_id;
             }
         }
         $aDelSysCcmpid = array_diff($aChecked, $aPostSysCcmp);
         $aNewSysCcmpid = array_diff($aPostSysCcmp, $aChecked);
         $list = array();
         if (UserModule::isAdmin()) {
             //for admin get all sys companies
             $criteria = new CDbCriteria();
             $criteria->compare('t.ccxg_ccgr_id', 1);
             //1 - syscompany
             $model_ccxg = CcxgCompanyXGroup::model()->findAll($criteria);
             foreach ($model_ccxg as $mCcxg) {
                 $list[$mCcxg->ccxg_ccmp_id] = 1;
             }
         } else {
             foreach (Yii::app()->sysCompany->getClientCompanies() as $mCcmp) {
                 $list[$mCcmp['ccmp_id']] = 1;
             }
         }
         foreach ($aNewSysCcmpid as $cmmp_id) {
             // can not add no User Admin sys ccmp
             if (!isset($list[$cmmp_id])) {
                 continue;
             }
             //create ccuc (company <==> person)
             $mCcuc = new CcucUserCompany();
             $mCcuc->ccuc_ccmp_id = $cmmp_id;
             $mCcuc->ccuc_status = CcucUserCompany::CCUC_STATUS_SYS;
             $mCcuc->ccuc_person_id = $model->profile->person_id;
             //$mCcuc->save();
             if (!$mCcuc->save()) {
                 print_r($mCcuc->errors);
                 exit;
             }
         }
         if (!empty($aDelSysCcmpid)) {
             $criteria = new CDbCriteria();
             $criteria->compare('ccuc_status', CcucUserCompany::CCUC_STATUS_SYS)->compare('ccuc_person_id', $model->profile->person_id)->compare('ccuc_ccmp_id', $aDelSysCcmpid);
             CcucUserCompany::model()->deleteAll($criteria);
         }
         $security_policy = Yii::app()->getModule('user')->SecurityPolicy;
         if ($security_policy['useIpTables']) {
             UxipUserXIpTable::model()->deleteAll("`uxip_user_id` = :uxip_user_id ", [':uxip_user_id' => $model->id]);
             if (!empty($_POST['ip_tables'])) {
                 foreach ($_POST['ip_tables'] as $ip) {
                     $Iptb = new UxipUserXIpTable();
//.........这里部分代码省略.........
开发者ID:uldisn,项目名称:yii-user,代码行数:101,代码来源:AdminController.php

示例12: array

<?php
$this->breadcrumbs=array(
	UserModule::t('Users')=>array('/user'),
	UserModule::t('Manage'),
);

$this->menu=array(
    array('label'=>UserModule::t('Create User'), 'url'=>array('create')),
    array('label'=>UserModule::t('Manage Users'), 'url'=>array('/user/admin/admin'), 'visible'=>UserModule::isAdmin()),
    array('label'=>UserModule::t('Manage Profile Field'), 'url'=>array('/user/profileField/admin')),
    array('label'=>UserModule::t('List Users'), 'url'=>array('/user/user/index')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
    $('.search-form').toggle();
    return false;
});	
$('.search-form form').submit(function(){
    $.fn.yiiGridView.update('user-grid', {
        data: $(this).serialize()
    });
    return false;
});
");

?>
<h1><?php echo UserModule::t("Manage Users"); ?></h1>

<p><?php echo UserModule::t("You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b> or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done."); ?></p>
开发者ID:alsvader,项目名称:hackbanero,代码行数:30,代码来源:index.php

示例13: array

<?php

$this->breadcrumbs = array(UserModule::t('Profile Fields') => array('admin'), UserModule::t('Create'));
$this->menu = array(array('label' => UserModule::t('Manage Profile Field'), 'url' => array('admin')), array('label' => UserModule::t('Manage Users'), 'url' => array('/user/admin/admin'), 'visible' => UserModule::isAdmin()));
?>
<h1><?php 
echo UserModule::t('Create Profile Field');
?>
</h1>
<?php 
echo $this->renderPartial('_form', array('model' => $model));
开发者ID:ttaufikhdy,项目名称:demotwitterapi,代码行数:11,代码来源:create.php

示例14: array

                    <td style="text-align: right;"><img style="width:150px;height:45px;"src="<?php 
echo Yii::app()->request->baseUrl;
?>
/images/logo.png">
                    </td>
                </tr>
            </table>


        </div>

    </div><!-- header -->

    <div id="mainmenu">
        <?php 
$this->widget('zii.widgets.CMenu', array('items' => array(array('label' => 'Rights', 'url' => array('/rights'), 'visible' => UserModule::isAdmin()), array('label' => 'Users', 'url' => array('/user/admin/search'), 'visible' => UserModule::isAdmin()), array('label' => 'All Calls', 'url' => array('/servicecalls/admin'), 'visible' => UserModule::isAdmin()), array('label' => 'Servicecalls', 'url' => array('/servicecalls/mycalls'), 'visible' => !Yii::app()->user->isGuest), array('label' => 'My Account', 'url' => array('/user/profile'), 'visible' => !Yii::app()->user->isGuest), array('label' => 'Login', 'url' => array('/user/login'), 'visible' => Yii::app()->user->isGuest), array('label' => 'Logout (' . Yii::app()->user->name . ')', 'url' => array('/site/logout'), 'visible' => !Yii::app()->user->isGuest))));
?>
    </div><!-- mainmenu -->
    <?php 
if (isset($this->breadcrumbs)) {
    ?>
        <?php 
    $this->widget('zii.widgets.CBreadcrumbs', array('links' => $this->breadcrumbs));
    ?>
<!-- breadcrumbs -->
    <?php 
}
?>

    <?php 
echo $content;
开发者ID:sudeeptalati,项目名称:AmicaEngineerPortal,代码行数:31,代码来源:main.php

示例15: array

<?php

$this->pageTitle = Yii::app()->name . ' - ' . UserModule::t("Change Password");
$this->breadcrumbs = array(UserModule::t("Profile") => array('/user/profile'), UserModule::t("Change Password"));
$this->menu = array(UserModule::isAdmin() ? array('label' => UserModule::t('Manage Users'), 'url' => array('/user/admin')) : array(), array('label' => UserModule::t('List User'), 'url' => array('/user')), array('label' => UserModule::t('Profile'), 'url' => array('/user/profile')), array('label' => UserModule::t('Edit'), 'url' => array('edit')), array('label' => UserModule::t('Logout'), 'url' => array('/user/logout')));
?>

<h1><?php 
echo UserModule::t("Change password");
?>
</h1>

<div class="form">
<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'changepassword-form', 'enableAjaxValidation' => true, 'clientOptions' => array('validateOnSubmit' => true)));
?>

	<p class="note"><?php 
echo UserModule::t('Fields with <span class="required">*</span> are required.');
?>
</p>
	<?php 
echo $form->errorSummary($model);
?>
	
	<div class="row">
	<?php 
echo $form->labelEx($model, 'password');
?>
	<?php 
echo $form->passwordField($model, 'password');
开发者ID:ShawnWQ,项目名称:yii-user,代码行数:31,代码来源:changepassword.php


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