-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotebook.php
executable file
·168 lines (165 loc) · 120 KB
/
notebook.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<?php
//登录验证
if (!isset($_SESSION)) {
session_start();
}
if(!isset($_SESSION['user']))
{
?>
<html>
<script>alert('请先进行登录');window.location="./login.html";</script>
</html>
<?php
}
$user=$_SESSION['user'];
?>
<!DOCTYPE html>
<html lang="en" class="app">
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="images/logo.ico" type="image/x-icon"/>
<title>温控和电器组开关控制系统</title>
<meta name="description" content="app, web app, responsive, admin dashboard, admin, flat, flat ui, ui kit, off screen nav" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link rel="stylesheet" href="css/app.v2.css" type="text/css" />
<link rel="stylesheet" href="css/font.css" type="text/css" cache="false" />
<!--[if lt IE 9]> <script src="js/ie/html5shiv.js" cache="false"></script> <script src="js/ie/respond.min.js" cache="false"></script> <script src="js/ie/excanvas.js" cache="false"></script> <![endif]-->
</head>
<body>
<section class="vbox">
<header class="bg-dark dk header navbar navbar-fixed-top-xs">
<div class="navbar-header aside-md"> <a class="btn btn-link visible-xs" data-toggle="class:nav-off-screen" data-target="#nav"> <i class="fa fa-bars"></i> </a> <a href="#" class="navbar-brand" data-toggle="fullscreen"><img src="images/logo.png" class="m-r-sm">温控和电器组开关控制系统</a> <a class="btn btn-link visible-xs" data-toggle="dropdown" data-target=".nav-user"> <i class="fa fa-cog"></i> </a> </div>
<ul class="nav navbar-nav hidden-xs">
<li class="dropdown"> <a href="#" class="dropdown-toggle dker" data-toggle="dropdown"> <i class="fa fa-building-o"></i> <span class="font-bold">Personal Info</span> </a>
<section class="dropdown-menu aside-xl on animated fadeInLeft no-borders lt">
<div class="wrapper lter m-t-n-xs"> <a href="#" class="thumb pull-left m-r"> <img src="images/avatar.jpg" class="img-circle"> </a>
<div class="clear"> <span class="text-white font-bold"><a href="#">@<?php echo $user['name'];?></a></span> <small class="block">Manager</small> </div>
</div>
</section>
</li>
</ul>
<ul class="nav navbar-nav navbar-right hidden-xs nav-user">
<li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <span class="thumb-sm avatar pull-left"> <img src="images/avatar.jpg"> </span> <?php echo $user['name'];?> <b class="caret"></b> </a>
<ul class="dropdown-menu animated fadeInRight">
<span class="arrow top"></span>
<li> <a href="#">Settings</a> </li>
<li class="divider"></li>
<li> <a href="logout.php" data-toggle="ajaxModal" >Logout</a> </li>
</ul>
</li>
</ul>
</header>
<section>
<section class="hbox stretch"> <!-- .aside -->
<aside class="bg-dark lter aside-md hidden-print" id="nav">
<section class="vbox">
<header class="header bg-primary lter text-center clearfix">
<div class="btn-group">
<button type="button" class="btn btn-sm btn-dark btn-icon" title="New project"><i class="fa fa-plus"></i></button>
<div class="btn-group hidden-nav-xs">
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" data-toggle="dropdown"> Switch Project <span class="caret"></span> </button>
<ul class="dropdown-menu text-left">
<li><a href="#">Project</a></li>
<li><a href="#">Another Project</a></li>
<li><a href="#">More Projects</a></li>
</ul>
</div>
</div>
</header>
<section class="w-f scrollable">
<div class="slim-scroll" data-height="auto" data-disable-fade-out="true" data-distance="0" data-size="5px" data-color="#333333"> <!-- nav -->
<nav class="nav-primary hidden-xs">
<ul class="nav">
<li> <a href="index.php"> <i class="fa fa-home"> <b class="bg-danger"></b> </i> <span>Workset</span> </a> </li>
<li > <a href="operation.php" > <i class="fa fa-columns icon"> <b class="bg-warning"></b> </i> <!--<span class="pull-right"> <i class="fa fa-angle-down text"></i> <i class="fa fa-angle-up text-active"></i> </span>--> <span>Operation</span> </a>
<!-- <ul class="nav lt">-->
<!-- <li > <a href="operation.php" > <i class="fa fa-angle-right"></i> <span>Temperature control</span> </a> </li>-->
<!-- <li > <a href="layout-r.html" > <i class="fa fa-angle-right"></i> <span>Electrical unit control</span> </a> </li>-->
<!-- </ul>-->
</li>
<li > <a href="charts.php" > <i class="fa fa-file-text icon"> <b class="bg-primary"></b> </i><span class="pull-right"></span> <span>Charts</span> </a></li>
<li > <a href="shutdown.php" > <i class="fa fa-flask icon"> <b class="bg-success"></b> </i> <span class="pull-right"> </span> <span>Emergency</span> </a></li>
<li > <a href="message.php" ><i class="fa fa-envelope-o icon"> <b class="bg-primary dker"></b> </i> <span>Message</span> </a> </li>
<li class="active"> <a href="notebook.php" class="active"> <i class="fa fa-pencil icon"> <b class="bg-info"></b> </i> <span>Notes</span> </a> </li>
</ul>
</nav>
<!-- / nav --> </div>
</section>
<footer class="footer lt hidden-xs b-t b-dark">
<div id="chat" class="dropup">
<section class="dropdown-menu on aside-md m-l-n">
</section>
</div>
<a href="#nav" data-toggle="class:nav-xs" class="pull-right btn btn-sm btn-dark btn-icon"> <i class="fa fa-angle-left text"></i> <i class="fa fa-angle-right text-active"></i> </a>
</footer>
</section>
</aside>
<!-- /.aside -->
<section id="content">
<section class="hbox stretch"> <!-- .aside -->
<aside class="aside-xl b-l b-r" id="note-list">
<section class="vbox flex">
<header class="header clearfix"> <span class="pull-right m-t">
<button class="btn btn-dark btn-sm btn-icon" id="new-note" data-toggle="tooltip" data-placement="right" title="New"><i class="fa fa-plus"></i></button>
</span>
<p class="h3">Notebook</p>
<div class="input-group m-t-sm m-b-sm"> <span class="input-group-addon input-sm"><i class="fa fa-search"></i></span>
<input type="text" class="form-control input-sm" id="search-note" placeholder="search">
</div>
</header>
<section>
<section>
<section>
<div class="padder"> <!-- note list -->
<ul id="note-items" class="list-group list-group-sp">
</ul>
<!-- templates -->
<script type="text/template" id="item-template">
<div class="view" id="note-<%- id %>">
<button class="destroy close hover-action">×</button><!--when hover show 'x'-->
<div class="note-name">
<strong> <%- (name && name.length) ? name : 'New note' %> </strong>
</div>
<div class="note-desc"> <%- description.replace(name,'').length ? description.replace(name,'') : 'empty note' %></div>
<span class="text-xs text-muted"><%- moment(parseInt(date)).format('MMM Do, h:mm a') %></span>
</div>
</script> <!-- / template --> <!-- note list -->
<p class="text-center"> </p>
</div>
</section>
</section>
</section>
</section>
</aside>
<!-- /.aside -->
<aside id="note-detail">
<script type="text/template" id="note-template">
<section class="vbox">
<header class="header bg-light lter bg-gradient b-b">
<p id="note-date">Created on <%- moment(parseInt(date)).format('MMM Do, h:mm a') %></p>
</header>
<section class="bg-light lter">
<section class="hbox stretch">
<aside>
<section class="vbox b-b">
<section class="paper">
<textarea type="text" class="form-control scrollable" placeholder="Type your note here"><%- description %></textarea>
</section>
</section>
</aside>
</section>
</section>
</section>
</script>
</aside>
</section>
<a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen" data-target="#nav"></a> </section>
<aside class="bg-light lter b-l aside-md hide" id="notes">
<div class="wrapper">Notification</div>
</aside>
</section>
</section>
</section>
<script src="js/app.v2.js"></script> <!-- Bootstrap --> <!-- App --> <script src="js/libs/underscore-min.js" cache="false"></script><script src="js/libs/backbone-min.js" cache="false"></script><script src="js/libs/backbone.localStorage-min.js" cache="false"></script> <script src="js/libs/moment.min.js" cache="false"></script><!-- Notes --><script src="js/apps/notes.js" cache="false"></script>
</body>
</html>