\n"); print("
\n"); // the form begins print("
\n"); // the table begins print("\n"); print("\n \n "); print("\n"); // title and bgimage data elements print("\n "); print("\n "); print("\n"); // second row of headers print("\n \n \n "); print("\n \n \n"); print("\n "); // second row of data elements print("\n "); print("\n "); print("\n "); print("\n "); print("\n"); print("\n"); // buttons for updating page properties print("\n \n\n"); // free the initial db query free_result($result); // query for page items $query2 = "select * from item where pid=$pid order by ord"; $result = query($connection, $query2); $count = numrows($result); print("\n"); print("\n"); if($count) { $shade = "light"; for($row=0; $row<$count; $row++) { $item = fetch_object($result, $row); $ord = $item->ord; $alt = (($item->alt) ? $item->alt : "   "); print("\n "); print(""); print("\n"); $shade = (($row & 1) ? "light" : "dark"); } } // new item button $ord++; print("\n \n"); print("
Page TitleBackground Image
title\">bgimage\">
StylesheetBase TargetPrevNextFooter
style\">target\">prev\">next\">footer\">
\n "); // reset button print(""); print("\n "); // update button print("\n "); // page list button print("
Page Items
\n "); print("
\n "); print("id>\n "); print("pid>\n "); print("\n "); print("id&pid=$pid\">"); print("\n "); print("
Item $ord - $item->type$alt
"); print(""); print("
\n
\n"); // include footer print("
\n
\n
\n"); require("../footer.php3"); print("\n"); } else { print("
\n

Database Error

\n"); print("

Failed to connect to database: $dbname

\n"); } ?>