本文整理匯總了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);
}