<?php

echo '  <form class="ajax_form ctrl_s_form" method="post" action="'. $this_page .'">

		<input type="hidden" id="comeback" name="comeback" value="'. $this_page .'" />
		<input type="hidden" id="form_selector" name="form_selector" value="manage_slider_items" />
		<input type="hidden" id="slider_id" name="slider_id" value="'. $id .'" />
		<input type="hidden" id="main_slider_id" name="main_slider_id" value="'. $main_slider_id .'" />


		';
		
		global $slider_id, $main_slider_id, $main_slider_data;
		$slider_id = $id;
		$main_slider_data = cloudfw_get_slider_options( $main_slider_id );

		
		$scheme = cloudfw_get_schemes( $slider_type );
		if ($tabs = cloudfw_prepare_tabs( $scheme, 'tabs' ))
			echo cloudfw_render_tabs($tabs);
		
		cloudfw_render_page( $scheme , $GLOBALS["args"] );
		
?>       

    <div class="module">
    
        <div style="float:right;"> 
                  <div class="small-button small-grey"><input value="<?php _e('Cancel','cloudfw'); ?>" type="button" id="backtoAllSliders"/></div>
                <?php admin_submit( ! (strlen($id) > 0) ?  __('Create','cloudfw') : __('Update','cloudfw'),'onlybutton');?>
        </div>
        
        <div class="clear"></div>
    
    </div>

<?php echo '</form>'; ?>