<?php 
	require "models/rivermedia.php";
	$rivermedia = new RIVERMEDIA;
	$rivermedia->auth();
	$rivermedia->add_media_type();
?>
                  <div class="form-group">
                    
                    <div class="col-md-6 col-sm-6 col-xs-12">
                      <label class="control-label" for="media_type">Media type <span class="required">*</span> </label>
                      <input type="text" id="media_type" name="media_type" required class="form-control col-md-7 col-xs-12" >
                    </div>
                  </div>
                  <div class="form-group">
                    <div class="col-md-6 col-sm-6 col-xs-12">
                      <label class="control-label" for="media_type">Media description </label>
                      <textarea id="mediatype_description" maxlength="255" class="form-control" name="mediatype_description"></textarea>
                      <h6 class="pull-right" id="mediatype_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_type" 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">
