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


PHP HHtml::postLink方法代码示例

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


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

示例1: array

                            <?php 
            echo HHtml::postLink(Yii::t('UserModule.views_account_editModules', 'Disable'), array('//user/account/disableModule', 'moduleId' => $module->getId()), array('class' => 'btn btn-mini btn-danger', 'confirm' => Yii::t('UserModule.views_account_editModules', 'Are you really sure? *ALL* module data for your profile will be deleted!')));
            ?>
                        <?php 
        }
        ?>
                        <?php 
        if ($module->getUserModuleConfigUrl($user)) {
            ?>
                            <?php 
            echo CHtml::link(Yii::t('UserModule.views_account_editModules', 'Configure'), $module->getUserModuleConfigUrl($user), array('class' => 'btn btn-mini'));
            ?>
                        <?php 
        }
        ?>
                    <?php 
    } else {
        ?>
                        <?php 
        echo HHtml::postLink(Yii::t('UserModule.views_account_editModules', 'Enable'), array('//user/account/enableModule', 'moduleId' => $module->getId()), array('class' => 'btn btn-mini btn-success'));
        ?>
                    <?php 
    }
    ?>
                </div>
            </li>
        <?php 
}
?>
    </ul>
</div>
开发者ID:ahdail,项目名称:humhub,代码行数:31,代码来源:editModules.php

示例2: array

            <p class="help-block"><?php 
echo Yii::t('AdminModule.views_setting_oembed_edit', 'Use %url% as placeholder for URL. Format needs to be JSON. (e.g. http://www.youtube.com/oembed?url=%url%&format=json)');
?>
</p>            
        </div>        


        <?php 
echo CHtml::submitButton(Yii::t('AdminModule.views_setting_oembed_edit', 'Save'), array('class' => 'btn btn-primary'));
?>

        <?php 
if ($prefix != "") {
    ?>
            <?php 
    echo HHtml::postLink(Yii::t('AdminModule.views_setting_oembed_edit', 'Delete'), $this->createUrl('oembedDelete'), array('class' => 'btn btn-danger pull-right'), array('prefix' => $prefix));
    ?>
        <?php 
}
?>
        <?php 
$this->endWidget();
?>

    </div>
</div>




开发者ID:alefernie,项目名称:intranet,代码行数:26,代码来源:oembed_edit.php

示例3: array

?>
            <?php 
echo $form->textField($category, 'translation_category', array('class' => 'form-control'));
?>
            <?php 
echo $form->error($category, 'translation_category');
?>
        </div>

        <hr>

        <?php 
echo CHtml::submitButton(Yii::t('AdminModule.views_userprofile_editCategory', 'Save'), array('class' => 'btn btn-primary'));
?>

        <?php 
if (!$category->isNewRecord && !$category->is_system) {
    ?>
            <?php 
    echo HHtml::postLink(Yii::t('AdminModule.views_userprofile_editCategory', 'Delete'), $this->createUrl('//admin/userprofile/deleteCategory', array('id' => $category->id)), array('class' => 'btn btn-danger'));
    ?>
        <?php 
}
?>

        <?php 
$this->endWidget();
?>

    </div>
</div>
开发者ID:alefernie,项目名称:intranet,代码行数:31,代码来源:editCategory.php

示例4: array

        ?>

                        <?php 
        if ($module->getSpaceModuleConfigUrl($this->getSpace()) != "") {
            ?>
                            <?php 
            echo CHtml::link(Yii::t('SpaceModule.views_admin_modules', 'Configure'), $module->getSpaceModuleConfigUrl($this->getSpace()), array('class' => 'btn btn-default'));
            ?>
                        <?php 
        }
        ?>
                    <?php 
    } else {
        ?>
                        <?php 
        echo HHtml::postLink(Yii::t('SpaceModule.views_admin_modules', 'Enable'), array('//space/admin/enableModule', 'moduleId' => $moduleId, 'sguid' => $this->getSpace()->guid), array('class' => 'btn btn-sm btn-primary'));
        ?>
                    <?php 
    }
    ?>
                </div>
            </div>
            <!-- Start: Module update message for the future -->
            <!--            <br>
                        <div class="alert alert-warning">
                            New Update for this module is available! <a href="#">See details</a>
                        </div>-->
            <!-- End: Module update message for the future -->

        <?php 
}
开发者ID:alefernie,项目名称:intranet,代码行数:31,代码来源:modules.php

示例5: array

<div class="panel panel-default">
    <div class="panel-heading"><?php 
echo Yii::t('AdminModule.views_user_delete', 'Delete user: <strong>{username}</strong>', array('{username}' => $model->username));
?>
</div>
    <div class="panel-body">


        <p>
            <?php 
echo Yii::t('AdminModule.views_user_delete', 'Are you sure you want to delete this user? If this user is owner of some spaces, <b>you</b> will become owner of these spaces.');
?>
        </p>

        <?php 
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('username', 'firstname', 'lastname', 'email:email', 'created_at')));
?>

        <br/>
        <?php 
echo HHtml::postLink(Yii::t('AdminModule.views_user_delete', 'Delete user'), $this->createUrl('//admin/user/delete', array('id' => $model->id, 'doit' => 2)), array('class' => 'btn btn-danger'));
?>
        &nbsp;
        <?php 
echo CHtml::link(Yii::t('AdminModule.views_user_delete', 'Back'), $this->createUrl('//admin/user/edit', array('id' => $model->id)), array('class' => 'btn btn-primary'));
?>


    </div>
</div>
开发者ID:alefernie,项目名称:intranet,代码行数:30,代码来源:delete.php

示例6: array

                        <td align="left" valign="top">
                            <strong><?php 
        echo CHtml::encode($user->displayName);
        ?>
</strong><br>
                            <?php 
        echo CHtml::encode($membership->request_message);
        ?>
<br>

                            <hr>
                            <?php 
        echo HHtml::postLink('Accept', $this->createUrl('//rooms/admin/membersApproveApplicant', array('sguid' => $room->guid, 'userGuid' => $user->guid, 'approve' => true)), array('class' => 'btn btn-success btn-sm', 'id' => 'user_accept_' . $user->guid));
        ?>
                            <?php 
        echo HHtml::postLink('Decline', $this->createUrl('//rooms/admin/membersRejectApplicant', array('sguid' => $room->guid, 'userGuid' => $user->guid, 'reject' => true)), array('class' => 'btn btn-danger btn-sm', 'id' => 'user_decline_' . $user->guid));
        ?>

                        </td>
                    </tr>
                    <?php 
        if ($user_count < count($room->applicants) - 1) {
            ?>
                        <hr>
                    <?php 
        }
        ?>
                    <?php 
        $user_count++;
    }
    ?>
开发者ID:verdin12345,项目名称:humhub-modules-rooms,代码行数:31,代码来源:roomMembers.php

示例7: array

        <div class="pull-right">
            <?php 
if ($model->status == Room::STATUS_ENABLED) {
    ?>
                <?php 
    echo HHtml::postLink(Yii::t('RoomsModule.views_admin_edit', 'Archive'), $model->createUrl('//rooms/room/archive'), array('class' => 'btn btn-warning'));
    ?>
            <?php 
} elseif ($model->status == Room::STATUS_ARCHIVED) {
    ?>
                <?php 
    echo HHtml::postLink(Yii::t('RoomsModule.views_admin_edit', 'Unarchive'), $model->createUrl('//rooms/room/unarchive'), array('class' => 'btn btn-warning'));
    ?>
            <?php 
}
?>
            <?php 
echo HHtml::postLink(Yii::t('RoomsModule.views_admin_edit', 'Delete'), $model->createUrl('//rooms/room/delete'), array('class' => 'btn btn-danger'));
?>

        </div>


    </div>

</div>
<?php 
$this->endWidget();
?>

开发者ID:verdin12345,项目名称:humhub-modules-rooms,代码行数:29,代码来源:edit.php

示例8: array

                ?>
                                &middot; <?php 
                echo Yii::t('AdminModule.views_module_listOnline', 'Latest compatible version:');
                ?>
  <?php 
                echo $module['latestCompatibleVersion'];
                ?>
                            <?php 
            }
            ?>

                            <?php 
            if (!Yii::app()->moduleManager->isInstalled($module['id'])) {
                ?>
                                &middot; <?php 
                echo HHtml::postLink(Yii::t('AdminModule.views_module_listOnline', 'Install'), $this->createUrl('install', array('moduleId' => $module['id'])), array('style' => 'font-weight:bold'));
                ?>
                            <?php 
            }
            ?>

                        <?php 
        } else {
            ?>
                            &middot; <span
                                style="color:red"><?php 
            echo Yii::t('AdminModule.views_module_listOnline', 'No compatible module version found!');
            ?>
</span>
                        <?php 
        }
开发者ID:alefernie,项目名称:intranet,代码行数:31,代码来源:listOnline.php

