"; // echo "Num: " . $num . "
"; $tablename = 'todos_monthly'; require_once($_SERVER['DOCUMENT_ROOT'] . "/lib/mydb.php"); $pdo = db_connect(); try { // Prepare SQL query to fetch data from todos_monthly table if ($mode === 'modify' && $num) { $sql = "SELECT * FROM " . $tablename . " WHERE num=?"; $stmh = $pdo->prepare($sql); $stmh->bindValue(1, $num, PDO::PARAM_INT); $stmh->execute(); $row = $stmh->fetch(PDO::FETCH_ASSOC); if ($row) { // Existing record $title = $row['title']; $registdate = $row['registdate']; $itemsep = $row['itemsep']; $specialday = $row['specialday']; $first_writer = $row['first_writer']; $update_log = $row['update_log']; $searchtag = $row['searchtag']; } else { echo "Record not found."; exit; } } else { // New record $title = ''; $registdate = date('Y-m-d'); $itemsep = ''; $specialday = ''; $first_writer = $user_name ; $update_log = ''; $searchtag = ''; } } catch (PDOException $Exception) { echo "오류: " . $Exception->getMessage(); exit; } $incomeOptions = [ '거래처 수금' => '거래처에서 입금한 금액', '최초 현금 입력' => '금전출납부 시작' ]; $expenseOptions = [ '급여(인건비)' => '직원 급여', '접대비' => '경조사비용', '통신비' => '전화요금, 인터넷요금', '세금과공과금' => '등록면허세, 취득세, 재산세등 각종세금', '차량유지비' => '유류대, 통행료', '보험료' => '차량보험료, 화재보험료등', '운반비' => '택배운반비외 각종운반비', '소모품비' => '각종 소모품 비용', '수수료비용' => '이체수수료, 등기수수료등', '복리후생비' => '직원 식대외 직원 작업복등', '개발비' => '프로그램 개발비용', '이자비용' => '이자비용', '카드대금' => '카드대금', '통관비' => '통관비', '자재비' => '자재비', '기계장치' => '기계구입', '선급금' => '미리 지급하는 금액', '지급임차료' => '지급임차료', '지급수수료' => '지금수수료' ]; ?>
등록일자 작성자
매월
 
항목
내용