<?php
/**
 * SeeCMS is a website content management system
 *
 * @author See Green <http://www.seegreen.uk>
 * @license http://www.seecms.net/seecms-licence.txt GNU GPL v3.0 License
 * @copyright 2015 See Green Media Ltd
 */

$see->html->css( 'dropzone.css', 'screen', '/seecms/css/' );
$see->html->js( 'dropzone.js', '', '/seecms/js/' );
$see->html->js( 'dropzone-media.js', '', '/seecms/js/' );

$see->html->js( '', 'skipInitialMediaLoad = 1;', '' );

?>
  <div class="col1">
    <div class="imagesection">
      <div class="route">
        <div class="foldertitle">
          <h3>Folders</h3>
          <h3 class="foldername"></h3>
          
        </div>
        
      </div>
      <div class="folders mediafolders">
        <?php echo $data['folderTree']; ?>
      </div>
      <div class="images">
        <div class="medialistinner">
          <?php echo $data['media']; ?>
        </div>

        <div class="clear"></div>
        <div id="mediadropzone" class="dropzone"><div class="fallback"><form action="../media/add" encType="multipart/form-data" method="post"><div class="dz-fallback"><p>Your browser is too old to support drag and drop uploads, please consider updating to a newer version.</p><input name="file" type="file" undefined="" /><input id="fallbackparentid" name="parentid" type="hidden" value="<?php echo $_SESSION['SeeCMS'][$this->see->siteID]['media']['currentFolder']; ?>" /><input name="doFallback" type="hidden" value="1" /><input type="submit" value="Upload" /></div></form></div></div>

      </div>

    <div class="clear"></div>
    </div>
  </div>
  <div class="col2">
    <div class="createpage">
      <a class="createmediafolder" href="#">Create folder <span><i class="fa fa-plus-circle" aria-hidden="true"></i></span></a>
    </div>
    <div class="support">
      <h2>Support <span><i class="fa fa-question-circle" aria-hidden="true"></i></span></h2> 
      <div class="supportinfo">
        <?php echo $see->SeeCMS->supportMessage; ?>
      </div>
    </div>
  </div>
  <div class="clear"></div>
  
<div id="newmediafoldertitle" title="Create new folder">
  <p>Folder title:<br /><input type="text" id="foldertitle" /></p>
</div>

<div id="deletemediafolderpopup" title="Delete folder?"></div>

<div id="editmediafolderpopup" title="Edit folder name">
<p>Folder title:<br /><input type="text" id="foldertitle2" /></p>
</div>

<div id="deletemediapopup" title="Delete file?"></div>