-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclients.php
165 lines (155 loc) · 5.48 KB
/
clients.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
<?php
include_once 'config/Database.php';
include_once 'class/User.php';
$database = new Database();
$db = $database->getConnection();
$user = new User($db);
if(!$user->loggedIn()) {
header("Location: index.php");
}
include('inc/header.php');
?>
<title>Aplikacija za upravljanje projektima</title>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/dataTables.bootstrap.min.js"></script>
<link rel="stylesheet" href="css/dataTables.bootstrap.min.css" />
<script src="js/client.js"></script>
<script>
function removeBlur( ) {
var el=document.getElementsByClassName('fade in');
el=el[1];
el.style='display:none'
}
</script>
<script src="js/general.js"></script>
<style>
td.details-control {
background: url('images/details_open.png') no-repeat center center;
cursor: pointer;
}
tr.shown td.details-control {
background: url('images/details_close.png') no-repeat center center;
}
.fade {
display:none;
}
</style>
<link href="css/style.css" rel="stylesheet" type="text/css" >
<?php include('inc/container.php');?>
<div class="container">
<?php include('top_menus.php'); ?>
<div>
<div class="panel-heading">
<div class="row">
<div class="col-md-10">
<h3 class="panel-title"></h3>
</div>
<div class="col-md-2" align="right">
<button type="button" id="addClient" class="btn btn-info" title="Add Client"><span class="glyphicon glyphicon-plus"></span></button>
</div>
</div>
</div>
<table id="clientListing" class="table table-bordered table-striped">
<thead>
<tr>
<th>#</th>
<th>Ime</th>
<th>Websajt</th>
<th>Industija</th>
<th>Kontakt</th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
</table>
</div>
<div id="clientModal" class="modal fade">
<div class="modal-dialog">
<form method="post" id="clientForm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title"><i class="fa fa-plus"></i>Uredi projekat</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label for="name" class="control-label">Ime</label>
<input type="text" class="form-control" id="name" name="name" placeholder="ime" required>
</div>
<div class="form-group">
<label for="website" class="control-label">Websajt</label>
<input type="text" class="form-control" id="website" name="website" placeholder="websajt">
</div>
<div class="form-group">
<label for="industry" class="control-label">Industija</label>
<input type="text" class="form-control" id="industry" name="industry" placeholder="industrija" required>
</div>
<div class="form-group">
<label for="description" class="control-label">Opis</label>
<textarea class="form-control" rows="2" id="description" name="description"></textarea>
</div>
<div class="form-group">
<label for="phone" class="control-label">Telefon</label>
<input type="text" class="form-control" id="phone" name="phone" placeholder="telefon">
</div>
<div class="form-group">
<label for="address" class="control-label">Adresa</label>
<textarea class="form-control" rows="2" id="address" name="address"></textarea>
</div>
<div class="form-group">
<label for="country" class="control-label">Drzava</label>
<input type="text" class="form-control" id="country" name="country" placeholder="drzava">
</div>
</div>
<div class="modal-footer">
<input type="hidden" name="id" id="id" />
<input type="hidden" name="action" id="action" value="" />
<button type="submit" class="btn btn-info" data-dismiss="modal">Sacuvaj</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Zatvori</button>
</div>
</div>
</form>
</div>
</div>
<div id="clientDetails" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title"><i class="fa fa-plus"></i>Uredi projekat</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label for="name" class="control-label">Ime</label>
<span id="cname"></span>
</div>
<div class="form-group">
<label for="website" class="control-label">Vebsajt</label>
<span id="cwebsite"></span>
</div>
<div class="form-group">
<label for="industry" class="control-label">Industrija</label>
<span id="cindustry"></span>
</div>
<div class="form-group">
<label for="description" class="control-label">Opis</label>
<span id="cdescription"></span>
</div>
<div class="form-group">
<label for="phone" class="control-label">Kontakt</label>
<span id="cphone"></span>
</div>
<div class="form-group">
<label for="address" class="control-label">Adresa</label>
<span id="caddress"></span>
</div>
<div class="form-group">
<label for="country" class="control-label">Drzava</label>
<span id="ccountry"></span>
</div>
</div>
</div>
</div>
</div>
</div>