summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakshay2024-12-12 16:51:44 +0530
committerGitHub2024-12-12 16:51:44 +0530
commitb5c481f6cdf2e5d2e6adc0896085a9a5c47a6644 (patch)
tree6c9e70d785188404bb56083eb12ab5c857f91711
parent28919cd78c16c128a49878c3da9a8cefe16c1b93 (diff)
parent6b5a9520ea8da2ff6047c2e89a53b79f0b18cbea (diff)
downloadEsim-Pspice-to-kicad-convertor-b5c481f6cdf2e5d2e6adc0896085a9a5c47a6644.tar.gz
Esim-Pspice-to-kicad-convertor-b5c481f6cdf2e5d2e6adc0896085a9a5c47a6644.tar.bz2
Esim-Pspice-to-kicad-convertor-b5c481f6cdf2e5d2e6adc0896085a9a5c47a6644.zip
Merge pull request #6 from akshay9085/masterHEADmaster
table data order by year
-rwxr-xr-xpspice_to_kicad.module7
1 files changed, 4 insertions, 3 deletions
diff --git a/pspice_to_kicad.module b/pspice_to_kicad.module
index eef6744..971e42c 100755
--- a/pspice_to_kicad.module
+++ b/pspice_to_kicad.module
@@ -590,10 +590,11 @@ function pspice_to_kicad_view()
$rows = array();
$header = array(
- array('data' => 'Date'),
+
array('data' => 'Uploaded by'),
array('data' => 'Download'),
array('data' => ''),
+ array('data' => 'Date'),
);
@@ -613,10 +614,10 @@ function pspice_to_kicad_view()
$user = $query->execute();
$user_data = $user->fetchObject();
- $item = array(date('d-m-Y', strtotime($row->converted_date)), $user_data->name,
+ $item = array( $user_data->name,
l($row->converted_filename, '/pspice-to-kicad/download/file/' . $row->id, array('attributes' => array('title' => 'Click to download converted file'))),
"<a href='description/{$row->id}' class='autodialog' data-dialog-width='700' title='Click to view more detail about file'>Detail</a>",
-
+ date('d-m-Y', strtotime($row->converted_date)),
);
array_push($rows, $item);
}