Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonu file #14

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions assignment (1).txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
------ create a table user
username and password,status and role(user,admin)
accept user name and passoword
validate the user ------ LoginService and LoginDao

user is is valid only if the username and password is correct and the status is active
if the role is admin
1. add product
2. delete product
3. modify product price
4. display by id
5. display all

if role is not admin
again ask for username and password
if user enter wrong user name and password 3 times then block the user, allow 3 attempts only for active user
show the message that a/c is blocked and contact admin and stop the code
27 changes: 27 additions & 0 deletions js 10.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<html>

<head>
<title>
print current day and time
</title>
</head>

<body>
<script>
var myDate = new Date();
var myDay = myDate.getDay();


var weekday = ['Sunday', 'Monday', 'Tuesday',
'Wednesday', 'Thursday', 'Friday', 'Saturday'
];
document.write("Today is : " + weekday[myDay]);
document.write("<br/>");
document.write("Welcome");
document.write("<br/>");
document.write("Good Afernoon");

</script>
</body>

</html>