<title><?php echo $i_judul."" ; ?></title>

 <script language="javascript" type="text/javascript" src="<?=base_url();?>agung/adminweb/tiny_mce/tiny_mce.js"></script>
	<script language="javascript" type="text/javascript">
		tinyMCE.init({
			mode : "textareas",
			elements : "textareas",
			theme : "advanced",
			plugins : "pagebreak,style,fmath_formula,table,save,advimage,advlink,insertdatetime,preview,media, searchreplace,print,paste,fullscreen,noneditable,visualchars,xhtmlxtras,autosave",

		theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,code,preview,|,forecolor,backcolor",
		theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,fmath_formula,charmap,media,|,print,|,fullscreen",
        theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,
			file_browser_callback : "ajaxfilemanager",
			paste_use_dialog : false,
			theme_advanced_resizing : true,
			theme_advanced_resize_horizontal : true,
			apply_source_formatting : true,
			force_br_newlines : true,
			force_p_newlines : false,	
			relative_urls : true
		});
		function ajaxfilemanager(field_name, url, type, win) {
			var ajaxfilemanagerurl = "<?=base_url();?>at_theme/adminweb/tiny_mce/plugins/ajaxfilemanager/ajaxfilemanager.php";
			var view = "detail";
			switch (type) {
				case "image":
				view = "thumbnail";
					break;
				case "media":
					break;
				case "flash": 
					break;
				case "file":
					break;
				default:
					return false;
			}
            tinyMCE.activeEditor.windowManager.open({
                url: "<?=base_url();?>agung/adminweb/tiny_mce/plugins/ajaxfilemanager/ajaxfilemanager.php?view=" + view,
                width: 782,
                height: 440,
                inline : "yes",
                close_previous : "no"
            },{
                window : win,
                input : field_name
            });
            
		}
	</script>



<div class="main-content">


<div class="container_24 primary_content_wrap clearfix" role="main"><div id="content" class="grid_16">
<div class="page-header">
							<h1>
								<?php echo $i_judul; ?>
								
							</h1>
						</div>

<?php echo form_open_multipart('index.php/download/simpan','class="form-horizontal" role="search"'); ?>
<input type="hidden" name="id" value="<?php echo $id; ?>" />
<input type="hidden" name="tanggal" value="<?php echo date('Y-m-d H:i:s'); ?>" />

<div class="form-group">
	<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Judul </label>
		<div class="col-sm-9">
				<input value="<?php echo $judul; ?>" type="text" placeholder="Judul"  class="form-control" name="judul" size="75" />
		</div>
</div>


<div class="form-group">
	<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Isi File </label>
		<div class="col-sm-9">
				<a href="<?php echo url_14."agung/download/$isi"; ?>" target="_blank"<?php echo $judul; ?>></a>
		</div>
</div>

<div class="form-group">
	<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> File </label>
		<div class="col-sm-9">
				<input type="file" name="userfile" size="10"  class="col-xs-10 col-sm-5" /><br /><br />

		</div>
</div>
<input class="btn btn-info" type="submit" value="Simpan" />

<?php echo form_close(); ?>

</div>
</div>
</div>
