git-svn-id: http://xe-core.googlecode.com/svn/trunk@1012 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-04-06 08:37:00 +00:00
parent ce2f0a583b
commit 61f574fe90
6 changed files with 10 additions and 5 deletions

View file

@ -18,7 +18,7 @@
/**
* @brief debug mode = true 일때 files/_debug_message.php 디버그 내용이 쌓임
**/
define('__DEBUG__', true);
define('__DEBUG__', false);
if(__DEBUG__) {
// php5이상이면 error handling을 handleError() 로 set

View file

@ -165,8 +165,11 @@
$oDB->commit();
// tpl 가져오기
$tpl = $oPollModel->getPollHtml($poll_srl);
$this->add('poll_srl', $poll_srl);
$this->add('tpl','haha');
$this->add('tpl',$tpl);
$this->setMessage('success_poll');
}

View file

@ -43,6 +43,7 @@
$poll->stop_date = $output->data->stop_date;
$output = executeQuery('poll.getPollTitle', $args);
if(!is_array($output->data)) $output->data = array($output->data);
foreach($output->data as $key => $val) {
$poll->poll[$val->poll_index_srl]->title = $val->title;
$poll->poll[$val->poll_index_srl]->checkcount = $val->checkcount;
@ -64,7 +65,7 @@
$tpl_file = "result";
}
Context::set('poll', $poll);
Context::set('poll',$poll);
$tpl_path = $this->module_path.'tpl';

View file

@ -6,7 +6,7 @@
var poll_alert_lang = "{$lang->msg_check_poll_item}";
</script>
<div id="poll_{$poll->poll_srl}">
<div id="poll_{$poll->poll_srl}" style="{$poll->style}">
<div class="poll_box" style="{$poll->style}">

View file

@ -45,5 +45,7 @@ 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);
}

View file

@ -10,7 +10,6 @@
{$lang->poll_stop_date} : {zdate($poll->stop_date, "Y-m-d H:i")}
</div>
</div>
<!--@foreach($poll->poll as $poll_srl_index => $val)-->
<div class="poll_detail_box">
<div class="title">{$poll_srl_index}. {$val->title} ({$val->poll_count})</div>