Skip to content

dhananjayaaps/NurtureLife

Folders and files

NameName
Last commit message
Last commit date
May 2, 2024
Apr 29, 2024
Oct 31, 2023
Apr 29, 2024
Apr 30, 2024
May 2, 2024
Sep 25, 2023
May 2, 2024
Nov 1, 2023
Apr 29, 2024
Feb 22, 2024
Apr 24, 2024
Feb 10, 2024
Apr 25, 2024
Apr 25, 2024
Oct 20, 2023
Oct 9, 2023

Repository files navigation

NurtureLife

most important attributes to display of a user 1.User ID

  1. Name
  2. Email
  3. status
  4. contact_no
  5. role
<script> //TODO: consider currently logged-in user's postal code and display notifications accordingly //var volunteer_zip = user->getZip()?>//; //var local_user_data = getUsersByZip(volunteer_zip)?>//; // var postData = $post_model->getPosts(); function displayPosts() { var postBox = document.getElementById('myBox'); postBox.innerHTML = ''; for (var i = 0; i < postData.length; i++) { var post = postData[i]; var newPost = document.createElement('div'); newPost.className = 'post'; newPost.innerHTML = `
${post.userName} - ${post.roleName}
${post.description}
${post.created_at} ${post.updated_at}
${post.status}
Attend
`; postBox.appendChild(newPost); } } // Call the function to display the posts displayPosts(); </script>