protected function renderButton($label, $htmlOptions) { if (is_string($htmlOptions)) { $label = $htmlOptions; $htmlOptions = array(); } if (isset($htmlOptions['type']) && $htmlOptions['type'] == 'link') { $htmlOptions['class'] = 'limebutton'; echo CHtml::linkButton($label, $htmlOptions); } else { echo CHtml::submitButton($label, $htmlOptions); } }
<?php if (Yii::app()->user->checkAccess('AdminNavigationCreate')) { ?> <?php echo CHtml::link(Yii::t('app', 'Добавить подпункт'), $this->createUrl('pro/create', array('parent_id' => $tree['id']))); ?> <?php } ?> </li> <li> <?php if (Yii::app()->user->checkAccess('AdminNavigationDelete') && $tree['tree_level'] != (int) TRUE) { ?> <?php echo CHtml::linkButton(Yii::t('app', 'Удалить'), array('submit' => array('pro/delete/', 'id' => $tree['id']), 'params' => array(Yii::app()->request->csrfTokenName => Yii::app()->request->csrfToken), 'confirm' => Yii::t('app', 'Удалить пункт? Если пункт имеет подпункты, то они также будут удалены'))); ?> <?php } ?> </li> </ul> </div> </td> </tr> <?php } ?> </tbody> </table> </div>
/** * Creates the button element. * @return string the created button. */ protected function createButton() { switch ($this->buttonType) { case self::BUTTON_BUTTON: return CHtml::htmlButton($this->label, $this->htmlOptions); case self::BUTTON_SUBMIT: $this->htmlOptions['type'] = 'submit'; return CHtml::htmlButton($this->label, $this->htmlOptions); case self::BUTTON_RESET: $this->htmlOptions['type'] = 'reset'; return CHtml::htmlButton($this->label, $this->htmlOptions); case self::BUTTON_SUBMITLINK: return CHtml::linkButton($this->label, $this->htmlOptions); case self::BUTTON_AJAXLINK: return CHtml::ajaxLink($this->label, $this->url, $this->ajaxOptions, $this->htmlOptions); case self::BUTTON_AJAXBUTTON: $this->ajaxOptions['url'] = $this->url; $this->htmlOptions['ajax'] = $this->ajaxOptions; return CHtml::htmlButton($this->label, $this->htmlOptions); case self::BUTTON_AJAXSUBMIT: $this->ajaxOptions['type'] = 'POST'; $this->ajaxOptions['url'] = $this->url; $this->htmlOptions['type'] = 'submit'; $this->htmlOptions['ajax'] = $this->ajaxOptions; return CHtml::htmlButton($this->label, $this->htmlOptions); default: case self::BUTTON_LINK: return CHtml::link($this->label, $this->url, $this->htmlOptions); } }
<?php echo $form->error($model, 'description'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'bizrule'); ?> <?php echo $form->textArea($model, 'bizrule', array('rows' => 6, 'cols' => 50)); ?> <?php echo $form->error($model, 'bizrule'); ?> </div> <div class="row buttons"> <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); echo CHtml::linkButton('Cancel', array('href' => array('permission/roles'))); ?> </div> <?php $this->endWidget(); ?> </div><!-- form -->
if ($value->redactor != NULL) { echo $value->redactor->username; } ?> </td> <td style="padding-left: 15px; padding-right: 5px;"> <a href="<?php echo $this->createUrl('conditions/view/id/' . $value->id); ?> ">Просмотреть</a> <a href="<?php echo $this->createUrl('conditions/create/action/edit/id/' . $value->id); ?> ">Редактировать</a> <?php echo CHtml::linkButton('Удалить', array('submit' => array('conditions/delete', 'id' => $value->id), 'params' => array('YII_CSRF_TOKEN' => Yii::app()->request->csrfToken), 'confirm' => "Удалить условие?")); ?> </td> </tr> <?php } ?> <?php } ?> </tbody> </table> <br /><?php
<?php if (Yii::app()->user->checkAccess('AdminPagesPageEdit') && (Yii::app()->user->username == Yii::app()->params['superAdminInfo']['username'] || $page->is_edit_admin)) { ?> <?php echo CHtml::link('<i class="glyphicon glyphicon-pencil"></i>', $this->createUrl('lite/edit', array('id' => $page->id)), array('class' => 'btn green-seagreen tooltips', 'data-container' => 'body', 'data-placement' => 'bottom', 'data-original-title' => Yii::t('app', 'Редактировать'))); ?> <?php } ?> <?php if (Yii::app()->user->checkAccess('AdminPagesPageDelete') && (Yii::app()->user->username == Yii::app()->params['superAdminInfo']['username'] || $page->is_edit_admin)) { ?> <?php echo CHtml::linkButton('<i class="glyphicon glyphicon-remove"></i>', array('submit' => array('lite/delete', 'id' => $page->id), 'params' => array('YII_CSRF_TOKEN' => Yii::app()->request->csrfToken), 'confirm' => Yii::t('app', 'Удалить страницу ?'), 'class' => 'btn red tooltips', 'data-container' => 'body', 'data-placement' => 'bottom', 'data-original-title' => Yii::t('app', 'Удалить'))); ?> <?php } ?> </td> </tr> <?php } ?> </tbody> </table> </div> <?php $this->widget('CLinkPager', array('pages' => $pages, 'nextPageLabel' => '<i class="fa fa-angle-double-right"></i>', 'prevPageLabel' => '<i class="fa fa-angle-double-left"></i>', 'header' => '', 'selectedPageCssClass' => 'active', 'htmlOptions' => array('class' => 'pagination'))); ?>
/** * Returns the markup for the revoke assignment link. * @return string the markup. */ public function getRevokeAssignmentLink() { return CHtml::linkButton(Rights::t('core', 'Revoke'), array('submit' => array('assignment/revoke', 'id' => $this->userId, 'name' => $this->owner->name), 'class' => 'revoke-link', 'csrf' => Yii::app()->request->enableCsrfValidation)); }
/** * Creates a button the of given type. * @param string $type the button type. * @param string $label the button label. * @param array $htmlOptions additional HTML attributes. * @return string the button. * @throws CException if the button type is valid. */ protected static function createButton($type, $label, $htmlOptions) { $url = TbArray::popValue('url', $htmlOptions, '#'); $ajaxOptions = TbArray::popValue('ajaxOptions', $htmlOptions, array()); switch ($type) { case self::BUTTON_TYPE_HTML: return parent::htmlButton($label, $htmlOptions); case self::BUTTON_TYPE_SUBMIT: $htmlOptions['type'] = 'submit'; return parent::htmlButton($label, $htmlOptions); case self::BUTTON_TYPE_RESET: $htmlOptions['type'] = 'reset'; return parent::htmlButton($label, $htmlOptions); case self::BUTTON_TYPE_IMAGE: return parent::imageButton($label, $htmlOptions); case self::BUTTON_TYPE_LINKBUTTON: return parent::linkButton($label, $htmlOptions); case self::BUTTON_TYPE_AJAXLINK: return parent::ajaxLink($label, $url, $ajaxOptions, $htmlOptions); case self::BUTTON_TYPE_AJAXBUTTON: $htmlOptions['ajax'] = $ajaxOptions; return parent::htmlButton($label, $htmlOptions); case self::BUTTON_TYPE_INPUTBUTTON: return parent::button($label, $htmlOptions); case self::BUTTON_TYPE_INPUTSUBMIT: $htmlOptions['type'] = 'submit'; return parent::button($label, $htmlOptions); case self::BUTTON_TYPE_LINK: return self::link($label, $url, $htmlOptions); default: throw new CException('Invalid button type "' . $type . '".'); } }
<div class="photo"><?php if ($m->photo) { echo CHtml::link($m->photo->img(array("w" => "100")), array('view', 'id' => $m->id)); } ?> </div> <div class="title" style="bottom:55px; text-align:left"><?php echo CHtml::encode($m->name); ?> </div> <div class="pay" style="bottom:30px;"><?php echo str_replace(' ', '<i style="padding:0 .1em;"></i>', number_format($m->price, 0, ',', ' ')); ?> </div> <div><?php echo CHtml::linkButton(CartModule::t('Delete Relation', 'product'), array('submit' => array('delrel', 'pid' => $model->id, 'pr_id' => $m->id), 'confirm' => CartModule::t('Are you sure to delete this relation?', 'product'))); ?> </div> </div> <?php } ?> <div class="row buttons"> <?php echo CHtml::submitButton($model->isNewRecord ? CartModule::t('Create') : CartModule::t('Save')); ?> </div>
echo Yii::t('app', 'Просмотр пункта'); ?> : <?php echo CHtml::encode($modelNavigationLang->title); ?> </h3> <div class="tools"> <a href="<?php echo $this->createUrl('edit', array('id' => $modelNavigation->id)); ?> "><i class="fa fa-pencil"></i></a> <?php echo CHtml::form('', 'post', array('style' => 'padding: 0; display: inline; margin-left: 5px;')); ?> <?php echo CHtml::linkButton('<i class="fa fa-times"></i>', array('submit' => array('delete', 'id' => $modelNavigation->id), 'params' => array(Yii::app()->request->csrfTokenName => Yii::app()->request->csrfToken), 'confirm' => Yii::t('app', 'Удалить пункт меню? Если пункт имеет подпункты, то они также будут удалены.'))); ?> <?php echo CHtml::endForm(); ?> </div> </div> <div class="portlet-body"> <div class="row"> <div class="col-md-3 text-right"><?php echo CHtml::encode($modelNavigation->getAttributeLabel('id')); ?> </div> <div class="col-md-9"><?php echo CHtml::encode($modelNavigation->id); ?>
<?php echo CHtml::link(CHtml::encode('Просмотр'), array('view', 'id' => $modelsCategory->id)); echo '</br>'; ?> <?php echo CHtml::link(CHtml::encode('Редактирование'), array('update', 'id' => $modelsCategory->id)); echo '</br>'; ?> <?php echo CHtml::link(CHtml::encode('Перейти в категорию'), array('/admin/uploads/default/index', 'id' => $modelsCategory->id)); echo '</br>'; ?> <?php echo CHtml::linkButton('Удалить', array('submit' => array('delete', 'id' => $modelsCategory->id), 'params' => array('YII_CSRF_TOKEN' => Yii::app()->request->csrfToken), 'confirm' => "Удалить категорию ?")); ?> </br> </td> </tr> <?php } ?> </tbody> </table>
?> <h1><?php echo Yii::t("UserModule.user", 'View Profile Field #') . $model->varname; ?> </h1> <ul class="actions"> <li><?php echo CHtml::link(Yii::t("UserModule.user", 'Manage User'), array('user/admin')); ?> </li> <li><?php echo CHtml::link(Yii::t("UserModule.user", 'Create Profile Field'), array('create')); ?> </li> <li><?php echo CHtml::link(Yii::t("UserModule.user", 'Update Profile Field'), array('update', 'id' => $model->id)); ?> </li> <li><?php echo CHtml::linkButton(Yii::t("UserModule.user", 'Delete Profile Field'), array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure to delete this item?')); ?> </li> <li><?php echo CHtml::link(Yii::t("UserModule.user", 'Manage Profile Field'), array('admin')); ?> </li> </ul><!-- actions --> <?php $this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('id', 'varname', 'title', 'field_type', 'field_size', 'field_size_min', 'required', 'match', 'range', 'error_message', 'other_validator', 'default', 'position', 'visible')));
<div class="div_actions"> <?php echo CHtml::form(); ?> <?php echo CHtml::hiddenField('id', $model->id); ?> <?php if (Yii::app()->user->checkAccess('pperm_manage_bugs', array('project_id' => Yii::app()->user->getCurProjectId()))) { echo CHtml::link('Comment/Change', '#', array('id' => 'link-make-changes')); echo CHtml::linkButton('Delete Bug', array('submit' => Yii::app()->createUrl('bug/delete'), 'confirm' => "Are you sure you want to permanently delete the bug #" . $model->id . "?")); } ?> <?php echo CHtml::endForm(); ?> </div> </div> <div class="span-27 last" id="<?php if ($model->status <= Bug::STATUS_OPEN_MAX) { echo 'bug-header'; } else {
echo $this->createUrl('view', array('id' => $modelWalletsPurpose->id)); ?> " class="btn blue-steel"> <i class="glyphicon glyphicon-eye-open"></i> </a> <a href="<?php echo $this->createUrl('update', array('id' => $modelWalletsPurpose->id)); ?> " class="btn green-seagreen"> <i class="glyphicon glyphicon-pencil"></i> </a> <?php echo CHtml::form('', 'post', array('class' => 'btn', 'style' => 'padding: 0;')); ?> <?php echo CHtml::linkButton('<button class="btn red"><i class="glyphicon glyphicon-remove"></i></button>', array('submit' => array('delete', 'id' => $modelWalletsPurpose->id), 'params' => array(Yii::app()->request->csrfTokenName => Yii::app()->request->csrfToken), 'confirm' => "Удалить данное назначение кошелька? Данное действие может привести к невозможности выполнять финаносовые операции.")); ?> <?php echo CHtml::endForm(); ?> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div>
<?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(); ?>
"></a> <?php echo CHtml::form('', 'post', array('style' => 'display: inline')); ?> <?php echo CHtml::linkButton('', array('submit' => array($typesName . '/download/'), 'class' => 'glyphicon glyphicon-cloud-download ', 'title' => 'Загрузить ' . $objectName, 'params' => array(Yii::app()->request->csrfTokenName => Yii::app()->request->csrfToken, 'btnDownload' => 'download', 'name' => $object['name'], 'version' => $object['version']), 'confirm' => "Загрузить " . $objectName . "?")); ?> <?php echo CHtml::endForm(); ?> <?php echo CHtml::form('', 'post', array('style' => 'display: inline')); ?> <?php echo CHtml::linkButton('', array('submit' => array($typesName . '/download/isAuto/' . DefaultController::installTypeInstall), 'class' => 'glyphicon glyphicon-save', 'title' => 'Загрузить и установить', 'params' => array(Yii::app()->request->csrfTokenName => Yii::app()->request->csrfToken, 'btnDownload' => 'download', 'name' => $object['name'], 'version' => $object['version']), 'confirm' => "Загрузить и установить {$objectName}?\n" . $ObjectName . " будет установлен без возможности изменить путь.")); ?> <?php echo CHtml::endForm(); ?> <?php if ($this->isInstalled($object['type'], $object['name'], $objectInstalled)) { ?> <?php if ($objectInstalled['version'] == $object['version']) { ?> <span class="label label-sm label-success">Уже установлен</span> <?php } else { ?> <span class="label label-sm label-success">Уже установлен версия <?php
<?php } else { echo Yii::t('app', 'Отсутствует'); ?> <?php } ?> </div> <?php echo CHtml::link(Yii::t('app', 'Изменить'), 'javascript:void(0)', array('id' => 'td_upload_link_change', 'style' => 'display: block;')); ?> <?php if ($post->attachment != NULL && $post->attachment->secret_name != null) { ?> <?php echo CHtml::linkButton(Yii::t('app', 'Удалить'), array('submit' => array('deletepicture', 'id' => $post->id), 'params' => array('YII_CSRF_TOKEN' => Yii::app()->request->csrfToken), 'confirm' => Yii::t('app', 'Удалить картинку?'))); ?> <?php } ?> <div style="display: none;" id="td_upload_form_block"> <?php echo CHtml::fileField('blog', null, array('class' => 'normal')); ?> </div> <?php echo CHtml::link(Yii::t('app', 'Отмена'), 'javascript:void(0)', array('id' => 'td_upload_link_cancel', 'style' => 'display: none;')); ?> <?php } else { ?>
<div class="portlet box blue-steel"> <div class="portlet-title"> <h3 class="caption"> <i class="glyphicon glyphicon-eye-open" style="margin-right: 10px;"></i> Просмотр назначения кошелька </h3> <div class="tools"> <a href="<?php echo $this->createUrl('update', array('id' => $data->id)); ?> "><i class="fa fa-pencil"></i></a> <?php echo CHtml::form('', 'post', array('style' => 'padding: 0; display: inline; margin-left: 5px;')); ?> <?php echo CHtml::linkButton('<i class="fa fa-times"></i>', array('submit' => array('delete', 'id' => $data->id), 'params' => array(Yii::app()->request->csrfTokenName => Yii::app()->request->csrfToken), 'confirm' => "Удалить данное назначение кошелька? Данное действие может привести к невозможности выполнять финаносовые операции.")); ?> <?php echo CHtml::endForm(); ?> </div> </div> <div class="portlet-body"> <div class="row" style="margin-top: 30px;"> <div class="col-md-3" style="text-align: right"> <h4 class="h4-label"><?php echo CHtml::encode($data->getAttributeLabel('id')); ?> </h4> </div> <div class="col-md-9"> <h4><?php
} ?> <?php if (Yii::app()->user->checkAccess('AdminReviewsReviewsEdit')) { ?> <?php echo CHtml::link('<button class="btn green-seagreen"><i class="glyphicon glyphicon-pencil"></i></button>', $this->createUrl('reviews/create', array('action' => 'edit', 'id' => $review->id))); ?> <?php } ?> <?php if (Yii::app()->user->checkAccess('AdminReviewsReviewsDeletereviews')) { ?> <?php echo CHtml::linkButton('<button class="btn red"><i class="glyphicon glyphicon-remove"></i></button>', array('submit' => array('reviews/deletereviews', 'id' => $review->id), 'params' => array('YII_CSRF_TOKEN' => Yii::app()->request->csrfToken), 'confirm' => Yii::t('app', 'Удалить отзыв?'))); ?> <?php } ?> </td> </tr> <?php } ?> </tbody> </table> </div> <?php
<tr class="<?php echo $i++ % 2 ? 'even' : 'odd'; ?> "> <td><?php echo CHtml::link(CHtml::image($url, 'image', array($whtext => $bb)), $url, array('class' => 'highslide')); ?> </td> <td><?php echo CHtml::tag('a', array('id' => $id), CHtml::encode($file)); ?> <td><?php echo date('F j, Y', filectime($current . $file)); ?> </td> <td><?php echo CHtml::linkButton('Delete', array('submit' => array('image/delete', 'name' => $file), 'confirm' => "Are you sure to delete this image?")); ?> </td> </tr> <?php } ?> </table> <br/> <?php //$this->widget('CLinkPager',array('pages'=>$pages)); ?> <!-- $Id$ -->
echo $form->textField($model, 'jumlahpinjaman', array('class' => 'span2 numbersOnly', 'onkeyup' => 'setsisa();')); ?> </div> </div> <div class="mws-form-row"> <?php echo $form->labelEx($model, 'lamapinjambln'); ?> <div class="mws-form-item "> <?php echo $form->textField($model, 'lamapinjambln', array('onkeypress' => 'return $(this).focusNextInputField(event);', 'class' => 'span2 numbersOnly', 'style' => 'vertical-align:top;')); ?> <?php echo CHtml::linkButton('<span class="mws-ic ic-add" style="vertical-align:bottom;"></span>', array('onclick' => 'submitPinjam();return false;', 'style' => 'text-decoration:none;')); ?> </div> </div> <div class="mws-form-row"> <?php echo $form->labelEx($model, 'persenpinjaman'); ?> <div class="mws-form-item "> <div class="input-append"> <?php echo $form->textField($model, 'persenpinjaman', array('onkeypress' => 'return $(this).focusNextInputField(event);', 'class' => 'digit2 numbersOnly', 'style' => 'float:left;')); ?>
/** * @dataProvider providerLinkButton * * @param string $label * @param array $htmlOptions * @param string $assertion * @param string $clientScriptOutput */ public function testLinkButton($label, $htmlOptions, $assertion, $clientScriptOutput) { $this->assertEquals($assertion, CHtml::linkButton($label, $htmlOptions)); $output = ''; Yii::app()->getClientScript()->renderBodyEnd($output); $this->assertTrue(mb_strpos($output, $clientScriptOutput) !== false); }
/** * generates a link or button to the page where you translate the missing translations found in this page * * @param string $label label of the link * @param string $type accepted types are : link and button * @return string */ function translateLink($label = 'Translate', $type = 'link') { $form = CHtml::form(Yii::app()->getController()->createUrl('/translate/translate/index')); if (count(self::$messages)) { foreach (self::$messages as $index => $message) { foreach ($message as $name => $value) { $form .= CHtml::hiddenField(self::ID . "-missing[{$index}][{$name}]", $value); } } } if ($type === 'button') { $form .= CHtml::submitButton($label); } else { $form .= CHtml::linkButton($label); } $form .= CHtml::endForm(); return $form; }
echo CHtml::encode($category_file->date); ?> </td> <td> <?php echo CHtml::link(CHtml::encode('Просмотр'), array('view', 'id' => $category_file->id)); echo '</br>'; ?> <?php echo CHtml::link(CHtml::encode('Редактирование'), array('update', 'id' => $category_file->id)); echo '</br>'; ?> <?php echo CHtml::linkButton('Удалить', array('submit' => array('delete', 'id' => $category_file->id), 'params' => array('YII_CSRF_TOKEN' => Yii::app()->request->csrfToken), 'confirm' => "Удалить файл ?")); ?> </br> </td> <td> <?php echo $form->checkBox($category_file, 'deleted', array('name' => get_class($category_file) . '[' . $key . '][deleted]')); ?> <?php echo $form->hiddenField($category_file, 'id', array('value' => $category_file->id, 'name' => get_class($category_file) . '[' . $key . '][id]')); ?> </td> </tr>
<?php echo $data->authorLink; ?> says on <?php echo CHtml::link(CHtml::encode($data->post->title), $data->post->url); ?> </div> <div class="time"> <?php if ($data->status == Comment::STATUS_PENDING) { ?> <span class="pending">Pending approval</span> | <?php echo CHtml::linkButton('Approve', array('submit' => array('comment/approve', 'id' => $data->id))); ?> | <?php } ?> <?php echo CHtml::link('Update', array('comment/update', 'id' => $data->id)); ?> | <?php echo CHtml::link('Delete', array('comment/delete', 'id' => $data->id), array('class' => 'delete')); ?> | <?php echo date('F j, Y \\a\\t h:i a', $data->create_time);
/** * Returns the markup for the remove child link. * @return string the markup. */ public function getRemoveChildLink() { return CHtml::linkButton(Rights::t('core', ''), array('submit' => array('authItem/removeChild', 'name' => urlencode($this->parent->name), 'child' => urlencode($this->owner->name)), 'class' => 'fa fa-trash', 'title' => 'Eliminar', 'csrf' => Yii::app()->request->enableCsrfValidation)); }
<?php $this->breadcrumbs = array(UserModule::t('Users') => array('/user/admin'), $model->username); ?> <h1><?php echo UserModule::t('View User') . ' "' . $model->username . '"'; ?> </h1> <?php echo $this->renderPartial('_menu', array('list' => array(CHtml::link(UserModule::t('Create User'), array('create')), CHtml::link(UserModule::t('Update User'), array('update', 'id' => $model->id)), CHtml::linkButton(UserModule::t('Delete User'), array('submit' => array('delete', 'id' => $model->id), 'confirm' => UserModule::t('Are you sure to delete this item?')))))); $attributes = array('id', 'username'); $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, '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) : UserModule::t("Not visited")), array('name' => 'superuser', 'value' => User::itemAlias("AdminStatus", $model->superuser)), array('name' => 'status', 'value' => User::itemAlias("UserStatus", $model->status))); $this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => $attributes));
<?php $this->pageTitle = Yii::app()->name . ' - ' . Yii::t('LookupModule.ui', 'Lookup Names'); $this->breadcrumbs = array(Yii::t('LookupModule.ui', 'Lookup Names')); ?> <h2><?php echo Yii::t('LookupModule.ui', 'Installation'); ?> </h2> <p><?php echo Yii::t('LookupModule.ui', 'Create table "{table}" for lookup module.', array('{table}' => Yii::app()->controller->module->lookupTable)); ?> </p> <?php echo CHtml::linkButton(Yii::t('LookupModule.ui', 'Create Table'), array('submit' => array('create'), 'confirm' => Yii::t('LookupModule.ui', 'Are you sure to create new table?')));
echo CHtml::encode($model->posts_count); ?> </td> <td><?php echo CHtml::encode($model->position); ?> </td> <td><?php echo CHtml::encode($model->created); ?> </td> <td><?php echo CHtml::encode($model->modified); ?> </td> <td> <?php echo CHtml::link('Update', array('update', 'id' => $model->id)); ?> <?php echo CHtml::linkButton('Delete', array('submit' => '', 'params' => array('command' => 'delete', 'id' => $model->id), 'confirm' => "Are you sure to delete #{$model->id}?")); ?> </td> </tr> <?php } ?> </table> <br/> <?php $this->widget('CLinkPager', array('pages' => $pages));
echo CHtml::hiddenField('id', $model->id); ?> <?php if (Yii::app()->user->checkAccess('pperm_manage_bugs', array('project_id' => $model->project_id)) && $model->canOpenNewBug()) { echo CHtml::link('Open Bug', $this->createUrl('bug/create', array('crashreport' => $model->id))); } ?> <?php if (Yii::app()->user->checkAccess('pperm_manage_crash_reports', array('project_id' => $model->project_id))) { if ($model->canResetStatus()) { echo CHtml::linkButton('Process Again', array('submit' => Yii::app()->createUrl('crashReport/processAgain'), 'confirm' => "Are you sure you want to process the crash report #" . $model->id . " another time ?")); } echo CHtml::linkButton('Delete Report', array('submit' => Yii::app()->createUrl('crashReport/delete'), 'confirm' => "Are you sure you want to permanently delete the crash report #" . $model->id . "?")); } ?> <?php echo CHtml::endForm(); ?> </div> </div> <!-- Detail View --> <?php // Prepare bug list $bugList = '';