<?php include 'header.php'; ?>

<?php include 'sidebar.php'; ?>

<div id="page-wrapper">

    <div class="container-fluid">
	<br/>
	<div class="row">
       <div class="col-lg-12">
            <div class="panel panel-default dash">
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <h2 class="sub-header">
							<i class="fa fa-file-text-o" aria-hidden="true"></i> <?php echo lang('TEXT');?>
						</h2>
                    </div>
                    <!-- /.panel-heading -->
                    <div class="panel-body">
                        <div class="table-responsive">
						
							<div class="col-md-12">
								 <form action="text.php" method="post" enctype="multipart/form-data" class="form-horizontal" name="updatetext" >
									<fieldset>
								
									<?php echo getTheText();?>

									</fieldset>
									
									<br/>
								  
								<!-- Button -->
								<div class="form-group">
								  <label class="col-md-10 control-label" for="singlebutton"></label>
								  <div class="col-md-2">
									<input type="submit" name="updatetext" class="btn btn-primary" value="update" />
								  </div>
								</div>
								<?php

								if(isset($_POST['updatetext']))
								{
									updateText($_POST['title'],$_POST['description']);
								}

								?>
							  </form>
							  

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

  </div>
  <!-- /.container-fluid -->

</div>
<!-- /#page-wrapper -->

</div>
<!-- /#wrapper -->

<?php include 'footer.php'; ?>