.
This commit is contained in:
@ -96,11 +96,11 @@
|
||||
|
||||
function showRightPopup(state) {
|
||||
if (state) {
|
||||
$("#mask_bg").show();
|
||||
showmaskbg(true);
|
||||
$("#right_popup").css("left", $("#set_left").width()).show();
|
||||
}
|
||||
else {
|
||||
$("#mask_bg").hide();
|
||||
showmaskbg(false);
|
||||
$("#right_popup").hide();
|
||||
}
|
||||
}
|
||||
@ -122,6 +122,34 @@
|
||||
iframe.contentWindow.print();
|
||||
}
|
||||
|
||||
function openPrintFrame(rid) {
|
||||
if (navigator.userAgent.indexOf('Firefox') >= 0 ||
|
||||
navigator.userAgent.indexOf('Opera') >= 0) {
|
||||
setTimeout(function () {
|
||||
window.open("Inspection.aspx?rt=f&t=2&id=" + rid + "&team=" + (teamintelligence ? 1 : 0), '_blank');
|
||||
});
|
||||
}
|
||||
else {
|
||||
var frame = $("<iframe style='display:none;'></iframe>");
|
||||
$(document.body).after(frame);
|
||||
frame.attr('src', "Inspection.aspx?rt=f&t=2&id=" + rid);
|
||||
frame.on('load', function () {
|
||||
setTimeout(function () {
|
||||
frame[0].contentWindow.print();
|
||||
});
|
||||
setTimeout(function () {
|
||||
frame.remove();
|
||||
}, 60000);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function openDownloadFrame(rid) {
|
||||
setTimeout(function () {
|
||||
window.open("Inspection.aspx?rt=f&t=1&id=" + rid + "&team=" + (teamintelligence ? 1 : 0), '_blank');
|
||||
});
|
||||
}
|
||||
|
||||
function createSubMenus(items) {
|
||||
var maintenancesubmenu = $("#inspectsubmenu").empty();
|
||||
var ulsubmenus = $('<ul class="lefttitlemenu_ul" style="line-height:32px;"></ul>');
|
||||
@ -145,8 +173,8 @@
|
||||
return;
|
||||
}
|
||||
var items = [{ ID: 'templates/0', Title: GetTextByKey("P_DRAFT", "Draft") },
|
||||
{ ID: 'templates/1', Title: GetTextByKey("P_PUBLISHED", "Published") },
|
||||
{ ID: 'layouts/0', Title: GetTextByKey("P_LAYOUTS", "Layouts") }];
|
||||
{ ID: 'templates/1', Title: GetTextByKey("P_PUBLISHED", "Published") },
|
||||
{ ID: 'layouts/0', Title: GetTextByKey("P_LAYOUTS", "Layouts") }];
|
||||
createSubMenus(items);
|
||||
|
||||
var left = $(this).offset().left;
|
||||
@ -172,7 +200,7 @@
|
||||
return;
|
||||
}
|
||||
var items = [{ ID: 'exportpackages', Title: GetTextByKey("P_IPT_EXPORTPACKAGES", "Export Packages") },
|
||||
{ ID: 'importpackages', Title: GetTextByKey("P_IPT_IMPORTPACKAGES", "Import Packages") }];
|
||||
{ ID: 'importpackages', Title: GetTextByKey("P_IPT_IMPORTPACKAGES", "Import Packages") }];
|
||||
createSubMenus(items);
|
||||
|
||||
var left = $(this).offset().left;
|
||||
@ -190,6 +218,25 @@
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#nav_temparrow').click(function () {
|
||||
var flag = !$('#nav_temparrow').prop('isexpanded');
|
||||
var left_flag = !$('#set_left').prop('isexpanded');
|
||||
$('#nav_temparrow').stop()
|
||||
.prop('isexpanded', flag);
|
||||
if (flag)
|
||||
$('#set_left').find(".tempdesign").show();
|
||||
else
|
||||
$('#set_left').find(".tempdesign").hide();
|
||||
|
||||
if (left_flag)
|
||||
$('#span_tempdesign').hide();
|
||||
|
||||
$('#nav_temparrow div').attr('class', 'icn')
|
||||
.addClass(flag ? 'expand' : 'collapse');
|
||||
});
|
||||
|
||||
$('#nav_temparrow').click();
|
||||
});
|
||||
</script>
|
||||
</asp:Content>
|
||||
@ -199,9 +246,44 @@
|
||||
<li id="nav_arrow">
|
||||
<div class="icn collapse"></div>
|
||||
</li>
|
||||
<%if (ShowReport)
|
||||
{%>
|
||||
<li class="nav_item" data-module="inspections" data-title-lgid="P_INSPECTIONS"><a href="#inspections">
|
||||
<div>
|
||||
<em class="fa icon-menu icon-report"></em>
|
||||
</div>
|
||||
<span data-lgid="P_INSPECTIONS">Inspections</span></a>
|
||||
</li>
|
||||
<%} %>
|
||||
|
||||
<%if (ShowFuelLog)
|
||||
{%>
|
||||
<li class="nav_item" data-module="fuellog" data-title-lgid="P_IPT_FUELLOG"><a href="#fuellog">
|
||||
<div>
|
||||
<em class="fa icon-menu icon-fuellog"></em>
|
||||
</div>
|
||||
<span data-lgid="P_IPT_FUELLOG">Fuel Log</span></a>
|
||||
</li>
|
||||
<%} %>
|
||||
|
||||
<%if (ShowReport || ShowFuelLog)
|
||||
{%>
|
||||
<li style="height: 10px;">
|
||||
<hr style="background-color: #d8d8d8; border: none; height: 1px;" />
|
||||
</li>
|
||||
<%} %>
|
||||
|
||||
<%if (ShowGlobalSections || ShowTemplate)
|
||||
{%>
|
||||
<li id="nav_temparrow">
|
||||
<div class="icn expand"></div>
|
||||
<span id="span_tempdesign" class="subitem" data-lgid="P_XXX" style="margin-left: 15px; font-weight: bold;">Template Design</span>
|
||||
</li>
|
||||
<%} %>
|
||||
|
||||
<%if (ShowGlobalSections)
|
||||
{%>
|
||||
<li class="nav_item" data-module="globalsections" data-title-lgid="P_GLOBALSECTIONS"><a href="#globalsections">
|
||||
<li class="nav_item tempdesign" data-module="globalsections" data-title-lgid="P_GLOBALSECTIONS"><a href="#globalsections" style="padding-left: 10px;">
|
||||
<div>
|
||||
<em class="fa icon-menu icon-sections"></em>
|
||||
</div>
|
||||
@ -210,23 +292,23 @@
|
||||
<%} %>
|
||||
<%if (ShowTemplate)
|
||||
{%>
|
||||
<li class="nav_item" data-title-lgid="P_TEMPLATES"><a id="atemplates">
|
||||
<li id="litem" class="nav_item tempdesign" data-title-lgid="P_TEMPLATES"><a id="atemplates" style="padding-left: 10px;">
|
||||
<div>
|
||||
<em class="fa icon-menu icon-templates"></em>
|
||||
</div>
|
||||
<span data-lgid="P_TEMPLATES">Templates</span></a>
|
||||
</li>
|
||||
<li class="nav_item subitem" data-module="templates/0" data-title-lgid="P_DRAFT" style="height: 32px; line-height: 32px; display: none;"><a href="#templates/0">
|
||||
<li class="nav_item subitem tempdesign" data-module="templates/0" data-title-lgid="P_DRAFT" style="height: 32px; line-height: 32px; display: none;"><a href="#templates/0">
|
||||
<div style="width: 64px;">
|
||||
</div>
|
||||
<span style="color: #666;" data-lgid="P_DRAFT">Draft</span></a>
|
||||
</li>
|
||||
<li class="nav_item subitem" data-module="templates/1" data-title-lgid="P_PUBLISHED" style="height: 32px; line-height: 32px; display: none;"><a href="#templates/1">
|
||||
<li class="nav_item subitem tempdesign" data-module="templates/1" data-title-lgid="P_PUBLISHED" style="height: 32px; line-height: 32px; display: none;"><a href="#templates/1">
|
||||
<div style="width: 64px;">
|
||||
</div>
|
||||
<span style="color: #666;" data-lgid="P_PUBLISHED">Published</span></a>
|
||||
</li>
|
||||
<li class="nav_item subitem" data-module="layouts/0" data-title-lgid="P_LAYOUTS" style="height: 32px; line-height: 32px; display: none;"><a href="#layouts/0">
|
||||
<li class="nav_item subitem tempdesign" data-module="layouts/0" data-title-lgid="P_LAYOUTS" style="height: 32px; line-height: 32px; display: none;"><a href="#layouts/0">
|
||||
<div style="width: 64px;">
|
||||
</div>
|
||||
<span style="color: #666;" data-lgid="P_LAYOUTS">Layouts</span></a>
|
||||
@ -256,32 +338,6 @@
|
||||
</li>
|
||||
<%} %>
|
||||
<%} %>
|
||||
|
||||
<%if (ShowReport || ShowFuelLog)
|
||||
{%>
|
||||
<li style="height: 10px;">
|
||||
<hr style="background-color: #d8d8d8; border: none; height: 1px;" />
|
||||
</li>
|
||||
<%} %>
|
||||
|
||||
<%if (ShowReport)
|
||||
{%>
|
||||
<li class="nav_item" data-module="inspections" data-title-lgid="P_INSPECTIONS"><a href="#inspections">
|
||||
<div>
|
||||
<em class="fa icon-menu icon-report"></em>
|
||||
</div>
|
||||
<span data-lgid="P_INSPECTIONS">Inspections</span></a>
|
||||
</li>
|
||||
<%} %>
|
||||
<%if (ShowFuelLog)
|
||||
{%>
|
||||
<li class="nav_item" data-module="fuellog" data-title-lgid="P_IPT_FUELLOG"><a href="#fuellog">
|
||||
<div>
|
||||
<em class="fa icon-menu icon-fuellog"></em>
|
||||
</div>
|
||||
<span data-lgid="P_IPT_FUELLOG">Fuel Log</span></a>
|
||||
</li>
|
||||
<%} %>
|
||||
</ul>
|
||||
<div class="hostmask maskbg" style="display: none;"></div>
|
||||
</div>
|
||||
@ -297,7 +353,9 @@
|
||||
<div class="trigle white" style="left: -12px; right: auto;"></div>
|
||||
</div>
|
||||
|
||||
<div id="mask_bg" style="display: none;"><div class="loading c-spin"></div></div>
|
||||
<div id="mask_bg" style="display: none;">
|
||||
<div class="loading c-spin"></div>
|
||||
</div>
|
||||
<div id="right_popup" style="display: none; position: absolute; left: 250px; top: 0; right: 0; bottom: 0; background-color: white; overflow: auto;">
|
||||
</div>
|
||||
<div id="right_popup1" style="display: none; position: absolute; left: 250px; top: 0; right: 0; bottom: 0; background-color: white; overflow: auto;"></div>
|
||||
|
Reference in New Issue
Block a user