1
0
mirror of https://e.coding.net/circlecloud/CitySunlight.git synced 2025-11-24 21:46:18 +00:00

add bootstrap.css...

This commit is contained in:
j502647092
2015-06-19 17:22:35 +08:00
parent f73640e13e
commit 5751ca697e
13 changed files with 88 additions and 60 deletions

Binary file not shown.

View File

@@ -2,36 +2,32 @@
<asp:Content ID="body" ContentPlaceHolderID="body" runat="server"> <asp:Content ID="body" ContentPlaceHolderID="body" runat="server">
<form id="loginform" runat="server"> <form id="loginform" runat="server">
<table align="center" id="tb"> <table id="tb" class="table table-bordered">
<tr> <tr>
<td colspan="2" id="head"> <td colspan="2" id="head">
<h1>都市阳光销售平台</h1> <h1>都市阳光销售平台</h1>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2" align="center"> <td>
<span style="color:red"><%= msg %></span> <%= getAlert(msg) %>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<label>用 户 名:</label></td> <label>用 户 名:</label>
<td>
<input type="text" id="UserNameTx" name="UserNameTx" /> <input type="text" id="UserNameTx" name="UserNameTx" />
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<label>密&nbsp;&nbsp;码:</label></td> <label>密&nbsp;&nbsp;码:</label>
<td>
<input type="password" id="PassWordTx" name="PassWordTx" /> <input type="password" id="PassWordTx" name="PassWordTx" />
</td> </td>
</tr> </tr>
<tr> <tr>
<td align="center">
<asp:Button runat="server" ID="register" Text="注册" Width="70" OnClick="register_Click" UseSubmitBehavior="False" />
</td>
<td> <td>
<asp:Button runat="server" ID="register" Text="注册" Width="70" OnClick="register_Click" UseSubmitBehavior="False" />
<asp:Button runat="server" ID="login" Text="登录" OnClick="login_Click" /> <asp:Button runat="server" ID="login" Text="登录" OnClick="login_Click" />
</td> </td>
</tr> </tr>

View File

