<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
  /* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */
  
  // load viewer library
  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';
  $dirsToCheck = array('/home/linweb15/t/twentyfifty.co.uk/user/htdocs/','','../','../../','../../../');
  foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
  if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }

  // load records from 'comment'
  list($commentRecords, $commentMetaData) = getRecords(array(
    'tableName'   => 'comment',
    'loadUploads' => true,
    'allowSearch' => false,
  ));
  
  // load records from 'document_download'
  list($document_downloadRecords, $document_downloadMetaData) = getRecords(array(
    'tableName'   => 'document_download',
    'loadUploads' => true,
    'allowSearch' => false,
  ));
  
  //Set the archived blog records to the $blogArchive variable
list($commentArchive, $commentArchData) = getRecords(array(
  'tableName' => 'comment',
  'loadUploads' => true,
  'allowSearch' => false,
  'where' => "archive = '0'"
));


// Set the live blog entries to the $blogLive variable
list($commentLive, $commentArchData) = getRecords(array(
  'tableName' => 'comment',
  'loadUploads' => true,
  'allowSearch' => false,
  'where' => "archive = '1'"
));

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>2050 - provides values-led strategy, leadership and organisational change consultancy to help companies turn commitments to respecting human rights and sustainability into practice</title>
<meta name="description" content="">
<meta name="keywords" content="">

<link href="2050.css" rel="stylesheet" type="text/css">
<link href="menu.css" rel="stylesheet" type="text/css" />

<style type="text/css">
.style1 {color: #333333
}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	text-align: center;
	background-color: #fff;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
#divexample1 {
	overflow: auto;
	height: 300px;
}
-->
</style>



<script type="text/javascript" src="http://use.typekit.com/txy2bih.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>

<script src="js/jquery-1.8.2.min.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<script src="js/jquery.nicescroll.min.js"></script>

<script>
  $(document).ready(function() {    
	$("#main_content").niceScroll();
	$("#divexample2").niceScroll("#wrapperexample2",{cursorcolor:"#0F0",boxzoom:true});
	$("#divexample3").niceScroll("#divexample3 iframe",{boxzoom:true});
  });
</script>

<script>
  var seq = 0;

  $(document).ready(function() {    
	$("#mainlogo img").eq(1).hide();
	function goSeq() {
	  var nxt = (seq+1)%2;
	  $("#mainlogo img").eq(seq).fadeIn(2000);
	  $("#mainlogo img").eq(nxt).fadeOut(2000);
	  seq = nxt;
	  setTimeout(goSeq,2500);
	};
	goSeq();
	
	$(window).load(function(){
	  setTimeout(function(){
	    $("#gmbox div").animate({'top':60},1500,"easeOutElastic");
	  },1500);
	});
	
  });
	
	$('[rel="outbound"]').click(function(e){	  
	  try {
		_gaq.push(['_trackEvent','outbound','click',this.href]);
	  }catch(err){}
	});
  
</script>

<script type='text/javascript' src='jquery.js'></script>
<script type='text/javascript'>
$(document).ready(function(){

$("img.a").hover(
function() {
$(this).stop().animate({"opacity": "0"}, "slow");
},
function() {
$(this).stop().animate({"opacity": "1"}, "slow");
});

});
</script>
<style>
div.fadehover {
	position: relative;
	float: left;
	height: 65px;
	width: 280px;
	left: 45px;
	top: 28px;
	position: relative;
	margin-bottom: 20px;
	}

img.a {
	position: absolute;
	left: 0;
	top: 0;
        z-index: 10;
	}
	
img.b {
	position: absolute;
	left: 0;
	top: 0;
	}
</style>

</head>

<body>
<div id="main_container">
  <div id="main_content">
    <div class="fadehover"> <a href="index.html"><img src="images/2050_logo_alt.jpg" alt="Home" width="220" height="44" border="0" class="a" /></a> <a href="index.html"><img src="images/2050_logo_bw_alt.jpg" alt="Home" width="220" height="44" border="0" class="b" /></a>
      <div id="logo">STRATEGY | LEADERSHIP | ORGANISATION</div>
    </div>
    <div id="right_cont">
      <div id="language_alt2"><a href="#" class="current">UK</a> | <a href="contact-2050.html">DEUTSCH</a></div>
  <div id="navigation_alt"><ul id="sddm">
              <li><a href="contact-2050.html">CONTACT</a></li>
              <li><a href="comment-2050-blog.php" class="current">COMMENT</a></li>
          <li><a href="our-work.html">OUR WORK</a></li>
                         <li><a href="2050-people.html">OUR PEOPLE</a></li>
<li><a href="about_2050.html">ABOUT</a></li>
    </ul></div></div>
   
    <div id="nobanner">
      <div id="content">
        <div id="next-top"></div>
<div id="title2">Towards 2050...</div><br /><br />
      <div id="col4">Our thoughts and ideas about the business journey to 2050.</div>
      <div id="col2-left">
     
     <?php foreach ($commentLive as $record): ?>
Record Number: <?php echo htmlencode($record['num']) ?><br/>
      Title: <?php echo htmlencode($record['title']) ?><br/>
      Introduction: <?php echo htmlencode($record['introduction']) ?><br/>
      Content: <?php echo $record['content']; ?><br/>
      Added by: <?php echo htmlencode($record['added_by']) ?><br/>
      Added date: <?php echo date("D, M jS, Y g:i:s a", strtotime($record['added_date'])) ?><br/><!-- For date formatting codes see: http://www.php.net/date -->
      Archive (value): <?php echo $record['archive'] ?><br/>
      Archive (label): <?php echo $record['archive:label'] ?><br/>
      _link : <a href="<?php echo $record['_link'] ?>"><?php echo $record['_link'] ?></a><br/>


