datechange
This commit is contained in:
parent
6c1dd8fda4
commit
06e8d66c95
@ -477,24 +477,36 @@ function add($pathname)
|
|||||||
$constant = $this->input->post('hideconstants');
|
$constant = $this->input->post('hideconstants');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// $result = $_POST['browseFiles'];
|
||||||
|
|
||||||
|
// $obj = json_decode($result, true);
|
||||||
|
|
||||||
|
// echo ' ' . $obj . ' ';
|
||||||
|
// die();
|
||||||
|
|
||||||
|
|
||||||
$arr = [];
|
$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;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user