<!--

                $(\'#deleteSelection\').click(function(event) {
					event.preventDefault();

					if (!$(this).parents(\'li\').hasClass(\'inactive\')) {
						var ids = [];
						$(this).parents(\'.tableWrapper\').find(\'.toggleSelection input:checked\').each(function() {
							ids.push(this.value);
						});

						if (!tablePreferences.warningBeforeDelete || confirm("';
echo OA_Admin_Template::_function_t(array('str' => 'ConfirmDeleteAffiliates'), $this);
echo '")) {
							window.location = \'affiliate-delete.php?';
echo OA_Admin_Template::_add_session_token(array(), $this);
echo '&affiliateid=\' + ids.join(\',\');
						}
					}
                });

                //-->
                </script>
                ';
?>

            </li>
        </ul>

        <?php 
if (!empty($this->_tpl_vars['topPager']->links)) {