@ -93,10 +93,11 @@ if(empty($contract_new_apply)){
$price_b = $price_b + $pay['pay_amount'];
$price_b = $price_b + $pay['pay_amount'];
}
}
}
}
}
}
$secondPayDeadline = $contract['secondPayDeadline'] ?? 0;
$status = isset($contract['status']) ? $contract['status'] : -1;
$status = isset($contract['status']) ? $contract['status'] : -1;
$person = $contract['person'];
?>
?>
< link rel = "stylesheet" href = "./styles/style.css" >
< link rel = "stylesheet" href = "./styles/style.css" >
< link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity = "sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin = "anonymous" referrerpolicy = "no-referrer" / >
< link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity = "sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin = "anonymous" referrerpolicy = "no-referrer" / >
@ -490,7 +491,7 @@ $status = isset($contract['status']) ? $contract['status'] : -1;
< / tbody >
< / tbody >
< / table >
< / table >
< button @ click = "window.history.go(-1)" type = "button" class = "btn btn-primary btn-lg pull-right savebtn" > 回前頁< / button >
< button @ click = "window.history.go(-1)" type = "button" class = "btn btn-primary btn-lg pull-right savebtn" > 回前頁< / button >
<?php if ( $isFirst == 1 || ( $isFirst == 0 && $status == 0 ) ) : ?>
<?php if (( $isFirst == 1 && $person == $user_id ) || ( $isFirst == 0 && $status == 0 && $person == $user_id ) ) : ?>
< button x-show = "true" x-on:click = "submit()" :disabled = "isLoading" type = "button" class = "btn btn-primary btn-lg pull-right savebtn" >
< button x-show = "true" x-on:click = "submit()" :disabled = "isLoading" type = "button" class = "btn btn-primary btn-lg pull-right savebtn" >
< template x-if = "!isLoading" >
< template x-if = "!isLoading" >
< span > 送審< / span >
< span > 送審< / span >
@ -508,7 +509,7 @@ $status = isset($contract['status']) ? $contract['status'] : -1;
< / template >
< / template >
< / button >
< / button >
<?php endif ; ?>
<?php endif ; ?>
<?php if ( $status == 1 && ( $user_id == "M0107" || $user_id == "M0174" )) : ?>
<?php if ( $status == 1 && ( $user_id == "M0107" || $user_id == "M0060" || $user_id == "M0 174" )) : ?>
< button x-show = "true" x-on:click = "agree()" :disabled = "isLoading" type = "button" class = "btn btn-primary btn-lg pull-right savebtn" >
< button x-show = "true" x-on:click = "agree()" :disabled = "isLoading" type = "button" class = "btn btn-primary btn-lg pull-right savebtn" >
< template x-if = "!isLoading" >
< template x-if = "!isLoading" >
< span > 同意(結案)< / span >
< span > 同意(結案)< / span >
@ -586,12 +587,14 @@ $status = isset($contract['status']) ? $contract['status'] : -1;
const regulations = '<?php echo $contract [ 'test_time' ] ?> ';
const regulations = '<?php echo $contract [ 'test_time' ] ?> ';
const workdeadline_a = '<?php echo $contract [ 'workdeadline_a' ] ?> ';
const workdeadline_a = '<?php echo $contract [ 'workdeadline_a' ] ?> ';
const workdeadline_b = '<?php echo $contract [ 'workdeadline_b' ] ?> ';
const workdeadline_b = '<?php echo $contract [ 'workdeadline_b' ] ?> ';
const secondPayDeadline = <?php echo $contract [ 'secondPayDeadline' ] ?> ;
const secondPayDeadline = <?php echo $secondPayDeadline ; ?> ;
const contract_new_apply_id = <?php echo $contract_new_apply_id ; ?> ;
const contract_new_apply_id = <?php echo $contract_new_apply_id ; ?> ;
< / script >
< / script >
<?php if ( $status > 0 ) : ?>
<?php endif ; ?>
<?php if ( $status > 0 || $person != $user_id ) : ?>
< script >
< script >
const input = document.querySelectorAll('input');
const input = document.querySelectorAll('input');
for(let i=0;i< input.length ; i + + ) {
for(let i=0;i< input.length ; i + + ) {
@ -604,4 +607,3 @@ $status = isset($contract['status']) ? $contract['status'] : -1;
< / script >
< / script >
<?php endif ; ?>
<?php endif ; ?>
<?php endif ; ?>