Guides/Webform-Integration-Sub-Folder.md
... ...
@@ -245,9 +245,7 @@ href="Resources/...." and change them to href="Izenda/Resources/...."
245 245
<webopt:bundlereference runat="server" path="~/Content/css" />
246 246
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
247 247
248
-
249
-
250
-
248
+<!-- Copied code from Default.master -->
251 249
252 250
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
253 251
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
... ...
@@ -282,7 +280,10 @@ href="Resources/...." and change them to href="Izenda/Resources/...."
282 280
<!-- Page header injection -->
283 281
<asp:ContentPlaceHolder ID="HeadPlaceHolder" runat="server"></asp:ContentPlaceHolder>
284 282
283
+<!-- Copied code ends -->
285 284
285
+
286
+<!-- The below code makes Izenda code work only when sub folder name 'Izenda' is reached -->
286 287
<script type="text/javascript">
287 288
$(document).ready(function HideHeader() {
288 289
if (window.location.href.indexOf('Izenda') === -1) {
... ...
@@ -297,9 +298,113 @@ href="Resources/...." and change them to href="Izenda/Resources/...."
297 298
```
298 299
299 300
300
-
301 301
###Step 7. Copy < Body > Section from Default.master
302 302
303
+**a.** Copy the below code from < Body > section from Default.master of webform kit to the < Body > section of Site.master
304
+
305
+```html
306
+
307
+ <div class="layout container-fluid" style="margin: 0px; padding: 0px;">
308
+ <div class="header applyStyles" id="whiteHeader">
309
+ <div class="page" style="font-family: Segoe UI,Tahoma,Verdana,Arial,Helvetica,sans-serif">
310
+ <div class="left-logo">
311
+ <img src="Resources/FromDLL/Resources/ModernImages/bi-logo.png" alt="Business intelligence" />
312
+ </div>
313
+ <div class="right-logo">
314
+ <a href="http://izenda.com" style="position: relative; top: 4px;">
315
+ <img runat="server" class="right-logo" ID="rightLogo" src="Resources/FromDLL/Resources/ModernImages/IzendaNewLogoBlue.png" alt="Izenda Reports" /></a>
316
+ </div>
317
+ <div class="clearfix"></div>
318
+ </div>
319
+ </div>
320
+
321
+ <script type="text/javascript">
322
+ function insertParam(key, value) {
323
+ key = escape(key); value = escape(value);
324
+ var kvp = document.location.search.substr(1).split('&');
325
+ if (kvp.length == 1 && kvp[0] == '')
326
+ kvp.length = 0;
327
+ var i = kvp.length; var x; while (i--) {
328
+ x = kvp[i].split('=');
329
+ if (x[0] == key) {
330
+ x[1] = value;
331
+ kvp[i] = x.join('=');
332
+ break;
333
+ }
334
+ }
335
+ if (i < 0) { kvp[kvp.length] = [key, value].join('='); }
336
+ document.location.search = kvp.join('&');
337
+ }
338
+
339
+ function ShowRlToDbLoading() {
340
+ document.getElementById('mainContentDiv').style.display = 'none';
341
+ var dld = document.getElementById('dashLoadingVg');
342
+ dld.style.height = document.body.scrollHeight + 'px';
343
+ dld.style.display = '';
344
+ var limg = document.getElementById('limgDb');
345
+ var lw = document.getElementById('loadingWordDb');
346
+ var vSize = document.body.offsetHeight;
347
+ lw.style.paddingTop = (3 + vSize / 3) + 'px';
348
+ }
349
+ </script>
350
+
351
+
352
+ <div class="top-nav applyStyles" id="blueHeader">
353
+ <div class="page">
354
+ <ul id="topnav" style="margin: 0px; padding: 0px;">
355
+ <li class="top-nav-item" style="vertical-align: top;"><a href="ReportList.aspx">Reports</a></li>
356
+ <li class="top-nav-item" style="vertical-align: top;"><a href="Dashboards.aspx?clear=1" onclick="ShowRlToDbLoading();">Dashboards</a></li>
357
+ <li class="top-nav-item designer-only btn-group">
358
+ <a href="ReportDesigner.aspx?clear=1&tab=Data+Sources" style="padding-right: 8px!important;"><span class="plus">+</span> New</a>
359
+ <button type="button" class="btn dropdown-toggle" style="float: none; vertical-align: top; line-height: 20px; background-color: transparent; border: none !important;" data-toggle="dropdown">
360
+ <span class="caret" style="margin-top: 8px; vertical-align: top;"></span>
361
+ </button>
362
+ <ul class="dropdown-menu">
363
+ <li><a href="ReportDesigner.aspx?clear=1&tab=Data+Sources">Report</a></li>
364
+ <li runat="server" id="irItem"><a href="InstantReport.aspx">Instant Report</a></li>
365
+ <li><a href="<%=Izenda.AdHoc.AdHocSettings.DashboardDesignerUrl%>?clear=1">Dashboard</a></li>
366
+ </ul>
367
+ </li>
368
+ <% if (Izenda.AdHoc.AdHocSettings.ShowSettingsButton)
369
+ {
370
+ %>
371
+ <li class="top-nav-item" style="float: right;">
372
+ <a href="Settings.aspx" title="Settings">
373
+ <img class="icon" src="Resources/FromDLL/Resources/ModernImages/settings.png" alt="Settings" />
374
+ </a>
375
+ </li>
376
+ <% } %>
377
+ </ul>
378
+ <div class="clearfix"></div>
379
+ </div>
380
+ </div>
381
+
382
+ <div id="dashLoadingVg" style="text-align: center; width: 100%; height: 100%; top: 130px; left: 0px; background-color: #FFFFFF; z-index: 8000; display: none;">
383
+ <div id="loadingWordDb" style="font-size: 20px; margin-left: 70px; font-size: 20px; color: #1D5987; font-family: Verdana,Arial,Helvetica,sans-serif; font-weight: normal !important; font-size: 20px; font-style: normal;">Loading...</div>
384
+ <img id="limgDb" style="margin-left: 70px; margin-top: 40px;" src="Resources/FromDLL/Resources/loading.gif" alt="" />
385
+ </div>
386
+ <div class="main-content" id="mainContentDiv">
387
+ <asp:ContentPlaceHolder ID="PlaceHolder" runat="server"></asp:ContentPlaceHolder>
388
+ </div>
389
+
390
+<div class="footer applyStyles">
391
+ <div class="line"></div>
392
+ <div class="page">
393
+ <p>
394
+ Copyright 2015 Izenda, Inc.
395
+ </p>
396
+ </div>
397
+ </div>
398
+
399
+ </div>
400
+
401
+ <!-- For Google analytics -->
402
+ <asp:ContentPlaceHolder ID="TrackerPlaceHolder" runat="server">
403
+ </asp:ContentPlaceHolder>
404
+
405
+
406
+```
407
+
303 408
Add the Reporting folder in mvc5r3\Views to the project's Views
304 409
305 410
![Controllers](/Guides/MVC-Integration/VR.png)