5) { sleep(1); header("Location:" . $WebSite . "login/login_form.php"); exit; } ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); include $_SERVER['DOCUMENT_ROOT'] . '/load_header.php'; $mode = isset($_REQUEST['mode']) ? $_REQUEST['mode'] : ''; $num = isset($_REQUEST["num"]) ? $_REQUEST["num"] : ""; $tablename = isset($_REQUEST["tablename"]) ? $_REQUEST["tablename"] : ""; if ($mode === 'copy') { $title_message = "(데이터복사) 모터 단가"; } else { $title_message = "모터 단가"; } ?> <?=$title_message?> prepare($sql); $stmh->bindValue(1, $num, PDO::PARAM_STR); $stmh->execute(); $count = $stmh->rowCount(); $row = $stmh->fetch(PDO::FETCH_ASSOC); // $row 배열로 DB 정보를 불러온다. if ($count < 1) { print "검색결과가 없습니다.
"; } else { include '_row.php'; } } catch (PDOException $Exception) { print "오류: ".$Exception->getMessage(); } } if ($mode == "copy" || $mode == 'split') { try { $sql = "select * from " . $DB . ".{$tablename} where num = ? "; $stmh = $pdo->prepare($sql); $stmh->bindValue(1, $num, PDO::PARAM_STR); $stmh->execute(); $count = $stmh->rowCount(); if($count<1){ print "검색결과가 없습니다.
"; } else { $row = $stmh->fetch(PDO::FETCH_ASSOC); } include '_row.php'; } catch (PDOException $Exception) { print "오류: ".$Exception->getMessage(); } // 자료번호 초기화 $num = 0; $registedate=date("Y-m-d"); $mode = 'insert'; } if(empty($mode)) $mode='insert'; ?>
등록일 메모
품목(item)
모터 단가표
+- NO. 구분 단가표 합계 1달러 위엔화 달러 달러 통관+운송 판매가 판매마진 매출대비
품목 모터 브라켓 콘트롤박스 리미트 위엔화 위엔화 달러 한화 한화 합계 20% UP (모터+브라켓) 마진율(%)