sweet alert2
swal({ title: "생산 & 재가공을 진행 합니다", text: "생산 단계를 선택를 해주세요", type: "info", showCancelButton: true, showCloseButton: true, confirmButtonClass: "btn-danger", confirmButtonText: "ok!!", cancelButtonClass: "btn-pink", cancelButtonColor: "#ef0000", cancelButtonText: "cancle!!", closeOnConfirm: false }).then((result) => { if (result.value) { // TRUE Swal.fire( 'title', 'text', 'success' ); } else if (re..
2020. 4. 8.
[PHP] 날짜 가지고 놀기
//기본 날짜 세팅 - 이 부분을 날짜를 바꿔가면서 테스트 하시면 됩니다. $year = "2019"; $month = "06"; $day = "01"; $nowday = mktime(0,0,0,$month, $day, $year); //오늘 $today = date("Y.m.d", $nowday); //일주일전 $prev_week = date("Y.m.d", mktime(0,0,0,$month, $day-7, $year)); //일주일후 $next_week = date("Y.m.d", mktime(0,0,0,$month, $day+7, $year)); //이번달 마지막 날짜? $last_day = date("t",$nowday); //이번달은 몇 주? //$month_week1 = date('t', m..
2019. 6. 21.