mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 03:52:15 +09:00
#174 설문조사 결과 보기 기능 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2733 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ece48de14e
commit
e4d55fc4d1
10 changed files with 80 additions and 2 deletions
|
|
@ -64,7 +64,12 @@
|
|||
<td class="r"><img src="./images/blank.gif" height="7" alt="blank" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" class="poll_button"><div><span class="button"><input type="submit" value="{$lang->cmd_apply_poll}" class="poll_button" /></span></div></td>
|
||||
<td colspan="3" class="poll_button">
|
||||
<div>
|
||||
<span class="button"><input type="button" value="{$lang->cmd_view_result}" class="poll_button" onclick="doPollViewResult('{$poll->poll_srl}'); return false;"/></span>
|
||||
<span class="button"><input type="submit" value="{$lang->cmd_apply_poll}" class="poll_button" /></span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="lb" ><img src="./images/lb.png" alt="lb" class="iePngFix" width="7" height="7" /></td>
|
||||
|
|
|
|||
|
|
@ -42,10 +42,19 @@ function doPoll(fo_obj) {
|
|||
|
||||
/* 설문 조사후 내용을 바꿀 함수 */
|
||||
function completePoll(ret_obj) {
|
||||
alert(ret_obj['message']);
|
||||
var poll_srl = ret_obj['poll_srl'];
|
||||
var tpl = ret_obj['tpl'];
|
||||
var width = xWidth("poll_"+poll_srl);
|
||||
xInnerHtml("poll_"+poll_srl, tpl);
|
||||
xWidth("poll_"+poll_srl, width);
|
||||
}
|
||||
|
||||
/* 설문 미리 보기 */
|
||||
function doPollViewResult(poll_srl) {
|
||||
var params = new Array();
|
||||
params['poll_srl'] = poll_srl;
|
||||
|
||||
var response_tags = new Array('error','message','poll_srl', 'tpl');
|
||||
|
||||
exec_xml('poll','procPollViewResult', params, completePoll, response_tags);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue