-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathyoda.php
More file actions
666 lines (491 loc) · 34.5 KB
/
yoda.php
File metadata and controls
666 lines (491 loc) · 34.5 KB
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
<?php
// server should keep session data for AT LEAST 1 hour
// ini_set('session.gc_maxlifetime', 0);
// session_set_cookie_params(0);
// each client should remember their session id for EXACTLY 1 hour
// session_set_cookie_params(14400);
ini_set('session.gc_maxlifetime', 14400);
session_start();
// var_dump(session_get_cookie_params ());
try
{
$bdd = new PDO('mysql:host=localhost;dbname=yoda;charset=utf8', 'root', 'cetroxNEST');
}
catch(Exception $e)
{
die('Erreur : '.$e->getMessage());
}
try
{
$bdd2 = new PDO('mysql:host=localhost;dbname=ecsupgrader;charset=utf8', 'yoda', 'cetroxNEST');
}
catch(Exception $e)
{
die('Erreur : '.$e->getMessage());
}
error_reporting(E_ALL);
set_time_limit(0);
ini_set('display_errors', 1);
date_default_timezone_set('Europe/London');
$selectVersion = $bdd->query('SELECT CFG_VERSION FROM YDA_CONFIG');
while ($version = $selectVersion->fetch()){
$yodaVersion = $version['CFG_VERSION'];
}
$ip = $_SERVER['REMOTE_ADDR'];
$page = $_SERVER['PHP_SELF'];
$browserArray = get_browser(NULL, true);
$browser = $browserArray['parent'];
$now = date("Y-m-d H:i:s");
$req = $bdd->prepare('INSERT INTO YDA_SPY(SPY_IP, SPY_TIME, SPY_PAGE, SPY_BROWSER) VALUES (:ip, :now, :page, :browser)');
$req->execute(array(
'ip' => $ip,
'now' => $now,
'page' => $page,
'browser' => $browser )) or die(print_r($bdd->errorCode()));
require('checkCookie.php');
checkCookie('yoda.php');
$right=[];
$select = $bdd->query('SELECT RGT_CODE
FROM YDA_RIGHT
JOIN YDA_HOOK on HOK_ID_RGT = RGT_ID
JOIN YDA_PROFIL ON HOK_ID_PRO = PRO_ID
JOIN YDA_USERS ON USR_ID_PRO = PRO_ID
WHERE USR_ID ="'.$_SESSION["id_user"].'"');
while ($query = $select->fetch()){
array_push($right, $query['RGT_CODE']);
}
$planningAccess = 0;
$select = $bdd->query('SELECT USR_TECH, USR_DIRECTION
FROM YDA_USERS
WHERE USR_ID ="'.$_SESSION["id_user"].'"');
while ($query = $select->fetch()){
if($query['USR_TECH'] == 1 || $query['USR_DIRECTION'] == 1){
$planningAccess = 1;
}else{
$planningAccess = 0;
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Bookmarks for all the ETMI Customer Application. For RIS and PACS. Internal user Only !">
<meta name="author" content="Yohann LOPEZ">
<title>Bookmarks clients</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<link href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet">
<!-- CSS Yoda -->
<link href="css/css_yoda.css" rel="stylesheet">
<link href="css/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="css/scrolltabs.css" rel="stylesheet">
<link rel="icon" type="image/png" href="./img/yoda.png" />
</head>
<body background="css/Vignettes/Background.jpg" style="overflow-x:hidden;">
<?php if(isset($_GET['filter'])):?>
<div class="d-none" id="filter"><?=$_GET['filter']?></div>
<?php else:?>
<div class="d-none" id="filter">none</div>
<?php endif;?>
<div class="d-none" id="id_user"><?=$_SESSION["id_user"]?></div>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container col-10">
<h3 style="col-10"><FONT color="#9ACD32" class="yoda">Y</font><FONT color="white" class="yohann">ohann</font> <FONT color="#9ACD32" class="yoda">O</font><FONT color="white" class="yohann">ptimized</font> <FONT color="#9ACD32" class="yoda">D</font><FONT color="white" class="yohann">irect link to</font> <FONT color="#9ACD32" class="yoda">A</font><FONT color="white" class="yohann">pplications</font><FONT color="#9ACD32" class="yoda"> v<?=$yodaVersion?></font></h3>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<div class="input-group btn-group" role="group">
<?php if(in_array("rgt_cod_add_client", $right)):?>
<button type="button" class="btn btn-outline-success createIcon" id="create" data-toggle="modal" data-target="#myModal"><i class="fa fa-fw fa-plus-circle"></i></button>
<?php endif;?>
<input id="searchBar" type="text" class="form-control searchBar" placeholder="Recherche...">
<button class="btn btn-outline-success " id="resetSearch" ><i class="fa fa-fw fa-times"></i></button>
</div>
</li>
<div class="dropdown yoda_menu" >
<button class="btn btn-outline-light dropdown-toggle col-12" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Menu
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="index.php">Dashboard</a>
<a class="dropdown-item active" href="yoda.php">Clients</a>
<a class="dropdown-item <?php
if(isset($_GET['filter']) && $_GET['filter'] == 'ok'){
echo 'filter';
}?>" href="#" id='switchFilter'>Filtres Version</a>
<a class="dropdown-item <?php
if(isset($_GET['filter']) && $_GET['filter'] == 'activity'){
echo 'filter';
}?>" href="#" id='activityFilter'>Filtres Activité</a>
<a class="dropdown-item" href="maps.php">Carte</a>
<a class="dropdown-item" href="interne.php" >Lien Interne</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="profil.php">Profil</a>
<a class="dropdown-item" href="notif.php">Notifications</a>
<?php if($planningAccess == 1):?>
<a class="dropdown-item" href="planning.php">Planning Support</a>
<?php endif;?>
<a class="dropdown-item" href="logout.php" style="color:red;">Deconnexion</a>
</div>
</div>
<button type="button" class="btn btn-outline-secondary" id="helpMePlease" data-toggle="modal" data-target="#modalHelp" style="margin-left:15px;"><i class="fa fa-fw fa-question-circle"></i></button>
</ul>
</div>
</div>
</nav>
<?php
// echo 'plop';
// ini_get();
// var_dump(session_get_cookie_params());
$arrayV8 = [];
$select = $bdd->query('SELECT distinct(CLI_NUM_VERSION) FROM YDA_CLIENT WHERE CLI_VALID = 1 AND CLI_VERSION = "v8" AND CLI_NUM_VERSION IS NOT NULL AND CLI_UID IS NULL order by cli_num_version asc');
while ($version = $select->fetch()){
array_push($arrayV8, $version['CLI_NUM_VERSION']);
}
$select2 = $bdd->query('SELECT CLI_UID FROM YDA_CLIENT WHERE CLI_VALID = 1 AND CLI_VERSION = "v8" AND CLI_UID IS NOT NULL');
while ($uid = $select2->fetch()){
// print_r($uid);
$select3 = $bdd2->query('SELECT * FROM wrk_client where wrk_client.uid = "' . $uid['CLI_UID'] . '"');
while ($query = $select3->fetch()){
$version = $query['version'] . '.' . $query['hotfix'];
if (!in_array($version, $arrayV8)){
array_push($arrayV8, $version);
}
}
}
rsort($arrayV8);
// print_r($arrayV7);
$arrayV7 = [];
$select = $bdd->query('SELECT distinct(CLI_NUM_VERSION) FROM YDA_CLIENT WHERE CLI_VALID = 1 AND CLI_VERSION = "v7" AND CLI_NUM_VERSION IS NOT NULL AND CLI_UID IS NULL order by cli_num_version asc');
while ($version = $select->fetch()){
array_push($arrayV7, $version['CLI_NUM_VERSION']);
}
$select2 = $bdd->query('SELECT CLI_UID FROM YDA_CLIENT WHERE CLI_VALID = 1 AND CLI_VERSION = "v7" AND CLI_UID IS NOT NULL');
while ($uid = $select2->fetch()){
// print_r($uid);
$select3 = $bdd2->query('SELECT * FROM wrk_client where wrk_client.uid = "' . $uid['CLI_UID'] . '"');
while ($query = $select3->fetch()){
$version = $query['version'] . '.' . $query['hotfix'];
if (!in_array($version, $arrayV7)){
array_push($arrayV7, $version);
}
}
}
rsort($arrayV7);
// print_r($arrayV7);
$arrayV6 = [];
$select = $bdd->query('SELECT distinct(CLI_NUM_VERSION) FROM YDA_CLIENT WHERE CLI_VALID = 1 AND CLI_VERSION = "v6" AND CLI_NUM_VERSION IS NOT NULL AND CLI_UID IS NULL order by cli_num_version asc');
while ($version = $select->fetch()){
array_push($arrayV6, $version['CLI_NUM_VERSION']);
}
$select2 = $bdd->query('SELECT CLI_UID FROM YDA_CLIENT WHERE CLI_VALID = 1 AND CLI_VERSION = "v6" AND CLI_UID IS NOT NULL');
while ($uid = $select2->fetch()){
$select3 = $bdd2->query('SELECT * FROM wrk_client where wrk_client.uid = "' . $uid['CLI_UID'] . '"');
while ($query = $select3->fetch()){
$version = $query['version'] . '.' . $query['hotfix'];
if (!in_array($version, $arrayV6)){
array_push($arrayV6, $version);
}
}
}
rsort($arrayV6);
if(isset($_GET['filter'])):?>
<?php if($_GET['filter'] == 'v7'):?>
<div id="tabSetV7" style='background-color: #6C7A89;'>
<span class="bigSearchV7" data-ok='0' id='searchV7'>v7</span>
<?php
for ($i = 0; $i < count($arrayV7); $i ++){
echo '<span class="searchV7 text-center" id="searchVersion_'. $arrayV7[$i] .'" onclick="searchVersionV7(\''. $arrayV7[$i] .'\')">' . $arrayV7[$i] . '</span>';
}
endif;
if($_GET['filter'] == 'v6'):?>
<div id="tabSetV6" style='background-color: #6C7A89;'>
<span class="bigSearchV6" data-ok='0' id='searchV6'>v6</span>
<?php
for ($i = 0; $i < count($arrayV6); $i ++){
echo '<span class="searchV6 text-center" id="searchVersion_'. $arrayV6[$i] .'" onclick="searchVersionV6(\''. $arrayV6[$i] .'\')">' . $arrayV6[$i] . '</span>';
}
endif;
if($_GET['filter'] == 'v8'):?>
<div id="tabSetV8" style='background-color: #6C7A89;'>
<span class="bigSearchV8" data-ok='0' id='searchV8'>v6</span>
<?php
for ($i = 0; $i < count($arrayV8); $i ++){
echo '<span class="searchV8 text-center" id="searchVersion_'. $arrayV8[$i] .'" onclick="searchVersionV8(\''. $arrayV8[$i] .'\')">' . $arrayV8[$i] . '</span>';
}
endif;
if($_GET['filter'] == 'activity'):?>
<div class ="text-center" id="tabSetActivity" style='background-color: #6C7A89;'>
<!--<div style='background-color: #6C7A89;height:40px;' class="text-center">-->
<span class="searchActivity text-center" id="SearchActivity0" onclick="searchActivity(0)" style="margin-left:5px;margin-right:5px; color:white"><img style="margin-top: 5px;" src="css/Vignettes/nada.png" height="30"/> :Aucun</span>
<span class="searchActivity text-center" id="SearchActivity1" onclick="searchActivity(1)" style="margin-left:5px;margin-right:5px;color:white"><img style="margin-top: 5px;" src="css/Vignettes/RIS.png" height="30"/> : RIS</span>
<span class="searchActivity text-center" id="SearchActivity2" onclick="searchActivity(2)" style="margin-left:5px;margin-right:5px;color:white"><img style="margin-top: 5px;" src="css/Vignettes/PACS.png" height="30"/> : PACS</span>
<span class="searchActivity text-center" id="SearchActivity3" onclick="searchActivity(3)" style="margin-left:5px;margin-right:5px;color:white"><img style="margin-top: 5px;" src="css/Vignettes/PACS-RIS.png" height="30"/> : RIS - PACS</span>
<!--</div>-->
<?php endif;
if($_GET['filter'] == 'ok'):?>
<div id="tabSetV8" style='background-color: #6C7A89; margin-bottom: 0;'>
<span class="bigSearchV8" data-ok='0' id='searchV8'>v8</span>
<?php
for ($i = 0; $i < count($arrayV8); $i ++){
echo '<span class="searchV8 text-center" id="searchVersion_'. $arrayV8[$i] .'" onclick="searchVersionV8(\''. $arrayV8[$i] .'\')">' . $arrayV8[$i] . '</span>';
}
?>
</div>
<div id="tabSetV7" style='background-color: #6C7A89; margin-bottom: 0;'>
<span class="bigSearchV7" data-ok='0' id='searchV7'>v7</span>
<?php
for ($i = 0; $i < count($arrayV7); $i ++){
echo '<span class="searchV7 text-center" id="searchVersion_'. $arrayV7[$i] .'" onclick="searchVersionV7(\''. $arrayV7[$i] .'\')">' . $arrayV7[$i] . '</span>';
}
?>
</div>
<div id="tabSetV6" style='background-color: #6C7A89;'>
<span class="bigSearchV6" data-ok='0' id='searchV6'>v6</span>
<?php
for ($i = 0; $i < count($arrayV6); $i ++){
echo '<span class="searchV6 text-center" id="searchVersion_'. $arrayV6[$i] .'" onclick="searchVersionV6(\''. $arrayV6[$i] .'\')">' . $arrayV6[$i] . '</span>';
}
endif;
?>
</div>
<?php endif; ?>
<div class="bookmarks" id="bookmarks">
<!--<p><FONT color="white"><pre>-->
<?php
if(isset($_GET['filter'])){
if($_GET['filter'] == 'v7'){
$select = $bdd->query('SELECT * FROM YDA_CLIENT WHERE CLI_VALID = 1 AND CLI_VERSION = "v7" ORDER BY CLI_VILLE, CLI_NOM ASC');
}
if($_GET['filter'] == 'v6'){
$select = $bdd->query('SELECT * FROM YDA_CLIENT WHERE CLI_VALID = 1 AND CLI_VERSION = "v6" ORDER BY CLI_VILLE, CLI_NOM ASC');
}
if($_GET['filter'] == 'ok' || $_GET['filter'] == 'activity'){
$select = $bdd->query('SELECT * FROM YDA_CLIENT WHERE CLI_VALID = 1 ORDER BY CLI_VILLE, CLI_NOM ASC');
}
}else{
$select = $bdd->query('SELECT * FROM YDA_CLIENT WHERE CLI_VALID = 1 ORDER BY CLI_VILLE, CLI_NOM ASC');
}
while ($bookmark = $select->fetch()): ?>
<?php if (substr($bookmark['CLI_URL'],-1) !='/'){
$bookmark['CLI_URL'] = $bookmark['CLI_URL'] . '/';
}
$i = $bookmark['CLI_ID'];
$ifPhone = 0;
$select2 = $bdd->query('SELECT COUNT(*) FROM YDA_PHONE WHERE PHO_ID_CLI ="' . $i .'" AND PHO_VALID = 1');
while ($phone = $select2->fetch()){
$ifPhone = $phone['COUNT(*)'];
}
$classVignette = '';
if(isset($_GET['filter']) && $_GET['filter'] == 'activity'){
$classVignette = 'class' . $bookmark['CLI_RIS'] . $bookmark['CLI_PACS'];
}else{
$classVignette = $bookmark['CLI_VERSION'];
}
?>
<div class="vignette" id="vignette_<?=$i?>">
<a href="<?=$bookmark['CLI_URL']?>" target="_blank"id="<?=$i?>_vign_url">
<div class="<?=$classVignette?>" id="<?=$i?>_vign_version">
<h4 class="nomVille" id="<?=$i?>_vign_ville"><?=$bookmark['CLI_VILLE']?></h4>
<p class="nomClient" id="<?=$i?>_vign_nom"><?=$bookmark['CLI_NOM']?></p>
</div>
</a>
<div class="bdd">
<div class="phoneIcon text-center">
<?php if($ifPhone != 0 ):?>
<a class="phoneIconLink" id="phoneLink_<?=$i?>">
<?php endif;
if($ifPhone != 0 ){
echo '<i class="fa fa-phone phoneIconFa" id="phoneIcon_'. $i . '"></i>';
}else{
echo '<i class="fa fa-ban"></i>';
}
?>
</a>
</div>
<?php if(in_array("rgt_cod_database", $right)):?>
<a href="<?=$bookmark['CLI_URL']?>sqlpacsadmin" target="_blank" id="<?=$i?>_dbb_url" class="database text-center"><i class='fa fa-database'></i></a>
<?php endif;?>
<a class="versioning text-center" data-toggle="tooltip" data-html="true" data-id="<?=$i?>" data-placement="bottom" data-title="test"><i class='fa fa-code-fork'></i></a>
<?php if(in_array("rgt_cod_modif_client", $right)):?>
<a class="modifIcon text-center" onclick="modif(<?=$i?>)" data-toggle="modal" data-target="#myModal" ><i class="fa fa-pencil-square-o"></i></a>
<?php endif;?>
</div>
</div>
<?php endwhile;
$select->closeCursor();
?>
</div>
<?php if(in_array("rgt_cod_database", $right) || in_array("rgt_cod_add_client", $right)):?>
<!--Modal-->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
<div class="modal-dialog" role="document">
<div class="modal-content" style="width: 1000px;margin-left: -250px;">
<div class="modal-header mx-auto">
<h4 class="modal-title" id="myModalLabel">Titre</h4>
</div>
<div class="modal-body col-12 row" style="background-color:black; width=500px; margin-left:0px; height: 630px;">
<div class="col-4">
<div id="myDIV" class="v7" style="margin:5px auto;">
<h4 id="id_ville" style="text-transform:capitalize;color:white;">Ville</h4>
<p id="id_nom" style="text-transform:capitalize;">Site Principal</p>
</div>
<div class="form-control" style="display: flex;flex-flow: row wrap; justify-content: space-between; margin-top: 20px;" id="formulaire">
<input class="form-control col-6" type="text" name="ville" id="ville" value="Ville..." onfocus="if(this.value=='Ville...')this.value=''" onblur="if(this.value=='')this.value='Ville...'" autocomplete="off" style=" margin:5px 0;" onkeyup="type_ville()">
<input type='hidden' name='taille_ville' id='taille_ville' value='24px'>
<input class="form-control col-6" type="text" name="nom" id="nom" value="Site Principal..." onfocus="if(this.value=='Site Principal...')this.value=''" onblur="if(this.value=='')this.value='Site Principal...'" autocomplete="off" style=" margin:5px 0;" onkeyup="type_nom()">
<input type='hidden' name='taille_nom' id='taille_nom' value='24px'>
<input class="form-control col-12" type="text" name="url" id="url" value="https://..." onfocus="if(this.value=='https://...')this.value=''" onblur="if(this.value=='')this.value='https://...'" autocomplete="off" style=" margin:0 0 5px 0;">
<p class="col-12" style="text-align:center;">Saisir des tags séparés par des virgules : </p>
<ul class="tags-input col-12 " id="tags-input">
<li class="tags-new">
<input type="text" id="tag" name="tag" value="Tags..." onfocus="if(this.value=='Tags...')this.value=''" onblur="if(this.value=='')this.value='Tags...'" autocomplete="off" style=" margin:0 0 5px 0;">
<input type='hidden' name='tag_hidden' id='tag_hidden' value=''>
</li>
</ul>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-warning" id="version6Button">
<input type="radio" name="version" id="version6" autocomplete="off" onchange="switchv6()" value='v6'>v6</label>
<label class="btn btn-primary active" id="version7Button">
<input type="radio" name="version" id="version7" autocomplete="off" onchange="switchv7()" checked value='v7'>v7</label>
<label class="btn btn-dark" id="version8Button">
<input type="radio" name="version" id="version8" autocomplete="off" onchange="switchv8()" value='v8'>v8</label>
</div>
<input type="hidden" id="versionHidden" value="v7">
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-outline-secondary" id="risButton">
<input type="checkbox" id="risCheckBox" onchange="switchRis()" autocomplete="off"> RIS</label>
<label class="btn btn-outline-secondary" id="pacsButton">
<input type="checkbox" id="pacsCheckBox" onchange="switchPacs()" autocomplete="off"> PACS</label>
</div>
<input type="hidden" id="risHidden" value="0">
<input type="hidden" id="pacsHidden" value="0">
<input type="text" class="form-control col-12" id="viewVersion" placeholder="Version View" style="margin-bottom:5px;">
<input type="text" class="form-control col-12" id="uViewVersion" placeholder="Version uView" style="margin-bottom:5px;">
<input type="text" class="form-control col-12" id="imagingVersion" placeholder="Version Imaging">
</div>
<div >
<button class="btn btn-danger d-none" id ='buttonDelete' style="float:right;margin:5px;" value="Supprimer" >Supprimer</button>
<button class="btn btn-primary d-none" id ='buttonModif' style="float:right;margin:5px;" value="Modifier" >Modifier</button>
<button class="btn btn-primary" style="float:right;margin:5px;" id ='buttonSubmit' value="Valider" >Valider</button>
<div id='alerte' class="alert alert-danger" style="width:100%; overflow:hidden"></div>
<div id='id' class="d-none"></div>
</div>
</div>
<div class="col-8 form-control" style="display: flex;flex-flow: row wrap; justify-content: space-between; margin-top: 20px;overflow-y: scroll;" >
<div id ='phones' class='col-12' style="padding-right:0px!important;padding-left:0px!important;">
<div id="divPhone0" class="col-12 row" style="border-bottom: solid 1px darkgray;padding: 15px 0;margin-right: 0px;margin-left: 0px;">
<div class="btn-group special col-12" role="group" style="padding-right:0px!important;padding-left:0px!important;" >
<button type="button" class="btn btn-outline-success form-group col-1 newPhone" id="newPhone0" onclick="newPhone(0)"><i class="fa fa-plus"></i></button>
<input class="form-group col-5 d-none siteClass" type="text" name="site0" id="site0" value="Site..." onfocus="if(this.value=='Site...')this.value=''" onblur="if(this.value=='')this.value='Site...'" autocomplete="off" style=" margin:0 0 5px 0; height:38px;">
<input class="form-group col-10 phoneClass" type="text" name="phone0" id="phone0" value="Téléphone..." onfocus="if(this.value=='Téléphone...')this.value=''" onblur="if(this.value=='')this.value='Téléphone...'" autocomplete="off" style=" margin:0 0 5px 0; height:38px;">
<button type="button" class="btn btn-outline-secondary form-group col-1 deletePhone" id="deletePhone0" disabled onclick="deletePhone(0)"><i class="fa fa-trash-o"></i></button>
</div>
<div class="btn-group special col-md-6" style="height:38px;padding-left:0px;padding-right:0px;" role="group">
<button class="btn btn-outline-primary form-group disabled" disabled type="button" style="height:38px;"><i class="fa fa-map"></i></button>
<input class="form-control col-md-10 latClass" type="text" name="lat0" id="lat0" value="Latitude..." onfocus="if(this.value=='Latitude...')this.value=''" onblur="if(this.value=='')this.value='Latitude...'" autocomplete="off" style="border-top-left-radius: 0;border-bottom-left-radius: 0;">
</div>
<div class="btn-group special col-md-6" style="height:38px;padding-left:0px;padding-right:0px;" role="group">
<button class="btn btn-outline-primary form-group disabled" disabled type="button" style="height:38px;"><i class="fa fa-map-o"></i></button>
<input class="form-control col-md-10 lonClass" type="text" name="lon0" id="lon0" value="Longitude..." onfocus="if(this.value=='Longitude...')this.value=''" onblur="if(this.value=='')this.value='Longitude...'" autocomplete="off" style="border-top-left-radius: 0;border-bottom-left-radius: 0;">
</div>
<div class="btn-group special col-md-6" style="height:38px;padding-left:0px;padding-right:0px;margin-top:5px;" role="group">
<button class="btn btn-outline-primary form-group disabled" disabled type="button" style="height:38px;"><i class="fa fa-envelope-o"></i></button>
<input class="form-control col-md-10 mailClass" type="text" name="mail0" id="mail0" value="eMail..." onfocus="if(this.value=='eMail...')this.value=''" onblur="if(this.value=='')this.value='eMail...'" autocomplete="off" style="border-top-left-radius: 0;border-bottom-left-radius: 0;">
</div>
<div class="btn-group special col-md-6" style="height:38px;margin-top:5px;padding-left:0px;padding-right:0px;" role="group">
<button class="btn btn-outline-primary form-group disabled" disabled type="button" style="height:38px;"><i class="fa fa-external-link"></i></button>
<input type="text" class="form-control col-10 TXClass" name="TX0" id="TX0" value="Adresse TX..." onfocus="if(this.value=='Adresse TX...')this.value=''" onblur="if(this.value=='')this.value='Adresse TX...'" autocomplete="off" aria-label="" aria-describedby="basic-addon1" style="border-top-left-radius: 0;border-bottom-left-radius: 0;">
</div>
<div class="btn-group special col-md-6" style="height:38px;padding-left:0px;padding-right:0px;margin-top:5px;" role="group">
<button class="btn btn-outline-primary form-group disabled" disabled type="button" style="height:38px;"><i class="fa fa-id-card-o"></i></button>
<input class="form-control col-md-10 idTVClass" type="text" name="idTV0" id="idTV0" value="ID Teamviewer..." onfocus="if(this.value=='ID Teamviewer...')this.value=''" onblur="if(this.value=='')this.value='ID Teamviewer...'" autocomplete="off" style="border-top-left-radius: 0;border-bottom-left-radius: 0;">
</div>
<div class="btn-group special col-md-6" style="height:38px;margin-top:5px;padding-left:0px;padding-right:0px;" role="group">
<button class="btn btn-outline-primary form-group disabled" disabled type="button" style="height:38px;"><i class="fa fa-unlock-alt"></i></button>
<input type="text" class="form-control col-10 passwordTVClass" name="passTV0" id="passTV0" value="Mot de Passe..." onfocus="if(this.value=='Mot de Passe...')this.value=''" onblur="if(this.value=='')this.value='Mot de Passe...'" autocomplete="off" aria-label="" aria-describedby="basic-addon1" style="border-top-left-radius: 0;border-bottom-left-radius: 0;">
</div>
</div>
<!--<hr>-->
<input type='hidden' value ='1' id='delete0' name='delete0'>
<input type='hidden' value ='' id='id0' name='id0'>
</div>
<input type='hidden' value ='' id='nbPhone' name="nbPhone">
</div>
</div>
</div>
</div><!-- /.modal -->
</div>
<?php endif;?>
<!-- Modal -->
<div class="modal fade bd-example-modal-lg" id="modalHelp" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Trucs et Astuces</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<small class="text-muted">Lors de la frappe, il est possible d'utiliser certaines touches pour effectuer des actions rapides sur la vignette sélectionnée par le halo vert.</small>
<br>
<table class="table table-hover">
<thead>
<tr>
<th scope="col">Touche</th>
<th scope="col">Raccourci</th>
</tr>
</thead>
<tbody>
<tr>
<td>Entrée</td>
<td>Ouvrir l'URL du client</td>
</tr>
<tr>
<td>Ctrl + Entrée</td>
<td>Ouvrir la base de donnée du client soumis à droite</td>
</tr>
<tr>
<td>Echap</td>
<td>Efface le texte renseigné dans la barre de recherche</td>
</tr>
<tr>
<td><i class="fa fa-arrow-right"></i></td>
<td>Naviguer vers la droite sur les vignette affichées</td>
</tr>
<tr>
<td><i class="fa fa-arrow-left"></i></td>
<td>Naviguer vers la gauche sur les vignette affichées</td>
</tr>
<tr>
<td><i class="fa fa-arrow-down"></i></td>
<td>Ouvrir la liste des numéros de téléphones / sites du client</td>
</tr>
<tr>
<td><i class="fa fa-arrow-up"></i></td>
<td>Fermer la liste des numéros de téléphones / sites du client</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!--fin Modale-->
<!-- Bootstrap core JavaScript -->
<script src="https://code.jquery.com/jquery-3.2.1.js" integrity="sha256-DZAnKJ/6XZ9si04Hgrsxu/8s717jcIzLy3oi35EouyE=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
<script src="js/jquery.scrolltabs.js"></script>
<script src="js/yoda.js"></script>
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
<script>
</script>
</body>
</html>