6cc63ec9 by prami

Added excel format in camapaign management

1 parent a2fbe0a3
......@@ -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);
}
......
......@@ -69,7 +69,7 @@ $(document).ready(function(){
});
$('#downloadExcel').click(function(){
window.open('campaign/sampleDataExcel');
window.open('campaign/sampleDataExcel?action=bulkupload');
return false;
});
});
......
......@@ -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>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!