<?php
###########################
#Rotide Egap v1.5
#Created/Revised: 02242005
#Creator: Kyle M. Perkins
###########################
session_start();
if (!isset($_SESSION['login']))
{include("index.php");
exit();}
?>
<script type='text/javascript' src='egap/dhtml.js'>
</script>
Save Status: <span id='saved' style='font-weight: bold;'>
<span style='color: #000099'>Saved</span>
</span>
<p align="left"><!--webbot bot="HTMLMarkup" startspan --><script>
if (!document.layers)
document.write('<div id="divStayTopLeft" style="position:absolute">')
</script>
<layer id="divStayTopLeft">
<!--EDIT BELOW CODE TO YOUR OWN MENU-->
<?php
$js_mouse="style='width: 27px; height: 28px; text-align: center;' onmouseover='fade_on(this)' onmouseout='fade_off(this)'";
echo "\n<table summary='add' style='border: 2px black solid; background-color: rgb(192,192,192);'>";
echo "\n\t<tr><td ".$js_mouse."><img src='./egap/pix/save.gif' alt='Save' title='Save' style='cursor: pointer;' onclick='save()'></td></tr>";
echo "\n\t<tr><td ".$js_mouse."><img src='./egap/pix/cancel.gif' alt='Cancel' title='Cancel' style='cursor: pointer;' onclick='detect()'/></td></tr>";
echo "\n\t<tr><td ".$js_mouse."><img src='./egap/pix/text.gif' alt='text' title='Insert Text' style='cursor: pointer;' onclick='open_text();'/></td></tr>";
echo "\n\t<tr><td ".$js_mouse."><img src='./egap/pix/hr.gif' alt='Horizontal Line' title='Insert Horizontal Line' onclick='add_hr()' style='cursor: pointer;'/></td></tr>";
echo "\n\t<tr><td ".$js_mouse."><img src='./egap/pix/table.jpg' alt='Table' title='Insert Table' style='cursor: pointer;' onclick='open_table();'/></td></tr>";
echo "\n\t<tr><td ".$js_mouse."><img src='./egap/pix/pic.jpg' alt='Picture' title='Insert a Picture' style='cursor: pointer;' onclick='open_pic(\"$login\");'/></td></tr>";
echo "\n\t<tr><td ".$js_mouse."><img src='./egap/pix/globe.gif' alt='Link' title='Add or Insert a Link' style='cursor: pointer;' onclick='open_link();'/></td></tr>";
echo "\n\t<tr><td ".$js_mouse." id='undo_cell'><img src='./egap/pix/undo.gif' alt='Undo' title='Undo Last Action' style='cursor: pointer;' onclick='undo();'/></td></tr>";
echo "\n\t<tr><td ".$js_mouse." id='redo_cell'><img src='./egap/pix/redo_d.gif' alt='Redo' title='Can\'t Redo Last Action' style='cursor: pointer;'/></td></tr>";
echo "\n\t<tr><td ".$js_mouse."><img src='../Images/bug.gif' alt='Bug' title='Report a Bug' style='cursor: pointer;' onclick='bug();'/></td></tr>";
echo "\n</table>";
?>
<!--END OF EDIT-->
</layer>
<script type="text/javascript">
/*
Floating Menu script- Roy Whittle (http://www.javascript-fx.com/)
Script featured on/available at http://www.dynamicdrive.com/
This notice must stay intact for use
*/
var verticalpos="frombottom"
if (!document.layers)
document.write('</div>')
function JSFX_FloatTopDiv()
{
var startX = 10,
startY = 500;
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x;this.style.top=y;};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function(){
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : document.body.scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("divStayTopLeft");
stayTopLeft();
}
JSFX_FloatTopDiv();
</script>
<br/>
<div align='center'>
<div style='border: 2px black solid; width:800px; text-align: left;' id='preview'>
<?php
$user_file="Users/$login/$file";
$handle=fopen($user_file, "r");
$full_line="";
while (!feof($handle)) {
$line = fgets($handle);
echo $line;
$full_line.=$line;
}
fclose($handle);
?>
</div>
</div>
<!--Invisible Textarea with Source Code-->
<textarea id='egap_b_code' style='visibility: hidden' name='egap_b_code' cols='0' rows='0'>
<?php echo $full_line; ?></textarea>
</td>
</table>
</div>