'end' and is_deleted IS NULL and al_askdatefrom IS NOT NULL order by num desc "; if($user_name == '이경묵') $a = " where status<>'end' and al_part='제조파트' and is_deleted IS NULL and al_askdatefrom IS NOT NULL order by num desc "; if($user_name== '최장중') $a = " where status<>'end' and al_part='지원파트' and is_deleted IS NULL and al_askdatefrom IS NOT NULL order by num desc "; $sql="select * from " . $DB . "." . $tablename . " " . $a; // print $sql; try{ $stmh = $pdo->query($sql); // 검색조건에 맞는글 stmh $temp1=$stmh->rowCount(); $total_row=$temp1; } catch (PDOException $Exception) { print "오류: ".$Exception->getMessage(); } if($total_row > 0 ) { try{ $stmh = $pdo->query($sql); // 검색조건에 맞는글 stmh $temp1=$stmh->rowCount(); $total_row=$temp1; ?>
| 번호 | 신청인 성명 | 구분 | 연차 시작일 | 연차 종료일 | 잔여 일수 | 신청 일수 | 신청 사유 | 결재진행 상태 |
|---|---|---|---|---|---|---|---|---|
| =$start_num?> | =$author?> | =$al_item?> | =$al_askdatefrom?> | =$al_askdateto?> | =$totalremainday?> | =$al_usedday?> | =$al_content?> | =$statusstr?> |