Skip to content

Commit

Permalink
import patrol project.
Browse files Browse the repository at this point in the history
  • Loading branch information
smartdevelop committed Dec 15, 2012
1 parent 50ad3cd commit 895873c
Show file tree
Hide file tree
Showing 161 changed files with 1,108 additions and 89,484 deletions.
8 changes: 7 additions & 1 deletion Smart.sln
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Express 2012 for Web
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SmartAdmin", "SmartAdmin\SmartAdmin.csproj", "{D6E561E0-04BF-4147-9D6B-0FFE768104BE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SmartPortal", "SmartPortal\SmartPortal.csproj", "{4DC8D31A-8E32-4EAF-8C78-9B30E85D6B0D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -13,6 +15,10 @@ Global
{D6E561E0-04BF-4147-9D6B-0FFE768104BE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D6E561E0-04BF-4147-9D6B-0FFE768104BE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D6E561E0-04BF-4147-9D6B-0FFE768104BE}.Release|Any CPU.Build.0 = Release|Any CPU
{4DC8D31A-8E32-4EAF-8C78-9B30E85D6B0D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4DC8D31A-8E32-4EAF-8C78-9B30E85D6B0D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4DC8D31A-8E32-4EAF-8C78-9B30E85D6B0D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4DC8D31A-8E32-4EAF-8C78-9B30E85D6B0D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Binary file modified Smart.suo
Binary file not shown.
39 changes: 39 additions & 0 deletions SmartAdmin/Models/Custom/QuickMenu.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Smart.Admin.Models.Custom
{
/// <summary>
/// 快捷菜单模型
/// </summary>
public class QuickMenu
{
/// <summary>
/// 菜单图标
/// </summary>
[DisplayName("菜单图标")]
public string Icon { get; set; }

/// <summary>
/// 链接文本
/// </summary>
[DisplayName("链接文本")]
public string LinkText { get; set; }

/// <summary>
/// 链接地址
/// </summary>
[DisplayName("链接地址")]
public string Link { get; set; }

/// <summary>
/// 链接描述
/// </summary>
[DisplayName("链接描述")]
public string Description { get; set; }
}
}
39 changes: 39 additions & 0 deletions SmartAdmin/Models/Custom/Tips.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Smart.Admin.Models.Custom
{
/// <summary>
/// 便捷提示信息模型
/// </summary>
public class Tips
{
/// <summary>
/// 提示主题
/// </summary>
[DisplayName("提示主题")]
public string Title { get; set; }

/// <summary>
/// 提示内容
/// </summary>
[DisplayName("提示内容")]
public string Content { get; set; }

/// <summary>
/// 链接文本
/// </summary>
[DisplayName("链接文本")]
public string LinkText { get; set; }

/// <summary>
/// 引用链接
/// </summary>
[DisplayName("引用链接")]
public string Link { get; set; }
}
}
14 changes: 8 additions & 6 deletions SmartAdmin/SmartAdmin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@
<Compile Include="Models\ArticleCat.cs" />
<Compile Include="Models\Backup.cs" />
<Compile Include="Models\Configuration.cs" />
<Compile Include="Models\Custom\QuickMenu.cs" />
<Compile Include="Models\Custom\Tips.cs" />
<Compile Include="Models\InitData.cs" />
<Compile Include="Models\Interface.cs" />
<Compile Include="Models\Logger.cs" />
Expand Down Expand Up @@ -301,9 +303,6 @@
<ItemGroup>
<Content Include="Views\User\Add.cshtml" />
</ItemGroup>
<ItemGroup>
<Content Include="Views\User\_QuickMenu.cshtml" />
</ItemGroup>
<ItemGroup>
<Content Include="Views\User\Edit.cshtml" />
</ItemGroup>
Expand All @@ -319,9 +318,6 @@
<ItemGroup>
<Content Include="Views\System\NoThanks.cshtml" />
</ItemGroup>
<ItemGroup>
<Content Include="Views\Article\_QuickMenu.cshtml" />
</ItemGroup>
<ItemGroup>
<Content Include="Views\Article\Alert.cshtml" />
</ItemGroup>
Expand All @@ -346,6 +342,12 @@
<ItemGroup>
<Content Include="Views\ArticleCat\_QuickMenu.cshtml" />
</ItemGroup>
<ItemGroup>
<Content Include="Views\Shared\Custom\Tips.cshtml" />
</ItemGroup>
<ItemGroup>
<Content Include="Views\Shared\Custom\QuickMenu.cshtml" />
</ItemGroup>
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
Expand Down
32 changes: 22 additions & 10 deletions SmartAdmin/Views/Article/Add.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,28 @@
<!-- 右边分部小节开始 -->
<aside class="column width2">

@Html.Partial("_QuickMenu")

<div class="content-box">
<header>
<h3>便捷信息</h3>
</header>
<section>
<q>这里描述一段实用的便捷描述文字信息。 <cite>w3schools.com</cite></q>
</section>
</div>
<!--快捷菜单-->
@Html.Partial("Custom/QuickMenu", new List<Smart.Admin.Models.Custom.QuickMenu>()
{
new Smart.Admin.Models.Custom.QuickMenu(){
Icon="~/Content/img/style.png",
Link="~/Article/Index",
LinkText="文章列表",
Description="管理已发布的文章。"},
new Smart.Admin.Models.Custom.QuickMenu(){
Icon="~/Content/img/style.png",
Link="~/Article/Add",
LinkText="添加文章",
Description="添加一篇文章。"}
})
<!--实用的提示信息-->
@Html.Partial("Custom/Tips", new Smart.Admin.Models.Custom.Tips()
{
Title = "提示信息",
Content = "这里描述一段实用的便捷描述文字信息。",
LinkText = "w3schools.com",
Link = "w3schools.com"
})
</aside>
<!-- 右边分部小节结束 -->
</div>
Expand Down
31 changes: 22 additions & 9 deletions SmartAdmin/Views/Article/Alert.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,28 @@
<!-- 左边分部小节结束 -->
<!-- 右边分部小节开始 -->
<aside class="column width2">
@Html.Partial("_QuickMenu");
<div class="content-box">
<header>
<h3>便捷信息</h3>
</header>
<section>
<q>这里描述一段实用的便捷描述文字信息。 <cite>w3schools.com</cite></q>
</section>
</div>
<!--快捷菜单-->
@Html.Partial("Custom/QuickMenu", new List<Smart.Admin.Models.Custom.QuickMenu>()
{
new Smart.Admin.Models.Custom.QuickMenu(){
Icon="~/Content/img/style.png",
Link="~/Article/Index",
LinkText="文章列表",
Description="管理已发布的文章。"},
new Smart.Admin.Models.Custom.QuickMenu(){
Icon="~/Content/img/style.png",
Link="~/Article/Add",
LinkText="添加文章",
Description="添加一篇文章。"}
})
<!--实用的提示信息-->
@Html.Partial("Custom/Tips", new Smart.Admin.Models.Custom.Tips()
{
Title = "提示信息",
Content = "这里描述一段实用的便捷描述文字信息。",
LinkText = "w3schools.com",
Link = "w3schools.com"
})
</aside>
<!-- 右边分部小节结束 -->
</div>
Expand Down
32 changes: 22 additions & 10 deletions SmartAdmin/Views/Article/Edit.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,28 @@
<!-- 右边分部小节开始 -->
<aside class="column width2">

@Html.Partial("_QuickMenu")

<div class="content-box">
<header>
<h3>便捷信息</h3>
</header>
<section>
<q>这里描述一段实用的便捷描述文字信息。 <cite>w3schools.com</cite></q>
</section>
</div>
<!--快捷菜单-->
@Html.Partial("Custom/QuickMenu", new List<Smart.Admin.Models.Custom.QuickMenu>()
{
new Smart.Admin.Models.Custom.QuickMenu(){
Icon="~/Content/img/style.png",
Link="~/Article/Index",
LinkText="文章列表",
Description="管理已发布的文章。"},
new Smart.Admin.Models.Custom.QuickMenu(){
Icon="~/Content/img/style.png",
Link="~/Article/Add",
LinkText="添加文章",
Description="添加一篇文章。"}
})
<!--实用的提示信息-->
@Html.Partial("Custom/Tips", new Smart.Admin.Models.Custom.Tips()
{
Title = "提示信息",
Content = "这里描述一段实用的便捷描述文字信息。",
LinkText = "w3schools.com",
Link = "w3schools.com"
})
</aside>
<!-- 右边分部小节结束 -->
</div>
Expand Down
81 changes: 53 additions & 28 deletions SmartAdmin/Views/Article/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
<!-- Page title -->
<div id="pagetitle">
<div class="wrapper">
<h1>文章管理 &rarr; <span>主页</span></h1>
<h1>
文章管理 &rarr; <span>主页</span></h1>
<!-- Quick search box -->
<form action="" method="get">
<input class="" type="text" id="q" name="q" value="请输入搜索关键字" />
<input class="" type="text" id="q" name="q" value="请输入搜索关键字" />
</form>
</div>
</div>
Expand All @@ -19,48 +20,61 @@
<div class="wrapper">
<!-- 左边分部小节开始 -->
<section class="column width6 first">
<h3>功能简介</h3>
<h3>
功能简介</h3>
<div class="box box-info">
管理网站发布的文章。
</div>
<!--文章列表开始-->
<h3>文章列表</h3>
<h3>
文章列表</h3>
<table class="display stylized" id="example">
<thead>
<tr>
<th>文章标题
<th>
文章标题
</th>
<th>发布时间
<th>
发布时间
</th>
<th>作者
<th>
作者
</th>
<th>操作
<th>
操作
</th>
</tr>
</thead>
<tbody>
@foreach (Smart.Admin.Models.Article entity in Model)
{
<tr>
<td>@entity.ArticleTitle</td>
<td>@entity.PublishTime.ToLongTimeString()</td>
<td>@entity.About</td>
<td>@entity.ArticleTitle
</td>
<td>@entity.PublishTime.ToLongTimeString()
</td>
<td>@entity.About
</td>
<td>
<a href="@Url.Content("~/Article/Edit?id=")@entity.ID">编辑</a>|
<a href="@Url.Content("~/Article/Del?id=")@entity.ID">删除</a>
<a href="@Url.Content("~/Article/Edit?id=")@entity.ID">编辑</a>| <a href="@Url.Content("~/Article/Del?id=")@entity.ID">
删除</a>
</td>
</tr>
}
</tbody>
<tfoot>
<tr>
<th>文章标题
<th>
文章标题
</th>
<th>发布时间
<th>
发布时间
</th>
<th>作者
<th>
作者
</th>
<th>操作
<th>
操作
</th>
</tr>
</tfoot>
Expand All @@ -73,17 +87,28 @@
<!-- 左边分部小节结束 -->
<!-- 右边分部小节开始 -->
<aside class="column width2">

@Html.Partial("_QuickMenu")

<div class="content-box">
<header>
<h3>便捷信息</h3>
</header>
<section>
<q>这里描述一段实用的便捷描述文字信息。 <cite>w3schools.com</cite></q>
</section>
</div>
<!--快捷菜单-->
@Html.Partial("Custom/QuickMenu", new List<Smart.Admin.Models.Custom.QuickMenu>()
{
new Smart.Admin.Models.Custom.QuickMenu(){
Icon="~/Content/img/style.png",
Link="~/Article/Index",
LinkText="文章列表",
Description="管理已发布的文章。"},
new Smart.Admin.Models.Custom.QuickMenu(){
Icon="~/Content/img/style.png",
Link="~/Article/Add",
LinkText="添加文章",
Description="添加一篇文章。"}
})
<!--实用的提示信息-->
@Html.Partial("Custom/Tips", new Smart.Admin.Models.Custom.Tips()
{
Title = "提示信息",
Content = "这里描述一段实用的便捷描述文字信息。",
LinkText = "w3schools.com",
Link = "w3schools.com"
})
</aside>
<!-- 右边分部小节结束 -->
</div>
Expand Down
Loading

0 comments on commit 895873c

Please sign in to comment.