PlannerXE123 Q&A 게시판
諾 (대답할 낙)
朝變夕改 조변석개
변덕스럽게 자꾸 고침을 일컬음.

늘푸른나무2

플래너님 안녕하세요,

 

view_document.html 파일(V583) 180~186번 라인을 아래와 붉은색 코드로 변경 해놓고 결과를 한번 보시기 바랍니다.

 

변경 전

<!--@if($_doc_status != 'X')-->
<select id="slt_Status" style="height:25px;">
<!--@foreach($_status_arr as $key => $val)-->
<option value="{$key}" <!--@if($_doc_status == $key)--> selected="selected"<!--@end--> >{$val}</option>
<!--@end-->
</select>
{@ $url_base = getUrl('document_srl',$oDocument->document_srl,'status_chg','');}
<a id="link_status_normal" href="#" class="buttonOfficial" style="margin-right:20px;"><span>{$lang->pln_status_change}</span></a>

<!--@end-->
 

 

변경 후

<!--@if($_doc_status != 'X')-->
<!--@if($_doc_status == ';N' || $_doc_status == '' || $_doc_status == 'A')--><!--//기본 -->
{@ $new_status = 'F'}
<!--@elseif($_doc_status == 'F')-->
{@ $new_status = 'A'}
<!--@elseif($_doc_status == 'R')-->
{@ $new_status = 'R'}
<!--@end-->
<select id="slt_Status" style="height:25px;">
<!--@foreach($_status_arr as $key => $val)-->
<option value="{$key}" <!--@if($new_status == $key)--> selected="selected"<!--@end--> >{$val}</option>
<!--@end-->
</select>
{@ $url_base = getUrl('document_srl',$oDocument->document_srl,'status_chg','');}
<a id="link_status_normal" href="{getUrl('document_srl',$oDocument->document_srl,'status_chg',$new_status)}" class="buttonOfficial" style="margin-right:20px;"><span>{$lang->pln_status_change}</span></a>

<!--@end-->
 

감사합니다.

ksc

XE Login