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

@ -40,11 +40,20 @@
$args->list_count = 50; // The number of posts to show on one page
$args->page_count = 10; // The number of pages to display in the page navigation
$args->sort_index = 'list_order'; // Sorting value
$args->sort_index = 'P.list_order'; // Sorting value
// Get the list
$oPollAdminModel = &getAdminModel('poll');
$output = $oPollAdminModel->getPollList($args);
$output = $oPollAdminModel->getPollListWithMember($args);
if(is_array($output->data))
{
foreach($output->data AS $key=>$value)
{
if($_SESSION['poll_management'][$value->poll_index_srl]) $value->isCarted = true;
else $value->isCarted = false;
}
}
// Configure the template variables
Context::set('total_count', $output->total_count);
Context::set('total_page', $output->total_page);