Skip to content

Commit 1a28937

Browse files
FR11FR11
FR11
authored and
FR11
committed
Add project files.
1 parent 2aab640 commit 1a28937

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+40974
-0
lines changed

DbContext.cs

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//using System;
2+
3+
//public class Class1
4+
//{
5+
// public Class1()
6+
// {
7+
// }
8+
//}
9+
// Data/ApplicationDbContext.cs
10+
using System.Data.Entity;
11+
using YourNamespace.Models;
12+
13+
namespace YourNamespace.Data
14+
{
15+
public class ApplicationDbContext : DbContext
16+
{
17+
public DbSet<Contact> Contacts { get; set; }
18+
}
19+
}

project11.sln

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.34729.46
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "project11", "project11\project11.csproj", "{CFA66F3D-097E-4AF8-8D89-6BACAC97033A}"
7+
EndProject
8+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{F79D0F2E-661D-44E6-AACD-3CE43823B1E7}"
9+
ProjectSection(SolutionItems) = preProject
10+
DbContext.cs = DbContext.cs
11+
EndProjectSection
12+
EndProject
13+
Global
14+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
15+
Debug|Any CPU = Debug|Any CPU
16+
Release|Any CPU = Release|Any CPU
17+
EndGlobalSection
18+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
19+
{CFA66F3D-097E-4AF8-8D89-6BACAC97033A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
20+
{CFA66F3D-097E-4AF8-8D89-6BACAC97033A}.Debug|Any CPU.Build.0 = Debug|Any CPU
21+
{CFA66F3D-097E-4AF8-8D89-6BACAC97033A}.Release|Any CPU.ActiveCfg = Release|Any CPU
22+
{CFA66F3D-097E-4AF8-8D89-6BACAC97033A}.Release|Any CPU.Build.0 = Release|Any CPU
23+
EndGlobalSection
24+
GlobalSection(SolutionProperties) = preSolution
25+
HideSolutionNode = FALSE
26+
EndGlobalSection
27+
GlobalSection(ExtensibilityGlobals) = postSolution
28+
SolutionGuid = {1D821081-ADB1-420D-86A4-CD40B57EBC72}
29+
EndGlobalSection
30+
EndGlobal

project11/ADDRESS_BOOK.cs

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
//------------------------------------------------------------------------------
2+
// <auto-generated>
3+
// This code was generated from a template.
4+
//
5+
// Manual changes to this file may cause unexpected behavior in your application.
6+
// Manual changes to this file will be overwritten if the code is regenerated.
7+
// </auto-generated>
8+
//------------------------------------------------------------------------------
9+
10+
namespace project11
11+
{
12+
using System;
13+
using System.Collections.Generic;
14+
15+
public partial class ADDRESS_BOOK
16+
{
17+
public int USER_ID { get; set; }
18+
public string USERNAME { get; set; }
19+
public string ADDRESS1 { get; set; }
20+
public string ADDRESS2 { get; set; }
21+
public string COUNTRY { get; set; }
22+
public string GENDER { get; set; }
23+
public Nullable<decimal> MO_NO_ { get; set; }
24+
public string JOBTITLE { get; set; }
25+
}
26+
}

project11/App_Start/BundleConfig.cs

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using System.Web;
2+
using System.Web.Optimization;
3+
4+
namespace project11
5+
{
6+
public class BundleConfig
7+
{
8+
// For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862
9+
public static void RegisterBundles(BundleCollection bundles)
10+
{
11+
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
12+
"~/Scripts/jquery-{version}.js"));
13+
14+
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
15+
"~/Scripts/jquery.validate*"));
16+
17+
// Use the development version of Modernizr to develop with and learn from. Then, when you're
18+
// ready for production, use the build tool at https://modernizr.com to pick only the tests you need.
19+
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
20+
"~/Scripts/modernizr-*"));
21+
22+
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
23+
"~/Scripts/bootstrap.js"));
24+
25+
bundles.Add(new StyleBundle("~/Content/css").Include(
26+
"~/Content/bootstrap.css",
27+
"~/Content/site.css"));
28+
}
29+
}
30+
}

project11/App_Start/FilterConfig.cs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System.Web;
2+
using System.Web.Mvc;
3+
4+
namespace project11
5+
{
6+
public class FilterConfig
7+
{
8+
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
9+
{
10+
filters.Add(new HandleErrorAttribute());
11+
}
12+
}
13+
}

project11/App_Start/RouteConfig.cs

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.Mvc;
6+
using System.Web.Routing;
7+
8+
namespace project11
9+
{
10+
public class RouteConfig
11+
{
12+
public static void RegisterRoutes(RouteCollection routes)
13+
{
14+
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
15+
16+
routes.MapRoute(
17+
name: "Default",
18+
url: "{controller}/{action}/{id}",
19+
defaults: new { controller = "Home", action = "login", id = UrlParameter.Optional }
20+
);
21+
}
22+
}
23+
}

project11/Content/Site.css

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
body {
2+
padding-top: 50px;
3+
padding-bottom: 20px;
4+
}
5+
6+
/* Set padding to keep content from hitting the edges */
7+
.body-content {
8+
padding-left: 15px;
9+
padding-right: 15px;
10+
}
11+
12+
/* Override the default bootstrap behavior where horizontal description lists
13+
will truncate terms that are too long to fit in the left column
14+
*/
15+
.dl-horizontal dt {
16+
white-space: normal;
17+
}
18+
19+
/* Set width on the form input elements since they're 100% wide by default */
20+
input,
21+
select,
22+
textarea {
23+
max-width: 280px;
24+
}

project11/Content/Style.css

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
body {
2+
font-family: Arial, sans-serif;
3+
margin: 0;
4+
padding: 0;
5+
display: flex;
6+
background-color: #f9f9f9;
7+
}
8+
9+
.container {
10+
display: flex;
11+
width: 100%;
12+
height: 100vh;
13+
}
14+
15+
.sidebar {
16+
width: 250px;
17+
background-color: #202020;
18+
color: #fff;
19+
overflow-y: auto;
20+
padding-top: 20px;
21+
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
22+
}
23+
24+
.sidebar ul {
25+
list-style: none;
26+
padding: 0;
27+
margin: 0;
28+
}
29+
30+
.sidebar ul li {
31+
padding: 10px 20px;
32+
}
33+
34+
.sidebar ul li a {
35+
color: #fff;
36+
text-decoration: none;
37+
display: block;
38+
}
39+
40+
.sidebar ul li a:hover {
41+
background-color: #383838;
42+
}
43+
44+
.main-content {
45+
flex: 1;
46+
padding: 20px;
47+
margin-left: 10px;
48+
background-color: #fff;
49+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
50+
}
51+
52+
button {
53+
background-color: #3498db;
54+
color: #fff;
55+
border: none;
56+
padding: 10px 20px;
57+
font-size: 16px;
58+
border-radius: 5px;
59+
cursor: pointer;
60+
transition: background-color 0.3s;
61+
}
62+
63+
button:hover {
64+
background-color: #2980b9;
65+
}
66+
67+
#qrcode {
68+
margin-top: 20px;
69+
}

0 commit comments

Comments
 (0)