Location: PHPKode > projects > crelab > creblog/admin/style.php
<?php
include("adco.php");
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
<head>
   <title><?php echo $title ?></title>
   <link href="style/style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
a:link {
	color: #CCC;
	text-decoration: none;
}
a:visited {
	color: #CCC;
	text-decoration: none;
}
a:hover {
	color: #CCC;
	text-decoration: none;
}
a:active {
	color: #CCC;
	text-decoration: none;
}
</style>
</head>

<body>
  <div id="main">
    <div id="caption"><?php echo $title ?> - Choose your Style</div>
      <?php
  //the path to any file
  $fn = "../style/styles.txt";

  if (isset($_POST['content'])) {
      $content = stripslashes($_POST['content']);
      $fp = fopen($fn, "w") or die("Error opening file in write mode!");
      fputs($fp, $content);
      fclose($fp) or die("Error closing file!");
  }
?> 
<br/> <br/>
<div class="contentlink"><?php echo "You are using the Style: ", readfile($fn); ?></div>
<form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post">
        
        <div class="contentlink">Choose your Style: <select name="content" size="1" class="contentlink" style="font-size: 16px; width:200px;">
  			<option value="Blue">Blue</option>
  			<option value="Red">Red</option>
  			<option value="Grey">Grey</option>
	</select></div>
        
        <br/> <br/>
  <input type="submit" value="Save">  
</form>


<div id="source"><a href="index.php">BACK TO ADMINISTRATION PAGE</a> | simple blogging system by <a href="http://crelab.de">crelab.de</a></div>
  </div>
</body>   

Return current item: crelab