I have a set of file that I would like to use between the hours of 7am - 9pm, and then another set from 9pm - 7am. Am I on the right track with this code?
Thanks for any help....
[php]
<?php
$h = date('h');
if ($h < 09)
{
$link1 = 'caddisplay1.ph p';
$link2 = 'units1.php';
$link3 = 'emsa1.php';
}
else
{
$link1 = 'caddisplay.php ';
$link2 = 'units.php';
$link3 = 'emsa.php';
}
echo "
<frameset rows=\"32,*\" style=\"border: 0;\" framespacing=\" 0\">
<frame name=\"toolfram e\" src=\"toolBar1. php\" marginwidth=\"0 \" marginheight=\" 0\" scrolling=\"no\ " frameborder=\"n o\" noresize>
<frameset id=\"layout\" rows=\"60%,26,* \" cols=\"*\" border=\"3\" framespacing=\" 3\">
<frame name=\"calls\" src=\"$link1\" scrolling=\"yes \" frameborder=\"y es\">
<frame name=\"middle\" src=\"$link3\" scrolling=\"no\ " noresize frameborder=\"n o\">
<frame name=\"units\" src=\"$link2\" scrolling=\"yes \" frameborder=\"y es\">
</frameset>
</frameset>
</frameset>
</HTML>
";
?>
[/php]
Thanks for any help....
[php]
<?php
$h = date('h');
if ($h < 09)
{
$link1 = 'caddisplay1.ph p';
$link2 = 'units1.php';
$link3 = 'emsa1.php';
}
else
{
$link1 = 'caddisplay.php ';
$link2 = 'units.php';
$link3 = 'emsa.php';
}
echo "
<frameset rows=\"32,*\" style=\"border: 0;\" framespacing=\" 0\">
<frame name=\"toolfram e\" src=\"toolBar1. php\" marginwidth=\"0 \" marginheight=\" 0\" scrolling=\"no\ " frameborder=\"n o\" noresize>
<frameset id=\"layout\" rows=\"60%,26,* \" cols=\"*\" border=\"3\" framespacing=\" 3\">
<frame name=\"calls\" src=\"$link1\" scrolling=\"yes \" frameborder=\"y es\">
<frame name=\"middle\" src=\"$link3\" scrolling=\"no\ " noresize frameborder=\"n o\">
<frame name=\"units\" src=\"$link2\" scrolling=\"yes \" frameborder=\"y es\">
</frameset>
</frameset>
</frameset>
</HTML>
";
?>
[/php]
Comment