Skip to content

Commit 3eef940

Browse files
committed
Removed unnecessary page breaks in sections and reorganized Customer and Admin Portals login.
1 parent 1e2c103 commit 3eef940

File tree

5 files changed

+61
-68
lines changed

5 files changed

+61
-68
lines changed

WebApplication2/Customer/Pages/CustomerComponent.aspx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
/* Styled Button */
289289
.styled-button {
290290
display: flex;
291-
width: 170px;
291+
width: 180px;
292292
padding: 10px;
293293
font-size: 16px;
294294
color: #fff;
@@ -486,12 +486,10 @@
486486
</div>
487487
<div id ="recharge-balance" class="content">
488488
<h2>Recharge Balance</h2>
489-
<br />
490489
<div>
491490
<h3>Amount:</h3>
492491
<asp:TextBox ID="txtRechargeAmount" runat="server" CssClass="styled-textbox" placeholder="Enter Amount"></asp:TextBox>
493492
</div>
494-
<br />
495493
<div>
496494
<h3>Payment Method:</h3>
497495
<asp:DropDownList ID="ddlPaymentMethod" runat="server" CssClass="styled-dropdown">
@@ -514,17 +512,14 @@
514512
</div>
515513
<div id="renew-subscription" class="content">
516514
<h2>Renew Subscription</h2>
517-
<br />
518515
<div>
519516
<h3>Plan ID:</h3>
520517
<asp:TextBox ID="txtPlanID" runat="server" CssClass="styled-textbox" placeholder="Enter your Plan ID"></asp:TextBox>
521518
</div>
522-
<br />
523519
<div>
524520
<h3>Amount:</h3>
525521
<asp:TextBox ID="txtRenewAmount" runat="server" CssClass="styled-textbox" placeholder="Enter Amount"></asp:TextBox>
526522
</div>
527-
<br />
528523
<div>
529524
<h3>Payment Method:</h3>
530525
<asp:DropDownList ID="ddlRenewPaymentMethod" runat="server" CssClass="styled-dropdown">
@@ -533,7 +528,7 @@
533528
<asp:ListItem Text="Cash" Value="cash" />
534529
</asp:DropDownList>
535530
</div>
536-
<br />
531+
<br />
537532
<asp:Button ID="btnSubmitRenewSubscription" runat="server" Text="Renew Subscription" OnClick="RenewSubscription_Click" CssClass="styled-button" />
538533

539534
</div>

WebApplication2/Customer/Pages/CustomerComponent.aspx.cs

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,30 @@ protected void Page_Load(object sender, EventArgs e)
2020
int NationalID = 2; // Example NationalID
2121
string PlanName = "Premium Plan"; // Example PlanName
2222

23-
// ShowConsoleMessage("Retrieving all active benefits...");
24-
ShowAllServicePlans(connStr);
25-
ShowAllBenefits(connStr);
26-
ShowAllShops(connStr);
27-
ShowCompanyOfferedPlans(connStr, MobileNo);
28-
ShowUsagePlanCM(connStr, MobileNo);
29-
ShowSubscribedPlansFiveMonths(connStr, MobileNo);
30-
//ShowConsoleMessage("Retrieving unresolved technical support tickets...");
31-
//ShowUnresolvedTickets(connStr, NationalID);
32-
33-
//ShowConsoleMessage("Retrieving the highest voucher...");
34-
ShowHighestVoucher(connStr, MobileNo);
35-
36-
//ShowConsoleMessage("Retrieving remaining amount for the last payment...");
37-
//ShowRemainingAmount(connStr, MobileNo, PlanName);
38-
39-
//ShowConsoleMessage("Retrieving extra amount for the last payment...");
40-
//ShowExtraAmount(connStr, MobileNo, PlanName);
41-
42-
//ShowConsoleMessage("Retrieving top 10 successful payments...");
43-
ShowTopPayments(connStr, MobileNo);
44-
45-
// Clear console when data is loaded
46-
//ClearConsole();
23+
//// ShowConsoleMessage("Retrieving all active benefits...");
24+
// ShowAllServicePlans(connStr);
25+
// ShowAllBenefits(connStr);
26+
// ShowAllShops(connStr);
27+
// ShowCompanyOfferedPlans(connStr, MobileNo);
28+
// ShowUsagePlanCM(connStr, MobileNo);
29+
// ShowSubscribedPlansFiveMonths(connStr, MobileNo);
30+
// //ShowConsoleMessage("Retrieving unresolved technical support tickets...");
31+
// ShowUnresolvedTickets(connStr, NationalID);
32+
33+
// //ShowConsoleMessage("Retrieving the highest voucher...");
34+
// ShowHighestVoucher(connStr, MobileNo);
35+
36+
// //ShowConsoleMessage("Retrieving remaining amount for the last payment...");
37+
// ShowRemainingAmount(connStr, MobileNo, PlanName);
38+
39+
// //ShowConsoleMessage("Retrieving extra amount for the last payment...");
40+
// ShowExtraAmount(connStr, MobileNo, PlanName);
41+
42+
// //ShowConsoleMessage("Retrieving top 10 successful payments...");
43+
// ShowTopPayments(connStr, MobileNo);
44+
ShowCashbackWalletCustomer(connStr,1234567);
45+
// // Clear console when data is loaded
46+
// //ClearConsole();
4747
}
4848
}
4949

