<?php 
	require "models/rivermedia.php";
	$rivermedia = new RIVERMEDIA;
	$rivermedia->auth();
	$rivermedia->edit_media_origin();
	$mediaOriginType = $_SESSION['edit_media_origin'][3];
?>
        <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_origin">Media origin</label>
            <div class="col-sm-10">
              <input type="edit_media_origin" class="form-control" id="edit_media_origin" value="<?php echo $_SESSION['edit_media_origin'][0]; ?>"/>
            </div>
          </div>
          <div class="clearfix"></div>
          <div class=-"form-group">
            <div id="edit_cb_origin_type" class="col-md-6 col-sm-6 col-xs-12">
              <div class="control-label pull-left"><b>Type</b></div>
              <div class="clearfix"></div>
              <?php $rivermedia->selectfield_origin_type(); ?>
              <div class="clearfix"></div>
              <input type="hidden" name="edit_arr_origin_type" id="edit_arr_origin_type" class="form-control" value="<?php echo $_SESSION['edit_media_origin'][3]; ?>" />
              <br />
            </div>
          </div>
          <div class="clearfix"></div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="edit_mediaorigin_description" >Media origin description</label>
            <div class="col-sm-10">
              <textarea class="form-control" name="edit_mediaorigin_description" id="edit_mediaorigin_description" maxlength="255"><?php echo $_SESSION['edit_media_origin'][1]; ?></textarea>
              <h6 class="pull-right" id="edit_mediaorigin_description_length">0/255</h6>
            </div>
          </div>
        </form>
        <div id="hidden_message"><?php echo $_SESSION['edit_media_origin'][2] ?></div>
<?php
unset($_SESSION['edit_media_origin']);
?>