ÿØÿà JFIF ` ` ÿþ
Server : Apache System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : tkt_travelbus ( 1137) PHP Version : 7.0.0p1 Disable Function : mysql_pconnect Directory : /tkt_travelbus/www/admin/work_request/ |
Upload File : |
<?php $is_main = "Y"; include "../include/top.html"; $b2b_not_mode = true; //대리점 또는 공급처 외 if($TK_MEMBER['mb_level'] == 5) $perm_str = "alert('권한이 없습니다');return;"; $href = "mode=$mode"; $href.= "&select_key=$select_key"; $href.= "&input_key=$input_key"; $param = $href."&page=$page"; // 담당자 $admin_arr = member_fetch(" and mb_level <= 10 and del_flag='N' "); $admin_arr = array_reverse($admin_arr); //업무구분 $workType = getWorkTypeList(); $SqlType = "insert"; if($mode == 'modify'){ $SqlType = "edit"; $workRequestData = getWorkRequestData($SEQ); $workRequestData = $workRequestData[0]; } $processTypeList = getProcessTypeList(); ?> <style> .contents_detail{width:1131px} #processTypeArea label{float:left;margin-right:15px} #processTypeArea input{float:left;margin-right:5px;position:relative;top:3px} #processTypeArea label{;padding: 3px 10px;color: #fff;border-radius: 3px;} #processTypeArea .labelProcessTypeemergency{background: red} #processTypeArea .labelProcessTypetoday{background: #FF7675} #processTypeArea .labelProcessTypenotice{background: #000} #processTypeArea .labelProcessTypeceoCommand{background: #ffb142} #processTypeArea .labelProcessTypecoWorking{background: #00CEC9} #processTypeArea .labelProcessType{color:#000} </style> <div class="main_wrap"> <div class="contents_wrap_in"> <?php include $_SERVER['DOCUMENT_ROOT'].'/admin/main/main_tab.html'; ?> <br> <br> <div class="title"> 업무요청<span class="arrow">></span><strong>업무 <?=($SEQ)?"수정":"등록"?></strong> </div> <div class="contents_detail"> <div id="Content_box"> <form name="cmm_ins_form" id="cmm_ins_form" method="post" enctype="multipart/form-data" action="work_request_proc.php"> <input type="hidden" name="param" id="param" value="<?=$param?>" /> <input type="hidden" name="SEQ" id="SEQ" value="<?=((isset($workRequestData['SEQ']) ? $workRequestData['SEQ'] : ''))?>" /> <input type="hidden" name="SqlType" id="SqlType" value="<?=$SqlType?>" /> <input type="hidden" name="type" id="type" value="write"/> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write mt10" summary="게시물을 등록하실 수 있습니다." > <caption>게시물 등록</caption> <tbody> <tr> <th style="border-top:1px solid #000;background:#f2fcea" width="120" scope="row"><label for="MEM_NM">업무요청자</label></th> <td style="width:205px; border-top:1px solid #000;background:#f2fcea"> <p style="display:inline-block;margin-top:4px"><?=((isset($workRequestData['MEM_NM']) ? $workRequestData['MEM_NM'] : $TK_MEMBER['mb_nm']))?></p> <b style="font-size:25px;float:right"> <i class="xi-share"></i> </b> </td> <th style="border-top:1px solid #000;background:#f2fcea" width="120" scope="row"><label for="MEM_NM" style="color: green; font-weight: bold;">업무진행자</label></th> <td style="border-top:1px solid #000;width:218px;background:#f2fcea"> <select name="performer" id="performer" hname="업무진행자" required> <option value="">==선택==</option> <? for($i=0 ; $i < count($admin_arr) ; $i++){ $arr = $admin_arr[$i]; if($arr['mb_id'] == 'monster' || $arr['mb_id'] == 'tourbossdj') { continue; } ?> <option value="<?=$arr['mb_id']?>" <?php if($workRequestData){ if($arr['mb_id'] == $workRequestData['performer']){ echo "selected"; }else{ echo ""; } } ?> ><?=$arr['mb_nm']?></option> <?}?> </select> </td> <th style="border-top:1px solid #000;background:#f2fcea" width="120" scope="row"><label for="MEM_NM">업무구분</label></th> <td style="border-top:1px solid #000;background:#f2fcea" colspan="5"> <select id="workType" name="workType" hname="업무구분" required> <?php foreach($workType as $key => $value){ ?> <option value="<?=$key?>" <?php if($workRequestData){ if($key == $workRequestData['workType']){ echo "selected"; }else{ echo ""; } } ?> ><?=$value?></option> <?php } ?> </select> </td> </tr> <tr> <th scope="row"><label for="MTITLE">처리구분</label></th> <td colspan="5" id="processTypeArea"> <?php foreach($processTypeList as $key => $value){ ?> <input type="radio" name="processType" id="processType<?=$key?>" value="<?=$key?>" <?=(($workRequestData['processType'] == $key) ? 'checked' : '')?>/> <label class="labelProcessType<?=$key?>" for="processType<?=$key?>"><?=$value?></label> <?php } ?> </td> </tr> <tr> <th scope="row"><label for="MTITLE">업무제목</label></th> <td colspan="5"><input name="MTITLE" id="MTITLE" type="text" style="width:800px;" class="input_text" value="<?=$workRequestData['MTITLE']?>" style='ime-mode:active' hname="제목" required /></td> </tr> <tr> <th scope="row"><label for="MTITLE">업무완료일</label></th> <td colspan="5"> <input type="text" name="work_end_date" id="work_end_date" class="cal_input" hname="업무완료일" value="<?=((isset($workRequestData['work_end_date'])) ? $workRequestData['work_end_date'] : '')?>" onclick="AjaxCal(this,event,{'add_event':'clear_period_date()'});" readonly> <b style="font-weight:300; position: relative; top: 1px;">※ 업무 스케쥴을 고려하여 업무완료일을 조율 후 입력해 주세요.</b> </td> </tr> <tr> <th scope="row"><label for="MCONT">내용</label></th> <td colspan="5"><textarea name="MCONT" id="MCONT" class="ckeditor"><?=((isset($workRequestData['MCONT'])) ? $workRequestData['MCONT'] : '')?></textarea></td> </tr> <?php if($mode == 'modify' && $workRequestData['MFILE1']){ ?> <tr> <th scope="row"><label for="MCONT">첨부파일</label></th> <td colspan="5"> <? for($f=1; $f<=6; $f++) { if($workRequestData["MFILE".$f]) { ?> <a href="../lib/Download.php?Type=WORK_REQUEST&FileName=<?=$workRequestData["MFILE".$f]?>&FileNameOrg=<?=urlencode($workRequestData["MFILE".$f."_org"])?>" title="다운로드"> <span class="style_3" style="text-decoration: underline"><?=$workRequestData["MFILE".$f."_org"]?></span> </a> <br> <? } } ?> </td> </tr> <?php } ?> <tr> <th scope="row"> <img src="../../image/board/bullet_disk.gif" align="top" alt="파일첨부" />#파일첨부 </th> <td colspan="5"> <? for($f=1; $f<=6; $f++) { ?> <input type="hidden" name="MFILE<?=$f?>" value="<?=$data["MFILE0".$f]?>" /> <?if($data["MFILE".$f]){?> <img src="../../image/board/bullet_disk.gif" align="top" /> <a href="../lib/Download.php?Type=WORK_REQUEST&FileName=<?=$data["MFILE".$f]?>&FileNameOrg=<?=urlencode($data["MFILE".$f."_org"])?>"><span class="style_3"><?=$data["MFILE".$f."_org"]?></span></a> <img src="../image/btn/btn_delete.gif" align="top" style="cursor:pointer" alt="삭제" onclick="fnc_ImageDel('SEQ','<?=$SEQ?>','TB_WORK_REQUEST','MFILE<?=$f?>','<?=$data["MFILE".$f]?>','/FileData/WORK_REQUEST/');" /> <? // 이미지 파일일 경우 (20090820 ) if (preg_match("/\.(jpeg|jpg|jpe|gif|png|bmp)$/", $data["MFILE".$f])) { $url1 = $_SERVER[DOCUMENT_ROOT]."/FileData/WORK_REQUEST/".$data["MFILE".$f]; $target1 = "/FileData/WORK_REQUEST/".$data["MFILE".$f]; // 이미지 사이즈를 구함 if (file_exists($url1)) { $img_size1 = GetImageSize($url1); $img_width1 = $img_size1[0]; //이미지의 넓이를 알 수 있음 $img_height1 = $img_size1[1]; //이미지의 높이를 알 수 있음 if ($img_width1 > 300) { $img_width1 = 300; } ?> <br /> <img src="<?=$target1?>" width="<?=$img_width1?>" onclick="to_dialog.image(this.src,'#<?=$f?>');" vspace="5" style="cursor:pointer;" alt="첨부이미지" /> <? } ?> <?}?> <br /> <?}?> <input type="file" name="T_UserFile<?=$f?>" class="input_file input_text" size="50" style="height:18px;<?=($f == 2 || $f==3 || $f==5 || $f==6) ? 'margin-left:6px' : '' ?>" /> <? } ?> </td> </tr> </tbody> </table> </form> </div> <div class="btn_wrap_C mt30" style="background:#edf0f5;_margin-left:-260px;"> <a href="#" class="Bbtn red" onclick="<?=$perm_str?>chk_cmm_form();"><?=($SEQ)?"수정":"등록"?>하기</a> <!--<a href="#" class="Bbtn" onclick="document.location.reload();">다시작성</a>--> <a href="work_request.html?<?=$param?>" class="Bbtn">목록으로</a> </div> <div id="check_in" style="width:100%;height:100px;"></div> </div> </div> </div> </div> <iframe name="IMGIF" id="IMGIF" width="0" height="0" style="display:none;"></iframe> <script type="text/javascript"> $(function(){ editor = CKEDITOR.replace('MCONT', {width:'800px',height:'350px'}); }); $(document).ready(function(){ }); function chk_cmm_form(){ var f = document.cmm_ins_form; var result = to_validation(f); if(result==false) return false; f.submit(); } function check_comment(){ } // 첨부파일 삭제 함수 (20090820 ) function fnc_ImageDel(IDX_NM, SEQ, TB_NM, FL_NM, IMG_NM, IMG_PATH) { if (confirm('정말 삭제하시겠습니까?')) { var Url = "ImgDel.php?IDX_NM=" + IDX_NM + "&SEQ=" + SEQ + "&TB_NM=" + TB_NM + "&FL_NM=" + FL_NM + "&IMG_NM=" + IMG_NM + "&IMG_PATH=" + IMG_PATH; IMGIF.location.href = Url; } } function clear_period_date(){ } </script> <? include "../include/footer.html" ?>