query($sql);
$total_row = $stmh->rowCount();
} catch (PDOException $Exception) {
print "오류: ".$Exception->getMessage();
}
$motor_outputdonedate = $total_row ;
$a=" where deadline='$now' and is_deleted IS NULL order by num desc ";
$sql="select * from " . $DB . ".motor " . $a;
?>
| 진행상황 |
출하 |
발주처 |
현장명 |
배송방법 |
상차지 |
배송주소 |
내역 |
query($sql);
$total_row = $stmh->rowCount();
$start_num=$total_row; // 페이지당 표시되는 첫번째 글순번
while($row = $stmh->fetch(PDO::FETCH_ASSOC)) {
include 'motor/_row.php';
// 사진등록 찾기
$registpicture = '' ;
$sqltmp=" select * from ".$DB.".picuploads where parentnum ='$num'";
try{
// 레코드 전체 sql 설정
$stmhtmp = $pdo->query($sqltmp);
while($rowtmp = $stmhtmp->fetch(PDO::FETCH_ASSOC)) {
$registpicture = "등록" ;
}
} catch (PDOException $Exception) {
print "오류: ".$Exception->getMessage();
}
// 주자재 합계 문자열 생성
$contentslist = '';
$firstItemAdded = false;
$items = [
'realscreensu' => '스크린M',
'realsteelsu' => '철재M',
'realprotectsu' => '방범M',
'realsmokesu' => '제연M',
'realexplosionsu' => '방폭M'
];
foreach ($items as $key => $value) {
if (!empty($row[$key])) {
if (!$firstItemAdded) {
$contentslist .= ' 모,브 ';
$firstItemAdded = true;
}
$contentslist .= $value . ' ' . $row[$key] . 'EA, ';
}
}
// 마지막 쉼표 제거
$contentslist = rtrim($contentslist, ', ');
// 연동제어기
$conses = json_decode($controllerlist, true);
$controllerlist = '';
$firstAccessory = true;
foreach ($conses as $cons) {
if ($firstAccessory) {
$controllerlist .= ' 연동 ';
$firstAccessory = false;
}
$controllerlist .= $cons['col2'] . ':' . $cons['col3'] . 'EA, ';
}
// 마지막 쉼표 제거
$controllerlist = rtrim($controllerlist, ', ');
// 부속자재 합계 문자열 생성
$accessories = json_decode($accessorieslist, true);
$accessorieslist = '';
$firstAccessory = true;
foreach ($accessories as $accessory) {
if ($firstAccessory) {
$accessorieslist .= ' 부속 ';
$firstAccessory = false;
}
$accessorieslist .= $accessory['col1'] . ':' . $accessory['col2'] . 'EA, ';
}
// 마지막 쉼표 제거
$accessorieslist = rtrim($accessorieslist, ', ');
// 각 리스트를 합치고
추가
$finalList = '';
if (!empty($contentslist)) {
$finalList .= $contentslist . '
';
}
if (!empty($controllerlist)) {
$finalList .= $controllerlist . '
';
}
if (!empty($accessorieslist)) {
$finalList .= $accessorieslist . '
';
}
// 마지막
제거
$finalList = rtrim($finalList, '
');
$contentslist = $finalList;
if($deliverymethod == '대신화물' || $deliverymethod == '경동화물' )
{
// 상차지에 화물지점표기함
$address = $delbranch . (!empty($delbranchaddress) ? ' (' . $delbranchaddress . ')' : '');
$loadplace = '(주)대한 본사';
}
if($deliverymethod == '택배' )
{
// 상차지에 화물지점표기함
$loadplace = '(주)대한 본사';
}
if($deliverymethod == '직배송' )
{
// 상차지에 화물지점표기함
$loadplace = '(주)대한 본사';
}
?>
|
' . $status . '';
} else if ($status == '접수확인') {
echo '' . $status . '';
} else if ($status == '준비중') {
echo '' . $status . '';
}else if ($status == '출고대기') {
echo '' . $status . '';
}else if ($status == '출고완료') {
echo '' . $status . '';
}
?>
|
=$registpicture?> |
=$secondord?> |
=$workplacename?> |
= $deliverymethod ?> |
= $loadplace?> |
= $address?> |
=$contentslist?> |
getMessage();
}
?>