<?php 
	require "models/rivermedia.php";
	$rivermedia = new RIVERMEDIA;
	$rivermedia->auth();
	$rivermedia->add_media_origin();
?>
                  <div class="form-group">
                    <div class="col-md-6 col-sm-6 col-xs-12">
                      <label class="control-label" for="media_origin">Media origin <span class="required">*</span> </label>
                      <input type="text" id="media_origin" name="media_origin" required class="form-control col-md-7 col-xs-12" >
                    </div>
                  </div>
                  <div class="clearfix"></div>
                  <div class=-"form-group">
                    <div id="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="arr_origin_type" id="arr_origin_type" class="form-control" />
                      <br />
                    </div>
                  </div>
                  <div class="clearfix"></div>
                  <div class="form-group">
                    <div class="col-md-6 col-sm-6 col-xs-12">
                      <label class="control-label" for="mediaorigin_description">Media Origin description </label>
                      <textarea id="mediaorigin_description" maxlength="255" class="form-control" name="mediaorigin_description"></textarea>
                      <h6 class="pull-right" id="mediaorigin_description_length">0/255</h6>
                    </div>
                  </div>
                  <div class="ln_solid"></div>
                    <div>
                      <button type="reset" class="btn btn-primary">Cancel</button>
                      <button id="submit_add_media_origin" class="btn btn-success">Add New</button>
                    </div>
                  </div>
                  <div class="clearfix"></div>
                  <div id="statusmessage_success" class="status_messages"><?php if (isset($_SESSION['statusmessage_success'])) {echo "<i class=\"fa fa-check\"></i> ".$_SESSION['statusmessage_success']; unset($_SESSION['statusmessage_success']);};?></div>
                  <div id="statusmessage_fail" class="status_messages"><?php if (isset($_SESSION['statusmessage_fail'])) {echo "<i class=\"fa fa-times\"></i> ".$_SESSION['statusmessage_fail']; unset($_SESSION['statusmessage_fail']);};?></div>
                  <div class="form-group">
