file alert msg
This commit is contained in:
parent
641877ce7a
commit
0182669da8
@ -470,11 +470,11 @@ function add($pathname)
|
|||||||
if($POStatus==SPECIAL_PO){
|
if($POStatus==SPECIAL_PO){
|
||||||
|
|
||||||
$count = $this->input->post('hidecounters');
|
$count = $this->input->post('hidecounters');
|
||||||
$constant = $this->input->post('hideconstants');
|
//$constant = $this->input->post('hideconstants');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for($i=1;$i<=$constant;$i++){
|
for($i=1;$i<=$count;$i++){
|
||||||
$pathname = 'browseFiles'.$i;
|
$pathname = 'browseFiles'.$i;
|
||||||
if(!empty($_FILES[$pathname]['name']))
|
if(!empty($_FILES[$pathname]['name']))
|
||||||
{
|
{
|
||||||
@ -482,22 +482,22 @@ function add($pathname)
|
|||||||
|
|
||||||
$Picture = $this->add($pathname);
|
$Picture = $this->add($pathname);
|
||||||
|
|
||||||
$arr[] = array($Picture);
|
$arr[$i] = $Picture;
|
||||||
}
|
}
|
||||||
// }
|
// }
|
||||||
|
|
||||||
foreach($arr as $ma){
|
foreach($arr as $ma){
|
||||||
|
|
||||||
|
$myfile = array('FilePath'=>$ma,'PONO'=>$PONO);
|
||||||
$index = 0;
|
// $index = 0;
|
||||||
foreach($ma as $key=>$value){
|
// foreach($ma as $key=>$value){
|
||||||
$index++;
|
// $index++;
|
||||||
if($index == 1){
|
// if($index == 1){
|
||||||
$filename = $value;
|
// $filename = $value;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
$myfile = array('FilePath'=>$filename,'PONO'=>$PONO);
|
|
||||||
$this->purchaseorder_model->fileupload($myfile);
|
$this->purchaseorder_model->fileupload($myfile);
|
||||||
|
|
||||||
|
|
||||||
@ -975,22 +975,12 @@ $RequestedBy = $this->input->post('drpDepartment');
|
|||||||
}
|
}
|
||||||
|
|
||||||
$counts = $this->input->post('hidecounter');
|
$counts = $this->input->post('hidecounter');
|
||||||
$constants = $this->input->post('hideconstant');
|
//$constants = $this->input->post('hideconstant');
|
||||||
|
|
||||||
// if(empty($filename))
|
|
||||||
// {
|
|
||||||
// // echo $IGRNO;
|
|
||||||
// // echo $PONO;
|
|
||||||
|
|
||||||
// $myfile = array('FilePath'=>$filename,'PONO'=>$PONO,'IGRNO'=>$IGRNO);
|
|
||||||
// // print_r($myfile);
|
|
||||||
// $this->purchaseorder_model->fileupload($myfile);
|
|
||||||
|
|
||||||
// }
|
|
||||||
// else{
|
|
||||||
|
|
||||||
|
|
||||||
for($i=1;$i<=$constants;$i++){
|
|
||||||
|
|
||||||
|
for($i=1;$i<=$counts;$i++){
|
||||||
$pathname = 'browseFiles'.$i;
|
$pathname = 'browseFiles'.$i;
|
||||||
|
|
||||||
|
|
||||||
@ -1001,26 +991,25 @@ $RequestedBy = $this->input->post('drpDepartment');
|
|||||||
|
|
||||||
$Picture = $this->addfile($pathname);
|
$Picture = $this->addfile($pathname);
|
||||||
//echo $Picture;
|
//echo $Picture;
|
||||||
$arr[] = array($Picture);
|
$arr[$i] =$Picture;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//}
|
|
||||||
//print_r($arr);
|
|
||||||
foreach($arr as $ma){
|
foreach($arr as $ma){
|
||||||
|
|
||||||
|
$myfile = array('FilePath'=>$ma,'PONO'=>$PONO,'IGRNO'=>$IGRNO);
|
||||||
$index = 0;
|
// $index = 0;
|
||||||
$filename = null;
|
// $filename = null;
|
||||||
foreach($ma as $key=>$value){
|
// foreach($ma as $key=>$value){
|
||||||
$index++;
|
// $index++;
|
||||||
if($index == 1){
|
// if($index == 1){
|
||||||
$filename = $value;
|
// $filename = $value;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
$myfile = array('FilePath'=>$filename,'PONO'=>$PONO,'IGRNO'=>$IGRNO);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -3846,7 +3846,7 @@ $("#addmorebutton").click(function(){
|
|||||||
var bill = <?php echo json_encode($getdata)?>;
|
var bill = <?php echo json_encode($getdata)?>;
|
||||||
if(bill.length>=5){
|
if(bill.length>=5){
|
||||||
|
|
||||||
alert("No more files to add");//this allows only 5 files;
|
alert("Five files Only updated");//this allows only 5 files;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|||||||
@ -8715,7 +8715,7 @@ $("#addmorebutton").click(function(){
|
|||||||
//alert('sda');
|
//alert('sda');
|
||||||
|
|
||||||
if(counter>4){
|
if(counter>4){
|
||||||
alert("No more files to add");//this allows only 5 files;
|
alert("Five files Only updated");//this allows only 5 files;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
@ -8823,7 +8823,7 @@ $("#addemorebutton").click(function(){
|
|||||||
//alert('sda');
|
//alert('sda');
|
||||||
|
|
||||||
if(counters>4){
|
if(counters>4){
|
||||||
alert("No more files to add");//this allows only 5 files;
|
alert("Five files Only updated");//this allows only 5 files;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
@ -8910,7 +8910,7 @@ function removeRows(input) {
|
|||||||
counters --;
|
counters --;
|
||||||
|
|
||||||
$("#divid"+number).remove();
|
$("#divid"+number).remove();
|
||||||
$('#hidecounter').val(counters);
|
$('#hidecounters').val(counters);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4021,27 +4021,7 @@ return tot;
|
|||||||
<div class="col-md-12" id="splpodiv">
|
<div class="col-md-12" id="splpodiv">
|
||||||
<div class="col-md-12"><label>Special po Table List</label>
|
<div class="col-md-12"><label>Special po Table List</label>
|
||||||
|
|
||||||
<table id="table2" class="table table-hover table-bordered" style="background-color:#fff;font-size:12px;" > <div class="col-md-12">
|
<table id="table2" class="table table-hover table-bordered" style="background-color:#fff;font-size:12px;" >
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-offset-10 col-md-8" >
|
|
||||||
|
|
||||||
<input type="button" class="btn btn-primary" id ="addmorebutton" value=" ADD FILES..">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="newdiv"></div>
|
|
||||||
<input type="hidden" name="hidecounter" id="hidecounter" value="0" />
|
|
||||||
<input type="hidden" name="hideconstant" id="hideconstant" value="0" />
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<thead style="background-color:#ddf">
|
<thead style="background-color:#ddf">
|
||||||
<tr>
|
<tr>
|
||||||
<!-- <th>Bill No </th> -->
|
<!-- <th>Bill No </th> -->
|
||||||
@ -4098,6 +4078,27 @@ return tot;
|
|||||||
<div class="col-md-12"><!-- <label>Special po Table List</label> -->
|
<div class="col-md-12"><!-- <label>Special po Table List</label> -->
|
||||||
|
|
||||||
<table id="table3" class="table table-hover table-bordered" style="background-color:#fff;font-size:12px;" >
|
<table id="table3" class="table table-hover table-bordered" style="background-color:#fff;font-size:12px;" >
|
||||||
|
<div class="col-md-12">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-offset-10 col-md-8" >
|
||||||
|
|
||||||
|
<input type="button" class="btn btn-primary" id ="addmorebutton" value=" ADD FILES..">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div id="newdiv"></div>
|
||||||
|
<input type="hidden" name="hidecounter" id="hidecounter" value="0" />
|
||||||
|
<input type="hidden" name="hideconstant" id="hideconstant" value="0" />
|
||||||
|
|
||||||
|
</div>
|
||||||
<thead style="background-color:#ddf">
|
<thead style="background-color:#ddf">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Bill No </th>
|
<th>Bill No </th>
|
||||||
@ -5774,7 +5775,7 @@ return tot;
|
|||||||
//alert(bill.length);
|
//alert(bill.length);
|
||||||
if(bill.length>=5){
|
if(bill.length>=5){
|
||||||
|
|
||||||
alert("No more files to add");//this allows only 5 files;
|
alert("Five files Only updated");//this allows only 5 files;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user