migrate to new git
247
web/admin/Templates/Template003/MasterPage.master
Normal file
@@ -0,0 +1,247 @@
|
||||
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="admin_Templates_Template003_MasterPage" %>
|
||||
<%@ Register Src="~/admin/menu.ascx" TagPrefix="uc1" TagName="menu" %>
|
||||
<%@ Register Src="~/admin/nav.ascx" TagPrefix="uc1" TagName="nav" %>
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>後端管理</title>
|
||||
|
||||
<link href="<%=ResolveUrl("~/App_Script/bootstrap3/css/bootstrap.css") %>" rel="stylesheet" />
|
||||
<link href="<%=ResolveUrl("~/App_Script/bootstrap_datepicker/css/datepicker.css") %>" rel="stylesheet" />
|
||||
<link href="<%=ResolveUrl("~/admin/skin/ezweb-admin-icons/style.css") %>" rel="stylesheet" />
|
||||
<link href="<%=ResolveUrl("~/admin/Templates/Template003/css/style.css") %>" rel="stylesheet" media="screen" />
|
||||
<link href="<%=ResolveUrl("~/App_Script/custom-scrollbar-plugin/jquery.mCustomScrollbar.css") %>" rel="stylesheet" />
|
||||
<link href="<%=ResolveUrl("~/App_Script/fontawesome/css/all.min.css") %>" rel="stylesheet" />
|
||||
<!--[if lt IE 9]>
|
||||
<link href="../skin/css/ie8-and-down.css" rel="stylesheet" type="text/css" />
|
||||
<![endif]-->
|
||||
<script type="text/javascript" src="<%=ResolveUrl("~/App_Script/js/jquery-3.5.1.min.js") %>"></script>
|
||||
<script type="text/javascript" src="<%=ResolveUrl("~/App_Script/js/admin.js") %>"></script>
|
||||
<script type="text/javascript" src="<%=ResolveUrl("~/App_Script/bootstrap3/js/bootstrap.js") %>"></script>
|
||||
<script type="text/javascript" src="<%=ResolveUrl("~/App_Script/bootstrap_datepicker/js/bootstrap-datepicker-tw.js") %>"></script>
|
||||
<script type="text/javascript" src="<%=ResolveUrl("~/App_Script/custom-scrollbar-plugin/jquery.mCustomScrollbar.js") %>"></script>
|
||||
<script type="text/javascript" src="<%=ResolveUrl("~/App_Script/js/req.js") %>"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
|
||||
$("#goTop").click(function () {
|
||||
|
||||
$("html,body").animate({ scrollTop: 0 }, 800);
|
||||
|
||||
//$("html,body").animate({scrollTop:0},900,"easeOutBounce");
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
var side_height = $(window).height() - $('.header').height();
|
||||
//$(".side1").css({ "min-height": side_height });
|
||||
|
||||
if ($(window).width() < 768) {
|
||||
$(".main").attr({ "class": "main side_hide" });
|
||||
} else {
|
||||
$(".main").attr({ "class": "main" });
|
||||
}
|
||||
$(window).resize(function () {
|
||||
if ($(window).width() < 768) {
|
||||
$(".main").attr({ "class": "main side_hide" });
|
||||
//$(".side1").css({ "height": side_height });
|
||||
} else {
|
||||
//$(".side1").css({ "height": side_height });
|
||||
}
|
||||
});
|
||||
|
||||
/*收合左側選單*/
|
||||
$(".btn-side-toggle").click(function () {
|
||||
$(".main").toggleClass("side_hide", 500);
|
||||
});
|
||||
|
||||
/*左側選單項目收合功能*/
|
||||
$("ul.collapsible_item").hide();
|
||||
$("li.collapsible > a").click(function (e) {
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
var cindex = $(this).index("li.collapsible > a");
|
||||
|
||||
var collapsibles = $("li.collapsible > a");
|
||||
for (i = 0; i < collapsibles.length; i++) {
|
||||
if ($(collapsibles[i]).hasClass("active") && i != cindex) {
|
||||
$(collapsibles[i]).removeClass("active");
|
||||
$(collapsibles[i]).parents("li.collapsible").find("ul.collapsible_item").slideUp();
|
||||
$(collapsibles[i]).find("span").attr('class', 'glyphicon glyphicon-plus');
|
||||
// break;
|
||||
} else if (i == cindex) {
|
||||
if ($(collapsibles[i]).find("span").attr('class') == 'glyphicon glyphicon-minus') {
|
||||
$(collapsibles[i]).find("span").attr('class', 'glyphicon glyphicon-plus');
|
||||
} else {
|
||||
$(collapsibles[i]).find("span").attr('class', 'glyphicon glyphicon-minus');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$(this).parents("li.collapsible").find("ul.collapsible_item")
|
||||
.slideToggle(400, function (e) {
|
||||
$(".scroll-box").mCustomScrollbar("update");
|
||||
});
|
||||
$(this).toggleClass("active");
|
||||
|
||||
});
|
||||
|
||||
/*進階搜尋收合*/
|
||||
$('.btn-search').click(function () {
|
||||
|
||||
if ($('.search_panel').css("display") == "none") {
|
||||
$(this).html('<span class="glyphicon glyphicon-search"></span> 回列表頁');
|
||||
} else {
|
||||
$(this).html('<span class="glyphicon glyphicon-search"></span> 條件搜尋');
|
||||
}
|
||||
|
||||
$('.search_panel').slideToggle();
|
||||
$('#printArea').slideToggle();
|
||||
});
|
||||
|
||||
/*日期選擇器*/
|
||||
if ($(".datepicker").length > 0) {
|
||||
$(".datepicker").datepicker().on('changeDate', function (e) {
|
||||
$(this).datepicker('hide');
|
||||
});
|
||||
$('.datepicker').css("cursor", "pointer");
|
||||
}
|
||||
|
||||
if ($('#ExpandMenuNum').length > 0) {
|
||||
var num = $('#ExpandMenuNum').val();
|
||||
$('li.collapsible > a.num' + num).siblings("ul.collapsible_item").show();
|
||||
$('li.collapsible > a.num' + num).addClass("active");
|
||||
$('li.collapsible > a.num' + num + ' span').attr('class', 'glyphicon glyphicon-minus');
|
||||
}
|
||||
|
||||
});
|
||||
$(document).ready(function () {
|
||||
$(".scroll-box").mCustomScrollbar({
|
||||
axis: "yx",
|
||||
scrollInertia: 80
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
<%-- <script type="text/javascript" src="<%=ResolveUrl("~/App_Script/js/jquery-1.10.2.js") %>"></script>
|
||||
<script type="text/javascript">
|
||||
function msgbox(text) {
|
||||
$.msgbox('<div style="min-width:200px;">' + text + '</div>');
|
||||
}
|
||||
</script>--%>
|
||||
<script src="<%=ResolveUrl("~/App_Script/sweetalert2-9.10.9/dist/sweetalert2.min.js") %>"></script>
|
||||
<link href="<%=ResolveUrl("~/App_Script/sweetalert2-9.10.9/dist/sweetalert2.min.css") %>" rel="stylesheet" />
|
||||
<script>
|
||||
function msgbox(html, icon = '', url = '') {
|
||||
Swal.fire({
|
||||
icon: icon,
|
||||
html: html,
|
||||
confirmButtonText: '關閉',
|
||||
onClose: () => {
|
||||
if (url != '') {
|
||||
window.location = url;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function msgtop(html, icon = 'success') {
|
||||
const Toast = Swal.mixin({
|
||||
toast: true,
|
||||
position: 'top-end',
|
||||
showConfirmButton: false,
|
||||
timer: 3000,
|
||||
heightAuto: false,
|
||||
timerProgressBar: true,
|
||||
onOpen: (toast) => {
|
||||
toast.addEventListener('mouseenter', Swal.stopTimer)
|
||||
toast.addEventListener('mouseleave', Swal.resumeTimer)
|
||||
}
|
||||
})
|
||||
|
||||
Toast.fire({
|
||||
icon: icon,
|
||||
html: '<div class="swal2-toast-cus">' + html + '</div>'
|
||||
})
|
||||
}
|
||||
|
||||
var mctmp = '0';
|
||||
function msgconfirm(html, btn, icon = 'question') {
|
||||
if (mctmp == '0') {
|
||||
Swal.fire({
|
||||
html: html,
|
||||
icon: icon,
|
||||
showCancelButton: true,
|
||||
confirmButtonText: '<i class="fas fa-check"></i> 確定',
|
||||
cancelButtonText: '<i class="fas fa-times"></i> 取消'
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
mctmp = '1';
|
||||
if ($(btn)[0].hasAttribute('href')) {
|
||||
var href = $(btn).attr('href');
|
||||
window.location.href = href;
|
||||
} else {
|
||||
$(btn).click();
|
||||
}
|
||||
}
|
||||
})
|
||||
mctmp = '0';
|
||||
return false;
|
||||
} else {
|
||||
mctmp = '0';
|
||||
return true;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<link href="<%=ResolveUrl("~/App_Script/css/expand.css") %>" rel="stylesheet" />
|
||||
<asp:ContentPlaceHolder ID="page_header" runat="server">
|
||||
</asp:ContentPlaceHolder>
|
||||
</head>
|
||||
<body class="<% =(isHome()?"home login":"")%>" id="Body">
|
||||
<form id="form1" runat="server">
|
||||
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
|
||||
<div class="page-wrap">
|
||||
<!-- Header -->
|
||||
<div class="header hidden-print">
|
||||
<div class="page-title login-center">
|
||||
<h1><a><%=company.name %></a></h1>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.header -->
|
||||
<div class="main">
|
||||
<div class="side1 hidden-print scroll-box">
|
||||
<ul class="list-unstyled">
|
||||
<%--<uc1:menu runat="server" ID="menu" />--%>
|
||||
<uc1:menu runat="server" ID="menu" />
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /.side1 -->
|
||||
<div class="content">
|
||||
<div class="navigation hidden-login">
|
||||
<button type="button" class="btn btn-side-toggle hidden-print">
|
||||
<span class="sr-only">開合側選單</span>
|
||||
<i class="fas fa-bars" style="font-size: 20px; color: #FFF"></i>
|
||||
</button>
|
||||
<%--<uc1:nav runat="server" ID="nav" />--%>
|
||||
<uc1:nav runat="server" ID="nav" />
|
||||
</div>
|
||||
<!-- /.navbar -->
|
||||
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
|
||||
</asp:ContentPlaceHolder>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<div id="floating"></div>
|
||||
</div>
|
||||
<!-- /.main -->
|
||||
<div class="footer">
|
||||
</div>
|
||||
<!-- /.footer -->
|
||||
</div>
|
||||
<!-- /.page-wrap -->
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
14
web/admin/Templates/Template003/MasterPage.master.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
public partial class admin_Templates_Template003_MasterPage : MyWeb.master
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
MasterLoad();
|
||||
}
|
||||
}
|
||||
11
web/admin/Templates/Template003/config.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xml id="cat_template" type="master">
|
||||
<title>樣版3</title>
|
||||
<description>
|
||||
樣版3描述
|
||||
</description>
|
||||
<img id="thumb" src="~/admin/Templates/Template003/images/body_bg.jpg"/>
|
||||
<assets>
|
||||
<file id="control" href="~/admin/Templates/Template003/default.master"/>
|
||||
</assets>
|
||||
</xml>
|
||||
1118
web/admin/Templates/Template003/css/style.css
Normal file
BIN
web/admin/Templates/Template003/images/body_bg.jpg
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
web/admin/Templates/Template003/images/close_list.png
Normal file
|
After Width: | Height: | Size: 977 B |
BIN
web/admin/Templates/Template003/images/google_analytic.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
web/admin/Templates/Template003/images/logo_black.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
web/admin/Templates/Template003/images/logo_white.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
web/admin/Templates/Template003/images/news_list_icon.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
web/admin/Templates/Template003/images/open_list.png
Normal file
|
After Width: | Height: | Size: 999 B |
BIN
web/admin/Templates/Template003/images/side_menu.jpg
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
web/admin/Templates/Template003/images/wrp_eztrust.png
Normal file
|
After Width: | Height: | Size: 7.2 KiB |