<?php

echo '  <form id="slider_form_2" 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_main_slider" />
		<input type="hidden" id="slider_id" name="slider_id" value="'. $id .'" />
		';
		
		global $slider_id;
		$slider_id = $id;
		
		
		echo '<a id="to-slider-items" class="right-navigation tooltip" title="'.__('Manage Slider Items','cloudfw').'" href="'.$this_page.'&amp;id='.$id.'"><span></span></a>';
		//echo $slider_type;
		
		
		$scheme = cloudfw_get_schemes('main_'.$slider_type);
		if ($tabs = cloudfw_prepare_tabs( $scheme, 'tabs' ))
			echo cloudfw_render_tabs($tabs);
		
		cloudfw_render_page( $scheme , $GLOBALS["args"] );
		
?>       

    <div class="module">
    
        <input type="hidden" name="no_validate" value="true" />
        <?php if (isset($id)) echo '<div style="float:left;"><a class="" href="'.$this_page.'&amp;id='.$id.'"><span>'.__('Manage The Slider Items','cloudfw').'</span></a></div>'; ?>
        <div style="float:right;"> 
            <div class="small-button small-grey"><input value="Cancel" type="button" id="backtoAllSliders"/></div>
             <?php admin_submit(__('Update The Slider','cloudfw'),'onlybutton');?>
        </div>
        
        <div class="clear"></div>
    
    </div>     

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