<?php 
	require "models/rivermedia.php";
	$rivermedia = new RIVERMEDIA;
	$rivermedia->auth();
	$rivermedia->edit_media_type();
?>
        <form class="form-horizontal" role="form" method="post" action="javascript:void(0);">
          <div class="form-group">
            <label  class="col-sm-2 control-label" for="edit_media_type">Media type</label>
            <div class="col-sm-10">
              <input type="edit_media_type" class="form-control" id="edit_media_type" value="<?php echo $_SESSION['edit_media_type'][0]; ?>"/>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="edit_mediatype_description" >Media description</label>
            <div class="col-sm-10">
              <textarea class="form-control" name="edit_mediatype_description" id="edit_mediatype_description" maxlength="255"><?php echo $_SESSION['edit_media_type'][1]; ?></textarea>
              <h6 class="pull-right" id="edit_mediatype_description_length">0/255</h6>
            </div>
          </div>
        </form>
        <div id="hidden_message"><?php echo $_SESSION['edit_media_type'][2] ?></div>
<?php
unset($_SESSION['edit_media_type']);
?>