.
This commit is contained in:
@ -79,7 +79,7 @@
|
||||
var ShowTemplate =<%=ShowTemplate ?"true":"false"%>;
|
||||
var ShowReport =<%=ShowReport ?"true":"false"%>;
|
||||
var ReportReadonly =<%=ReportReadonly ?"true":"false"%>;
|
||||
var IsCustomerRecord = false;
|
||||
var IsCustomerRecord = false;
|
||||
|
||||
function inspectionrequest(method, param, callback, error) {
|
||||
_network.request("Inspection/Inspection.aspx", -1, method, param, callback, error || function (e) {
|
||||
@ -89,11 +89,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();
|
||||
}
|
||||
}
|
||||
@ -115,6 +115,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>');
|
||||
@ -183,6 +211,26 @@
|
||||
});
|
||||
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>
|
||||
@ -192,9 +240,35 @@
|
||||
<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 (ShowReport)
|
||||
{%>
|
||||
<li style="height: 10px;">
|
||||
<hr style="background-color: #d8d8d8; border: none; height: 1px;" />
|
||||
</li>
|
||||
<%} %>
|
||||
|
||||
<%if (IsSupperAdmin || 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 (IsSupperAdmin)
|
||||
{%>
|
||||
<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>
|
||||
@ -203,23 +277,23 @@
|
||||
<%} %>
|
||||
<%if (ShowTemplate)
|
||||
{%>
|
||||
<li class="nav_item" data-title-lgid="P_TEMPLATES"><a id="atemplates">
|
||||
<li 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="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="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/1" data-title-lgid="P_LAYOUTS" style="height: 32px; line-height: 32px; display: none;"><a href="#layouts/1">
|
||||
<li class="nav_item subitem tempdesign" data-module="layouts/1" data-title-lgid="P_LAYOUTS" style="height: 32px; line-height: 32px; display: none;"><a href="#layouts/1">
|
||||
<div style="width: 64px;">
|
||||
</div>
|
||||
<span style="color: #666;" data-lgid="P_LAYOUTS">Layouts</span></a>
|
||||
@ -249,16 +323,6 @@
|
||||
</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>
|
||||
<%} %>
|
||||
</ul>
|
||||
<div class="hostmask maskbg" style="display: none;"></div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user