@@ -56,6 +56,11 @@ namespace CitySunlight
} }
} }
public String getAlert(String msg)
{
return (msg == null || msg == "") ? ("<span class=\"alert alert-success\">请输入账号密码登录后台</span>") : ("<span class=\"alert alert-danger\">" + msg + "</span>");
}
protected void register_Click(object sender, EventArgs e) protected void register_Click(object sender, EventArgs e)
{ {
Response.Redirect("./Register.aspx"); Response.Redirect("./Register.aspx");

View File

@@ -2,14 +2,14 @@
<asp:Content ID="body" ContentPlaceHolderID="body" runat="server"> <asp:Content ID="body" ContentPlaceHolderID="body" runat="server">
<form id="registerform" runat="server"> <form id="registerform" runat="server">
<table id="tb" align="center"> <table id="tb" class="table table-bordered">
<tr> <tr>
<td colspan="2" id="head"> <td colspan="2" id="head">
<h1>都市阳光注册系统</h1> <h1>都市阳光注册系统</h1>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2" align="center"> <td colspan="2">
<span style="color: red"><%= msg %></span> <span style="color: red"><%= msg %></span>
</td> </td>
</tr> </tr>
@@ -35,7 +35,7 @@
<input name="confirmTx" type="password" /> <input name="confirmTx" type="password" />
</tr> </tr>
<tr> <tr>
<td colspan="2" align="center"> <td colspan="2">
<asp:Button runat="server" Text="注册" ID="submit" OnClick="submit_Click" /> <asp:Button runat="server" Text="注册" ID="submit" OnClick="submit_Click" />
</tr> </tr>
</table> </table>

View File

@@ -2,7 +2,7 @@
<asp:Content ID="body" ContentPlaceHolderID="body" runat="server"> <asp:Content ID="body" ContentPlaceHolderID="body" runat="server">
<form id="formmain" runat="server"> <form id="formmain" runat="server">
<table align="center"> <table class="table table-bordered">
<%= GetProductInfo() %> <%= GetProductInfo() %>
</table> </table>
</form> </form>

View File

@@ -4,22 +4,60 @@
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server"> <head runat="server">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<asp:ContentPlaceHolder ID="head" runat="server"> <asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder> </asp:ContentPlaceHolder>
<link href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap-theme.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap-theme.min.css" rel="stylesheet">
<link rel="stylesheet" href="/CssStyle/CityStyle.css" /> <link rel="stylesheet" href="/CssStyle/CityStyle.css" />
<title>都市阳光销售系统</title> <title>都市阳光销售系统</title>
</head> </head>
<body> <body>
<table align="center"> <!-- Fixed navbar -->
<tr> <nav class="navbar navbar-inverse navbar-fixed-top">
<td> <div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="/Main.aspx"> <a href="/Main.aspx">
<img src="/Picture/head.jpg" alt="主页图片" /></a></td> <img src="/Picture/head.jpg" alt="主页图片" /></a>
<td><%= GetLoginInfo() %></td> </div>
</tr>
</table> <div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"></li>
<%= GetLoginInfo() %>
</ul>
</div>
<!--/.nav-collapse -->
</div>
</nav>
<div class="container theme-showcase" role="main">
<div class="page-header">
</div>
<div class="row">
<div class="col-md-6">
<asp:ContentPlaceHolder ID="body" runat="server"> <asp:ContentPlaceHolder ID="body" runat="server">
</asp:ContentPlaceHolder> </asp:ContentPlaceHolder>
</div>
</div>
</div>
<!-- /container -->
<script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
<script src="http://cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
</body> </body>
</html> </html>

View File

@@ -17,15 +17,13 @@ namespace CitySunlight
{ {
String html = ""; String html = "";
if (Session["username"] == null) if (Session["username"] == null)
html = "<a href=\"/Account/Login.aspx\" >登录</a>"; html = "<li><a href=\"/Account/Login.aspx\" >登录</a></li>";
else else
{ {
html = String.Format("欢迎您 {0} ", Session["username"].ToString()); html = String.Format("<li>欢迎您 {0} </li>", Session["username"].ToString());
html += "<a href=\"/Account/LogOut.aspx\" > 注销</a>"; html += "<li><a href=\"/Account/LogOut.aspx\" > 注销</a></li>";
html += " "; html += "<li><a href=\"/Product/ProductEdit.aspx?type=create\" >发布</a></li>";
html += "<a href=\"/Product/ProductEdit.aspx?type=create\" >发布</a>"; html += "<li><a href=\"/Admin.aspx\" >管理</a></li>";
html += " ";
html += "<a href=\"/Admin.aspx\" >管理</a>";
} }
return html; return html;
} }

View File

@@ -38,12 +38,6 @@
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="EntityFramework">
<HintPath>..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll</HintPath>
</Reference>
<Reference Include="EntityFramework.SqlServer">
<HintPath>..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" /> <Reference Include="Microsoft.CSharp" />
<Reference Include="System.Web.DynamicData" /> <Reference Include="System.Web.DynamicData" />
<Reference Include="System.Web.Entity" /> <Reference Include="System.Web.Entity" />
@@ -148,7 +142,6 @@
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="packages.config" />
<Content Include="Basic.Master" /> <Content Include="Basic.Master" />
<None Include="Web.Debug.config"> <None Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon> <DependentUpon>Web.config</DependentUpon>
@@ -157,7 +150,9 @@
<DependentUpon>Web.config</DependentUpon> <DependentUpon>Web.config</DependentUpon>
</None> </None>
</ItemGroup> </ItemGroup>
<ItemGroup /> <ItemGroup>
<WCFMetadata Include="Service References\" />
</ItemGroup>
<PropertyGroup> <PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion> <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>

View File

@@ -2,16 +2,16 @@
<%@ Import Namespace="CitySunlight" %> <%@ Import Namespace="CitySunlight" %>
<asp:Content ID="body" ContentPlaceHolderID="body" runat="server"> <asp:Content ID="body" ContentPlaceHolderID="body" runat="server">
<form id="formmain" runat="server"> <form id="formmain" runat="server">
<table align="center"> <table class="table table-bordered">
<tr> <tr>
<td></td> <td></td>
<td align="center"><span>商品名称: </span></td> <td><span class="label label-info">商品名称: </span></td>
<td colspan="2" align="center"> <td colspan="2">
<input name="search" type="text" value="<%= search %>" /></td> <input name="search" type="text" value="<%= search %>" /></td>
<td>产品分类: </td> <td>产品分类: </td>
<td><%= classoption %></td> <td><%= classoption %></td>
<td> <td>
<asp:Button ID="searchB" runat="server" Text="搜索" OnClick="searchB_Click" /></td> <asp:Button ID="searchB" runat="server" Text="搜索" OnClick="searchB_Click"/></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<%= GetProductInfo() %> <%= GetProductInfo() %>

View File

@@ -2,26 +2,26 @@
<asp:Content ContentPlaceHolderID="body" ID="body" runat="server"> <asp:Content ContentPlaceHolderID="body" ID="body" runat="server">
<form id="productclasseditform" runat="server"> <form id="productclasseditform" runat="server">
<table align="center"> <table class="table table-bordered">
<tr> <tr>
<td colspan="2" align="center"> <td colspan="2">
<h3>自定义分类管理</h3> <h3>自定义分类管理</h3>
</td> </td>
</tr> </tr>
<!-- 消息提示 --> <!-- 消息提示 -->
<tr> <tr>
<td colspan="2" align="center"> <td colspan="2">
<%= msg %> <%= msg %>
</td> </td>
</tr> </tr>
<!-- 添加分类 --> <!-- 添加分类 -->
<tr> <tr>
<td align="center" colspan="2"> <td colspan="2">
<h4>添加分类</h4> <h4>添加分类</h4>
</td> </td>
</tr> </tr>
<tr> <tr>
<td align="center"> <td>
<a>新增类名: </a> <a>新增类名: </a>
<input type="text" name="customclass" /> <input type="text" name="customclass" />
</td> </td>
@@ -29,19 +29,19 @@
<asp:Button runat="server" ID="add" Text="添加" Width="45px" OnClick="add_Click" /></td> <asp:Button runat="server" ID="add" Text="添加" Width="45px" OnClick="add_Click" /></td>
</tr> </tr>
<tr> <tr>
<td align="center"> <td>
<a>上级分类: </a> <a>上级分类: </a>
<%= GetOption("addclassfather") %> <%= GetOption("addclassfather") %>
</td> </td>
</tr> </tr>
<!-- 删除分类 --> <!-- 删除分类 -->
<tr> <tr>
<td align="center" colspan="2"> <td colspan="2">
<h4>删除分类</h4> <h4>删除分类</h4>
</td> </td>
</tr> </tr>
<tr> <tr>
<td align="center"> <td>
<a>当前分类: </a> <a>当前分类: </a>
<%= GetOption("deleteclass") %> <%= GetOption("deleteclass") %>
</td> </td>
@@ -50,12 +50,12 @@
</tr> </tr>
<!-- 修改分类 --> <!-- 修改分类 -->
<tr> <tr>
<td align="center" colspan="2"> <td colspan="2">
<h4>修改分类</h4> <h4>修改分类</h4>
</td> </td>
</tr> </tr>
<tr> <tr>
<td align="center"> <td>
<a>选择分类: </a> <a>选择分类: </a>
<%= GetOption("editclassid") %> <%= GetOption("editclassid") %>
</td> </td>
@@ -63,7 +63,7 @@
<asp:Button runat="server" ID="Edit" Text="修改" Width="45px" OnClick="edit_Click" /></td> <asp:Button runat="server" ID="Edit" Text="修改" Width="45px" OnClick="edit_Click" /></td>
</tr> </tr>
<tr> <tr>
<td align="center"> <td>
<a>修改类名: </a> <a>修改类名: </a>
<input type="text" name="editclassname" /> <input type="text" name="editclassname" />
</td> </td>

View File

@@ -2,14 +2,14 @@
<asp:Content runat="server" ID="body" ContentPlaceHolderID="body"> <asp:Content runat="server" ID="body" ContentPlaceHolderID="body">
<form id="productedit" runat="server" enctype="multipart/form-data"> <form id="productedit" runat="server" enctype="multipart/form-data">
<table align="center"> <table class="table table-bordered">
<tr> <tr>
<td> <td>
<span style="color: red"><%= msg %></span> <span style="color: red"><%= msg %></span>
</tr> </tr>
</table> </table>
<%= CreateEditForm() %> <%= CreateEditForm() %>
<table align="center"> <table>
<tr> <tr>
<td> <td>
<asp:Button ID="submit" runat="server" Text="提交" OnClick="submit_Click" /></td> <asp:Button ID="submit" runat="server" Text="提交" OnClick="submit_Click" /></td>

View File

@@ -5,7 +5,7 @@
--> -->
<configuration> <configuration>
<configSections> <configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections> </configSections>
<system.web> <system.web>

View File

@@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="EntityFramework" version="6.1.3" targetFramework="net45" />
</packages>