<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/berita/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_ind; ?>" type="text" placeholder="Judul"  class="form-control" name="judul_ind" size="75" />
		</div>
</div>

<div class="form-group">
	<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Content </label>
		<div class="col-sm-9">
				<textarea name="isi_ind" id="editor1"><?php echo $isi_ind; ?></textarea>
		</div>
</div>

<div class="form-group">
	<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Foto saat ini </label>
		<div class="col-sm-9">
				<img src="<?php echo url_14."agung/berita/$foto"; ?>" width="100">
		</div>
</div>

<div class="form-group">
	<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Tanggal Berita </label>
		<div class="col-sm-9">
				<input value="<?php echo $tanggal; ?>" type="text" placeholder="Tanggal Berita"  class="col-xs-10 col-sm-5" name="tanggal" size="75"/>&nbsp;&nbsp; Format : yyyy-mm-dd h:m:s (2015-12-21 21:59:00)
		</div>
</div>

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

<div class="form-group">
	<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Urut </label>
		<div class="col-sm-9">
				<select name="depan">
                <option value="90" <?php if($depan==90) echo "selected"; ?> >Sesuai Tanggal</option>
                <option value="1" <?php if($depan==1) echo "selected"; ?> >1</option>
<option value="2" <?php if($depan==2) echo "selected"; ?> >2</option>
<option value="3" <?php if($depan==3) echo "selected"; ?> >3</option>
<option value="4" <?php if($depan==4) echo "selected"; ?> >4</option>
<option value="5" <?php if($depan==5) echo "selected"; ?> >5</option>
<option value="6" <?php if($depan==6) echo "selected"; ?> >6</option>
<option value="7" <?php if($depan==7) echo "selected"; ?> >7</option>
<option value="8" <?php if($depan==8) echo "selected"; ?> >8</option>
<option value="9" <?php if($depan==9) echo "selected"; ?> >9</option>
<option value="10" <?php if($depan==10) echo "selected"; ?> >10</option>
                </select>
		</div>
</div> 

<div class="form-group">
	<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Foto </label>
		<div class="col-sm-9">
				<input type="file" name="userfile" size="10"  class="col-xs-10 col-sm-5" /><br /><br />
Foto harus ukuran 600px x 397px, dan tipe nya adalah jpg
		</div>
</div>
<input class="btn btn-info" type="submit" value="Simpan" />

<?php echo form_close(); ?>

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