Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flexydial
/
hdfc-beu-v2
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
6cc63ec9
authored
2019-02-28 18:19:09 +0530
by
prami
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Added excel format in camapaign management
1 parent
a2fbe0a3
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
2 deletions
application/app/Http/Controllers/CampaignController.php
application/public/assets/extras/MultipleUserCampaignUploadFormat.xlsx
application/public/assets/extras/MultipleUserMultipleCampaignUploadFormat.xlsx
application/public/assets/extras/campaignUserMappingFormat.xlsx
application/resources/views/layout/module/campaign/bulkupload.blade.php
application/resources/views/layout/module/campaign/campaignAssignToAgents.blade.php
application/app/Http/Controllers/CampaignController.php
View file @
6cc63ec
...
...
@@ -857,7 +857,14 @@ class CampaignController extends Controller {
$writer->save('php://output');*/
$filepath
=
"assets/extras/campaignUserMappingFormat.xlsx"
;
$action
=
Input
::
get
(
'action'
);
if
(
$action
==
'upload'
){
$filepath
=
"assets/extras/MultipleUserCampaignUploadFormat.xlsx"
;
}
else
if
(
$action
==
'bulkupload'
){
$filepath
=
"assets/extras/MultipleUserMultipleCampaignUploadFormat.xlsx"
;
}
return
Response
::
download
(
$filepath
);
}
...
...
application/public/assets/extras/MultipleUserCampaignUploadFormat.xlsx
0 → 100644
View file @
6cc63ec
No preview for this file type
application/public/assets/extras/MultipleUserMultipleCampaignUploadFormat.xlsx
0 → 100644
View file @
6cc63ec
No preview for this file type
application/public/assets/extras/campaignUserMappingFormat.xlsx
deleted
100644 → 0
View file @
a2fbe0a
No preview for this file type
application/resources/views/layout/module/campaign/bulkupload.blade.php
View file @
6cc63ec
...
...
@@ -69,7 +69,7 @@ $(document).ready(function(){
});
$
(
'#downloadExcel'
).
click
(
function
(){
window
.
open
(
'campaign/sampleDataExcel'
);
window
.
open
(
'campaign/sampleDataExcel
?action=bulkupload
'
);
return
false
;
});
});
...
...
application/resources/views/layout/module/campaign/campaignAssignToAgents.blade.php
View file @
6cc63ec
...
...
@@ -77,6 +77,9 @@ $dashboarduser=Auth::user();
<div
class=
"col-md-2"
>
<input
type=
"submit"
name=
"upload"
id=
"upload"
class=
"btn btn-primary"
value=
"Upload"
>
</div>
<div
class=
"col-md-2"
>
<span><a
href=
"javascript:void(0)"
id=
"downloadExcel"
>
Sample excel format
</a></span>
</div>
</form>
</div>
</div>
...
...
@@ -220,4 +223,9 @@ $(document).ready(function(){
}
});
$
(
'#downloadExcel'
).
click
(
function
(){
window
.
open
(
'campaign/sampleDataExcel?action=upload'
);
return
false
;
});
</script>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment