i want to download all images in zip file by click on download button in ci












0















i want to download image files in zip format by click on download button.



view



<table class="table" id="ItrDetailTable">

<thead class="ItrDetailThead">
<tr>
<th scope="col">Sr.No.</th>
<th scope="col">Pan No.</th>
<th scope="col">Mobile</th>
<th scope="col">Assestment Year</th>
<th scope="col">Residential Status</th>
<th scope="col">Employee Category</th>
<th scope="col">Payment Status</th>
<th scope="col">ITR Status</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody id="myTable">
<?php if (count($records)):
$count = $this->uri->segment(3);
$key = +$count;
?>
<?php $n = 1;
foreach (@$records as $record): ?>
<tr>
<th scope="row"><?php echo $key++ + 1; ?></th>
<td class="ItrDetailTd"> <?php echo $record->panno; ?></td>
<td class="ItrDetailTd"><?php echo $record->mobno; ?></td>
<td class="ItrDetailTd"><?php echo $record->assessment_year; ?> </td>
<td class="ItrDetailTd"> <?php echo $record->residential_status; ?></td>
<td class="ItrDetailTd"> <?php echo $record->employee_category; ?> </td>
<td class="ItrDetailTd"> <?php echo $record->Payment_Status; ?> </td>
<td class="ItrDetailTd"> <?php echo $record->itr_status; ?> </td>
<td class="ItrDetailTd">
<a title="View" href="<?php echo base_url('admin/orders_history?itr_id=' . $record->id) ?>"
class="btn btn-primary">View Orders </a>

<a href="<?php echo base_url("Admin/DownloadITRDetails/{$record->id}"); ?>">&nbsp;<button type="button" class="btn btn-primary">Download</button></a> </td>

</tr>
<?php endforeach; endif; ?>
</tbody>
</table>


controller



    public function DownloadITRDetails($record_id)
{
$this->load->library('zip');
$this->load->helper('file');
$path = "./services/v3/uploads/FORM16/";
$files = get_filenames($path);
// print_r($files);die;
foreach ($files as $file) {
$this->zip->read_file($path . $file, true);
}
$this->zip->download("download files");
}




This is my page image.i want to download all images by their ids.










share|improve this question




















  • 1





    what is the issue? please follow stackoverflow.com/help/mcve when writing questions and follow proper formatting

    – Alex
    Nov 15 '18 at 10:38













  • sir when i click download button thats give me full folder image

    – arpit dubey
    Nov 15 '18 at 10:45






  • 1





    what does that mean?

    – Alex
    Nov 15 '18 at 10:45
















0















i want to download image files in zip format by click on download button.



view



<table class="table" id="ItrDetailTable">

<thead class="ItrDetailThead">
<tr>
<th scope="col">Sr.No.</th>
<th scope="col">Pan No.</th>
<th scope="col">Mobile</th>
<th scope="col">Assestment Year</th>
<th scope="col">Residential Status</th>
<th scope="col">Employee Category</th>
<th scope="col">Payment Status</th>
<th scope="col">ITR Status</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody id="myTable">
<?php if (count($records)):
$count = $this->uri->segment(3);
$key = +$count;
?>
<?php $n = 1;
foreach (@$records as $record): ?>
<tr>
<th scope="row"><?php echo $key++ + 1; ?></th>
<td class="ItrDetailTd"> <?php echo $record->panno; ?></td>
<td class="ItrDetailTd"><?php echo $record->mobno; ?></td>
<td class="ItrDetailTd"><?php echo $record->assessment_year; ?> </td>
<td class="ItrDetailTd"> <?php echo $record->residential_status; ?></td>
<td class="ItrDetailTd"> <?php echo $record->employee_category; ?> </td>
<td class="ItrDetailTd"> <?php echo $record->Payment_Status; ?> </td>
<td class="ItrDetailTd"> <?php echo $record->itr_status; ?> </td>
<td class="ItrDetailTd">
<a title="View" href="<?php echo base_url('admin/orders_history?itr_id=' . $record->id) ?>"
class="btn btn-primary">View Orders </a>

<a href="<?php echo base_url("Admin/DownloadITRDetails/{$record->id}"); ?>">&nbsp;<button type="button" class="btn btn-primary">Download</button></a> </td>

</tr>
<?php endforeach; endif; ?>
</tbody>
</table>


controller



    public function DownloadITRDetails($record_id)
{
$this->load->library('zip');
$this->load->helper('file');
$path = "./services/v3/uploads/FORM16/";
$files = get_filenames($path);
// print_r($files);die;
foreach ($files as $file) {
$this->zip->read_file($path . $file, true);
}
$this->zip->download("download files");
}




This is my page image.i want to download all images by their ids.










share|improve this question




















  • 1





    what is the issue? please follow stackoverflow.com/help/mcve when writing questions and follow proper formatting

    – Alex
    Nov 15 '18 at 10:38













  • sir when i click download button thats give me full folder image

    – arpit dubey
    Nov 15 '18 at 10:45






  • 1





    what does that mean?

    – Alex
    Nov 15 '18 at 10:45














0












0








0








i want to download image files in zip format by click on download button.



view



<table class="table" id="ItrDetailTable">

