diff --git a/public_html/doc/forecast_list.php b/public_html/doc/forecast_list.php index 38cce93..acba7c7 100644 --- a/public_html/doc/forecast_list.php +++ b/public_html/doc/forecast_list.php @@ -417,9 +417,9 @@ while($list=mysqli_fetch_array($result, MYSQLI_ASSOC)) { $list_numberSTR = $list_number; $classSTR = ""; } - + $strList .= " - + $list_numberSTR - $c_nameSTR   $driverPopup + $c_nameSTR   $driverPopup $c_accountno $c_maincontainer $c_containerSTR @@ -603,7 +603,7 @@ if ($c_type_r == 'R') { $driverPopup = ""; $strList_r .= " - + R - $c_nameSTR   $driverPopup + $c_nameSTR   $driverPopup $c_accountno $c_maincontainer $c_containerSTR @@ -704,7 +704,7 @@ if ($c_type_p == 'P') { $driverPopup = ""; $strList_s .= " - + S - $c_nameSTR   $driverPopup - $c_accountno + $c_nameSTR   $driverPopup + $c_accountno $c_maincontainer $c_containerSTR $c_paymenttype @@ -1560,4 +1560,118 @@ $(document).ready(function(){ - \ No newline at end of file + + + +
+
+

+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/public_html/lib/shortInfo_right_lib.php b/public_html/lib/shortInfo_right_lib.php new file mode 100644 index 0000000..a0d3724 --- /dev/null +++ b/public_html/lib/shortInfo_right_lib.php @@ -0,0 +1,288 @@ +nQuery($customerQuery, "customer query error"); +$firstRow = mysqli_fetch_array($customerResult, MYSQLI_ASSOC); + +// $c_nameSTR = htmlspecialchars($firstRow['c_name'], ENT_QUOTES); +$c_commentSTR = htmlspecialchars($firstRow['c_comment_ri'], ENT_QUOTES); + + +/*----------------------------------- + NOTE 데이터 +------------------------------------*/ +$notesPerPage = 3; + +// 전체 개수 조회 +$noteCountQuery = " + SELECT COUNT(*) AS total + FROM tbl_note + WHERE n_customeruid = '$c_uid' +"; +$noteCountResult = $jdb->nQuery($noteCountQuery, "note count error"); +$noteCount = mysqli_fetch_array($noteCountResult, MYSQLI_ASSOC)['total']; + +$totalNotePages = ceil($noteCount / $notesPerPage); +if ($note_page < 1) $note_page = 1; +$note_start = ($note_page - 1) * $notesPerPage; + +// NOTE 조회 +$noteQuery = " + SELECT * + FROM tbl_customer tc + LEFT OUTER JOIN tbl_note tn ON tc.c_uid = tn.n_customeruid + LEFT OUTER JOIN tbl_member tm ON tn.n_memberuid = tm.m_uid + WHERE tc.c_uid = '$c_uid' + ORDER BY tn.n_createddate DESC + LIMIT $note_start, $notesPerPage +"; +$noteResult = $jdb->nQuery($noteQuery, "note query error"); + + +/*----------------------------------- + OIL HISTORY 데이터 +------------------------------------*/ +$oilPerPage = 10; + +// 전체 개수 조회 +$oilCountQuery = " + SELECT COUNT(*) AS total + FROM tbl_daily + WHERE d_customeruid = '$c_uid' + AND d_status = 'F' +"; +$oilCountResult = $jdb->nQuery($oilCountQuery, "oil count error"); +$oilCount = mysqli_fetch_array($oilCountResult, MYSQLI_ASSOC)['total']; + +$totalOilPages = ceil($oilCount / $oilPerPage); +if ($oil_page < 1) $oil_page = 1; +$oil_start = ($oil_page - 1) * $oilPerPage; + +// 데이터 조회 +$oilQuery = " + SELECT * + FROM tbl_daily td + LEFT OUTER JOIN tbl_request tr ON td.d_ruid = tr.r_uid + LEFT OUTER JOIN tbl_member tm ON td.d_driveruid = tm.m_uid + WHERE td.d_customeruid = '$c_uid' + AND td.d_status = 'F' + ORDER BY td.d_visitdate DESC + LIMIT $oil_start, $oilPerPage +"; +$oilResult = $jdb->nQuery($oilQuery, "oil query error"); + +?> + +
+ +

Comment

+
+ + +

Note

+ + + + + + + + + + + "; + } ?> +
DateNote
$date$txt
+ + + + +

Oil History

+ + + + + + + + + + + + + "; + } ?> +
DateQuantityPaid (Cash)
$date$qty$pay
+ + + +
+ + + + +