<?php $this->pageTitle=Yii::app()->name . ' - '.Users::t("Change Password"); $this->breadcrumbs=array( Users::t("Profile") => Users::url('profile/cabinet'), Users::t("Change password"), ); ?> <h2><?php echo Users::t("Change password"); ?></h2> <?php if(Y::isGuest()) {$this->widget('GuestMenu');} else {$this->widget('UserMenu');} ?> <div class="form"> <?php $form=$this->beginWidget('UActiveForm', array( 'id'=>'changepassword-form', 'enableAjaxValidation'=>true, )); ?> <p class="note"><?php echo Users::t('Fields with <span class="required">*</span> are required.'); ?></p> <?php echo CHtml::errorSummary($model); ?> <div class="row"> <?php echo $form->labelEx($model,'password'); ?> <?php echo $form->passwordField($model,'password'); ?> <?php echo $form->error($model,'password'); ?> <p class="hint"> <?php echo Users::t("Minimal password length 4 symbols."); ?> </p> </div> <div class="row">
<?php $this->title = Yum::t('Confirm deletion'); $this->breadcrumbs = array( Yum::t('Users') => Users::url('admin'), Yum::t('Delete account')); printf('<h2>%s</h2>', Yum::t('Are you really sure you want to delete your Account?')); printf('<p>%s</p>', Yum::t('Please enter your password to confirm deletion:')); echo CHtml::form(array('delete')); echo CHtml::passwordField('confirmPassword') . "<br />"; echo CHtml::linkButton(Yum::t('Cancel deletion'), array( 'submit' => array('profile'))); echo CHtml::submitButton(Yum::t('Confirm deletion')); echo CHtml::endForm(); ?>
<?php $this->breadcrumbs=array( Users::t('Profile Fields')=>Users::url('profileField/admin'), Users::t('Create Profile Field'), ); ?> <h1><?php echo Users::t('Create Profile Field'); ?></h1> <?php echo $this->renderPartial('_menu',array( 'list'=> array(), )); ?> <?php echo $this->renderPartial('_form', array('model'=>$model)); ?>
<ul class="actions"> <?php if(UserModule::isAdmin()) { ?> <li><?php echo CHtml::link(Users::t('Manage User'),array('/user/admin')); ?></li> <?php } ?> <li><?php echo CHtml::link(Users::t('Profile'),Y::module()->profileUrl); ?></li> <li><?php echo CHtml::link(Users::t('Edit'),Y::module()->editProfileUrl); ?></li> <li><?php echo CHtml::link(Users::t('Change password'),Y::module()->changePassUrl); ?></li> <li><?php echo CHtml::link(Users::t('Logout'),Y::module()->logoutUrl); ?></li> <li><?php echo CHtml::link(Yii::t('interface', 'CreatePost'), Users::url("posts/create",array('lang' => Yii::app()->language, 'add_type'=>'post'))); ?></li> <li><?php echo CHtml::link(Yii::t('interface', 'CreateQuestion'),Users::url("posts/create",array('lang' => Yii::app()->language, 'add_type'=>'question'))); ?></li> </ul>
<ul class="actions"> <li><?php echo CHtml::link(Users::t('Manage User'),Users::url('admin')); ?></li> <li><?php echo CHtml::link(Users::t('Manage Profile Field'),Users::url('profileField/admin')); ?></li> <?php if (isset($list)) { foreach ($list as $item) echo "<li>".$item."</li>"; } ?> </ul><!-- actions -->
<?php /** * Created by Kent M. Patrick * Project: BPU * Company: Fingerprints Ltd * Date: 21/09/2016 * Time: 9:58 AM */ require_once 'header.php'; $db->admin_confirm(); $user = new Users(); $form = new Forms(); $user->url(); if (isset($_POST['submit'])) { switch ($_GET['f']) { case 'create': $user->set_data(); $user->check_data(); if (isset($user->error_count)) { echo "<div class='row'>"; echo "<div class='col-xs-6'>"; $html->title("user management", "create user", "left"); echo "</div>"; echo "<div class='col-xs-6 text-right'>"; $html->button("users.php?f=manage", "back"); $form->button("create", "md", "create"); echo "</div>"; echo "</div>"; $user->user_id = $_GET['f']; $user->form("create");
<?php $this->breadcrumbs=array( Users::t('Profile Fields')=>Users::url('profileField/admin'), Users::t('Manage Profile Field'), ); ?> <h1><?php echo Users::t('Manage Profile Fields'); ?></h1> <?php echo $this->renderPartial('_menu', array( 'list'=> array( CHtml::link(Users::t('Create Profile Field'),Users::url('profileField/create')), ), )); ?> <?php $this->widget('zii.widgets.grid.CGridView', array( 'dataProvider'=>$dataProvider, 'cssFile'=>'/css/grid/styles.css', 'columns'=>array( 'id', 'varname', array( 'name'=>'title', 'value'=>'Users::t($data->title)', ), 'field_type', 'field_size', //'field_size_min', array( 'name'=>'required', 'value'=>'ProfileField::itemAlias("required",$data->required)',
<?php $this->breadcrumbs=array( Users::t('Users')=>Users::url('user/admin'), $model->username, ); ?> <h1><?php echo Users::t('View User').' "'.$model->username.'"'; ?></h1> <?php echo $this->renderPartial('_menu', array( 'list'=> array( CHtml::link(Users::t('Create User'),Users::url('admin/create')), CHtml::link(Users::t('Update User'),Users::url('admin/update',array('id'=>$model->id))), CHtml::linkButton(Users::t('Delete User'),array('submit'=>array('delete','id'=>$model->id),'confirm'=>Users::t('Are you sure to delete this item?'))), ), )); $attributes = array( 'id', 'username', 'password', 'email', 'activkey', array( 'name' => 'createtime', 'value' => date("d.m.Y H:i:s",$model->createtime), ), array( 'name' => 'lastvisit', 'value' => ($model->lastvisit?date("d.m.Y H:i:s",$model->lastvisit):Users::t("Not visited")), ),
<?php $this->breadcrumbs=array( Users::t('Profile Fields')=>Users::url('profileField/admin'), Users::t($model->title), ); ?> <h1><?php echo Users::t('View Profile Field #').$model->varname; ?></h1> <?php echo $this->renderPartial('_menu', array( 'list'=> array( CHtml::link(Users::t('Create Profile Field'),Users::url('profileField/create')), CHtml::link(Users::t('Update Profile Field'),Users::url('profileField/update',array('id'=>$model->id))), CHtml::linkButton(Users::t('Delete Profile Field'),array('submit'=>Users::url('profileField/delete',array('id'=>$model->id)),'confirm'=>'Are you sure to delete this item?')), ), )); ?> <?php $this->widget('zii.components.CDetailView', array( 'data'=>$model, 'attributes'=>array( 'id', 'varname', 'title', 'field_type', 'field_size', 'field_size_min', 'required', 'match', 'range', 'error_message', 'other_validator',
<?php $this->breadcrumbs=array( Users::t('Profile Fields')=>Users::url('profileField/admin'), $model->title=>array('view','id'=>$model->id), Users::t('Update Profile Field'), ); ?> <h1><?php echo Users::t('Update ProfileField ').$model->id; ?></h1> <?php echo $this->renderPartial('_menu', array( 'list'=> array( CHtml::link(Users::t('Create Profile Field'),Users::url('profileField/create')), CHtml::link(Users::t('View Profile Field'),Users::url('profileField/view',array('id'=>$model->id))), ), )); ?> <?php echo $this->renderPartial('_form', array('model'=>$model)); ?>
<?php $this->breadcrumbs=array( (Users::t('Users'))=>array('admin'), $model->username=>array('view','id'=>$model->id), (Users::t('Update User')), ); ?> <h1><?php echo Users::t('Update User')." ".$model->id; ?></h1> <?php echo $this->renderPartial('_menu', array( 'list'=> array( CHtml::link(Users::t('Create User'),Users::url('admin/create')), CHtml::link(Users::t('View User'),Users::url('admin/view',array('id'=>$model->id))), ), )); echo $this->renderPartial('_form', array('model'=>$model,'profile'=>$profile)); ?>
<?php $this->pageTitle=Yii::app()->name . ' - '.Users::t("Restore"); $this->breadcrumbs=array( Users::t("Login") => Users::url('login'), Users::t("Restore"), ); ?> <h1><?php echo Users::t("Restore"); ?></h1> <?php if(Y::hasFlash('recoveryMessage')): ?> <div class="success"> <?php echo Y::flash('recoveryMessage'); ?> </div> <?php else: ?> <div class="form"> <?php echo CHtml::beginForm(); ?> <?php echo CHtml::errorSummary($form); ?> <div class="row"> <?php echo CHtml::activeLabel($form,'login_or_email'); ?> <?php echo CHtml::activeTextField($form,'login_or_email') ?> <p class="hint"><?php echo Users::t("Please enter your login or email addres."); ?></p> </div> <div class="row submit"> <?php echo CHtml::submitButton(Users::t("Restore")); ?> </div> <?php echo CHtml::endForm(); ?>
public function getUrl() { return Users::url('profile', array('id'=>$this->id)); }
<?php $this->breadcrumbs=array( Users::t('Users')=>Users::url('admin'), $model->username, ); ?> <h1><?php echo Users::t('View User').' "'.$model->username.'"'; ?></h1> <ul class="actions"> <li><?php echo CHtml::link(Users::t('List User'),Users::url('admin')); ?></li> </ul><!-- actions --> <?php // For all users $attributes = array( 'username', ); $profileFields=ProfileField::model()->forAll()->sort()->findAll(); if ($profileFields) { foreach($profileFields as $field) { array_push($attributes,array( 'label' => Users::t($field->title), 'name' => $field->varname, 'value' => $model->profile->getAttribute($field->varname), )); } } array_push($attributes, array(
<?php $this->breadcrumbs=array( Users::t('Users')=>Users::url('admin'), Users::t('Manage User'), ); ?> <h1><?php echo Users::t("Manage Users"); ?></h1> <?php echo $this->renderPartial('_menu', array( 'list'=> array( CHtml::link(Users::t('Create User'),Users::url('admin/create')), ), )); ?> <?php $this->renderPartial('admingrid', array('model'=>$model) )?>
private function createUrls($base_urls) { foreach ($base_urls as $var=>$url) { $this->{$var} = Users::url($url); } }