Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /var/www/html/manage/eperson/link/ drwxr-xr-x |
Viewing file: function.php (33.69 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | $netAmount) return round(($amount*$taxRate) / 100, 2); else return 0; } function calTaxOnClick() { ?> 0 if date a< date b,date a== date b,date a > date b respectively. function compareDate($i_sFirstDate, $i_sSecondDate) { //Break the Date strings into seperate components $arrFirstDate = explode ("-", $i_sFirstDate); $arrSecondDate = explode ("-", $i_sSecondDate); $intFirstDay = $arrFirstDate[0]; $intFirstMonth = $arrFirstDate[1]; $intFirstYear = $arrFirstDate[2]; $intSecondDay = $arrSecondDate[0]; $intSecondMonth = $arrSecondDate[1]; $intSecondYear = $arrSecondDate[2]; // Calculate the diference of the two dates and return the number of days. $intDate1Jul = gregoriantojd($intFirstMonth, $intFirstDay, $intFirstYear); $intDate2Jul = gregoriantojd($intSecondMonth, $intSecondDay, $intSecondYear); return $intDate1Jul - $intDate2Jul; }//end Compare Date function calBankNoteAndCoin() { ?> |