PlannerXE123 Q&A 게시판
卯 (토끼 묘) · 妙 (묘할 묘) / 墓 (무덤 묘) · 廟 (사당 묘) · 苗 (모 묘)
見利忘義 견리망의
이익을 보면 의리를 잊음.

밥탱

우선 날자, 시작시간, 종료시간은 수정버튼을 누르지 않고 본문내에서 수정 가능하고 표기도 잘 되는데,

문제는~~

수정버튼을 누르면 시작시간과 종료시간 입력된게 없어지고 빈 공란으로 나오네요.

시작시간과 종료시간 본문내에서 수정한 그대로 나오게 할 수 없을까요??

 

---- view_document.html 코드 ---

<div><p align="right">일정시작 : 
 <input type='text' name='extra_vars2' value = '{$oDocument->getExtraValueHTML(1)}' onClick='datePicker(event, "extra_vars2");'>
 <input type='text' name='extra_vars3' value = "{$oDocument->getExtraValueHTML(7)}";>
 <input type='button' value='확인' onClick='if(jQuery("input[name=extra_vars2]").val()) { location.href=window.location.href + "&ext_v2=" + jQuery("input[name=extra_vars2]").val().replace(/-/g,"") + "&ext_v3=" + jQuery("input[name=extra_vars3]").val().replace(/-/g,"");}' />
 </p>
 </div>
 
<!--//본문내 일정시작 선택-->
 
 <block cond="$ext_v2">
 {@
 $oDB = &DB::getInstance();
 $sql = $oDB->_query('SELECT COUNT(*) as count FROM xe_document_extra_vars WHERE document_srl='.$document_srl.' and module_srl ='.$module_info->module_srl.' and eid="ext_plan_start"');
 $rec_count = $oDB->_fetch($sql);
 }
 <!--@if($rec_count->count==0)-->
 {@
 $query = $oDB->_query('INSERT INTO xe_document_extra_vars (module_srl, document_srl,var_idx,lang_code,value,eid) VALUES ('.$module_info->module_srl.','.$document_srl.',2,"ko","'.$ext_v2.'","ext_plan_start")');
 }
 <!--@else-->
 {@ $query = $oDB->_query('update xe_document_extra_vars set value = "'.$ext_v2.'" where document_srl = '.$document_srl.' and module_srl = '.$module_info->module_srl.' and eid = "ext_plan_start"');
 }
 <!--@end-->
 <!--@if($rec_count->count==0)-->
 {@
 $query = $oDB->_query('INSERT INTO xe_document_extra_vars (module_srl, document_srl,var_idx,lang_code,value,eid) VALUES ('.$module_info->module_srl.','.$document_srl.',2,"ko","'.$ext_v2.'","ext_plan_start")');
 }
 <!--@else-->
 {@ $query = $oDB->_query('update xe_document_extra_vars set value = "'.$ext_v2.'" where document_srl = '.$document_srl.' and module_srl = '.$module_info->module_srl.' and eid = "ext_plan_start"');
 }
 <!--@end-->
 
 <script>location.href="{str_replace('amp;', '', getUrl('ext_v2', ''))}"</script>
 </block>
 <script language="JavaScript" src="js/date_picker.js"></script>
 
  <!--//본문내 시작,종료시간 선택-->
  <!--//<block cond="$logged_info->member_srl==$oDocument->get('member_srl')||$grant->manager">-->
   <block cond="$ext_v3">
   {@
 $oDB = &DB::getInstance();
 $query = $oDB->_query('update xe_document_extra_vars set value = "'.$ext_v3.'" where document_srl = '.$document_srl.' and module_srl = '.$module_info->module_srl.' and eid = "ext_plan_time"');
 }
   <script>location.href="{str_replace('amp;', '', getUrl('ext_v3', ''))}"</script>
   </block>

 

ps) 시작시간, 종료시간이 같이 나오는 확장변수값은 아래가 맞죠??

- 시작,종료시간 eid값 : ext_plan_time

- 시작,종료시간 value값 : $oDocument->getExtraValueHTML(7)

 

혹시 시작시간, 종료시간이 분리되어 있는 확장변수명이 따로 있을까요?? 

- 시작시간 idx값 : ??

- 시작시간 eid값 : ??

- 시작시간 value값 : ??

- 종료시간 idx값 : ??

- 종료시간 eid값 : ??

- 종료시간 value값 : ??

XE Login