mirror of
https://e.coding.net/circlecloud/CitySunlight.git
synced 2024-12-04 12:58:46 +00:00
change stylr...
This commit is contained in:
parent
5751ca697e
commit
d6728fb119
@ -2,7 +2,36 @@
|
|||||||
|
|
||||||
<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 id="tb" class="table table-bordered">
|
|
||||||
|
<div class="panel panel-info">
|
||||||
|
<div class="panel-heading">
|
||||||
|
<h3 class="panel-title">都市阳光销售平台</h3>
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<div class="form-group">
|
||||||
|
<%= getAlert(msg) %>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<button type="button" class="btn btn-primary btn-lg" style="text-shadow: black 5px 3px 3px;">
|
||||||
|
<span class="glyphicon glyphicon-user"></span>用户名
|
||||||
|
</button>
|
||||||
|
<input type="text" id="UserNameTx" name="UserNameTx" class="form-control" placeholder="请输入账号" />
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<button type="button" class="btn btn-primary btn-lg" style="text-shadow: black 5px 3px 3px;"><span class="glyphicon glyphicon-th"></span>密 码</button>
|
||||||
|
<input type="password" id="PassWordTx" name="PassWordTx" class="form-control" placeholder="请输入密码" />
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<asp:Button runat="server" ID="register" Text="注册" Height="45" Width="70" OnClick="register_Click" UseSubmitBehavior="False" class="btn btn-lg btn-primary" />
|
||||||
|
<asp:Button runat="server" ID="login" Text="登录" Width="140" OnClick="login_Click" class="btn btn-lg btn-success" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<%-- <table id="tb" class="table table-condensed">
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" id="head">
|
<td colspan="2" id="head">
|
||||||
<h1>都市阳光销售平台</h1>
|
<h1>都市阳光销售平台</h1>
|
||||||
@ -26,11 +55,8 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<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" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>--%>
|
||||||
</form>
|
</form>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
@ -58,7 +58,10 @@ namespace CitySunlight
|
|||||||
|
|
||||||
public String getAlert(String msg)
|
public String getAlert(String msg)
|
||||||
{
|
{
|
||||||
return (msg == null || msg == "") ? ("<span class=\"alert alert-success\">请输入账号密码登录后台</span>") : ("<span class=\"alert alert-danger\">" + msg + "</span>");
|
String html = "<div class=\"alert alert-{0} alert-dismissable\">";
|
||||||
|
html += "<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>";
|
||||||
|
html += "{1}</div>";
|
||||||
|
return (msg == null || msg == "") ? "" : String.Format(html, "danger", msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void register_Click(object sender, EventArgs e)
|
protected void register_Click(object sender, EventArgs e)
|
||||||
|
@ -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 class="table table-bordered">
|
<table class="table table-condensed">
|
||||||
<%= GetProductInfo() %>
|
<%= GetProductInfo() %>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
|
@ -63,13 +63,15 @@ namespace CitySunlight
|
|||||||
}
|
}
|
||||||
decimal total = ProductManager.SearchProduct(user, "", "", "", "").Rows.Count / peritems;
|
decimal total = ProductManager.SearchProduct(user, "", "", "", "").Rows.Count / peritems;
|
||||||
int totalpages = (int)(Math.Ceiling(total));
|
int totalpages = (int)(Math.Ceiling(total));
|
||||||
String allpage = "";
|
String allpage = "<ul class=\"pagination\">";
|
||||||
for (int i = 1; i <= totalpages; i++)
|
for (int i = 1; i <= totalpages; i++)
|
||||||
{
|
{
|
||||||
String page = String.Format(" <a href=\"/Admin.aspx?pages={0}\">{1}</a> ", i, i);
|
String page = String.Format("<li><a href=\"/Admin.aspx?pages={0}\">{1}</a><li>", i, i);
|
||||||
allpage += page;
|
allpage += page;
|
||||||
}
|
}
|
||||||
html += String.Format("<tr><td colspan=\"6\" align=\"right\"></td><td colspan=\"2\">{0} 共{1}页</td></tr>", allpage, totalpages);
|
allpage += String.Format("<li><a href=\"#\">共{0}页</a><li>", totalpages);
|
||||||
|
allpage += "</ul>";
|
||||||
|
html += String.Format("<tr><td colspan=\"6\" align=\"right\"></td><td colspan=\"2\">{0}</td></tr>", allpage);
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,10 +11,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.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 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" />
|
||||||
@ -22,7 +20,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- Fixed navbar -->
|
<!-- Fixed navbar -->
|
||||||
<nav class="navbar navbar-inverse navbar-fixed-top">
|
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
||||||
@ -41,9 +39,8 @@
|
|||||||
<%= GetLoginInfo() %>
|
<%= GetLoginInfo() %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<!--/.nav-collapse -->
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<!--/.nav-collapse -->
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div class="container theme-showcase" role="main">
|
<div class="container theme-showcase" role="main">
|
||||||
@ -58,6 +55,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- /container -->
|
<!-- /container -->
|
||||||
<script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
|
<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>
|
<script src="http://cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -21,7 +21,7 @@ namespace CitySunlight
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
html = String.Format("<li>欢迎您 {0} </li>", Session["username"].ToString());
|
html = String.Format("<li>欢迎您 {0} </li>", Session["username"].ToString());
|
||||||
html += "<li><a href=\"/Account/LogOut.aspx\" > 注销</a></li>";
|
html += "<li><a href=\"/Account/LogOut.aspx\" >注销</a></li>";
|
||||||
html += "<li><a href=\"/Product/ProductEdit.aspx?type=create\" >发布</a></li>";
|
html += "<li><a href=\"/Product/ProductEdit.aspx?type=create\" >发布</a></li>";
|
||||||
html += "<li><a href=\"/Admin.aspx\" >管理</a></li>";
|
html += "<li><a href=\"/Admin.aspx\" >管理</a></li>";
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<VisualStudio>
|
<VisualStudio>
|
||||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
||||||
<WebProjectProperties>
|
<WebProjectProperties>
|
||||||
<StartPageUrl>Main.aspx</StartPageUrl>
|
<StartPageUrl>Account/Login.aspx</StartPageUrl>
|
||||||
<StartAction>SpecificPage</StartAction>
|
<StartAction>SpecificPage</StartAction>
|
||||||
<AspNetDebugging>True</AspNetDebugging>
|
<AspNetDebugging>True</AspNetDebugging>
|
||||||
<SilverlightDebugging>False</SilverlightDebugging>
|
<SilverlightDebugging>False</SilverlightDebugging>
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
<%@ 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 class="table table-bordered">
|
<table class="table table-striped table-bordered">
|
||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td><span class="label label-info">商品名称: </span></td>
|
<td><span>商品名称: </span></td>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<input name="search" type="text" value="<%= search %>" /></td>
|
<input name="search" type="text" value="<%= search %>" /></td>
|
||||||
<td>产品分类: </td>
|
<td>产品分类: </td>
|
||||||
|
@ -60,13 +60,24 @@ namespace CitySunlight
|
|||||||
}
|
}
|
||||||
decimal total = ProductManager.SearchProduct("", search, classid, "", "").Rows.Count / peritems;
|
decimal total = ProductManager.SearchProduct("", search, classid, "", "").Rows.Count / peritems;
|
||||||
int totalpages = (int)(Math.Ceiling(total));
|
int totalpages = (int)(Math.Ceiling(total));
|
||||||
String allpage = "";
|
String allpage = "<ul class=\"pagination\">";
|
||||||
|
// <ul class="pagination">
|
||||||
|
// <li><a href="#">«</a></li>
|
||||||
|
// <li><a href="#">1</a></li>
|
||||||
|
// <li><a href="#">2</a></li>
|
||||||
|
// <li><a href="#">3</a></li>
|
||||||
|
// <li><a href="#">4</a></li>
|
||||||
|
// <li><a href="#">5</a></li>
|
||||||
|
// <li><a href="#">»</a></li>
|
||||||
|
//</ul>
|
||||||
for (int i = 1; i <= totalpages; i++)
|
for (int i = 1; i <= totalpages; i++)
|
||||||
{
|
{
|
||||||
String page = String.Format(" <a href=\"/Main.aspx?search={0}&classid={1}&pages={2}\">{3}</a> ", search, classid, i, i);
|
String page = String.Format("<li><a href=\"/Main.aspx?search={0}&classid={1}&pages={2}\">{3}</a></li>", search, classid, i, i);
|
||||||
allpage += page;
|
allpage += page;
|
||||||
}
|
}
|
||||||
html += String.Format("<tr><td colspan=\"6\" align=\"right\"></td><td colspan=\"2\">{0} 共{1}页</td></tr>", allpage, totalpages);
|
allpage += String.Format("<li><a href=\"#\">共{0}页</a><li>", totalpages);
|
||||||
|
allpage += "</ul>";
|
||||||
|
html += String.Format("<tr><td colspan=\"8\" align=\"right\">{0}</td></tr>", allpage);
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,17 +2,17 @@
|
|||||||
|
|
||||||
<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 class="table table-bordered">
|
<table class="table table-condensed">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<span style="color: red"><%= msg %></span>
|
<span style="color: red"><%= msg %></span>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<%= CreateEditForm() %>
|
<%= CreateEditForm() %>
|
||||||
<table>
|
<table class="table table-condensed">
|
||||||
<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>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
Reference in New Issue
Block a user