This commit is contained in:
@@ -144,13 +144,14 @@
|
||||
$nRow = 1;
|
||||
foreach ($st_list as $row) {
|
||||
|
||||
// if ($row['depth'] == '1') {
|
||||
// $rowPars = array_merge($pars, array('bonbu' => $row['dept_sq']));
|
||||
// } else {
|
||||
// $rowPars = array_merge($pars, array('bonbu' => $row['pdept_sq'], 'dept_sq' => $row['dept_sq']));
|
||||
// }
|
||||
|
||||
echo '<tr onmouseover="this.className=\'highlight\'" onmouseout="this.className=\'normal\'" style="cursor:pointer" onclick="tr_onclick();">';
|
||||
$pars = [];
|
||||
if ($row['depth'] == '1') {
|
||||
$rowPars = array_merge($pars, array('bonbu' => $row['dept_sq']));
|
||||
} else {
|
||||
$rowPars = array_merge($pars, array('bonbu' => $row['pdept_sq'], 'dept_sq' => $row['dept_sq']));
|
||||
}
|
||||
|
||||
echo '<tr onmouseover="this.className=\'highlight\'" onmouseout="this.className=\'normal\'" style="cursor:pointer" onclick="tr_onclick(\'' . make_query_string($rowPars) . '\');">';
|
||||
echo '<td>' . $nRow . '</td>';
|
||||
echo '<td style="text-align:left">' . str_replace(' ', ' ', $row['dept_nm']) . '</td>';
|
||||
echo '<td>' . $row['region_cnt'] . '</td>';
|
||||
@@ -231,8 +232,8 @@
|
||||
|
||||
});
|
||||
|
||||
function tr_onclick() {
|
||||
location.href = '/article/receipt/lists';
|
||||
function tr_onclick(pars) {
|
||||
location.href = '/article/receipt/lists' + pars;
|
||||
}
|
||||
|
||||
// 엑셀 다운로드
|
||||
|
||||
Reference in New Issue
Block a user