Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
4.5 kB
12
Indexable
Never
@{
    if (Session["Admin_id"] == null)
    {
        Response.Redirect("/AdminPanel/Login");
    }
    string ControllerAdi = ViewContext.RouteData.GetRequiredString("controller");
}


<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - My ASP.NET Application</title>
    <link href="~/Content/Site.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <script src="~/Scripts/modernizr-2.8.3.js"></script>
    <link rel="shortcut icon" href="/Content/admin/images/fav.ico" type="image/x-icon">
    <!--== GOOGLE FONTS ==-->
    <link href="https://fonts.googleapis.com/css?family=Oswald:700|Source+Sans+Pro:300,400,600,700&display=swap" rel="stylesheet">
    <!--== CSS FILES ==-->
    <link rel="stylesheet" href="../Content/css/jquery-ui.css">
    <link rel="stylesheet" href="../Content/css/bootstrap.css">
    <link rel="stylesheet" href="/Content/admin/css/admin-style.css">
    <link rel="stylesheet" href="../Content/css/fonts.css">

    <link href="~/Content/ckeditor/contents.css" rel="stylesheet" />
</head>
<body>
    <section>
        <div class="ad-head">
            <div class="head-s1">
                <div class="menu">
                    <i class="material-icons mopen">menu</i>
                    <i class="material-icons mclose">close</i>
                </div>
                <div class="logo">
                    <img src="/Content/admin/images/logo-b.png">
                </div>
            </div>
            <div class="head-s2">
                <div class="head-sear">
                    <input type="text" id="search" placeholder="Search the listing and users..." autocomplete="off">
                </div>
            </div>
            <div class="head-s3">
                <div class="head-pro">
                    <b>@Session["Position"]</b><br>
                    <h4>@Session["Username"]</h4>
                    <a href="admin-setting.html" class="fclick"></a>
                </div>
            </div>
        </div>
    </section>
    <!-- END -->
    <!-- START -->
    <section>
        <div class="ad-menu-lhs mshow">
            <div class="ad-menu">
                <ul>
                    @if (Session["Position"].ToString() == "Admin")
                    {


                        <li class="ic-user">
                            <a href="/Admin/Index">Admin</a>

                        </li>
                        <li class="ic-ads">
                            <a href="/Kimlik/Index">Kimlik</a>

                        </li>
                    }

                    <li class="ic-db">
                        <a href="/AdminPanel/Index" class="mact">Admin Panel</a>
                    </li>
                    <li class="ic-li">
                        <a href="/Hakkimda/Index">Hakkımızda</a>

                    </li>
                    <li class="ic-eve">
                        <a href="/Hizmet/Index">Hizmet</a>

                    </li>
                    <li class="ic-blo">
                        <a href="/Galeri/Index">Galeri</a>

                    </li>
                    <li class="ic-cat">
                        <a href="/HKategori/Index">Kategori</a>

                    </li>
                    <li class="ic-enq">
                        <a href="/Referanslar/Index">Referanslar</a>

                    </li>

                    <li class="ic-noti">
                        <a href="/Slider/Index">Slider</a>

                    </li>

                    <li class="ic-hom">
                        <a href="/Iletisim/Index">İletişim</a>

                    </li>

                    <li class="ic-lgo">
                        <a href="/AdminPanel/Logout">Çıkış</a>
                    </li>
                </ul>
            </div>
        </div>
    </section>

    <div>
        @RenderBody()
    </div>

    <script src="~/Content/ckeditor/ckeditor.js"></script>



    <script src="../Content/js/jquery.min.js"></script>
    <script src="../Content/js/popper.min.js"></script>
    <script src="../Content/js/bootstrap.min.js"></script>
    <script src="../Content/js/jquery-ui.js"></script>
    <script src="/Content/admin/js/admin-custom.js"></script>
</body>
</html>