Test
Test
Subham Jena
DATE:
____________
______________
INTERNAL EXTERNAL
EXAMINER EXAMINER
ACKNOWLEDGEMENT
Login as Administrator
Login as Employee
Help
print("search successful")
print(“ empcode:",j[0]," name:",j[1]," empid:",j[2]," emppass:",j[3],"
workingdays:",j[4]," salary:",j[5])
break
else:
print("id doesnot exist")
elif f=="3":
print("1.user")
print("2.admin")
g=int(input("enter choice:"))
if g==1:
h=input("enter id:")
i=input("enter new password:")
cur.execute("update empdata set emppass='{}' where empid='{}'".format(i,h))
con.commit()
print("password changed")
elif g==2:
h=input("enter admin id:")
i=input("enter new password:")
cur.execute("update adid set adpass='{}' where adid='{}'".format(i,h))
con.commit()
elif f=="4":
h=input("enter id:")
cur.execute("select * from empdata")
k=cur.fetchall()
for j in k:
if j[2]==h:
i=int(input("to confirm press 1"))
if i==1:
cur.execute("delete from empdata where empid='{}'".format(h))
con.commit()
print("deleted the employee data successfully")
break
else:
print("id doesnot exist")
elif f=="5":
h=input("enter employee id:")
cur.execute("select * from empdata")
i=cur.fetchall()
for j in i:
if j[2]==h:
k=int(input("enter salary in rupees:"))
cur.execute("update empdata set salary={} where empid='{}'".format(k,h))
con.commit()
elif f=="6":
h=input("enter empcode:")
cur.execute("select empcode from empdata")
j=cur.fetchall()
for k in j:
if h==str(k[0]):
i=input("assign project:")
l=input("department:")
cur.execute("insert into projects values({},'{}','{}')".format(h,l,i))
con.commit()
break
else:
"no such employee found"
else:
print("There is no employee having empcode",h)
elif f=="0":
break
else:
print("No such option allowed")
else:
print("id not found")
continue
elif b=="2":
cur.execute("select curdate()")
date=cur.fetchall()
print(date)
d=input("enter employee id:")
cur.execute("select * from empdata")
e=cur.fetchall()
for f in e:
if f[2]==d:
g=input("enter employee password:")
if f[3]==g:
while True:
LIMITATIONS:
This system uses python SQL. The data can’t
be accessed by internet.