Esempio n. 1
0
import sys
from books import book_menu
from issue_returns import issue_return_menu
from members import member_menu
from myprint import print_center, input_center
from database import get_database
if __name__ == '__main__':
    database, cursor = get_database()
    if database is None:
        print("The Database does not exist or not accessible.")
        sys.exit(1)
    while True:
        print()
        print_center("==============================")
        print_center("=====Apka Guruji Library=====")
        print_center("==============================")
        print_center("1. Issue/Return Register")
        print_center("2. Manage Books")
        print_center("3. Manage Members")
        print_center("0. Exit")
        print()
        choice = int(input_center("Enter your choice: "))
        if choice == 1:
            issue_return_menu(database, cursor)
        elif choice == 2:
            book_menu(database, cursor)
        elif choice == 3:
            member_menu(database, cursor)
        elif choice == 0:
            break
        else:
Esempio n. 2
0
import sys
from rooms import room_menu
from customers import customer_menu
from myprint import print_center, input_center
from database import get_database
if __name__ == '__main__':
    database, cursor = get_database()
    if database is None:
        print("The Database does not exist or not accessible.")
        sys.exit(1)
    while True:
        print()
        print_center("==============================")
        print_center("=====Apka Guruji Hotels=====")
        print_center("==============================")
        print_center("1. Manage Rooms")
        print_center("2. Manage Customers")
        print_center("0. Exit")
        print()
        choice = int(input_center("Enter your choice: "))
        if choice == 1:
            room_menu(database, cursor)
        elif choice == 2:
            customer_menu(database, cursor)
        elif choice == 0:
            break
        else:
            print("Invalid choice (Press 0 to exit)")
    print_center("GoodBye")
def knowDevelopers():
    print_center("This Library management project is developed the students")
    print_center("of class 12th of Holy Cross International school")
    print_center("++=====================================================++")
    print_center("||      Name      |      Class      |      Stream      ||")
    print_center("||=====================================================||")
    print_center("||   Aaryan Wats  |       12th      |     Commerce     ||")
    print_center("||   Rishi Raj    |       12th      |     Commerce     ||")
    print_center("++=====================================================++")
Esempio n. 4
0
import sys
from rooms import room_menu
from customers import customer_menu
from myprint import print_center, input_center
from database import get_database
if __name__ == '__main__':
    database, cursor = get_database()
    if database is None:
        print("The Database does not exist or not accessible.")
        sys.exit(1)
    while True:
        print()
        print_center("==============================")
        print_center("=====TAJ SKYLINE HOTEL=====")
        print_center("==============================")
        print_center("1. Manage Rooms")
        print_center("2. Manage Customers")
        print_center("0. Exit")
        print()
        choice = int(input_center("Enter your choice: "))
        if choice == 1:
            room_menu(database, cursor)
        elif choice == 2:
            customer_menu(database, cursor)
        elif choice == 0:
            break
        else:
            print("Invalid choice (Press 0 to exit)")
    print_center("GoodBye")
import sys
from books import book_menu
from issue_returns import issue_return_menu
from members import member_menu
from myprint import print_center, input_center
from database import get_database
from developers import knowDevelopers
if __name__ == '__main__':
    database, cursor = get_database()
    if database is None:
        print("The Database does not exist or not accessible.")
        sys.exit(1)
    while True:
        print()
        print_center("==============================")
        print_center("===== Quantalearn Library =====")
        print_center("==============================")
        print_center("1. Issue/Return Register")
        print_center("2. Manage Books")
        print_center("3. Manage Members")
        print_center("4. Know Developers")
        print_center("0. Exit")
        print()
        choice = int(input_center("Enter your choice: "))
        if choice == 1:
            issue_return_menu(database,cursor)
        elif choice == 2:
            book_menu(database, cursor)
        elif choice == 3:
            member_menu(database, cursor)
        elif choice == 4:
Esempio n. 6
0
import sys
from books import book_menu
from issue_returns import issue_return_menu
from members import member_menu
from myprint import print_center, input_center
from database import get_database
if __name__ == '__main__':
    database, cursor = get_database()
    if database is None:
        print("The Database does not exist or not accessible.")
        sys.exit(1)
    while True:
        print()
        print_center("==============================")
        print_center("=====SMART Library BY SIMPLE CODERS=====")
        print_center("==============================")
        print_center("1. Issue/Return Register")
        print_center("2. Manage Books")
        print_center("3. Manage Members")
        print_center("0. Exit")
        print()
        choice = int(input_center("Enter your choice: "))
        if choice == 1:
            issue_return_menu(database, cursor)
        elif choice == 2:
            book_menu(database, cursor)
        elif choice == 3:
            member_menu(database, cursor)
        elif choice == 0:
            break
        else:
Esempio n. 7
0
from rooms import room_menu
from customers import customer_menu
from myprint import print_center, input_center

if __name__ == '__main__':
    while True:
        print()
        print_center("==============================")
        print_center("=====Code With Anshuman Hotels=====")
        print_center("==============================")
        print_center("1. Manage Rooms")
        print_center("2. Manage Customers")
        print_center("0. Exit")
        print()

        choice = int(input_center("Enter your choice: "))
        if choice == 1:
            room_menu()
        elif choice == 2:
            customer_menu()
        elif choice == 0:
            break
        else:
            print("Invalid choice (Press 0 to exit)")
    print_center("GoodBye")