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

@ -477,24 +477,36 @@ function add($pathname)
$constant = $this->input->post('hideconstants');
// $result = $_POST['browseFiles'];
// $obj = json_decode($result, true);
// echo ' ' . $obj . ' ';
// die();
$arr = [];
$arr = [];
$prefile =array();
for($i=1;$i<=$constant;$i++)
{
{
$pathname = 'browseFiles'.$i;
if(!empty(str_replace(" ","",$_FILES[$pathname]['name'])))
{
if(!empty($_FILES[$pathname]['name']))
{
$files = str_replace(" ","",$_FILES[$pathname]['name']);
$fcount = 0;
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;
if(!empty(str_replace(" ","",$_FILES[$pathname]['name'])))
{
if(!empty($_FILES[$pathname]['name']))
{
$files = str_replace(" ","",$_FILES[$pathname]['name']);
$fcount = 0;
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,
"ordering" : true,
"scrollCollapse" : true,
"aaSorting": [[ 0, "desc" ]],
"searching" : true,
// "aaSorting": [[ 0, "desc" ]],
// "searching" : true,
"searching" : false,
"columnDefs" : [{"targets":3, "type":"date"}],
// "columnDefs" : [{"targets":3, "type":"date-eu"}],
"bInfo": true
});