<?php
/*
Simple:Press Forum
Admin Components Special Rank Delete Member Form
$LastChangedDate: 2010-02-12 19:17:03 -0700 (Fri, 12 Feb 2010) $
$Rev: 3485 $
*/

if (preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF']))
{
	die('Access Denied');
}

function sfa_components_sr_del_members_form($rank_id)
{
?>
<script type="text/javascript">
jQuery(document).ready(function() {
	jQuery('#sfmemberdel<?php echo $rank_id; ?>').ajaxForm({
		target: '#sfmsgspot',
		success: function() {
			jQuery('#sfreloadfr').click();
			jQuery('#sfmsgspot').fadeIn();
			jQuery('#sfmsgspot').fadeOut(6000);
		}
	});
});
</script>
<?php
	sfa_paint_options_init();

    $ahahURL = SFSITEURL."index.php?sf_ahah=components-loader&amp;saveform=specialranks&amp;action=delmember&amp;id=".$rank_id;
?>
	<form action="<?php echo($ahahURL); ?>" method="post" id="sfmemberdel<?php echo $rank_id; ?>" name="sfmemberdel<?php echo $rank_id ?>">
<?php
		echo(sfc_create_nonce('special-rank-del'));
		sfa_paint_open_tab(__("Components", "sforum")." - ".__("Special Ranks", "sforum"));
			sfa_paint_open_panel();
				sfa_paint_open_fieldset(__("Remove Members", "sforum"), false, '', false);
?>
					<p align="center"><?php _e("Select Remove To Add (use CONTROL for multiple members)", "sforum") ?></p>
<?php
                	$from = esc_js(__("Current Members", "sforum"));
                	$to = esc_js(__("Selected Members", "sforum"));
                    $action = 'delru';
                	include_once (SF_PLUGIN_DIR.'/library/ahah/sfc-ahah.php');
?>
					<div class="clearboth"></div>
<?php
				sfa_paint_close_fieldset(false);
			sfa_paint_close_panel();
		sfa_paint_close_tab();
        $loc = 'sfrankshow-'.$rank_id;
?>
		<div class="sfform-submit-bar">
		<input type="submit" class="sfform-panel-button" id="sfmemberdel<?php echo $rank_id; ?>" name="sfmemberdel<?php echo $rank_id; ?>" onclick="javascript:jQuery(\'#dmember_id<?php echo $rank_id; ?>' option\').each(function(i) {jQuery(this).attr(\'selected\', \'selected\');});" value="<?php esc_attr_e(__('Remove Members', 'sforum')); ?>" />
		<input type="button" class="sfform-panel-button" onclick="sfjtoggleLayer('<?php echo $loc; ?>');javascript:jQuery('#members-<?php echo $rank_id; ?>').html('');" id="sfmemberdel<?php echo $rank_id; ?>" name="addmemberscancel<?php echo $rank_id; ?>" value="<?php esc_attr_e(__('Cancel', 'sforum')); ?>" />
		</div>
	</form>

	<div class="sfform-panel-spacer"></div>
<?php
	return;
}

?>