} $f_language_selected = Input::Get('f_language_selected', 'int'); $f_debate_limit = Input::Get('f_debate_limit', 'int', 20); $f_debate_offset = Input::Get('f_debate_offset', 'int', 0); $f_debate_order = Input::Get('f_debate_order', 'string', 'bynumber'); $parents = Debate::getDebates(array('language_id' => $f_language_selected, 'parent_debate_nr' => 0), null, $f_debate_offset, $f_debate_limit, $f_debate_order); $debates = array(); // add the copys foreach ($parents as $debate) { $debates[] = $debate; $copys = Debate::getDebates(array('language_id' => $debate->getLanguageId(), 'parent_debate_nr' => $debate->getNumber())); foreach ($copys as $debate) { $debates[] = $debate; } } $pager = new SimplePager(Debate::countDebates(), $f_debate_limit, "f_debate_offset", "index.php?f_debate_order={$f_debate_order}&", false); $allLanguages = Language::GetLanguages(); include_once $GLOBALS['g_campsiteDir'] . "/{$ADMIN_DIR}/javascript_common.php"; echo camp_html_breadcrumbs(array(array(getGS('Plugins'), $Campsite['WEBSITE_URL'] . '/admin/plugins/manage.php'), array(getGS('Debates'), ''))); // DO NOT DELETE!!! Needed for localizer // getGS("Debates"); ?> <script type="text/javascript" src="<?php echo $Campsite['WEBSITE_URL']; ?> /js/campsite-checkbox.js"></script> <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1" class="action_buttons" style="padding-top: 5px;"> <TR> <TD><A HREF="edit.php" ><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"];
?> </b></a> </TD> </TR> <?php $f_debate_limit = Input::Get('f_debate_limit', 'int', 15); $f_debate_offset = Input::Get('f_debate_offset', 'int', 0); $f_debate_order = Input::Get('f_debate_order', 'string'); $f_debate_assigned = Input::Get('f_debate_assigned', 'string'); $constraints = array('language_id' => $f_language_id, 'publication_id' => $f_publication_id, 'issue_nr' => $f_issue_nr, 'section_nr' => $f_section_nr, 'article_nr' => $f_article_nr); $debates = Debate::getDebates($constraints, $f_debate_assigned, $f_debate_offset, $f_debate_limit, $f_debate_order); $param_string = "f_debate_item={$f_debate_item}&f_issue_nr={$f_issue_nr}&f_language_id={$f_language_id}&f_publication_id={$f_publication_id}"; $pager_params = "?{$param_string}&f_debate_order={$f_debate_order}&"; $pager = new SimplePager(Debate::countDebates($f_language_id), $f_debate_limit, "f_debate_offset", $pager_params, false); Debate::countDebates($f_language_id); ?> <tr> <td colspan="2" style="padding: 3px; background-color: #EEE; border-left: 1px solid #8baed1; border-right: 1px solid #8baed1;"> <?php echo $pager->render(); ?> </td> </tr> <tr> <td colspan="2" style="padding: 3px; background-color: #EEE; border-left: 1px solid #8baed1; border-right: 1px solid #8baed1;"> <TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" class="table_list" style="padding-top: 5px;" width="95%"> <?php $counter = 0;