Skip to content

Commit c805aad

Browse files
author
Kutuzov Ivan
committed
for example
0 parents  commit c805aad

12 files changed

+9303
-0
lines changed

css/bootstrap-responsive.css

+1,088
Large diffs are not rendered by default.

css/bootstrap-responsive.min.css

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/bootstrap.css

+5,893
Large diffs are not rendered by default.

css/bootstrap.min.css

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dump/vint.sql

+99
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
-- phpMyAdmin SQL Dump
2+
-- version 3.4.10.1
3+
-- http://www.phpmyadmin.net
4+
--
5+
-- Хост: localhost
6+
-- Время создания: Дек 16 2012 г., 11:55
7+
-- Версия сервера: 5.1.41
8+
-- Версия PHP: 5.3.5
9+
10+
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
11+
SET time_zone = "+00:00";
12+
13+
14+
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
15+
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
16+
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
17+
/*!40101 SET NAMES utf8 */;
18+
19+
--
20+
-- База данных: `vint`
21+
--
22+
23+
-- --------------------------------------------------------
24+
25+
--
26+
-- Структура таблицы `task`
27+
--
28+
29+
CREATE TABLE IF NOT EXISTS `task` (
30+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
31+
`alias` varchar(32) NOT NULL,
32+
`title` varchar(128) NOT NULL,
33+
`desc` varchar(2048) NOT NULL,
34+
`mark` int(10) unsigned NOT NULL DEFAULT '0',
35+
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
36+
`estimate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
37+
`deadline` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
38+
PRIMARY KEY (`id`)
39+
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
40+
41+
--
42+
-- Дамп данных таблицы `task`
43+
--
44+
45+
INSERT INTO `task` (`id`, `alias`, `title`, `desc`, `mark`, `created`, `estimate`, `deadline`) VALUES
46+
(1, 'test1', 'test1', 'test1', 1, '2012-12-16 09:15:56', '2012-12-16 10:00:00', '2012-12-16 12:00:00'),
47+
(2, 'test2', 'test2', 'test2', 1, '2012-12-16 09:16:18', '2012-12-16 10:00:00', '2012-12-16 12:00:00');
48+
49+
-- --------------------------------------------------------
50+
51+
--
52+
-- Структура таблицы `user`
53+
--
54+
55+
CREATE TABLE IF NOT EXISTS `user` (
56+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
57+
`email` varchar(64) NOT NULL,
58+
`name` varchar(32) NOT NULL,
59+
`surname` varchar(32) NOT NULL,
60+
`patronymic` varchar(32) NOT NULL,
61+
`password` varchar(40) NOT NULL,
62+
`last_vizit` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
63+
PRIMARY KEY (`id`)
64+
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
65+
66+
--
67+
-- Дамп данных таблицы `user`
68+
--
69+
70+
INSERT INTO `user` (`id`, `email`, `name`, `surname`, `patronymic`, `password`, `last_vizit`) VALUES
71+
(1, '[email protected]', 'test', 'test', 'test', '5a367d8a4541e22e31053d113b47f8c342e62a11', '2012-12-16 09:09:58');
72+
73+
-- --------------------------------------------------------
74+
75+
--
76+
-- Структура таблицы `user_task`
77+
--
78+
79+
CREATE TABLE IF NOT EXISTS `user_task` (
80+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
81+
`user_id` int(10) unsigned NOT NULL,
82+
`task_id` int(10) unsigned NOT NULL,
83+
`status` tinyint(3) unsigned NOT NULL,
84+
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
85+
`updated` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
86+
PRIMARY KEY (`id`)
87+
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
88+
89+
--
90+
-- Дамп данных таблицы `user_task`
91+
--
92+
93+
INSERT INTO `user_task` (`id`, `user_id`, `task_id`, `status`, `created`, `updated`) VALUES
94+
(1, 1, 1, 1, '2012-12-16 09:10:31', '0000-00-00 00:00:00'),
95+
(2, 1, 2, 1, '2012-12-16 09:10:31', '0000-00-00 00:00:00');
96+
97+
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
98+
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
99+
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

img/glyphicons-halflings-white.png

8.57 KB
Loading

img/glyphicons-halflings.png

12.5 KB
Loading

index.php

+118
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>workshop</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<meta name="description" content="just for example">
8+
<meta name="author" content="Kutuzov Ivan">
9+
10+
<!-- Le styles -->
11+
<link href="/css/bootstrap.min.css" rel="stylesheet">
12+
<style type="text/css">
13+
body {
14+
padding-top: 20px;
15+
padding-bottom: 40px;
16+
}
17+
18+
/* Custom container */
19+
.container-narrow {
20+
margin: 0 auto;
21+
max-width: 700px;
22+
}
23+
.container-narrow > hr {
24+
margin: 30px 0;
25+
}
26+
27+
/* Main marketing message and sign up button */
28+
.jumbotron {
29+
margin: 60px 0;
30+
text-align: center;
31+
}
32+
.jumbotron h1 {
33+
font-size: 72px;
34+
line-height: 1;
35+
}
36+
.jumbotron .btn {
37+
font-size: 21px;
38+
padding: 14px 24px;
39+
}
40+
41+
/* Supporting marketing content */
42+
.marketing {
43+
margin: 60px 0;
44+
}
45+
.marketing p + h4 {
46+
margin-top: 28px;
47+
}
48+
</style>
49+
<link href="/css/bootstrap-responsive.css" rel="stylesheet">
50+
51+
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
52+
<!--[if lt IE 9]>
53+
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
54+
<![endif]-->
55+
</head>
56+
57+
<body>
58+
59+
<div class="container-narrow">
60+
61+
<div class="masthead">
62+
<h3 class="muted">Workshop for Ventilator</h3>
63+
</div>
64+
65+
<hr>
66+
67+
<ul class="nav nav-pills">
68+
<li><a href="/index.php?page=stat">Stat</a></li>
69+
<li><a href="/index.php?page=user">User</a></li>
70+
<li><a href="/index.php?page=task">Task</a></li>
71+
</ul>
72+
73+
<div class="row-fluid marketing">
74+
75+
<?php
76+
include_once './lib.php';
77+
78+
$page = 'stat';
79+
if (isset($_REQUEST['page']) && in_array($page, array('stat','user','task'))) {
80+
$page = $_REQUEST['page'];
81+
}
82+
83+
$userList = SampleFramework::loadUserList();
84+
85+
?>
86+
<table class="table table-striped table-bordered table-hover">
87+
<thead>
88+
<th>Surname</th><th>Name</th><th>Patronymic</th><th>TasksCount</th>
89+
</thead>
90+
<tbody>
91+
<?php foreach ($userList as $key => $user) : ?>
92+
<tr>
93+
<td><?= $user['surname'] ?></td>
94+
<td><?= $user['name'] ?></td>
95+
<td><?= $user['patronymic'] ?></td>
96+
<td><?= $user['task_count'] ?></td>
97+
</tr>
98+
<?php endforeach; ?>
99+
</tbody>
100+
</table>
101+
102+
</div>
103+
104+
<hr>
105+
106+
<div class="footer">
107+
<p>&copy; Company 2012</p>
108+
</div>
109+
110+
</div> <!-- /container -->
111+
112+
<!-- Le javascript
113+
================================================== -->
114+
<!-- Placed at the end of the document so the pages load faster -->
115+
<script src="/js/jquery.min.js"></script>
116+
<script src="/js/bootstrap.min.js"></script>
117+
</body>
118+
</html>

0 commit comments

Comments
 (0)