mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1012 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ce2f0a583b
commit
61f574fe90
6 changed files with 10 additions and 5 deletions
|
|
@ -18,7 +18,7 @@
|
||||||
/**
|
/**
|
||||||
* @brief debug mode = true 일때 files/_debug_message.php 에 디버그 내용이 쌓임
|
* @brief debug mode = true 일때 files/_debug_message.php 에 디버그 내용이 쌓임
|
||||||
**/
|
**/
|
||||||
define('__DEBUG__', true);
|
define('__DEBUG__', false);
|
||||||
if(__DEBUG__) {
|
if(__DEBUG__) {
|
||||||
|
|
||||||
// php5이상이면 error handling을 handleError() 로 set
|
// php5이상이면 error handling을 handleError() 로 set
|
||||||
|
|
|
||||||
|
|
@ -165,8 +165,11 @@
|
||||||
|
|
||||||
$oDB->commit();
|
$oDB->commit();
|
||||||
|
|
||||||
|
// tpl 가져오기
|
||||||
|
$tpl = $oPollModel->getPollHtml($poll_srl);
|
||||||
|
|
||||||
$this->add('poll_srl', $poll_srl);
|
$this->add('poll_srl', $poll_srl);
|
||||||
$this->add('tpl','haha');
|
$this->add('tpl',$tpl);
|
||||||
$this->setMessage('success_poll');
|
$this->setMessage('success_poll');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@
|
||||||
$poll->stop_date = $output->data->stop_date;
|
$poll->stop_date = $output->data->stop_date;
|
||||||
|
|
||||||
$output = executeQuery('poll.getPollTitle', $args);
|
$output = executeQuery('poll.getPollTitle', $args);
|
||||||
|
if(!is_array($output->data)) $output->data = array($output->data);
|
||||||
foreach($output->data as $key => $val) {
|
foreach($output->data as $key => $val) {
|
||||||
$poll->poll[$val->poll_index_srl]->title = $val->title;
|
$poll->poll[$val->poll_index_srl]->title = $val->title;
|
||||||
$poll->poll[$val->poll_index_srl]->checkcount = $val->checkcount;
|
$poll->poll[$val->poll_index_srl]->checkcount = $val->checkcount;
|
||||||
|
|
@ -64,7 +65,7 @@
|
||||||
$tpl_file = "result";
|
$tpl_file = "result";
|
||||||
}
|
}
|
||||||
|
|
||||||
Context::set('poll', $poll);
|
Context::set('poll',$poll);
|
||||||
|
|
||||||
$tpl_path = $this->module_path.'tpl';
|
$tpl_path = $this->module_path.'tpl';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
var poll_alert_lang = "{$lang->msg_check_poll_item}";
|
var poll_alert_lang = "{$lang->msg_check_poll_item}";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div id="poll_{$poll->poll_srl}">
|
<div id="poll_{$poll->poll_srl}" style="{$poll->style}">
|
||||||
|
|
||||||
<div class="poll_box" style="{$poll->style}">
|
<div class="poll_box" style="{$poll->style}">
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,5 +45,7 @@ function completePoll(ret_obj) {
|
||||||
alert(ret_obj['message']);
|
alert(ret_obj['message']);
|
||||||
var poll_srl = ret_obj['poll_srl'];
|
var poll_srl = ret_obj['poll_srl'];
|
||||||
var tpl = ret_obj['tpl'];
|
var tpl = ret_obj['tpl'];
|
||||||
|
var width = xWidth("poll_"+poll_srl);
|
||||||
xInnerHtml("poll_"+poll_srl, tpl);
|
xInnerHtml("poll_"+poll_srl, tpl);
|
||||||
|
xWidth("poll_"+poll_srl, width);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@
|
||||||
{$lang->poll_stop_date} : {zdate($poll->stop_date, "Y-m-d H:i")}
|
{$lang->poll_stop_date} : {zdate($poll->stop_date, "Y-m-d H:i")}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--@foreach($poll->poll as $poll_srl_index => $val)-->
|
<!--@foreach($poll->poll as $poll_srl_index => $val)-->
|
||||||
<div class="poll_detail_box">
|
<div class="poll_detail_box">
|
||||||
<div class="title">{$poll_srl_index}. {$val->title} ({$val->poll_count})</div>
|
<div class="title">{$poll_srl_index}. {$val->title} ({$val->poll_count})</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue