issue 70 poll module's admin UI/UX modified.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8721 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-08-04 05:34:03 +00:00
parent f7c964226a
commit 3e70a2c10c
30 changed files with 335 additions and 92 deletions

View file

@ -60,6 +60,27 @@
}
}
function procPollAdminAddCart()
{
$poll_index_srl = (int)Context::get('poll_index_srl');
$oPollAdminModel = &getAdminModel('poll');
//$columnList = array('comment_srl');
$args->pollIndexSrlList = array($poll_index_srl);
$args->list_count = 100;
$output = $oPollAdminModel->getPollList($args);
if(is_array($output->data))
{
foreach($output->data AS $key=>$value)
{
if($_SESSION['poll_management'][$value->poll_index_srl]) unset($_SESSION['poll_management'][$value->poll_index_srl]);
else $_SESSION['poll_management'][$value->poll_index_srl] = true;
}
}
}
/**
* @brief Delete the poll (when several questions are registered in one poll, delete this question)
**/