示例9: original

                    <?php 
        echo Yii::t('UpdaterModule.base', 'The following files seems to be not original (%version%) and will be overwritten or deleted during update process.', array('%version%' => $updatePackage->versionFrom));
        ?>
<br />
                    <br />
                    <ul>
                        <?php 
        foreach ($validationResults['modified'] as $file) {
            ?>
                            <li><?php 
            echo $file;
            ?>
</li>
                        <?php 
        }
        ?>
                    </ul>
                </div>
            <?php 
    }
    ?>

            <?php 
    echo HHtml::postLink(Yii::t("UpdaterModule.base", "Proceed Installation"), $this->createUrl("run"), array('class' => 'btn btn-primary'));
    ?>
        <?php 
}
?>
    </div>

</div>
开发者ID:bmsrox,项目名称:humhub-modules-updater,代码行数:31,代码来源:start.php

示例10: array

                        </h4>
                        <?php 
    echo CHtml::encode($entry->message);
    ?>
                    </div>
                </li>

            <?php 
}
?>
        </ul>

        <?php 
if ($itemCount != 0) {
    ?>
            <div class="pull-right"><?php 
    echo HHtml::postLink(Yii::t('AdminModule.views_logging_index', 'Flush entries'), array('flush'), array('class' => 'btn btn-danger'));
    ?>
</div>
        <?php 
}
?>
    

        <center>
            <?php 
$this->widget('CLinkPager', array('currentPage' => $pagination->getCurrentPage(), 'itemCount' => $itemCount, 'pageSize' => $pageSize, 'maxButtonCount' => 5, 'header' => '', 'nextPageLabel' => '<i class="fa fa-step-forward"></i>', 'prevPageLabel' => '<i class="fa fa-step-backward"></i>', 'firstPageLabel' => '<i class="fa fa-fast-backward"></i>', 'lastPageLabel' => '<i class="fa fa-fast-forward"></i>', 'htmlOptions' => array('class' => 'pagination')));
?>
        </center>
    </div>
</div>
开发者ID:alefernie,项目名称:intranet,代码行数:31,代码来源:index.php

示例11: elseif

                                           class="btn btn-primary">' . Yii::t('RandomSpaceModule.base', 'Become member') . '</a>';
            }
        }
    } elseif ($membership->status == SpaceMembership::STATUS_INVITED) {
        $membershipText = '<a href="' . Yii::app()->createUrl("//space/space/inviteAccept", array('sguid' => $space->guid)) . '" class="btn btn-primary">' . Yii::t('RandomSpaceModule.base', 'Accept Invite') . '</a> ';
        $membershipText .= '<a href="' . Yii::app()->createUrl("//space/space/revokeMembership", array('sguid' => $space->guid)) . '" class="btn btn-primary">' . Yii::t('RandomSpaceModule.base', 'Decline Invite') . '</a> ';
    } elseif ($membership->status == SpaceMembership::STATUS_APPLICANT) {
        $membershipText = '<a href="' . Yii::app()->createUrl("//space/space/revokeMembership", array('sguid' => $space->guid)) . '" class="btn btn-primary" id="membership_button">' . Yii::t('RandomSpaceModule.base', 'Cancel pending membership application') . '</a>';
    }
}
// Follow Handling
if (!$space->isMember()) {
    if ($space->isFollowedByUser()) {
        $followText = HHtml::postLink(Yii::t('RandomSpaceModule.base', "Unfollow"), $space->createUrl('//space/space/unfollow'), array('class' => 'btn btn-danger'));
    } else {
        $followText = HHtml::postLink(Yii::t('RandomSpaceModule.base', "Follow"), $space->createUrl('//space/space/follow'), array('class' => 'btn btn-success'));
    }
    if (Yii::app()->user->isGuest) {
        $followText = HHtml::link(Yii::t('RandomSpaceModule.base', "View"), $space->getUrl(), array('class' => 'btn btn-success'));
    }
}
?>

<div class="panel panel-default">
    <div class="panel-heading">
        <?php 
echo Yii::t('RandomSpaceModule.base', '<strong>Space</strong> of the Moment');
?>
		<span class="member-count pull-right"><?php 
echo Yii::t('RandomSpaceModule.base', 'Members:') . ' ' . number_format(count($members));
?>
开发者ID:rajeshspurohit,项目名称:humhub-modules-random-space,代码行数:31,代码来源:RandomSpacePanel.php

示例12: array

<?php

