<?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
 */
?>
  <div class="col1">
    <div class="sectiontitle"><h2>SeeCMS Update</h2></div>

      <div class="columns">
        <div class="column snav">
<?php

$settings['level'] = 2;
$settings['baseRoute'] = $see->SeeCMS->cmsRoot.'/admin/';
$settings['nesting'] = 0;

$see->html->makeMenuFromRoutes( $settings );

?>
        </div>
        <div class="column columnwide">
<?php

if( is_object( $data ) ) {
  foreach( $data->release as $release ) {
    echo "<h3>Release {$release->version}</h3><p>{$release->notes}</p><hr />";
  }
  
  if( !$_GET['apply'] ) {
    
    echo "<p><a href=\"./?apply=1\">Apply these changes</a></p>";
  }
  
} else {
  echo $data;
}

?>
        </div>
      </div>
      
    <div class="clear"></div>
    </div>

<div class="col2">
  <div class="support">
    <h2>Support</h2>
    <div class="supportinfo">
      <?php echo $see->SeeCMS->supportMessage; ?>
    </div>
  </div>
</div>
<div class="clear"></div>
<div id="newpagetitle" title="Create new page">
<p>Page title:<br /><input type="text" id="pagetitle" /></p>

</div>

<div id="deletepagepopup" title="Delete page?"></div>