in below code to : i need html+js+css to create app like phonebook that store in local…
- User
in below code to : i need html+js+css to create app like phonebook that store in local without any server like nodejs or other to: save, edit, add to csv or text local file and load/show that with search: ردیف نام شرکت / شخص حقوقی /حقیقی /همکار شناسه ملی / کد ملی بانک شماره حساب شماره کارت شماره شبا تلفن توضیحات
Creating a simple phonebook application that can save, edit, load, and export data to a CSV or text file using only HTML, JavaScript, and CSS is a great project. Below is an example of how you can implement such an application. The application will utilize the
localStoragefeature of web browsers to store data locally.Here's a basic implementation:
HTML (index.html)
html<!DOCTYPE html> <html lang="fa"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Phonebook App</title> <link rel="stylesheet" href="styles.css"> </head> <body> <div class="container"> <h1>برنامه دفترچه تلفن</h1> <form id="phonebook-form"> <input type="hidden" id="edit-index" value="-1"> <input type="text" id="company-name" placeholder="نام شرکت / شخص" required> <select id="type"> <option value="حقوقی">حقوقی</option> <option value="حقیقی">حقیقی</option> <option value="همکار">همکار</option> </select> <input type="text" id="national-code" placeholder="شناسه ملی / کد ملی" required> <input type="text" id="bank" placeholder="بانک" required> <input type="text" id="account-number" placeholder="شماره حساب" required> <input type="text" id="card-number" placeholder="شماره کارت" required> <input type="text" id="shaba" placeholder="شماره شبا" required> <input type="text" id="phone" placeholder="تلفن" required> <textarea id="description" placeholder="توضیحات"></textarea> <button type="submit">ذخیره</button> </form> <input type="text" id="search" placeholder="جستجو..." oninput="searchEntries()"> <table id="phonebook-table"> <thead> <tr> <th>ردیف</th> <th>نام شرکت / شخص</th> <th>حقوقی / حقیقی / همکار</th> <th>شناسه ملی / کد ملی</th> <th>بانک</th> <th>شماره حساب</th> <th>شماره کارت</th> <th>شماره شبا</th> <th>تلفن</th> <th>توضیحات</th> <th>عملیات</th> </tr> </thead> <tbody id="phonebook-body"> </tbody> </table> <button id="export-csv">خروجی CSV</button> </div> <script src="script.js"></script> </body> </html> - Assistant
- User
how to import csv that export from above app on another pc?
- Assistant