<? include("header.php");

error_reporting(0);

$menuid=$_REQUEST['id'];

include (".include/db-connect.php");

if(isset($_REQUEST['edit']))
 {
	$content=$_REQUEST['CKEditor1'];
		
    $upd_qur="UPDATE ".$MENU." SET content='$content' WHERE id='$menuid'";

    $exce=mysql_query($upd_qur);
		                   
    header("location:about.php?ed=suc&&id=$menuid"); 
}

 ?>
 <?php 
 $sel="select * from ".$MENU." where id=$menuid";
 $run=mysql_query($sel);
 $array=mysql_fetch_array($run);
$cnt=$array['content'];

menu
  
 ?>
 <link rel="stylesheet" type="text/css" href="acco/css/style.css" />

  
<div id="content">
  <div class="breadcrumb">
       <!-- <a href="http://amarasudhan.com/admin/index.php?route=common/home&amp;token=b735cc089ec2d51abb9a8e1901f501fb">Home</a>-->
      </div>
              <div class="box">
    <div class="heading">
      <h1><img src="view/image/home.png" alt="" /> Dashboard > <? echo $array['menu'] ?>  Page</h1>
    </div>
    <div class="content" >
      <div class="overview" style="width:70%; margin-left:200px;" >
        <div class="dashboard-heading"><? echo $array['menu'] ?> Page</div>
        <div class="dashboard-content">
          <form action="" method="post" enctype="multipart/form-data" id="question" >
  
  
                           <div class="spacer"></div>
			   Content:
			   <br><br>
						<?php
						
						
						// Make sure you're using correct path here
 include_once 'ckeditor/ckeditor.php';
 
 $ckeditor = new CKEditor();
 $ckeditor->basePath = 'ckeditor/';
 $ckeditor->config['filebrowserBrowseUrl'] = 'ckfinder/ckfinder.html';
 $ckeditor->config['filebrowserImageBrowseUrl'] = 'ckfinder/ckfinder.html?type=Images';
 $ckeditor->config['filebrowserFlashBrowseUrl'] = 'ckfinder/ckfinder.html?type=Flash';
 $ckeditor->config['filebrowserUploadUrl'] = 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files';
 $ckeditor->config['filebrowserImageUploadUrl'] = 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';
 $ckeditor->config['filebrowserFlashUploadUrl'] = 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash';
 $ckeditor->editor('CKEditor1',$cnt);
 
 
                             ?><br>
                            <!--<div style="float:left;width:200px;">Picture_Jpg&nbsp;<font color="#FF0000">*</font>	</div> 
							<div id="txtHintstate" style="margin-left:200px;">
                            <input  type="file"  name="picture_jpg" size="55" class="required">
                            </div><div class="spacer"></div>-->  
                                                        
                                                    
                            
                       <div class="add_row" style="margin-left:195px;">
                      <p><span class="maintextbox"> <input type="submit" name="edit" id="button" value="Submit" > </span></p>
            </div></div><!-- End option--></div><!-- End add_row-->
                      </div>
 
 
   </form>
        </div>
      </div>
      
      
    </div>
  </div>
</div>
<!--[if IE]>
<script type="text/javascript" src="view/javascript/jquery/flot/excanvas.js"></script>
<![endif]--> 
<script type="text/javascript" src="view/javascript/jquery/flot/jquery.flot.js"></script> 
<script type="text/javascript"><!--
function getSalesChart(range) {
	$.ajax({
		type: 'get',
		url: 'index.php?route=common/home/chart&token=b735cc089ec2d51abb9a8e1901f501fb&range=' + range,
		dataType: 'json',
		async: false,
		success: function(json) {
			var option = {	
				shadowSize: 0,
				lines: { 
					show: true,
					fill: true,
					lineWidth: 1
				},
				grid: {
					backgroundColor: '#FFFFFF'
				},	
				xaxis: {
            		ticks: json.xaxis
				}
			}

			$.plot($('#report'), [json.order, json.customer], option);
		}
	});
}

getSalesChart($('#range').val());
//--></script> 
</div>
<?  include("footer.php"); ?>