-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
147 lines (127 loc) · 8.04 KB
/
header.php
File metadata and controls
147 lines (127 loc) · 8.04 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
<script type="application/javascript">
document.body.style.backgroundColor = "<?php echo $bgcolor;?>";
</script>
<style>
.nav-tabs > li, .nav-pills > li {
float:none;
display:inline-block;
*display:inline; /* ie7 fix */
zoom:1; /* hasLayout ie7 trigger */
}
.nav-tabs, .nav-pills {
text-align:center;
height: 45px;
}
</style>
<!-- Nav tabs -->
<a href="/"><img alt="PM Core" height="45" src="https://www.processmaker.io/img/logo-black.svg" style="position: absolute;">
</a>
<ul id="myTabs" class="nav nav-tabs" role="tablist">
<li role="presentation" class="mvp"><a href="#mvp" aria-controls="nda" role="tab" data-toggle="tab">Onboarding</a></li>
<li role="presentation"><a href="#nda" aria-controls="nda" role="tab" data-toggle="tab">NDA</a></li>
<li role="presentation" class="slack"><a href="#slack" aria-controls="slack" role="tab" data-toggle="tab">Slack</a></li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane" id="mvp">
<nav class="navbar navbar-default">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li<?php echo (preg_match('/readme.html/',$_SERVER['REQUEST_URI'] || empty($_SERVER['QUERY_STRING']))?' class="active"':'');?>><a href="/readme.html/">Readme</a></li>
<li<?php echo (preg_match('/import_form.html/',$_SERVER['REQUEST_URI'])?' class="active"':'');?>><a href="/import_form.html">Import</a></li>
<li<?php echo (preg_match('/processes_form.html/',$_SERVER['REQUEST_URI'])?' class="active"':'');?>><a href="/processes_form.html">Process List</a></li>
<li<?php echo (preg_match('/manual_request.html/',$_SERVER['REQUEST_URI'])?' class="active"':'');?>><a href="/manual_request.html">Manual Request</a></li>
<li><a href="https://docs.google.com/a/processmaker.com/forms/d/e/1FAIpQLSeEqBZjYVXKIATk-p1enNJCtUgmVMYiZ4lFx9w5o_8kjJ5N4w/viewform" target="_new">Google Form</a></li>
<li<?php echo (preg_match('/record_customer.html/',$_SERVER['REQUEST_URI'])?' class="active"':'');?>><a href="/record_customer.html">Record Customer</a></li>
<li<?php echo (preg_match('/validate_workspace.html/',$_SERVER['REQUEST_URI'])?' class="active"':'');?>><a href="/validate_workspace.html">Validate Workspace</a></li>
<li<?php echo (preg_match('/verify_on_boarding_data.html/',$_SERVER['REQUEST_URI'])?' class="active"':'');?>><a href="/verify_on_boarding_data.html">Verify Onboarding data</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><img align="right" height="50" src="<?php echo $avatar;?>"></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><?php echo $user;?> <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="?user=Test">Test</a></li>
<li><a href="?user=Alice">Alice</a></li>
<li><a href="?user=Bob">Bob</a></li>
</ul>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</div>
<div role="tabpanel" class="tab-pane" id="nda">
<nav class="navbar navbar-default">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li<?php echo (preg_match('/readme.html/',$_SERVER['REQUEST_URI'] || $_SERVER['QUERY_STRING'] == 'example=nda&user=Test')?' class="active"':'');?>><a href="/readme.html?example=nda">Readme</a></li>
<li<?php echo (preg_match('/import_form.html/',$_SERVER['REQUEST_URI'])?' class="active"':'');?>><a href="/import_form.html?example=nda">Import</a></li>
<li<?php echo (preg_match('/processes_form.html/',$_SERVER['REQUEST_URI'])?' class="active"':'');?>><a href="/processes_form.html?example=nda">Process List</a></li>
<li><a target="_new" href="https://docs.google.com/a/processmaker.com/forms/d/e/1FAIpQLSeCpy4wYwvLkSjUJIAr-VHjsquKS9SXlAhIMokmYU0MqtuPTQ/viewform">Manual Request (google form)</a></li>
<li<?php echo (preg_match('/check_nda_status.html/',$_SERVER['REQUEST_URI'])?' class="active"':'');?>><a href="check_nda_status.html?example=nda">Check NDA status </a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</div>
<div role="tabpanel" class="tab-pane" id="slack">
<nav class="navbar navbar-default">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li<?php echo (preg_match('/readme.html/',$_SERVER['REQUEST_URI'] || $_SERVER['QUERY_STRING'] == 'example=slack&user=Test')?' class="active"':'');?>><a href="/readme.html?example=slack">Readme</a></li>
<li<?php echo (preg_match('/import_form.html/',$_SERVER['REQUEST_URI'])?' class="active"':'');?>><a href="/import_form.html?example=slack">Import</a></li>
<li<?php echo (preg_match('/processes_form.html/',$_SERVER['REQUEST_URI'])?' class="active"':'');?>><a href="/processes_form.html?example=slack">Process List</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</div>
</div>
<script type="text/javascript">
$('ul#myTabs li a').on('click', function (e) {
var link = $(this).attr('href');
if (link == '#nda') window.location.replace('/?example=nda&user=Test');
else if (link == '#slack') window.location.replace('/?example=slack&user=Test');
else if (link == '#mvp') window.location.replace('/');
});
<?php if (isset($_GET['example']) && $_GET['example'] == 'nda') {
echo '$(\'#myTabs a[href="#nda"]\').tab(\'show\');';
} elseif (isset($_GET['example']) && $_GET['example'] == 'slack') {
echo '$(\'#myTabs a[href="#slack"]\').tab(\'show\');';
} else
echo'$(\'#myTabs a[href="#mvp"]\').tab(\'show\');';
?>
</script>