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


PHP utils::getUrl方法代码示例

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


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

示例1: index

 public function index()
 {
     $this->actionMenu = array(array('name' => '发布商品', 'url' => utils::getUrl('admin/system-product/add/' . base64_encode($this->url))));
     $this->menuTitle = '我的商品列表';
     $tableName = utils::getTableName($this->systemProductService->modelName);
     $systemProductList = $this->systemProductService->model->querySql($tableName);
     $hasSkuProductIdArr = $newProductList = array();
     if ($systemProductList) {
         foreach ($systemProductList['resultList'] as $product) {
             $newProductList[$product['id']] = $product;
             if ($product['is_has_sku']) {
                 $hasSkuProductIdArr[] = $product['id'];
             }
         }
     }
     $productSkuService = new productSkuService();
     $skuList = $productSkuService->getSkuListByProductIdArr($hasSkuProductIdArr);
     if ($skuList) {
         foreach ($skuList as $skuInfo) {
             $newProductList[$skuInfo['sysproduct_id']]['skuList'][] = $skuInfo;
         }
     }
     $showCategoryModel = new showCategoryModel();
     $showCategoryList = $showCategoryModel->getCacheFileCategory();
     $productAllStatus = $this->systemProductService->productStatus;
     $data = array('showCategoryList' => $showCategoryList, 'systemProductList' => $newProductList, 'productAllStatus' => $productAllStatus);
     $this->setView($data);
 }
开发者ID:lzmyoyo,项目名称:ninxingfu,代码行数:28,代码来源:systemProductController.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $this->title = '宅乐轩ERP管理系统';
     $this->style['css'][] = 'public/css/bootstrap.min.css';
     $this->style['css'][] = 'public/css/bootstrap-theme.min.css';
     $this->style['css'][] = 'public/css/admin/admin.css';
     $this->style['js'] = array('public/js/jquery.js', 'public/js/artDialog/jquery.artDialog.js?skin=default', 'public/js/comm.js');
     $this->style['js'][] = 'public/js/jquery.dragsort-0.5.2.min.js';
     $this->style['js'][] = 'public/js/bootstrap.min.js';
     $this->style['js'][] = 'public/js/admin/main.js';
     /*
      * 过滤后台有些可以不登录即可访问的action.如登录页面,退出页面等等。
      */
     $isAdminAuthorization = true;
     $adminFiltrateActionArr = utils::c('adminFiltrateAction');
     if ($adminFiltrateActionArr) {
         $adminFiltrateActionArrKey = array_keys($adminFiltrateActionArr);
         $controllerName = request::$controllerName;
         if (in_array($controllerName, $adminFiltrateActionArrKey)) {
             if (in_array(request::$actionName, $adminFiltrateActionArr[$controllerName])) {
                 $isAdminAuthorization = false;
             }
         }
     }
     if ($isAdminAuthorization) {
         $adminUserInfo = $this->checkAdminLogin();
         if (!$adminUserInfo) {
             $this->tip('你未登录EPR系统,请登录!', utils::getUrl('admin/index/login'));
         }
     }
 }
开发者ID:lzmyoyo,项目名称:ninxingfu,代码行数:32,代码来源:adminController.php

示例3: add

 public function add($param = array())
 {
     list($backurl) = $param;
     $this->actionMenu = array(array('name' => '社区列表', 'url' => utils::getUrl('admin/home/grid/')));
     $this->menuTitle = '添加社区';
     $this->style['css'][] = 'public/uploadify/uploadify.css';
     $this->style['js'][] = 'public/js/map.js';
     $this->style['js'][] = 'public/uploadify/jquery.uploadify.min.js?i=' . rand(0, 99999);
     $addressList = addressService::getFirstCatAddress(0);
     $data = array('addressList' => $addressList, 'backurl' => $backurl);
     $this->setView($data);
 }
开发者ID:lzmyoyo,项目名称:ninxingfu,代码行数:12,代码来源:homeController.php

示例4: delete

 public function delete($param)
 {
     $id = isset($param[0]) ? $param[0] : '';
     $backurl = isset($param[1]) ? $param[1] : '';
     if ($id) {
         $this->adminMenuObj->deleteMenuById($id);
     }
     if (!$backurl) {
         $backurl = base64_encode(utils::getUrl('admin/menu/grid/0'));
     }
     $this->adminMenuObj->clearMenuCache();
     $this->tip('菜单已删除', base64_decode($backurl));
 }
开发者ID:lzmyoyo,项目名称:ninxingfu,代码行数:13,代码来源:menuController.php

