ÿØÿà 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/setting/ |
Upload File : |
<? include "../include/top.html"; if(!$ap_code)exit; $arr_docu = base_codec("ACC","DOCG",$ap_code,"N"); $arr_docu = $arr_docu[0]; $data = to_get_papers_info($ap_code); //print_r2($arr_docu); $dt_papers = $data[auth_papers]; $dt_members = $data[auth_members]; $arr_deptcode = base_codec("CRP","DEPT","","N"); $arr_ranktcode = base_codec("CRP","RANK","","N"); $arr_rankmember = to_get_rank_member(); $arr_available = explode("||",$dt_papers['ap_available']); ?> <style> input[type='checkbox']{ vertical-align: middle; } label{ padding: 0 10px 0 5px; } </style> <div class="contents_wrap"> <div class="contents_wrap_in"> <div class="title"><?=$data['ap_nm']?> 관리</div> <div class="contents_detail"> <form name="frm_auth_papers" id="frm_auth_papers" method="post"> <input type="hidden" name="sqlType" value="ins_papers" /> <input type="hidden" name="ap_code" value="<?=$arr_docu['code']?>" /> <input type="hidden" name="ap_nm" value="<?=$arr_docu['cd_nm']?>" /> <table width="90%" border="0" cellspacing="0" cellpadding="0" class="t_register"> <thead> <tr> <td colspan="2" class="t_top_line"></td> </tr> <tr> <td colspan="2" class="top_txt">작성권한 설정</td> </tr> </thead> <tbody> <tr> <th width="150" scope="row"><label for="shop_company">작성권한</label></th> <td> <? if(is_array($arr_deptcode)){ foreach($arr_deptcode as $row_dept){ $chk_checked = "N"; foreach($arr_available as $arr){ if($row_dept['code'] == $arr) $chk_checked = "Y"; } ?> <input type="checkbox" name="ap_available[]" id="<?=$row_dept['code']?>" value="<?=$row_dept['code']?>" <?=($chk_checked=="Y")?"checked":""?>><label for="<?=$row_dept['code']?>"><?=$row_dept['cd_nm']?></label> <? } } ?> </td> </tr> </tbody> </table> <? if($ap_code == "DOCG001"){ ?> <table width="90%" border="0" cellspacing="0" cellpadding="0" class="t_register"> <thead> <tr> <td colspan="2" class="t_top_line"></td> </tr> <tr> <td colspan="2" class="top_txt">송금권한 설정</td> </tr> </thead> <tbody> <tr> <th width="150" scope="row"><label for="shop_company">송금권한</label></th> <td> <select name="ap_pay_id"> <? foreach($arr_rankmember as $row_member){ ?> <option value="<?=$row_member['mb_id']?>" <?=($dt_papers['ap_pay_id']==$row_member['mb_id'])?"selected":""?>><?=$row_member['mb_nm']?></option> <? } ?> </select> </td> </tr> </tbody> </table> <? } ?> </form> <ul class="btn_check"> <li class="btn01"><a href="javascript:;" onclick="chk_frm('frm_auth_papers');">저장</a></li> </ul> </div> <div> <form name="frm_auth_member" id="frm_auth_member" method="post"> <input type="hidden" name="sqlType" value="ins_member" /> <input type="hidden" name="ap_code" value="<?=$arr_docu['code']?>" /> <input type="hidden" name="ap_nm" value="<?=$arr_docu['cd_nm']?>" /> <table width="90%" border="0" cellspacing="0" cellpadding="0" class="t_register"> <thead> <tr><td colspan="7" class="t_top_line"></td></tr> <tr> <td colspan="7" class="top_txt">결제권한 설정 <img src="../image/btn/add.gif" align="top" border="0" style="cursor:pointer" alt="추가" onclick="chk_frm('frm_auth_member');"></td> </tr> </thead> <tbody> <tr> <td colspan="7"> <div> <span style="margin:0 10px 0 8px;">권한지정타이틀</span> <input type="text" name="ap_item_title" id="ap_item_title" class="input_text" size="35"/> </div> </td> </tr> <tr> <th style="width:14%;">1단계 승인</th> <th style="width:14%;">2단계 승인</th> <th style="width:14%;">3단계 승인</th> <th style="width:14%;">4단계 승인</th> <th style="width:14%;">5단계 승인</th> <th style="width:14%;">6단계 승인</th> <th style="width:14%;">7단계 승인 (최종)</th> </tr> <tr> <? for($k=1;$k<8;$k++){ ?> <td> <div style="padding:3px 5px 0 10px;"> <select name="ap_step<?=$k?>_rank" id="ap_step<?=$k?>_rank" style="width:80px;" onchange="to_get_id_box('<?=$k?>',this.value);"> <option value="">====</option> <? if(is_array($arr_ranktcode)){ foreach($arr_ranktcode as $row_rank){ ?> <option value="<?=$row_rank['code']?>" <?=($row_rank['code'] == $data['ap_step'.$k.'_rank'])?"selected":""?>><?=$row_rank['cd_nm']?></option> <? } } ?> </select> </div> <div id="ajax_step<?=$k?>_id" style="padding:5px 5px 0 10px;"></div> </td> <? } ?> </tr> </tbody> </table> </form> </div> <div id="ajax_auth_members_box" style="margin-top:30px;"></div> </div> </div> <script type="text/javascript"> $(document).ready(function(){ $.post("ajax.papers_member.html",{ap_code:'<?=$ap_code?>'},function(data,status){ $("#ajax_auth_members_box").html(data); }); }); function to_get_id_box(step_num,rank_code,mb_id){ $.post("ajax.papers_auth_id.html",{step_num:step_num,rank_code:rank_code,mb_id:mb_id},function(data,status){ $("#ajax_step"+step_num+"_id").html(data); }); } function chk_frm(frm_nm){ if(frm_nm == "frm_auth_papers") var f = document.frm_auth_papers; else var f = document.frm_auth_member; f.action = "papers_proc.html"; f.submit(); } </script>