mirror of
https://e.coding.net/circlecloud/CitySunlight.git
synced 2024-12-04 12:58:46 +00:00
add bootstrap.css...
This commit is contained in:
parent
f73640e13e
commit
5751ca697e
Binary file not shown.
@ -2,36 +2,32 @@
|
||||
|
||||
<asp:Content ID="body" ContentPlaceHolderID="body" runat="server">
|
||||
<form id="loginform" runat="server">
|
||||
<table align="center" id="tb">
|
||||
<table id="tb" class="table table-bordered">
|
||||
<tr>
|
||||
<td colspan="2" id="head">
|
||||
<h1>都市阳光销售平台</h1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center">
|
||||
<span style="color:red"><%= msg %></span>
|
||||
<td>
|
||||
<%= getAlert(msg) %>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>用 户 名:</label></td>
|
||||
<td>
|
||||
<label>用 户 名:</label>
|
||||
<input type="text" id="UserNameTx" name="UserNameTx" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>密 码:</label></td>
|
||||
<td>
|
||||
<label>密 码:</label>
|
||||
<input type="password" id="PassWordTx" name="PassWordTx" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<asp:Button runat="server" ID="register" Text="注册" Width="70" OnClick="register_Click" UseSubmitBehavior="False" />
|
||||
</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" />
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -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)
|
||||
{
|
||||
Response.Redirect("./Register.aspx");
|
||||
|
@ -2,14 +2,14 @@
|
||||
|
||||
<asp:Content ID="body" ContentPlaceHolderID="body" runat="server">
|
||||
<form id="registerform" runat="server">
|
||||
<table id="tb" align="center">
|
||||
<table id="tb" class="table table-bordered">
|
||||
<tr>
|
||||
<td colspan="2" id="head">
|
||||
<h1>都市阳光注册系统</h1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center">
|
||||
<td colspan="2">
|
||||
<span style="color: red"><%= msg %></span>
|
||||
</td>
|
||||
</tr>
|
||||
@ -35,7 +35,7 @@
|
||||
<input name="confirmTx" type="password" />
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center">
|
||||
<td colspan="2">
|
||||
<asp:Button runat="server" Text="注册" ID="submit" OnClick="submit_Click" />
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<asp:Content ID="body" ContentPlaceHolderID="body" runat="server">
|
||||
<form id="formmain" runat="server">
|
||||
<table align="center">
|
||||
<table class="table table-bordered">
|
||||
<%= GetProductInfo() %>
|
||||
</table>
|
||||
</form>
|
||||
|
@ -4,22 +4,60 @@
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<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" />
|
||||
|
||||
<asp:ContentPlaceHolder ID="head" runat="server">
|
||||
</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" />
|
||||
<title>都市阳光销售系统</title>
|
||||
</head>
|
||||
<body>
|
||||
<table align="center">
|
||||
<tr>
|
||||
<td>
|
||||
<!-- Fixed navbar -->
|
||||
<nav class="navbar navbar-inverse navbar-fixed-top">
|
||||
<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">
|
||||
<img src="/Picture/head.jpg" alt="主页图片" /></a></td>
|
||||
<td><%= GetLoginInfo() %></td>
|
||||
</tr>
|
||||
</table>
|
||||
<img src="/Picture/head.jpg" alt="主页图片" /></a>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
</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>
|
||||
</html>
|
||||
|
@ -17,15 +17,13 @@ namespace CitySunlight
|
||||
{
|
||||
String html = "";
|
||||
if (Session["username"] == null)
|
||||
html = "<a href=\"/Account/Login.aspx\" >登录</a>";
|
||||
html = "<li><a href=\"/Account/Login.aspx\" >登录</a></li>";
|
||||
else
|
||||
{
|
||||
html = String.Format("欢迎您 {0} ", Session["username"].ToString());
|
||||
html += "<a href=\"/Account/LogOut.aspx\" > 注销</a>";
|
||||
html += " ";
|
||||
html += "<a href=\"/Product/ProductEdit.aspx?type=create\" >发布</a>";
|
||||
html += " ";
|
||||
html += "<a href=\"/Admin.aspx\" >管理</a>";
|
||||
html = String.Format("<li>欢迎您 {0} </li>", Session["username"].ToString());
|
||||
html += "<li><a href=\"/Account/LogOut.aspx\" > 注销</a></li>";
|
||||
html += "<li><a href=\"/Product/ProductEdit.aspx?type=create\" >发布</a></li>";
|
||||
html += "<li><a href=\"/Admin.aspx\" >管理</a></li>";
|
||||
}
|
||||
return html;
|
||||
}
|
||||
|
@ -38,12 +38,6 @@
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<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="System.Web.DynamicData" />
|
||||
<Reference Include="System.Web.Entity" />
|
||||
@ -148,7 +142,6 @@
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="packages.config" />
|
||||
<Content Include="Basic.Master" />
|
||||
<None Include="Web.Debug.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
@ -157,7 +150,9 @@
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<ItemGroup>
|
||||
<WCFMetadata Include="Service References\" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
|
@ -2,11 +2,11 @@
|
||||
<%@ Import Namespace="CitySunlight" %>
|
||||
<asp:Content ID="body" ContentPlaceHolderID="body" runat="server">
|
||||
<form id="formmain" runat="server">
|
||||
<table align="center">
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td align="center"><span>商品名称: </span></td>
|
||||
<td colspan="2" align="center">
|
||||
<td><span class="label label-info">商品名称: </span></td>
|
||||
<td colspan="2">
|
||||
<input name="search" type="text" value="<%= search %>" /></td>
|
||||
<td>产品分类: </td>
|
||||
<td><%= classoption %></td>
|
||||
|
@ -2,26 +2,26 @@
|
||||
|
||||
<asp:Content ContentPlaceHolderID="body" ID="body" runat="server">
|
||||
<form id="productclasseditform" runat="server">
|
||||
<table align="center">
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<td colspan="2" align="center">
|
||||
<td colspan="2">
|
||||
<h3>自定义分类管理</h3>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- 消息提示 -->
|
||||
<tr>
|
||||
<td colspan="2" align="center">
|
||||
<td colspan="2">
|
||||
<%= msg %>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- 添加分类 -->
|
||||
<tr>
|
||||
<td align="center" colspan="2">
|
||||
<td colspan="2">
|
||||
<h4>添加分类</h4>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<td>
|
||||
<a>新增类名: </a>
|
||||
<input type="text" name="customclass" />
|
||||
</td>
|
||||
@ -29,19 +29,19 @@
|
||||
<asp:Button runat="server" ID="add" Text="添加" Width="45px" OnClick="add_Click" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<td>
|
||||
<a>上级分类: </a>
|
||||
<%= GetOption("addclassfather") %>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- 删除分类 -->
|
||||
<tr>
|
||||
<td align="center" colspan="2">
|
||||
<td colspan="2">
|
||||
<h4>删除分类</h4>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<td>
|
||||
<a>当前分类: </a>
|
||||
<%= GetOption("deleteclass") %>
|
||||
</td>
|
||||
@ -50,12 +50,12 @@
|
||||
</tr>
|
||||
<!-- 修改分类 -->
|
||||
<tr>
|
||||
<td align="center" colspan="2">
|
||||
<td colspan="2">
|
||||
<h4>修改分类</h4>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<td>
|
||||
<a>选择分类: </a>
|
||||
<%= GetOption("editclassid") %>
|
||||
</td>
|
||||
@ -63,7 +63,7 @@
|
||||
<asp:Button runat="server" ID="Edit" Text="修改" Width="45px" OnClick="edit_Click" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<td>
|
||||
<a>修改类名: </a>
|
||||
<input type="text" name="editclassname" />
|
||||
</td>
|
||||
|
@ -2,14 +2,14 @@
|
||||
|
||||
<asp:Content runat="server" ID="body" ContentPlaceHolderID="body">
|
||||
<form id="productedit" runat="server" enctype="multipart/form-data">
|
||||
<table align="center">
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<td>
|
||||
<span style="color: red"><%= msg %></span>
|
||||
</tr>
|
||||
</table>
|
||||
<%= CreateEditForm() %>
|
||||
<table align="center">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Button ID="submit" runat="server" Text="提交" OnClick="submit_Click" /></td>
|
||||
|
@ -5,7 +5,7 @@
|
||||
-->
|
||||
<configuration>
|
||||
<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" />
|
||||
</configSections>
|
||||
<system.web>
|
||||
|
@ -1,4 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="EntityFramework" version="6.1.3" targetFramework="net45" />
|
||||
</packages>
|
Loading…
Reference in New Issue
Block a user