示例5: grid

 public function grid()
 {
     $this->actionMenu = array(array('name' => '所有订单', 'url' => utils::getUrl('admin/order/grid/')));
     $this->menuTitle = '订单管理';
     $page = request::getParam('page', 1);
     $pageSize = request::getParam('pageSize', 20);
     $tableParam = array('page' => $page, 'pageSize' => $pageSize, 'isCount' => true);
     $orderResult = $this->orderObj->select($tableParam);
     $pageObj = new page();
     $pageStr = $pageObj->showpage($orderResult['count'], $page, $pageSize);
     $payStatusArr = orderService::$orderPayStatus;
     $orderStatusArr = orderService::$orderStatus;
     $data = array('orderResult' => $orderResult, 'payStatusArr' => $payStatusArr, 'orderStatusArr' => $orderStatusArr, 'pageStr' => $pageStr);
     $this->setView($data);
 }
开发者ID:lzmyoyo,项目名称:ninxingfu,代码行数:15,代码来源:orderController.php

示例6: grid

 public function grid($param = array())
 {
     $id = $backurl = 0;
     if ($param) {
         list($id, $backurl) = $param;
     }
     $this->actionMenu = array(array('name' => '更新缓存', 'url' => utils::getUrl('admin/category/clear-category-cache/' . base64_encode($this->url))), array('name' => '添加分类', 'url' => utils::getUrl('admin/category/add/0/' . base64_encode($this->url))));
     if ($backurl) {
         $this->actionMenu[] = array('name' => '返回', 'url' => base64_decode($backurl));
     }
     $this->menuTitle = '商品分类管理';
     $allCategory = $this->categoryModel->getCacheFileCategory();
     $firstCategory = $this->categoryModel->getChildCategoryById($id, $allCategory);
     $data = array('firstCategory' => $firstCategory);
     $this->setView($data);
 }
开发者ID:lzmyoyo,项目名称:ninxingfu,代码行数:16,代码来源:categoryController.php

示例7:

<!DOCTYPE html>
<html style="background: #49494b; ">
<head>
    <meta charset="UTF-8">
    <title>宅乐轩ERP管理系统</title>
</head>
<frameset rows="130,*" frameborder="0">
    <frame name="top" src="<?php 
echo utils::getUrl('admin/index/top');
?>
" frameborder="0" id="topFrame" scrolling="no"
           noresize>
    <frameset cols="73,*" frameborder="0">
        <frame name="left" src="<?php 
echo utils::getUrl('admin/index/left');
?>
" id="leftFrame" frameborder="0"
               scrolling="no" noresize>
        <frame name="main" src="<?php 
echo utils::getUrl('admin/index/main');
?>
" id="mainFrame" frameborder="0"
               scrolling="yes" noresize>
    </frameset>
</frameset>
</html>
开发者ID:lzmyoyo,项目名称:ninxingfu,代码行数:26,代码来源:index.php

示例8:

<?php

require APPPATH . 'views/admin/public/header.php';
?>
<form action="<?php 
echo utils::getUrl('admin/user/update-info');
?>
" method="post" enctype="multipart/form-data">
<table class="formtable">
	<tbody>
		<tr>
			<td class="tdtitle">用户名:</td>
			<td class="tdcontent"><?php 
echo $userInfo['uname'];
?>
</td>
		</tr>
		<tr>
			<td class="tdtitle">邮箱:</td>
			<td class="tdcontent"><?php 
echo $userInfo['email'];
?>
</td>
		</tr>
		<tr>
			<td class="tdtitle">phone:</td>
			<td class="tdcontent"><?php 
echo $userInfo['phone'];
?>
</td>
		</tr>
开发者ID:lzmyoyo,项目名称:ninxingfu,代码行数:31,代码来源:detail.php

示例9: foreach

    <title>Swiper demo</title>
    <?php 
foreach ($style['css'] as $cssInfo) {
    ?>
        <link type="text/css" rel="stylesheet" href="<?php 
    echo utils::getUrl() . $cssInfo;
    ?>
"/>
    <?php 
}
?>
    <?php 
foreach ($style['js'] as $jsInfo) {
    ?>
        <script type="text/javascript" src="<?php 
    echo utils::getUrl() . $jsInfo;
    ?>
"></script>
    <?php 
}
?>
    <style>
        body {
            background: #eee;
            font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
            font-size: 14px;
            color:#000;
            margin: 0;
            padding: 0;
        }
        .swiper-container {
开发者ID:lzmyoyo,项目名称:ninxingfu,代码行数:31,代码来源:index.php

示例10: isset

            <td><?php 
        echo isset($showCategoryList[$product['show_category_id']]['title']) ? $showCategoryList[$product['show_category_id']]['title'] : '未分类';
        ?>
</td>

            <td><?php 
        echo $productAllStatus[$product['pstatus']];
        ?>
</td>
            <td><?php 
        echo date('Y-m-d H:i', $product['paddtime']);
        ?>
</td>
            <td class="tdaction">
                <a href="<?php 
        echo utils::getUrl('/admin/system-product/edit/' . $product['id'] . '/' . $url);
        ?>
">修改</a>
            </td>
        </tr>
    <?php 
    }
} else {
    ?>
    <tr>
        <td colspan="9">暂无数据</td>
    </tr>
<?php 
}
?>
</table>
开发者ID:lzmyoyo,项目名称:ninxingfu,代码行数:31,代码来源:listProduct.php