<!-- STEP 2a: Display Uploads for field 'uploads' (Paste this anywhere inside STEP2 to display uploads) -->
<!-- Upload Fields: extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 -->
Uploads:
<blockquote>
<?php foreach ($record['uploads'] as $index => $upload): ?>
Upload Url: <?php echo $upload['urlPath'] ?><br/>

<!-- Uploads: Copy the tags from below that you want to use, and erase the ones you don't need.

Thumb Url: <?php echo $upload['thumbUrlPath'] ?><br/><br/>
Download Link: <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/><br/>

Image Tags:<br/>
<img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" />
<img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/>

info1 (Title) : <?php echo htmlencode($upload['info1']) ?><br/>
info2 (Caption) : <?php echo htmlencode($upload['info2']) ?><br/><br/>

Extension: <?php echo $upload['extension'] ?><br/>
isImage: <?php if ($upload['isImage']): ?>Yes<?php else: ?>No<?php endif ?><br/>
hasThumbnail: <?php if ($upload['hasThumbnail']): ?>Yes<?php else: ?>No<?php endif ?><br/>
<hr/>
// end uploads comment tag -->

<?php endforeach ?>
</blockquote>
<!-- STEP2a: /Display Uploads -->

<hr/>
<?php endforeach ?>

<?php if (!$commentLive): ?>
No records were found!<br/><br/>
<?php endif ?>
     
      </div>
      <div id="col1"> <span class="subtitle">Articles and Published documents</span> <br />
        <!-- STEP2: Display Records (Paste this where you want your records to be listed) -->
        <?php foreach ($document_downloadRecords as $record): ?>
        <div id="download"><!-- STEP 2a: Display Uploads for field 'thumbnail' (Paste this anywhere inside STEP2 to display uploads) -->
        <!-- Upload Fields: extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 -->
        <?php foreach ($record['thumbnail'] as $index => $upload): ?>
        <img src="<?php echo $upload['thumbUrlPath'] ?>" alt="" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" class="small_image_notop" /><br/>


        <?php endforeach ?>
        </blockquote>
      <!-- STEP2a: /Display Uploads -->
	  
	  <?php echo htmlencode($record['title']) ?><br/>
          <!-- STEP 2a: Display Uploads for field 'document' (Paste this anywhere inside STEP2 to display uploads) -->
          <!-- Upload Fields: extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 -->
          <?php foreach ($record['document'] as $index => $upload): ?>
          <a href="<?php echo $upload['urlPath'] ?>" target="_blank">Download document </a>
          <?php endforeach ?>
        </div>
        <!-- STEP2a: /Display Uploads -->
        <?php endforeach ?>
        <?php if (!$document_downloadRecords): ?>
        No records were found!<br/>
  <br/>
  <?php endif ?>
  <!-- /STEP2: Display Records -->
 
  <p class="p-dotted"></p>
  <p></p>
  <span class="subtitle">Older articles from our blog</span><br />
        Here you will find older articles from our blog section.
        
        <!-- STEP1: Display Archied records -->
<?php foreach ($commentArchive as $record): ?>
Record Number: <?php echo htmlencode($record['num']) ?><br/>
Archive (value): <?php echo $record['archive'] ?><br/>
Archive (text): <?php echo $record['archive:text'] ?><br/>
Title: <?php echo htmlencode($record['title']) ?><br/>
Date: <?php echo date("D, M jS, Y g:i:s a", strtotime($record['date'])) ?><br/><!-- For date formatting codes see: http://www.php.net/date -->
_link : <a href="<?php echo $record['_link'] ?>"><?php echo $record['_link'] ?></a><br/>
<hr/>
<?php endforeach ?>

<?php if (!$commentLive): ?>
No records were found!<br/><br/>
<?php endif ?>
<!-- /STEP1: Display Records -->
        
  <p class="p-dotted"></p>
      </div>
      <div id="next"></div>
    </div>
</div>
          <div id="spacer"></div>

    
  </div>
  <div id="side_bar">
    <div id="updates">
      <script src="http://widgets.twimg.com/j/2/widget.js"></script>
      <script>
new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: 4,
  interval: 30000,
  width: 220,
  height: 300,
  theme: {
    shell: {
      background: '#777777',
      color: '#ffffff'
    },
    tweets: {
      background: '#ffffff',
      color: '#777777',
      links: '#588424'
    }
  },
  features: {
    scrollbar: false,
    loop: false,
    live: false,
    hashtags: true,
    timestamp: true,
    avatars: false,
    behavior: 'all'
  }
}).render().setUser('TwentyFifty').start();
      </script>
    </div>
    <div id="reg_details"><a href="https://twitter.com/TwentyFifty" target="_blank"><img src="images/twitter.jpg" alt="" width="20" height="19" border="0" class="twitter" /></a><a href="#" target="_blank"><img src="images/linkdin.jpg" alt="" width="20" height="19" border="0" class="twitter" /></a><a href="mailto:info@twentyfifty.co.uk" target="_blank"><img src="images/email.jpg" alt="" width="23" height="19" border="0" class="twitter" /></a><a href="contact-2050.html" target="_blank"><img src="images/call.jpg" alt="" width="26" height="19" border="0" class="twitter" /></a><br />
      <br />
      <strong><a href="http://www.theoldchurchschool.co.uk/findus/" target="_blank">Find directions to our office &gt;&gt;</a></strong><br />
      <br />
      site by <a href="http://www.mercerdesign.co.uk" target="_blank">mercerdesign</a></div>
  </div>
</div>
</body>
</html>
