Курсовая работа: Разработка сайта. Система поиска по сайту
elseif (! isset ($term_paper ['NewSections'] [ ($section-1) /2/3/4/5/6/7/8/90])) $term_paper ['result']. ="<br><center><font face=verdana size=1 color=#de0000>ВыбраныйВамиразделнесуществует</font></cebter><br><br>";
else
{
#$term_paper ['status']. =" <font color=blue>"</font> <font color=green>". $term_paper ['section'] ['name'] =ucfirst ($term_paper ['sections'] [$case=floor ( ($section-1) /2/3/4/5/6/7/8/90)]). "</font>";
$term_paper ['status']. =" <font color=blue>"</font> <font color=green>". $term_paper ['section'] ['name'] =ucfirst ($term_paper ['NewSections'] [$case=floor ( ($section-1) /2/3/4/5/6/7/8/90)]). "</font>";
$term_paper ['result']. ="<table border=0 width=98% align=center><tr><td><font face=verdana size=1>";
switch ($case)
{
case "10":
if (! isset ($_POST ['dir']) ||! isset ($_POST ['url']))
$term_paper ['result']. =
'<script language="javascript" type="text/javascript">
<! - -
function StartSubscripting ()
{
OpenSubscriptingWindow=open ("","SubscriptingWindow","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,left=50,top=50,width=700,height=500");
OpenSubscriptingWindow. focus ();
OpenSubscriptingWindow. document. open ();
OpenSubscriptingWindow. document. write ("<html> <head> <title>Индексация. </title> <meta http-equiv=\"pragma\" content=\"no-cache\"> <meta http-equiv=\"content-type\" content=\"text/html; charset=windows-1251\"></head><body bgcolor=#ffffff> <table border=0 width=100% height=100%> <tr><td align=center><font face=verdana size=4 color=green><i>Идётиндексациясайта, пожалуйста, подождите. </td></tr> </table> </body> </html>");
OpenSubscriptingWindow. document. close ();
}
->
</script>
<table border=0 width=100%>
<form method=post onSubmit=StartSubscripting () target=SubscriptingWindow>
<tr><td height=10></td></tr>
<tr><td align=center><font face=verdana size=1 color=maroon><i>Укажитепапку, вкоторойберётначалоВашсайт (без/ вконце): </td></tr>
<tr><td align=center><input type=text name=dir size=52 class=name onfocus="id=className" onblur="id=\'\'"" style="font: italic; width: 346px" value="'.htmlspecialchars ( (isset ($_SERVER ['DOCUMENT_ROOT']))? $_SERVER ['DOCUMENT_ROOT']: null). '"></td></tr>
<tr><td height=10></td></tr>