	<script type="text/javascript">
tinymce.init({
		language : 'fr_FR',
        selector: "textarea",
        plugins: [
                "advlist autolink autosave link image lists charmap print preview hr anchor pagebreak spellchecker",
                "searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
                "table contextmenu directionality emoticons template textcolor paste fullpage textcolor filemanager"
        ],

        toolbar1: "newdocument fullpage | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | styleselect formatselect fontselect fontsizeselect | code",
        toolbar2: "cut copy paste | searchreplace | bullist numlist | outdent indent blockquote | undo redo | link unlink anchor image media code | inserttime preview | forecolor backcolor",
        toolbar3: "table | hr removeformat | subscript superscript | charmap emoticons | print fullscreen | ltr rtl | spellchecker | visualchars visualblocks nonbreaking template pagebreak restoredraft",

        menubar: true,
        toolbar_items_size: 'small',

        style_formats: [
                {title: 'Bold text', inline: 'b'},
                {title: 'Red text', inline: 'span', styles: {color: '#ff0000'}},
                {title: 'Red header', block: 'h1', styles: {color: '#ff0000'}},
                {title: 'Example 1', inline: 'span', classes: 'example1'},
                {title: 'Example 2', inline: 'span', classes: 'example2'},
                {title: 'Table styles'},
                {title: 'Table row 1', selector: 'tr', classes: 'tablerow1'}
        ],

        templates: [
                {title: 'Test template 1', content: 'Test 1'},
                {title: 'Test template 2', content: 'Test 2'}
        ]
});</script>
	
	
	<div class="row-fluid sortable">
       	<div class="box-header well" data-original-title>
						<h2><i class="icon-edit"></i> Form slide</h2>
						
					</div>
					<div class="box-content">
					
					
						<form enctype="multipart/form-data" class="form-horizontal" method="post" action="ajouterslider">
						<!-- MAX_FILE_SIZE doit précéder le champ input de type file -->
                         <input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
						  <fieldset>
							<div class="control-group">
							  <label class="control-label" for="libelle">ID </label>
							  <div class="controls">
								<input type="text" class="span6 typeahead" id="id"  name="id" value="" >
							  </div>
							</div>
							
							<div class="control-group">
							  <label class="control-label" for="libelle">Libelle </label>
							  <div class="controls">
							    <textarea name="libelle" style="width:100%" value="">
								</textarea>
							  </div>
							</div>
							

							<div class="control-group">
							  <label class="control-label" for="fileInput" id="imagelabel">File input</label>
							  <div class="controls">
								<input class="input-file uniform_on" id="fileInput" type="file" name="fileInput" onchange="document.images['slideimage'].src=this.value)">
							  </div>
							</div>          
							
							<div class="control-group">
							<label class="control-label" for="slideimage">Image </label>
							 <div class="controls">
							<img src="" width="750px" height="288px" style="border:1px solid gray;" id="slideimage">
							</div>
							</div>  
							
							<div class="form-actions">
							  <button type="submit" class="btn btn-primary">Enregistrer</button>
							  <a href="<?php echo URL::site('admin/listeslider'); ?>" class="btn">Annuler</a>
							</div>
						  </fieldset>
						  
						</form>   
                      
					</div>
				</div><!--/span-->
	</div>