This commit is contained in:
heama 2023-07-29 15:19:17 +05:30
parent 5c8420f0d8
commit 39c40498fd
10 changed files with 35 additions and 18 deletions

View File

@ -524,24 +524,24 @@ class PHPExcel_Shared_String
* @author Rasmus Andersson {@link http://rasmusandersson.se/}
* @author vadik56
*/
public static function utf16_decode($str, $bom_be = TRUE)
// public static function utf16_decode($str, $bom_be = TRUE)
if( strlen($str) < 2 ) return $str;
$c0 = ord($str{0});
$c1 = ord($str{1});
if( $c0 == 0xfe && $c1 == 0xff ) { $str = substr($str,2); }
elseif( $c0 == 0xff && $c1 == 0xfe ) { $str = substr($str,2); $bom_be = false; }
$len = strlen($str);
$newstr = '';
for($i=0;$i<$len;$i+=2) {
if( $bom_be ) { $val = ord($str{$i}) << 4; $val += ord($str{$i+1}); }
else { $val = ord($str{$i+1}) << 4; $val += ord($str{$i}); }
$newstr .= ($val == 0x228) ? "\n" : chr($val);
}
return $newstr;
}
}
// if( strlen($str) < 2 ) return $str;
// $c0 = ord($str{0});
// $c1 = ord($str{1});
// if( $c0 == 0xfe && $c1 == 0xff ) { $str = substr($str,2); }
// elseif( $c0 == 0xff && $c1 == 0xfe ) { $str = substr($str,2); $bom_be = false; }
// $len = strlen($str);
// $newstr = '';
// for($i=0;$i<$len;$i+=2) {
// if( $bom_be ) { $val = ord($str{$i}) << 4; $val += ord($str{$i+1}); }
// else { $val = ord($str{$i+1}) << 4; $val += ord($str{$i}); }
// $newstr .= ($val == 0x228) ? "\n" : chr($val);
// }
// return $newstr;
// }
// }
/**
* Get character count. First try mbstring, then iconv, finally strlen
*

View File

@ -634,13 +634,12 @@ function() {
oTable = $("#scroll-horizontal-datatable").DataTable({
lengthChange: !1,
dom: 'Bfrtip',
buttons: [
{
extend: "csvHtml5",
exportOptions: {
columns: [ 0, 1, 2, 3, 4, 23, 24, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 ]
columns: [ 0, 1, 2, 3, 4, 5,6,7,8,9,10,11,12,13,14]
}
}
@ -649,6 +648,22 @@ function() {
// 'csvHtml5'
// 'pdfHtml5'
],
// buttons: [{
// extend: "excelHtml5",
// className: "btn-light"
// }
// // , {
// // extend: "print",
// // className: "btn-light"
// // }, {
// // extend: "pdf",
// // className: "btn-light"
// // }
scrollX: !0,
language: {
paginate: {

View File

@ -0,0 +1 @@
"SEGMENT","INV DATE","GST INVOICE NO","REF NO","DOC TYPE","BILLING ENTITY","PASSENGER NAME","AIRLINE CODE","TICKET NO","SECTOR","CABINCLASS","TOTAL TKT FARE","REMARKS","ACTION","INVOICE"
1 SEGMENT INV DATE GST INVOICE NO REF NO DOC TYPE BILLING ENTITY PASSENGER NAME AIRLINE CODE TICKET NO SECTOR CABINCLASS TOTAL TKT FARE REMARKS ACTION INVOICE

View File

@ -0,0 +1 @@
"SEGMENT","INV DATE","GST INVOICE NO","REF NO","DOC TYPE","BILLING ENTITY","PASSENGER NAME","AIRLINE CODE","TICKET NO","SECTOR","CABINCLASS","TOTAL TKT FARE","REMARKS","ACTION","INVOICE"
1 SEGMENT INV DATE GST INVOICE NO REF NO DOC TYPE BILLING ENTITY PASSENGER NAME AIRLINE CODE TICKET NO SECTOR CABINCLASS TOTAL TKT FARE REMARKS ACTION INVOICE

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.