@@ -620,6 +620,7 @@ private void ShowCashbackWalletCustomer(string connStr, int NationalID)
620620

621621
tableHtml += "</tbody></table>";
622622
lblCashbackStatus.Text = tableHtml != "<table class='styled-table sortable'><thead><tr><th>Cashback ID</th><th>Benefit ID</th><th>Wallet ID</th><th>Amount</th><th>Credit Date</th></tr></thead><tbody></tbody></table>" ? tableHtml : "<div class='error'>No cashback transaction found related to this wallet.</div>";
623+
623624
}
624625
catch (Exception ex)
625626
{

WebApplication2/Customer/Pages/login.aspx

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@
1717
}
1818
1919
.login-container {
20-
background: white;
21-
border-radius: 8px;
22-
padding: 30px;
23-
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
24-
width: 100%;
25-
max-width: 400px;
2620
text-align: center;
21+
background: white;
22+
padding: 30px 40px;
23+
border-radius: 10px;
24+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
25+
width: 300px;
2726
}
2827
2928
.login-container h2 {
@@ -58,16 +57,16 @@
5857
5958
.login-container input[type="submit"],
6059
.login-container .login-button {
61-
width: 60%;
62-
background-color: #2575fc;
60+
width: 60% !important;
61+
background: #2575fc;
6362
border: none;
6463
padding: 12px;
6564
color: white;
6665
font-size: 16px;
6766
font-weight: bold;
6867
border-radius: 5px;
6968
cursor: pointer;
70-
transition: background-color 0.3s ease;
69+
margin-top: 10px;
7170
}
7271
7372
.login-container input[type="submit"]:hover,
@@ -86,29 +85,38 @@
8685
text-decoration: underline;
8786
}
8887
88+
.customer-login-link {
89+
margin-top: 10px;
90+
font-size: 17px;
91+
color: #606060;
92+
}
93+
94+
.customer-login-link a {
95+
color: #2575fc;
96+
text-decoration: none;
97+
}
98+
99+
.customer-login-link a:hover {
100+
text-decoration: underline;
101+
}
89102
</style>
90103
</head>
91104
<body>
92-
<form id="form1" runat="server">
93-
<div class="login-container">
105+
<form id="form1" runat="server" class="login-container">
94106
<h2>Customer Login</h2>
95-
96107
<!-- Mobile Number Field -->
97-
<label for="mnumber">Account Mobile Number:</label>
98-
<asp:TextBox ID="mnumber" runat="server" placeholder="Enter your Mobile Number" type="text"></asp:TextBox>
108+
<asp:TextBox ID="mnumber" runat="server" placeholder="Mobile Number" type="text"></asp:TextBox>
99109

100110
<!-- Password Field -->
101-
<label for="password">Password:</label>
102-
<asp:TextBox ID="password" runat="server" placeholder="Enter your Password" type="password"></asp:TextBox>
111+
<asp:TextBox ID="password" runat="server" placeholder="Password" type="password"></asp:TextBox>
103112

104113
<!-- Login Button -->
105114
<div>
106115
<asp:Button ID="buttonlogin" runat="server" onclick="loginm" Text="Login" CssClass="login-button" />
107116
</div>
108117
<br />
109118
<div class="customer-login-link">
110-
Are you a admin? <a href="/Pages/Login/Login.aspx">Go to admin login</a>
111-
</div>
119+
Are you an admin? <a href="/Pages/Login/Login.aspx">Go to admin login</a>
112120
</form>
113121
</body>
114122
</html>

WebApplication2/Pages/Login/Login.aspx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@
4444
.login-button {
4545
width: 60% !important;
4646
background: #E91E63;
47-
color: white;
48-
padding: 12px;
4947
border: none;
50-
border-radius: 5px;
48+
padding: 12px;
49+
color: white;
5150
font-size: 16px;
51+
font-weight: bold;
52+
border-radius: 5px;
5253
cursor: pointer;
5354
margin-top: 10px;
54-
font-weight: bold;
5555
}
5656
5757
.login-button:hover {
@@ -88,8 +88,8 @@
8888
8989
.customer-login-link {
9090
margin-top: 10px;
91-
font-size: 14px;
92-
color: lightgrey;
91+
font-size: 17px;
92+
color: #606060;
9393
}
9494
9595
.customer-login-link a {
@@ -105,11 +105,9 @@
105105
<body>
106106
<form id="form1" runat="server" class="login-container">
107107
<h2>Admin Login</h2>
108-
<asp:Label ID="LabelOfLogin" runat="server" Text="Enter AdminID and Password"></asp:Label>
109-
<br />
110-
<input id="txtUsername" runat="server" type="text" placeholder="Enter AdminID" />
108+
<input id="txtUsername" runat="server" type="text" placeholder="AdminID" />
111109
<br />
112-
<input id="txtPassword" runat="server" type="password" placeholder="Enter Password" />
110+
<input id="txtPassword" runat="server" type="password" placeholder="Password" />
113111
<br />
114112
<asp:Button ID="btnLogin" runat="server" CssClass="login-button" Text="Login" OnClick="LoginButton" />
115113
<div>

WebApplication2/Pages/Login/Login.aspx.designer.cs

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)