if ($space->isFollowedByUser()) {
    print HHtml::postLink(Yii::t('SpaceModule.widgets_views_followButton', "Unfollow"), $space->createUrl('//space/space/unfollow'), array('class' => 'btn btn-primary'));
} else {
    print HHtml::postLink(Yii::t('SpaceModule.widgets_views_followButton', "Follow"), $space->createUrl('//space/space/follow'), array('class' => 'btn btn-primary'));
}
开发者ID:skapl,项目名称:design,代码行数:7,代码来源:followButton.php

示例13: array

<div class="panel panel-default">
    <div class="panel-heading"><?php 
echo Yii::t('AdminModule.views_email_whitelist_delete', 'Delete whitelisted domain: <strong>{name}</strong>', array('{name}' => $model->domain));
?>
</div>
    <div class="panel-body">

        <p>
            <?php 
echo Yii::t('AdminModule.views_user_delete', 'Are you sure you want to delete this Karma record? Deleting Karma records can cause some unexpected side effects.');
?>
        </p>

        <?php 
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('domain')));
?>

        <br/>
        <?php 
echo HHtml::postLink('Delete record', $this->createUrl('//email_whitelist/admin/delete', array('id' => $model->id, 'doit' => 2)), array('class' => 'btn btn-danger'));
?>
        &nbsp;
        <?php 
echo CHtml::link('Back', $this->createUrl('//email_whitelist/admin/edit', array('id' => $model->id)), array('class' => 'btn btn-primary'));
?>


    </div>
</div>
开发者ID:nsystem1,项目名称:humhub-modules-email_whitelist,代码行数:29,代码来源:delete.php

示例14: elseif

    } elseif ($membership->status == SpaceMembership::STATUS_INVITED) {
        print '<a href="' . Yii::app()->createUrl("//space/space/inviteAccept", array('sguid' => $space->guid)) . '" class="btn btn-primary">' . Yii::t('SpaceModule.views_space_indexPublic', 'Accept Invite') . '</a> ';
        print '<a href="' . Yii::app()->createUrl("//space/space/revokeMembership", array('sguid' => $space->guid)) . '" class="btn btn-primary">' . Yii::t('SpaceModule.views_space_indexPublic', 'Deny Invite') . '</a> ';
    } elseif ($membership->status == SpaceMembership::STATUS_APPLICANT) {
        print '<a href="' . Yii::app()->createUrl("//space/space/revokeMembership", array('sguid' => $space->guid)) . '" class="btn btn-primary" id="membership_button">' . Yii::t('SpaceModule.views_space_indexPublic', 'Cancel pending membership application') . '</a>';
    }
}
?>

                        <?php 
// Follow Handling
if (!$space->isMember()) {
    if ($space->isFollowedByUser()) {
        print HHtml::postLink(Yii::t('SpaceModule.views_space_indexPublic', "Unfollow"), $space->createUrl('//space/space/unfollow'), array('class' => 'btn btn-danger'));
    } else {
        print HHtml::postLink(Yii::t('SpaceModule.views_space_indexPublic', "Follow"), $space->createUrl('//space/space/follow'), array('class' => 'btn btn-success'));
    }
}
?>
                    </div>
                </div>
            </div>
        </div>
        <?php 
$this->widget('application.modules_core.wall.widgets.WallStreamWidget', array('contentContainer' => $space));
?>
    </div>
</div>


开发者ID:alefernie,项目名称:intranet,代码行数:28,代码来源:indexPublic.php

示例15: array

                        <?php 
    } else {
        ?>
                            &middot; <?php 
        echo HHtml::postLink(Yii::t('AdminModule.views_module_list', 'Enable'), array('//admin/module/enable', 'moduleId' => $moduleId), array('style' => 'font-weight:bold'));
        ?>
                        <?php 
    }
    ?>

                        <?php 
    if (Yii::app()->moduleManager->canUninstall($moduleId)) {
        ?>
                            &middot; <?php 
        echo HHtml::postLink(Yii::t('AdminModule.views_module_list', 'Uninstall'), array('//admin/module/uninstall', 'moduleId' => $moduleId), array('confirm' => Yii::t('AdminModule.views_module_list', 'Are you sure? *ALL* module related data and files will be lost!')));
        ?>
                        <?php 
    }
    ?>

                        &middot; <?php 
    echo HHtml::link(Yii::t('AdminModule.views_module_list', 'More info'), array('//admin/module/info', 'moduleId' => $moduleId), array('data-target' => '#globalModal', 'data-toggle' => 'modal'));
    ?>

                    </div>

                </div>
            </div>
        <?php 
}
开发者ID:alefernie,项目名称:intranet,代码行数:30,代码来源:list.php


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