<!DOCTYPE html>
<html>
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Feering Jam Sessions</title>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="wrapper">
	<div id="header">
		<div id="logo">
			<h1><a href="#">The Fearing  </a></h1>
			<p> Band from Feering, Essex</p>
		</div>
	</div>
	<!-- end #header -->
	<div id="menu">
		<?php include('inc_menu.php'); ?>
	</div>
	<!-- end #menu -->
	<div id="page">
	<div id="page-bgtop">
	<div id="page-bgbtm">
		<div id="content">
			<div class="post">
			<div class="post-bgtop">
			<div class="post-bgbtm">
				<h1 class="title"><a href="#">
                		<?php
						$person=$_GET['person'];
						if (($person!='') or (isset($person)))
						{ 	//							echo $content[0];
							$upd_file='include/song_choices/'.$person.'.php';
							$content = file($upd_file);
							echo $person;
						}
						else
						{
								echo "Update Song List"; 
						}
						?>
                </a></h1>			
				<div class="entrypre">
                <?php
						if (($person!='') or (isset($person)))
						{ 
							include('songs_update_main.php');
						}
						else
						{
							echo "Please choose your name on the left to update your songs.
							<br /><br /><br /><br /><br /><br />";
						}
					?>
				</div>
			</div>
			</div>
			</div>
		<div style="clear: both;">&nbsp;</div>
		</div>
		<!-- end #content -->
		<div id="sidebar">
			<ul>
				<li>
					<h2 class="guitar">Update Songs</h2>
						<ul>
                            <li>Bell Jan 2017<span><a href="?person=Bell_Jan_2017">Update</a></span></li>
                            <!--
                            <li>Phil<span><a href="?person=Phil">Update</a></span></li>                        
                            <li>Kieron<span><a href="?person=Kieron">Update</a></span></li>                        
                            <li>Chris<span><a href="?person=Chris">Update</a></span></li>
                            <li>Proposed songs<span><a href="?person=Proposed">Update</a></span></li>    
                            -->                        
                            <li class="boldblue"><a href="include/song_choices/backup/_backup_list.php">Backup List</a></li>                                                         
                            <li class="boldblue"><a href="./songs.php">Return to View Mode</a></li> 

                                                                                                           
                         </ul>
				</li>
			</ul>
		</div>
		<!-- end #sidebar -->
		<div style="clear: both;">&nbsp;</div>
	</div>
	</div>
	</div>
	<!-- end #page -->
	<div id="footer">
		<p>.</p>
	</div>
	<!-- end #footer -->
</div>
<?
$pagename = $title2;
$url_page_name = str_replace(" ","%20",$title2);
$kpath = "data/counters/";

$counternum = $kpath.'logs/'.$page_name.'.php'; 
include($kpath.'_counters_no_resolve.inc.php');
?>

</body>
</html>

<?php

/*
$upd_file="include/song_choices/".$person.".php"; // can replace this with $upd_file

$message = "";
if ( isset($_POST['notes']) )
{
	$message = "<br />Updated<br />";


	$kiedate = date("Y_m_d__H_i_s");
	copy($upd_file, "include/song_choices/backup/".$kiedate.".php"); 


	$fp = fopen('include/song_choices/backup/backup_list.php', "a+");
	fwrite($fp, '<a href="'.$kiedate.'.php">'.$kiedate.'.php</a>');
	fwrite($fp, "<br />\r");
	fclose($fp);

	$file = fopen($upd_file,'w+');

	if ( !fwrite ($file, stripslashes($_POST['notes'])) )
	{
		?>Failed<?php
	}
	
	fclose($file);
}

$file = fopen($upd_file,'r');
$content = fread($file, filesize($upd_file) );
$file = fopen($upd_file,'r');
$content = fread($file, filesize($upd_file) );
*/
/*
							//for ($i = 2; $i <= count($content); $i++)
							//{
//								echo $content[$i];
								// include('songs_update_main.php');
								echo "<span class='updated_text'>".$message."</span>
<form enctype='application/x-www-form-urlencoded' method='post'>
<textarea name='notes' id='notes' class='text_area'>".$content."</textarea><br />
<input type='submit' value='Save' />
</form>";
	*/						//}

?>