datechange

This commit is contained in:
venbatechnologies 2018-06-19 14:00:06 +05:30
parent 6c1dd8fda4
commit 06e8d66c95
2 changed files with 30 additions and 12 deletions

View File

@ -478,23 +478,35 @@ function add($pathname)
// $result = $_POST['browseFiles'];
$arr = []; // $obj = json_decode($result, true);
// echo ' ' . $obj . ' ';
// die();
$arr = [];
$prefile =array(); $prefile =array();
for($i=1;$i<=$constant;$i++) for($i=1;$i<=$constant;$i++)
{ {
$pathname = 'browseFiles'.$i; $pathname = 'browseFiles'.$i;
if(!empty(str_replace(" ","",$_FILES[$pathname]['name']))) if(!empty($_FILES[$pathname]['name']))
{ {
$files = str_replace(" ","",$_FILES[$pathname]['name']);
$fcount = 0; $fcount = 0;
foreach ($prefile as $value) foreach ($prefile as $value)
{ {
if($value == str_replace(" ","",$_FILES[$pathname]['name'])) if($value == $files)
{ {
@ -514,7 +526,7 @@ $prefile =array();
} }
$prefile[] = str_replace(" ","",$_FILES[$pathname]['name']); $prefile[] = $files;
} }
} }
@ -1042,15 +1054,18 @@ $prefile =array();
{ {
$pathname = 'browseFiles'.$i; $pathname = 'browseFiles'.$i;
if(!empty(str_replace(" ","",$_FILES[$pathname]['name']))) if(!empty($_FILES[$pathname]['name']))
{ {
$files = str_replace(" ","",$_FILES[$pathname]['name']);
$fcount = 0; $fcount = 0;
foreach ($prefile as $value) foreach ($prefile as $value)
{ {
if($value == str_replace(" ","",$_FILES[$pathname]['name'])) if($value == $files)
{ {
@ -1070,7 +1085,7 @@ $prefile =array();
} }
$prefile[] = str_replace(" ","",$_FILES[$pathname]['name']); $prefile[] = $files;
} }
} }

View File

@ -113,8 +113,11 @@
"paging" : true, "paging" : true,
"ordering" : true, "ordering" : true,
"scrollCollapse" : true, "scrollCollapse" : true,
"aaSorting": [[ 0, "desc" ]], // "aaSorting": [[ 0, "desc" ]],
"searching" : true, // "searching" : true,
"searching" : false,
"columnDefs" : [{"targets":3, "type":"date"}],
// "columnDefs" : [{"targets":3, "type":"date-eu"}], // "columnDefs" : [{"targets":3, "type":"date-eu"}],
"bInfo": true "bInfo": true
}); });