本文整理汇总了PHP中printUrl函数的典型用法代码示例。如果您正苦于以下问题:PHP printUrl函数的具体用法?PHP printUrl怎么用?PHP printUrl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了printUrl函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: printImage
function printImage($image)
{
if ($image) {
echo <<<EOT
<img src="{$image}"><br>
EOT;
printUrl($image);
}
}
示例2: initUploadMultiImage
/**
* 批量上传按钮
* @param array $buttonIds
* @param string $uploadUrl
* @param string $managerUrl
*/
function initUploadMultiImage($buttonIds = array(), $uploadUrl = '', $managerUrl = '')
{
$uploadUrl || ($uploadUrl = printUrl('Upload', 'uploadSave', array('dir' => 'image')));
$managerUrl || ($managerUrl = printUrl('Upload', 'uploadManager', array('dir' => 'image')));
$data = array('buttonIds' => $buttonIds, 'uploadUrl' => $uploadUrl, 'managerUrl' => $managerUrl);
$loader = new CI_Loader();
$content = $loader->view('common/initUploadMultiImage', $data, true);
echo $content;
}
示例3: index
/**
* 项目类型首页
*/
function index()
{
//面包屑
$this->viewData['breadcrumb'][] = array('url' => printUrl('AdminProType', 'index'), 'title' => '项目类型管理');
$this->load->model('proTypeModel');
$proTypeList = $this->proTypeModel->getNewList(array('proTypeId > ' => 0));
$this->viewData['proTypeList'] = $proTypeList;
$this->load->view('AdminProType/index', $this->viewData);
}
示例4: index
function index()
{
if ($this->user['userRole'] == 1) {
redirect(printUrl('ReachStore', 'storeList'));
} else {
redirect(printUrl('ReachStore', 'adminList'));
}
//echo $this->input->server('HTTP_REFERER');
$this->load->view("Main/index");
}
示例5: index
/**
* 报表管理首页
*/
function index()
{
//查询条件
//专营店筛选
$area = $this->input->get('area');
$this->viewData['area'] = $area;
$region = $this->input->get('region');
$this->viewData['region'] = $region;
$province = $this->input->get('province');
$this->viewData['province'] = $province;
$city = $this->input->get('city');
$this->viewData['city'] = $city;
$storeId = $this->input->get('storeId');
$this->viewData['storeId'] = $storeId;
$keyword = $this->input->get('keyword');
$this->viewData['keyword'] = $keyword;
//年份
$year = $this->input->get('year');
$year || ($year = $this->config->item('nowYear'));
$this->viewData['year'] = $year;
//时间单位
$timeUnit = (int) $this->input->get('timeUnit');
$timeUnit || ($timeUnit = $this->timeUnitModel->getNowTimeUnit());
$this->viewData['timeUnit'] = $timeUnit;
//数据类型
$type = (int) $this->input->get('type');
if (isset($_GET['submit']) && $_GET['submit'] == 'export') {
isset($this->typeList[$type]) || showError('请选择正确的报表类型');
//条件参数
$params = array('area' => $area, 'region' => $region, 'province' => $province, 'city' => $city, 'storeId' => $storeId, 'keyword' => $keyword, 'year' => $year, 'timeUnit' => $timeUnit);
//导出文件名
$fileName = $this->typeList[$type] . '-' . $year . '年';
if ($timeUnit) {
$timeUnitList = $this->timeUnitModel->getCacheData('timeUnitList');
isset($timeUnitList[$year][$timeUnit]) && ($fileName .= '-' . $timeUnitList[$year][$timeUnit]);
}
//设置excel文件下载头
setExcelDownHeader($fileName);
switch ($type) {
case 1:
//专营店反馈报表
$this->getStoreProExcel($params);
break;
case 2:
//专营店反馈明细报表
$this->getStoreProDetailExcel($params);
break;
}
} else {
//面包屑
$this->viewData['breadcrumb'][] = array('url' => printUrl('Report', 'index'), 'title' => '报表管理');
$this->load->view('Report/index', $this->viewData);
}
}
示例6: Admin
function Admin()
{
parent::MY_Controller();
$this->user['userRole'] == 6 || showError('您无法进入此页面');
$tab = $this->input->get('tab');
$this->viewData['tab'] = $tab ? $tab : 'index';
//设置导航
$this->navbarList[] = array('Admin', 'index', 'title' => '后台管理');
//主题
//$this->theme = 'bootstrap';
//面包屑
$this->viewData['breadcrumb'][] = array('url' => printUrl('Admin', 'index'), 'title' => '管理首页');
}
示例7: Admin
function Admin()
{
parent::MY_Controller();
if (!$this->auth->isImport()) {
showError('您无此页面操作权限', '/');
}
$tab = $this->input->get('tab');
$this->viewData['tab'] = $tab ? $tab : 'index';
//主题
//$this->theme = 'bootstrap';
//面包屑
$this->viewData['breadcrumb'][] = array('url' => printUrl('Admin', 'index'), 'title' => '管理首页');
//标签菜单
$this->navbar = array(array('title' => '时段配置', 'url' => printUrl('Admin', 'timeUnitList'), 'focusTag' => 'timeUnitList'));
$this->viewData['focusTag'] = $this->input->get('m') ? $this->input->get('m') : 'index';
}
示例8: printProActItem
/**
* 打印题目数据
* @param array $data
*/
function printProActItem($data)
{
//操作类型(edit:编辑,check:查看,)
$data['action'] = isset($data['action']) ? $data['action'] : 'edit';
$loader = new CI_Loader();
//上传图片配置
if ($data['type'] == 6) {
$data['uploadUrl'] = printUrl('Upload', 'uploadSave', array('dir' => 'image'));
$data['extraParams'] = array('itemId' => $data['itemId'], 'proId' => $data['proId'], 'actId' => $data['actId'], 'type' => $data['type']);
}
//上传附件配置
if ($data['type'] == 7) {
$data['uploadUrl'] = printUrl('Upload', 'uploadSave', array('dir' => 'settleFile'));
$data['extraParams'] = array('itemId' => $data['itemId'], 'proId' => $data['proId'], 'actId' => $data['actId'], 'type' => $data['type']);
}
$content = $loader->view('ProActItem/actItem' . $data['type'], $data, true);
echo $content;
}
示例9: adminDetail
/**
* 汇总表明细
*/
function adminDetail()
{
if ($this->user['userRole'] == 1) {
showError('您无权限进入此页面');
}
//查询条件
$where = array();
//年
$this->viewData['year'] = $this->input->get('year');
$this->viewData['year'] || ($this->viewData['year'] = $this->config->item('nowYear'));
$where['year'] = $this->viewData['year'];
//时间单位
$this->viewData['timeUnit'] = (int) $this->input->get('timeUnit');
$this->viewData['timeUnit'] || ($this->viewData['timeUnit'] = $this->timeUnitModel->getNowTimeUnit());
$where['timeUnit'] = $this->viewData['timeUnit'];
//系统配置
$this->viewData['yearList'] = $this->timeUnitModel->getCacheData('yearList');
$timeUnitList = $this->timeUnitModel->getCacheData('timeUnitList');
$this->viewData['timeUnitList'] = $timeUnitList[$this->viewData['year']];
//基金类型
$fundType = (int) $this->input->get('fundType');
$fundType || ($fundType = 1);
$this->viewData['fundType'] = $fundType;
//载入模型
$this->load->model('sellpointModel');
//地区
$area = $this->input->get('area');
$area = urldecode($area);
$this->viewData['area'] = $area;
//大区
$region = $this->input->get('region');
$region = urldecode($region);
$this->viewData['region'] = $region;
//小区
$spsarea = $this->input->get('spsarea');
$spsarea = urldecode($spsarea);
$this->viewData['spsarea'] = $spsarea;
//关键字
$keyword = $this->input->get('keyword');
$this->viewData['keyword'] = $keyword;
//查找对应地区列表
$placeStoreList = $this->sellpointModel->searchStore($area, $region, $spsarea, '', '', 0, $keyword);
$placeStoreIds = array_keys($placeStoreList);
//权限内专营店列表
$viewStoreIds = $this->userLib->getViewStoreIds();
if ($viewStoreIds == '*') {
$where['storeId'] = array('in', $placeStoreIds);
} else {
$where['storeId'] = array('in', array_intersect($viewStoreIds, $placeStoreIds));
}
//查找符合条件的主线流程数据
if ($fundType == 1) {
//专营店营销基金
$this->load->model('commonProcessModel');
$procList = $this->commonProcessModel->getList($where);
} elseif ($fundType == 2) {
//区域营销基金
$this->load->model('areaProcessModel');
$procList = $this->areaProcessModel->getList($where);
} elseif ($fundType == 3) {
//车展基金
$this->load->model('carProcessModel');
$procList = $this->carProcessModel->getList($where);
} elseif ($fundType == 4) {
//巡展基金
$this->load->model('xunProcessModel');
$procList = $this->xunProcessModel->getList($where);
} elseif ($fundType == 5) {
//专项基金
$this->load->model('specialProcessModel');
$procList = $this->specialProcessModel->getList($where);
}
$this->viewData['procList'] = $procList;
//所有专营店数据
$this->viewData['allStoreList'] = $placeStoreList;
//面包屑
$this->viewData['breadcrumb'][] = array('url' => printUrl('Main', 'adminTotal', array('year' => $this->viewData['year'], 'timeUnit' => $this->viewData['timeUnit'], 'fundType' => $this->viewData['fundType'])), 'title' => '费用总控表');
$this->viewData['breadcrumb'][] = array('url' => printUrl('Main', 'adminList', array('year' => $this->viewData['year'], 'timeUnit' => $this->viewData['timeUnit'], 'fundType' => $this->viewData['fundType'])), 'title' => '费用明细');
//提交类型
$subType = $this->input->get('subType');
$subType || ($subType = 'query');
$this->viewData['subType'] = $subType;
if ($subType == 'query') {
$this->load->view('Main/adminDetail', $this->viewData);
} elseif ($subType == 'export') {
//基金类型名称
$fundTypeName = isset($this->fundType[$fundType]) ? $this->fundType[$fundType] : '';
$fileName = $fundTypeName . '费用明细总控表';
$area && ($fileName .= $area . '区-');
$region && ($fileName .= $region . '-');
$spsarea && ($fileName .= $spsarea . '-');
$fileName .= $this->viewData['yearList'][$this->viewData['year']];
$fileName .= '-' . $this->viewData['timeUnitList'][$this->viewData['timeUnit']];
//设置excel文件下载头
setExcelDownHeader($fileName);
if ($fundType == 1) {
//专营店营销基金
//.........这里部分代码省略.........
示例10: getArrayColumnTotal
<td class="text-center"><?php
echo $regionTotal['settleMoney'];
?>
</td>
</tr>
<?php
}
}
?>
<?php
//所有汇总
$allTotal = getArrayColumnTotal($procList, array('budgetApply', 'budgetAudit', 'settleApply', 'settleAudit', 'settleMoney'), 1);
?>
<tr>
<td class="text-center" colspan="3"><a href="<?php
echo printUrl('Main', 'adminDetail', array('year' => $year, 'timeUnit' => $timeUnit, 'fundType' => $fundType));
?>
">全国</a></td>
<td class="text-center"><?php
echo $allTotal['budgetApply'];
?>
</td>
<td class="text-center"><?php
echo count($procList);
?>
</td>
<td class="text-center"><?php
echo $allTotal['budgetAudit'];
?>
</td>
<td class="text-center"><?php
示例11: initUploadButtons
<td class="text-center"><?php
echo $netData['settleAuditStr'];
?>
</td>
</tr>
<tr>
<td class="text-center" colspan="8">
<button type="submit" class="btn btn-default btn-primary" role="button">提交</button>
<button type="button" class="btn btn-default btn-primary" role="button" onclick="closeWindow()">关闭</button>
</td>
</tr>
</tbody>
</table>
</form>
<?php
initUploadButtons($netButtonIds, printUrl('Upload', 'uploadSave', array('dir' => 'image')), 'imgFile');
?>
<script type="text/javascript">
$(function(){
initValidation();
});
//初始化验证
function initValidation(){
$('form[name="settleSubmit"]').find("input,select,textarea").jqBootstrapValidation("destroy");
$('form[name="settleSubmit"]').find("input,select,textarea").not("[type=submit]").jqBootstrapValidation({
preventSubmit:false,
submitSuccess: function (form, event) {
event.preventDefault();
ajaxFormSubmit('settleSubmit');
},
submitError: function (form, event, errors) {
示例12: printUrl
?>
</div>
</div>
<?php
}
?>
<div class="form-group text-center">
<button type="button" class="btn btn-primary" onclick="ajaxConfirmSubmit('您确定要此执行反馈项目么?','<?php
echo printUrl('AdminPro', 'publish');
?>
',{'proId':<?php
echo $proId;
?>
})">发布反馈</button>
<button type="button" class="btn btn-primary" onclick="window.location.href='<?php
echo printUrl('AdminPro', 'index');
?>
'">取消</button>
</div>
<script type="text/javascript">
// 评分选择
$(".selectinput li").on("click",function(){
var num = $(this).index();//点击当前评分选择的序号
var num2 = $(this).parents(".selectinput").find("li").length;//评分选择的长度
$(this).parents(".selectinput").find(".grade").val(num+1);//评分选择的数值传进影藏input(type="hidden")里
$(this).parents(".selectinput").find("li").removeClass('checked');//去掉全部评分选择class样式
for(var i = 0; i < num+1;i++){
$(this).parents(".selectinput").find("li").eq(i).addClass('checked');//给当前评分选择前包括自己给个class样式
}
});
//单选选择
示例13: printUrl
?>
<?php
if ($this->auth->isXunBudgetEdit($procData)) {
?>
<a class="btn btn-default btn-sm buttona" role="button" href="<?php
echo printUrl('XunBudget', 'storeAdd', array('procId' => $procData['id']));
?>
">预算修改</a>
<?php
}
?>
<?php
if ($this->auth->isXunBudgetCheck($procData)) {
?>
<a class="btn btn-default btn-sm buttona" role="button" href="<?php
echo printUrl('XunBudget', 'check', array('procId' => $procData['id']));
?>
">详情查看</a>
<?php
}
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<script type="text/javascript">
$(function(){
示例14: detailAdd
/**
* 添加细项
*/
function detailAdd()
{
$this->load->model('cityODetailModel');
if ($_POST) {
$id = (int) $this->input->post('id');
$data = array('storeId' => $this->user['userId'], 'procId' => (int) $this->input->post('procId'), 'offlineId' => (int) $this->input->post('offlineId'), 'type' => (int) $this->input->post('type'), 'descType' => (int) $this->input->post('descType'), 'descTypeAlias' => $this->input->post('descTypeAlias'), 'startTime' => $this->input->post('startTime'), 'endTime' => $this->input->post('endTime'), 'remarks' => $this->input->post('remarks'), 'budgetApply' => (double) $this->input->post('budgetApply'));
$data['procId'] || showError('请选择主线流程');
$data['offlineId'] || showError('请选择下下活动');
$data['type'] || showError('明细类别不能为空');
$data['descType'] || showError('请选择费用项目描述');
if ($data['descType'] == -1 && !$data['descTypeAlias']) {
showError('请输入其它项目费用描述');
}
$data['startTime'] || showError('请选择活动开始时间');
$data['endTime'] || showError('请选择活动结束时间');
$data['budgetApply'] || showError('请填写预算费用');
if ($id) {
$id = $this->cityODetailModel->edit($id, $data);
} else {
$data['createTime'] = time();
$id = $this->cityODetailModel->add($data);
}
if ($id) {
showSuccess('保存成功', printUrl('CityOffline', 'add', array('offlineId' => $data['offlineId'])));
} else {
showError('保存错误');
}
} else {
$id = (int) $this->input->get('id');
$procId = (int) $this->input->get('procId');
$this->viewData['procId'] = $procId;
$offlineId = (int) $this->input->get('offlineId');
$this->viewData['offlineId'] = $offlineId;
if ($id) {
$detailData = $this->cityODetailModel->getData(array('id' => $id, 'storeId' => $this->user['userId']));
$detailData || showError('线下活动明细数据不存在');
$this->viewData['detailData'] = $detailData;
$this->viewData['procId'] = $detailData['procId'];
$this->viewData['offlineId'] = $detailData['offlineId'];
}
$this->viewData['procId'] || showError('请选择主线流程');
$this->viewData['offlineId'] || showError('请选择线下活动');
//项目数据
$this->load->model('cityProcessModel');
$procData = $this->cityProcessModel->getData($this->viewData['procId']);
$procData || showError('主线数据不存在');
$this->viewData['procData'] = $procData;
//线下活动数据
$this->load->model('cityOfflineModel');
$offlineData = $this->cityOfflineModel->getData($this->viewData['offlineId']);
$offlineData || showError('线下活动数据不存在');
$this->viewData['offlineData'] = $offlineData;
$this->load->view('CityOffline/detailAdd', $this->viewData);
}
}
示例15: check
/**
* 预算查看
*/
function check()
{
$procId = (int) $this->input->get('procId');
$procId || showError('请选择要查看的双月数据');
//面包屑
if ($this->user['userRole'] == 1) {
$this->viewData['breadcrumb'][] = array('url' => printUrl('CommonSettle', 'storeList'), 'title' => '专营店营销基金结算申请列表');
} else {
$this->viewData['breadcrumb'][] = array('url' => printUrl('CommonSettle', 'adminList'), 'title' => '专营店营销基金结算管理列表');
}
$this->viewData['breadcrumb'][] = array('url' => '', 'title' => '结算查看');
//主线流程数据
$this->load->model('commonProcessModel');
$procData = $this->commonProcessModel->getNewData(array('id' => $procId));
$this->viewData['procData'] = $procData;
if (!$this->auth->isCommonSettleCheck($procData)) {
showError('您无权限查看结算');
}
//专营店数据
$this->load->model('sellpointModel');
$this->viewData['storeData'] = $this->sellpointModel->getStoreIdData($procData['storeId']);
//广宣传播列表
$this->load->model('commonOnlineModel');
$this->viewData['onlineList'] = $this->commonOnlineModel->getNewList(array('procId' => $procId, 'budgetAudit > ' => 0, 'budgetAuditRs' => 1), NULL, NULL, '', 'id desc');
//营销活动列表
$this->load->model('commonOfflineModel');
$this->viewData['offlineList'] = $this->commonOfflineModel->getNewList(array('procId' => $procId, 'budgetAudit > ' => 0, 'budgetAuditRs' => 1), NULL, NULL, '', 'id desc');
//审核日志
$this->load->model('auditLogModel');
$this->viewData['auditList'] = $this->auditLogModel->getLogs(12, $procId);
//查看标记
$this->viewData['action'] = 'check';
$this->load->view('CommonSettle/check', $this->viewData);
}