Skip to content

Instantly share code, notes, and snippets.

Created October 29, 2010 14:21
Show Gist options
  • Save EVIL-SnaKe/653640 to your computer and use it in GitHub Desktop.
Save EVIL-SnaKe/653640 to your computer and use it in GitHub Desktop.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<? require_once ('db_login.php');
require_once ('db_connect.php');
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>Расписание АСП</title>
<script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>
<script type="text/javascript">
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
<style type="text/css" media="all">
@import url("file:///D|/My Dropbox/Учёба/5 курс/Web-дизайн/Online конфернеция/CSS/colors2.css");
<link href="file:///C|/raspisanie asp html/CSS/tablerasp.css" rel="stylesheet" type="text/css" />
<meta name="Description" content="123" />
<style type="text/css">
.style1 {
color: #000000;
font-weight: bold;
.cursor {
color: #33CC00;
list-style-type: circle;
cursor: crosshair;
<body alink="#F0F0F0">
<script type="text/javascript" src="/jquery.js"></script>
<label></label><form id="form1" name="form1" method="post" action="updatemain.php">
<h1 align="center" class="style1">Расписание АСП</h1>
<h1 align="left" onclick="MM_effectShake('form1')">
<select name="selectform" class="cursor" id="selectform">
<table width="572" height="216" border="1" align="center">
<tr bordercolor="#33FF00" bgcolor="#F0F0F0" id="form1">
<th nowrap="nowrap">Дата</th>
<th nowrap="nowrap">Время начала</th>
<th nowrap="nowrap">Время окончания</th>
<th nowrap="nowrap">Аппартаная Видеозаписи</th>
<th nowrap="nowrap"><p>Название</p>
<th nowrap="nowrap">Техническая информация</th>
<div id="result"></div>
<div align="left">
<div align="right">
<div align="left">
<input name="addzapis" type="button" id="addzapis" onclick="MM_goToURL('parent','input.html');return document.MM_returnValue" value="Добавить запись" />
<br />
<input name="loadfrombd" type="submit" id="loadfrombd" value="go" />
<input type="button" value="Обновить" onclick="$.get('/updatemain.php', function(data) {$('#result').html(data);})">
require_once ('db_login.php');
require_once ('db_connect.php');
/*$connection=mysql_connect($db_host, root, doom);
if (!$connection) {
die ("Невозможно подключиться к базе данных: <br/ >".mysql_error());
if (!$db_select) {
die ("Невозможно выбрать базу данных: <br/ >".mysql_error());
} */
function query_all($connection) {
// Записать текст запроса в переменную
$query= "SELECT * FROM main2";
// Исполнить запрос
$result= mysql_query($query);
if (!$result) {
die("Ошибка запроса: <br />".mysql_error());
//Получить и отобразить результаты
while ($row=mysql_fetch_array($result, MYSQL_ASSOC)) {
echo "<tr><td>$date</td>";
echo "<td>$start</td>";
echo "<td>$end</td>";
echo "<td>$name</td>";
echo "<td>$avz</td>";
echo "<td>$tech</td></tr>";
query_all ($connection);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment