
@using ABT.Entity;
@using ABT.Entity;
@using ABTWWW.Utility.Extension;

@model F_FaqItem
@{
    Layout = null;

    SEO SEO = (SEO)ViewBag.SEO;

    SiteLayout siteLayout = CommonRazorFunctions.GetSiteLayout();

}
<!DOCTYPE html>
<html lang="Zh-hant" xml:lang="Zh-hant">
<head>
    <meta charset="utf-8">
    <title>@SEO.Title - 友善列印</title>
    <link rel="shortcut icon" href="~/Content/img/favicon.ico" type="image/x-icon" />
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link href="~/Content/bootstrap-5.3.7/bootstrap.min.css" rel="stylesheet" />
    <link href="~/Content/font-awesome-7.1.0/all.min.css" rel="stylesheet" />
    <link href="~/Content/front/theme.css" rel="stylesheet" />
    <link href="~/Content/front/theme-elements.css" rel="stylesheet" />
    <link href="~/Content/front/settings.css" rel="stylesheet" />
    <link href="~/Content/front/layers.css" rel="stylesheet" />
    <link href="~/Content/front/style.css" rel="stylesheet" />
    <script nonce="@HttpContext.Current.Items["CspNonce"]" src="~/Scripts/jquery-3.7.1.min.js"></script>
    <script nonce="@HttpContext.Current.Items["CspNonce"]" src="~/Scripts/jquery-migrate-3.5.2/jquery-migrate.min.js"></script>
    <script nonce="@HttpContext.Current.Items["CspNonce"]" src="~/Scripts/main.js"></script>
    <!-- 字級設定 start-->
    <link href="~/Content/front/fonts.css" rel="stylesheet" type="text/css" title="smalltext" />
    <link href="~/Content/front/fontm.css" rel="stylesheet" type="text/css" title="mediumtext" />
    <link href="~/Content/front/fontl.css" rel="stylesheet" type="text/css" title="largetext" />
    <script nonce="@HttpContext.Current.Items["CspNonce"]" src="~/Scripts/fontswitch.js"></script>
    <!-- 字級設定 end-->
    <noscript>
        <link href="~/Content/front/no_script.css" rel="stylesheet" />
    </noscript>
</head>
<body style="max-width:806px; margin:0 auto; background: url(../../Content/img/bg_05.jpg);">
    <div class="con_box">
        <div class="con_banner">
            @if (!siteLayout.PrintImgNameOri.IsNullOrEmpty())
            {
                <img src="@Url.Content("~/UploadImage/SiteLayout/"+siteLayout.PrintImgNameOri)" alt="友善列印照片" />
            }
            else
            {
                <img src="~/Content/img/print_banner.jpg" alt="友善列印照片" />
            }

        </div><!--建議尺寸740*185px-->
        <div class="title"><h2>@Model.Title</h2></div>
        @*<div class="title"><h2>@Model.ItemName</h2></div>*@
        <div class="item_date">
            @(Model.UpdateDatetime.HasValue ? Model.UpdateDatetime.Value.ToString("yyyy/MM/dd") :
                             (Model.CreateDatetime.HasValue ? Model.CreateDatetime.Value.ToString("yyyy/MM/dd") : ""))
        </div>

        <!--page content start-->
        <div class="page_con">
            @if (Model.ImageFileLocation == "1" && !Model.ImageFileName.IsNullOrEmpty())//左
            {
                <img src="@Url.Content("~/UploadImage/FaqItem/"+Model.ImageFileName)"
                     alt="@Model.ImageFileDesc" class="img_padding" align="left">
            }
            else if (Model.ImageFileLocation == "2" && !Model.ImageFileName.IsNullOrEmpty()) //中
            {
                <div align="center">
                    <img src="@Url.Content("~/UploadImage/FaqItem/"+Model.ImageFileName)"
                         alt="@Model.ImageFileDesc" class="img_padding">
                </div>
            }
            else if (Model.ImageFileLocation == "3" && !Model.ImageFileName.IsNullOrEmpty()) //右
            {
                <img src="@Url.Content("~/UploadImage/FaqItem/"+Model.ImageFileName)"
                     alt="@Model.ImageFileDesc" class="img_padding" align="right">
            }
            @Html.Raw(Model.HtmlContent.safeHtmlFragment())
        </div>
        <!--page content end-->

    </div>
<div class="con_footer">
    @Html.Raw(siteLayout.PrintHtmlContent.safeHtmlFragment())
</div>
</body>
</html>