本文整理汇总了PHP中UrlUtil::createBackendUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP UrlUtil::createBackendUrl方法的具体用法?PHP UrlUtil::createBackendUrl怎么用?PHP UrlUtil::createBackendUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UrlUtil
的用法示例。
在下文中一共展示了UrlUtil::createBackendUrl方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct();
if (!UserUtil::getUserId()) {
ResponseUtil::redirect(UrlUtil::createBackendUrl('login'));
}
$controller = strtolower($this->router->class);
$method = strtolower($this->router->method);
if (UserUtil::isShopKeeper()) {
if (!array_key_exists($controller, $this->shopKeeperPermissions)) {
$this->message('你没有权限执行本步骤!');
}
$methods = $this->shopKeeperPermissions[$controller];
if ($methods == '*') {
return true;
} else {
if (!in_array($method, $methods)) {
$this->message('你没有权限执行本步骤!');
} else {
return true;
}
}
}
}
示例2:
?>
</td>
<td>
<a class="link-view btn btn-success"
href="<?php
echo UrlUtil::createBackendUrl('article/articleDetail/' . $article['article_id']);
?>
">详情</a>
<a class="link-update btn btn-warning"
href="<?php
echo UrlUtil::createBackendUrl('article/updateArticle/' . $article['article_id']);
?>
">修改</a>
<a class="link-del btn btn-danger"
href="<?php
echo UrlUtil::createBackendUrl('article/deleteArticle/' . $article['article_id']);
?>
">删除</a>
</td>
</tr>
<?php
}
?>
</table>
<div class="list-page"><?php
echo $pages;
?>
</div>
<?php
} else {
?>
示例3:
<th><i class="require-red">*</i>过期时间:</th>
<td>
<input class="common-text required" name="expire_time"
value="<?php
echo $exchangeGoods['expire_time'];
?>
" size="20" type="text">
</td>
</tr>
<tr>
<th></th>
<td>
<input class="btn btn-primary btn6 mr10" value="提交" type="submit">
<a class="btn btn6" href="<?php
echo UrlUtil::createBackendUrl('exchangeGoods/index');
?>
">返回</a>
</td>
</tr>
</tbody>
</table>
</form>
</div>
<script>
$(document).ready(function() {
$('[name="expire_time"], [name="start_time"]').datetimepicker({
lang:'ch',
timepicker:false,
format:'Y-m-d',
示例4: form_open
.appointment-time {
height: 60px;
}
</style>
<div class="crumb-wrap">
<div class="crumb-list"><i class="icon-font"></i>
<a href="<?php
echo UrlUtil::createBackendUrl('project/index');
?>
">首页</a>
<span class="crumb-step">></span><span>线下预约</span></div>
</div>
<div class="result-wrap">
<div class="result-content">
<?php
echo form_open(UrlUtil::createBackendUrl('offlineAppointment/appointment'));
?>
<input type="hidden" name="appointment_times" value="">
<table class="insert-tab" width="100%">
<tbody>
<tr>
<th><i class="require-red">*</i>预约商品:</th>
<td>
<input type="hidden" name="project_id" value="<?php
echo $project['project_id'];
?>
">
<input type="hidden" name="use_time" value="<?php
echo $project['use_time'];
?>
示例5: set_value
<th width="120"><i class="require-red">*</i>备注:</th>
<td>
<input class="common-text required" name="ps" size="50"
value="<?php
echo set_value('ps');
?>
" type="text">
</td>
</tr>
<tr>
<th></th>
<td>
<input class="btn btn-primary btn6 mr10" value="提交" type="submit">
<a class="btn btn6" href="<?php
echo UrlUtil::createBackendUrl("beautician/rest?beautician_id={$beautician_id}");
?>
">返回</a>
</td>
</tr>
</tbody>
</table>
</form>
</div>
<script>
$(document).ready(function() {
$('[name="rest_day"]').datetimepicker({
lang:'ch',
timepicker:false,
format:'Y-m-d',
示例6:
<div class="crumb-wrap">
<div class="crumb-list"><i class="icon-font"></i>
<a href="<?php
echo UrlUtil::createBackendUrl('project/index');
?>
">首页</a>
<span class="crumb-step">></span>
<a class="crumb-name" href="<?php
echo UrlUtil::createBackendUrl("order/index/{$limit}");
?>
">订单管理</a>
<span class="crumb-step">></span><span>订单详情</span></div>
</div>
<div class="result-wrap">
<div class="result-content">
<h1 class="table-title">订单详情</h1>
<table class="insert-tab" width="100%">
<tbody>
<tr>
<th width="120">订单号:</th>
<td width="400">
<?php
echo $order['order_no'];
?>
</td>
<th width="120">预约日期:</th>
<td>
<?php
echo $order['appointment_day'];
?>
</td>
示例7:
<td><?php
echo $beauticianRest['start_time'];
?>
</td>
<td><?php
echo $beauticianRest['end_time'];
?>
</td>
<td><?php
echo $beauticianRest['ps'];
?>
</td>
<td>
<a class="link-del btn btn-danger"
href="<?php
echo UrlUtil::createBackendUrl("beautician/deleteBeauticianRest/{$beautician_rest_id}");
?>
">删除</a>
</td>
</tr>
<?php
}
?>
</table>
<div class="list-page"><?php
echo $pages;
?>
</div>
</div>
<?php
} else {
示例8: logout
/**
* 退出
*/
public function logout()
{
session_destroy();
ResponseUtil::redirect(UrlUtil::createBackendUrl('login'));
}
示例9:
?>
<li>
<a href="#"><i class="icon-font"></i>系统管理</a>
<ul class="sub-menu">
<!--<li><a href="<?php
echo UrlUtil::createBackendUrl('setting/cleanCache');
?>
"><i
class="icon-font"></i>清理缓存</a></li>-->
<li><a href="<?php
echo UrlUtil::createBackendUrl('tool/index');
?>
">
<i class="icon-font"></i>数据备份</a></li>
<li><a href="<?php
echo UrlUtil::createBackendUrl('workTime/index');
?>
"><i class="icon-font"></i>工作时间设置</a></li>
<!--<li><a href=""><i class="icon-font"></i>数据还原</a></li>-->
</ul>
</li>
<?php
}
?>
</ul>
</div>
</div>
<div class="main-wrap"><?php
echo $content;
?>
</div>
示例10:
echo $timeKey;
?>
"<?php
echo $selected;
?>
> <?php
echo $setting;
?>
<?php
}
?>
</td>
</tr>
<?php
}
?>
<tr>
<th></th>
<td>
<input class="btn btn-primary btn6 mr10" value="提交" type="submit">
<a class="btn btn6" href="<?php
echo UrlUtil::createBackendUrl('beautician/index');
?>
">返回</a>
</td>
</tr>
</tbody>
</table>
</form>
</div>
示例11:
<th><i class="require-red">*</i>账户名:</th>
<td><?php
echo $user['user_name'];
?>
</td>
</tr>
<tr>
<th><i class="require-red">*</i>密码:</th>
<td><input class="common-text" name="password" size="20" type="password"></td>
</tr>
<tr>
<th><i class="require-red">*</i>确认密码:</th>
<td><input class="common-text" name="re_password" size="20" type="password"></td>
</tr>
<tr>
<th></th>
<td>
<input class="btn btn-primary btn6 mr10" value="提交" type="submit">
<a class="btn btn6" href="<?php
echo UrlUtil::createBackendUrl('user/index');
?>
">返回</a>
</td>
</tr>
</tbody>
</table>
</form>
</div>
示例12: defaultValue
<div class="crumb-wrap">
<div class="crumb-list"><i class="icon-font"></i><a href="<?php
echo UrlUtil::createBackendUrl('customer/index');
?>
">首页</a><span
class="crumb-step">></span><span class="crumb-name">客户管理</span></div>
</div>
<div class="search-wrap">
<div class="search-content">
<form action="<?php
echo UrlUtil::createBackendUrl('customer/index');
?>
?" method="get">
<table class="search-tab">
<tr>
<th width="70">微信昵称:</th>
<td><input class="common-text" placeholder="微信昵称" type="text"
name="nick_name" value="<?php
echo defaultValue($params['nick_name']);
?>
"></td>
<td><input class="btn btn-primary btn2" type="submit"></td>
</tr>
</table>
</form>
</div>
</div>
<div class="result-wrap">
<div class="result-content">
<?php
示例13:
</tr>
<tr>
<th><i class="require-red">*</i>分类:</th>
<td>
<select name="slider_type" class="select">
<option value="幻灯片">幻灯片</option>
<option value="福利栏">福利栏</option>
</select>
</td>
</tr>
<tr>
<th><i class="require-red">*</i>图片:</th>
<td><input name="pic" id="" type="file" class="common-text"></td>
</tr>
<tr>
<th></th>
<td>
<input class="btn btn-primary btn6 mr10" value="提交" type="submit">
<a class="btn btn6" href="<?php
echo UrlUtil::createBackendUrl('slider/index');
?>
">返回</a>
</td>
</tr>
</tbody>
</table>
</form>
</div>
示例14: set_value
value="<?php
echo set_value('category_name') ? set_value('category_name') : $category_name;
?>
" type="text">
</td>
</tr>
<tr>
<th><i class="require-red">*</i>排序:</th>
<td>
<input class="common-text required" name="order_sort" size="10"
value="<?php
echo set_value('order_sort') ? set_value('order_sort') : $order_sort;
?>
" type="text">
</td>
</tr>
<tr>
<th></th>
<td>
<input class="btn btn-primary btn6 mr10" value="提交" type="submit">
<a class="btn btn6" href="<?php
echo UrlUtil::createBackendUrl('category/index');
?>
">返回</a>
</td>
</tr>
</tbody>
</table>
</form>
</div>
示例15:
}
?>
</select>
</td>
</tr>
<tr>
<th><i class="require-red">*</i>选择项目:</th>
<td>
<select class="select" name="project_id" id="project_id">
</select>
</td>
</tr>
<tr>
<th></th>
<td>
<input class="btn btn-primary btn6 mr10" value="提交" type="submit">
<a class="btn btn6" href="<?php
echo UrlUtil::createBackendUrl('ProjectProperty/projectForNewUserList');
?>
">返回</a>
</td>
</tr>
</tbody>
</table>
</form>
</div>