CODE (htmlphp):
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?php
- include ("blocks/bd.php");
- ?>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
- <title>Untitled Document</title>
- <link href="style.css" rel="stylesheet" type="text/css">
- </head>
- <body>
- <table width="800" border="0" align="center" class="main_border">
- <tr>
- <td> </td>
- </tr>
- <tr>
- <td>
- <table width="800" height="93" border="0">
- <?php include("blocks/lefttd.php"); ?>
- </table>
- </td>
- </tr>
- <tr>
- <td>
- <p><strong>Выберите курс для добавления: </strong></p>
- <form action="new_course.php" method="post">
- <?php
- $result = mysql_query("SELECT title,id FROM course");
- $myrow = mysql_fetch_array($result);
- do
- {
- printf ("<p><input name='id' type='radio' value='%s'><label> %s</label</p>",$myrow["id"],$myrow["title"]);
- }
- while ($myrow = mysql_fetch_array($result));
- ?>
- <p><input name="submit" type="submit" id="submit" value="Добавить курс"></p>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>