<thead class="ItrDetailThead">
<tr>
<th scope="col">Sr.No.</th>
<th scope="col">Pan No.</th>
<th scope="col">Mobile</th>
<th scope="col">Assestment Year</th>
<th scope="col">Residential Status</th>
<th scope="col">Employee Category</th>
<th scope="col">Payment Status</th>
<th scope="col">ITR Status</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody id="myTable">
<?php if (count($records)):
$count = $this->uri->segment(3);
$key = +$count;
?>
<?php $n = 1;
foreach (@$records as $record): ?>
<tr>
<th scope="row"><?php echo $key++ + 1; ?></th>
<td class="ItrDetailTd"> <?php echo $record->panno; ?></td>
<td class="ItrDetailTd"><?php echo $record->mobno; ?></td>
<td class="ItrDetailTd"><?php echo $record->assessment_year; ?> </td>
<td class="ItrDetailTd"> <?php echo $record->residential_status; ?></td>
<td class="ItrDetailTd"> <?php echo $record->employee_category; ?> </td>
<td class="ItrDetailTd"> <?php echo $record->Payment_Status; ?> </td>
<td class="ItrDetailTd"> <?php echo $record->itr_status; ?> </td>
<td class="ItrDetailTd">
<a title="View" href="<?php echo base_url('admin/orders_history?itr_id=' . $record->id) ?>"
class="btn btn-primary">View Orders </a>

<a href="<?php echo base_url("Admin/DownloadITRDetails/{$record->id}"); ?>">&nbsp;<button type="button" class="btn btn-primary">Download</button></a> </td>

</tr>
<?php endforeach; endif; ?>
</tbody>
</table>


controller



    public function DownloadITRDetails($record_id)
{
$this->load->library('zip');
$this->load->helper('file');
$path = "./services/v3/uploads/FORM16/";
$files = get_filenames($path);
// print_r($files);die;
foreach ($files as $file) {
$this->zip->read_file($path . $file, true);
}
$this->zip->download("download files");
}




This is my page image.i want to download all images by their ids.










share|improve this question
















i want to download image files in zip format by click on download button.



view



<table class="table" id="ItrDetailTable">

<thead class="ItrDetailThead">
<tr>
<th scope="col">Sr.No.</th>
<th scope="col">Pan No.</th>
<th scope="col">Mobile</th>
<th scope="col">Assestment Year</th>
<th scope="col">Residential Status</th>
<th scope="col">Employee Category</th>
<th scope="col">Payment Status</th>
<th scope="col">ITR Status</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody id="myTable">
<?php if (count($records)):
$count = $this->uri->segment(3);
$key = +$count;
?>
<?php $n = 1;
foreach (@$records as $record): ?>
<tr>
<th scope="row"><?php echo $key++ + 1; ?></th>
<td class="ItrDetailTd"> <?php echo $record->panno; ?></td>
<td class="ItrDetailTd"><?php echo $record->mobno; ?></td>
<td class="ItrDetailTd"><?php echo $record->assessment_year; ?> </td>
<td class="ItrDetailTd"> <?php echo $record->residential_status; ?></td>
<td class="ItrDetailTd"> <?php echo $record->employee_category; ?> </td>
<td class="ItrDetailTd"> <?php echo $record->Payment_Status; ?> </td>
<td class="ItrDetailTd"> <?php echo $record->itr_status; ?> </td>
<td class="ItrDetailTd">
<a title="View" href="<?php echo base_url('admin/orders_history?itr_id=' . $record->id) ?>"
class="btn btn-primary">View Orders </a>

<a href="<?php echo base_url("Admin/DownloadITRDetails/{$record->id}"); ?>">&nbsp;<button type="button" class="btn btn-primary">Download</button></a> </td>

</tr>
<?php endforeach; endif; ?>
</tbody>
</table>


controller



    public function DownloadITRDetails($record_id)
{
$this->load->library('zip');
$this->load->helper('file');
$path = "./services/v3/uploads/FORM16/";
$files = get_filenames($path);
// print_r($files);die;
foreach ($files as $file) {
$this->zip->read_file($path . $file, true);
}
$this->zip->download("download files");
}




This is my page image.i want to download all images by their ids.







javascript php codeigniter






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 15 '18 at 10:39









Alex

6,20842363




6,20842363










asked Nov 15 '18 at 10:25









arpit dubeyarpit dubey

24




24








  • 1





    what is the issue? please follow stackoverflow.com/help/mcve when writing questions and follow proper formatting

    – Alex
    Nov 15 '18 at 10:38













  • sir when i click download button thats give me full folder image

    – arpit dubey
    Nov 15 '18 at 10:45






  • 1





    what does that mean?

    – Alex
    Nov 15 '18 at 10:45














  • 1





    what is the issue? please follow stackoverflow.com/help/mcve when writing questions and follow proper formatting

    – Alex
    Nov 15 '18 at 10:38













  • sir when i click download button thats give me full folder image

    – arpit dubey
    Nov 15 '18 at 10:45






  • 1





    what does that mean?

    – Alex
    Nov 15 '18 at 10:45








1




1





what is the issue? please follow stackoverflow.com/help/mcve when writing questions and follow proper formatting

– Alex
Nov 15 '18 at 10:38







what is the issue? please follow stackoverflow.com/help/mcve when writing questions and follow proper formatting

– Alex
Nov 15 '18 at 10:38















sir when i click download button thats give me full folder image

– arpit dubey
Nov 15 '18 at 10:45





sir when i click download button thats give me full folder image

– arpit dubey
Nov 15 '18 at 10:45




1




1





what does that mean?

– Alex
Nov 15 '18 at 10:45





what does that mean?

– Alex
Nov 15 '18 at 10:45












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53317287%2fi-want-to-download-all-images-in-zip-file-by-click-on-download-button-in-ci%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53317287%2fi-want-to-download-all-images-in-zip-file-by-click-on-download-button-in-ci%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Xamarin.iOS Cant Deploy on Iphone

Glorious Revolution

Dulmage-Mendelsohn matrix decomposition in Python