batchcard multiple file issues fixes
This commit is contained in:
parent
8c92964ced
commit
062b73f35a
@ -751,15 +751,15 @@ class batchcard extends BaseController
|
|||||||
$count = $this->input->post('hidecounter');
|
$count = $this->input->post('hidecounter');
|
||||||
$constant = $this->input->post('hideconstant');
|
$constant = $this->input->post('hideconstant');
|
||||||
|
|
||||||
//for($i=1;$i<=$constant;$i++){
|
for($i=1;$i<=$constant;$i++){
|
||||||
for($i=1;$i<=$count;$i++){
|
|
||||||
|
|
||||||
$varname = 'filename'.$i;
|
|
||||||
$temp = $this->input->post($varname);
|
|
||||||
$pathname = 'browseFiles'.$i;
|
$pathname = 'browseFiles'.$i;
|
||||||
$Picture = $this->add($pathname);
|
if(!empty($_FILES[$pathname]['name']))
|
||||||
$arr[] = array($temp,$Picture);
|
{
|
||||||
|
$varname = 'filename'.$i;
|
||||||
|
$temp = $this->input->post($varname);
|
||||||
|
$Picture = $this->add($pathname);
|
||||||
|
$arr[] = array($temp,$Picture);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($arr as $ma){
|
foreach($arr as $ma){
|
||||||
@ -831,15 +831,15 @@ class batchcard extends BaseController
|
|||||||
|
|
||||||
$count = $this->input->post('hidecounter');
|
$count = $this->input->post('hidecounter');
|
||||||
$constant = $this->input->post('hideconstant');
|
$constant = $this->input->post('hideconstant');
|
||||||
//for($i=1;$i<=$constant;$i++){
|
for($i=1;$i<=$constant;$i++){
|
||||||
for($i=1;$i<=$count;$i++){
|
|
||||||
|
|
||||||
$varname = 'filename'.$i;
|
|
||||||
$temp = $this->input->post($varname);
|
|
||||||
$pathname = 'browseFiles'.$i;
|
$pathname = 'browseFiles'.$i;
|
||||||
$Picture = $this->add($pathname);
|
if(!empty($_FILES[$pathname]['name']))
|
||||||
$arr[] = array($temp,$Picture);
|
{
|
||||||
|
$varname = 'filename'.$i;
|
||||||
|
$temp = $this->input->post($varname);
|
||||||
|
$Picture = $this->add($pathname);
|
||||||
|
$arr[] = array($temp,$Picture);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
foreach($arr as $ma){
|
foreach($arr as $ma){
|
||||||
|
|
||||||
@ -1004,15 +1004,15 @@ class batchcard extends BaseController
|
|||||||
$count = $this->input->post('hidecounter');
|
$count = $this->input->post('hidecounter');
|
||||||
$constant = $this->input->post('hideconstant');
|
$constant = $this->input->post('hideconstant');
|
||||||
|
|
||||||
//for($i=1;$i<=$constant;$i++){
|
for($i=1;$i<=$constant;$i++){
|
||||||
for($i=1;$i<=$count;$i++){
|
|
||||||
|
|
||||||
$varname = 'filename'.$i;
|
|
||||||
$temp = $this->input->post($varname);
|
|
||||||
$pathname = 'browseFiles'.$i;
|
$pathname = 'browseFiles'.$i;
|
||||||
$Picture = $this->add($pathname);
|
if(!empty($_FILES[$pathname]['name']))
|
||||||
$arr[] = array($temp,$Picture);
|
{
|
||||||
|
$varname = 'filename'.$i;
|
||||||
|
$temp = $this->input->post($varname);
|
||||||
|
$Picture = $this->add($pathname);
|
||||||
|
$arr[] = array($temp,$Picture);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($arr as $ma){
|
foreach($arr as $ma){
|
||||||
@ -1174,15 +1174,15 @@ class batchcard extends BaseController
|
|||||||
|
|
||||||
$count = $this->input->post('hidecounter');
|
$count = $this->input->post('hidecounter');
|
||||||
$constant = $this->input->post('hideconstant');
|
$constant = $this->input->post('hideconstant');
|
||||||
//for($i=1;$i<=$constant;$i++){
|
for($i=1;$i<=$constant;$i++){
|
||||||
for($i=1;$i<=$count;$i++){
|
|
||||||
|
|
||||||
$varname = 'filename'.$i;
|
|
||||||
$temp = $this->input->post($varname);
|
|
||||||
$pathname = 'browseFiles'.$i;
|
$pathname = 'browseFiles'.$i;
|
||||||
$Picture = $this->add($pathname);
|
if(!empty($_FILES[$pathname]['name']))
|
||||||
$arr[] = array($temp,$Picture);
|
{
|
||||||
|
$varname = 'filename'.$i;
|
||||||
|
$temp = $this->input->post($varname);
|
||||||
|
$Picture = $this->add($pathname);
|
||||||
|
$arr[] = array($temp,$Picture);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
foreach($arr as $ma){
|
foreach($arr as $ma){
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user