示例11:

<?php

require APPPATH . 'views/admin/public/header.php';
?>
<div style="margin-left: 30px">
    <form action="<?php 
echo utils::getUrl('/admin/mobileaddress/update');
?>
" method="post">
        <table class="formtable">
            <tr>
                <td class="tdtitle">地址名称:</td>
                <td class="tdcontent">
                    <input class="inputtext" type="text" name="address[title]" value="<?php 
echo $addressInfo['title'];
?>
"/>
                </td>
            </tr>
            <tr>
                <td class="tdtitle">隶属于:</td>
                <td class="tdcontent">
                    <input type="hidden" id="parentid" name="address[parentid]" value="<?php 
echo $addressInfo['parentid'];
?>
"/>
                    <a href="javascript:;" id="resetAddress">
                        <?php 
if (isset($allAddressList[$addressInfo["parentid"]]["title"])) {
    ?>
                            <?php 
开发者ID:lzmyoyo,项目名称:ninxingfu,代码行数:31,代码来源:edit.php

示例12:

		}
		.product_image_item img{
			max-width: 80px;
			min-height: 80px;
			max-height: 80px;
		}
		.product_image_no_item{
			width:113px;
			height: 112px;
			border:dashed 1px #ccc;
			min-height: 112px;
		}
	</style>
	<div style="margin-left: 30px">
		<form class="form-horizontal" action="<?php 
echo utils::getUrl('admin/product/insert');
?>
" method="post" enctype="multipart/form-data">
			<div class="form-group">
				<label for="inputEmail3" class="col-sm-2 control-label">商品名称</label>
				<div class="col-sm-8">
					<input type="text" class="form-control" name="product[title]" value="" />
				</div>
			</div>

			<div class="form-group">
				<label for="inputEmail3" class="col-sm-2 control-label">商品分类</label>
				<div class="col-sm-8 form-inline">
					<select class="form-control select_parent_category" name="product[show_category_id][]">
						<option value="0">选择商品分类</option>
						<?php 
开发者ID:lzmyoyo,项目名称:ninxingfu,代码行数:31,代码来源:add.php

示例13:

<?php

require APPPATH . 'views/admin/public/header.php';
?>
    <form action="<?php 
echo utils::getUrl('admin/index/login-in');
?>
" method="post">
        用户名:<input type="text" name="user" value=""/>
        密码: <input type="password" name="password" value=""/>
        <input type="submit" value="登陆" name="submit"/>
    </form>
<?php 
require APPPATH . 'views/admin/public/fooder.php';
开发者ID:lzmyoyo,项目名称:ninxingfu,代码行数:14,代码来源:login.php

示例14:

<?php

require APPPATH . 'views/admin/public/header.php';
?>
    <div style="margin-left: 30px">
        <form action="<?php 
echo utils::getUrl('admin/business-application/check');
?>
" method="post">
            <table class="formtable">
                <tr>
                    <td class="tdtitle">身份证正面:</td>
                    <td class="tdcontent">
                        <img src="a.jpg" width="300" height="300" />
                    </td>
                </tr>
                <tr>
                    <td class="tdtitle">身份证号码:</td>
                    <td class="tdcontent">
                        <input type="text" value="" class="inputtext" name="appuser[identity]" />
                    </td>
                </tr>
                <tr>
                    <td class="tdtitle">真实姓名:</td>
                    <td class="tdcontent">
                        <input type="text" value="" class="inputtext" name="appuser[truename]" />
                    </td>
                </tr>
                <tr>
                    <td class="tdtitle">身份地址:</td>
                    <td class="tdcontent">
开发者ID:lzmyoyo,项目名称:ninxingfu,代码行数:31,代码来源:info.php

示例15:

        if (isset($menuInfo['child']) && $menuInfo['child']) {
            ?>
                            <a href="<?php 
            echo utils::getUrl('admin/menu/grid/' . $menuInfo['id']);
            ?>
">查看子类</a> |
                        <?php 
        }
        ?>
                        <a href="<?php 
        echo utils::getUrl('admin/menu/edit/' . $menuInfo['id'] . '/' . $url);
        ?>
">修改</a>
                        |
                        <a href="<?php 
        echo utils::getUrl('admin/menu/delete/' . $menuInfo['id'] . '/' . $url);
        ?>
"
                           class="td_action_delete">删除</a>
                    </td>
                </tr>
            <?php 
    }
    ?>
            <tr>
                <td class="call" title="全选"><input type="checkbox" class="checkbox"/></td>
                <td colspan="7"><a href="javascript:;" data-model="menu" class="deleteall">全部删除</a></td>
            </tr>
        <?php 
} else {
    ?>
开发者ID:lzmyoyo,项目名称:ninxingfu,代码行数:31,代码来源:grid.php


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