Closed tilman-schieber closed 12 years ago
@ashuqullah
please do NOT commit config.php again you are breaking the project for everybody
please remove the redundant functions you created use the model functions already present and don't create new ones that are not needed.
i am talking about
ALL these functions are redundant and already implemented in the model why did you add them?
Hello sir functions get_feild() it takes fieldID and return field name, and get_type() also takes typID and return type name it was not implemented before the existing function takes user ID as parameter now i changed my other method(get_paged_list) with joining these three tables and from their i can take the names of field and types, i no need for these functions , the upgrade method is only to change the usertype i see but i could not find now again i see i saw there is function by the name of change_userType sorry for that as well for get_by_ID it was also already exist function, but still i did not find any alternative to the save which i can send array of data and create record of all parameter in the user table add_user only take 3 parameter and update_user take userID as parameter that i can not use for creating new user
Wrap up for last week
- Check if an admin is logged in. Add a dashboard link in helpers/loadview_helper
not correct: link displays for all users not only for admins
- Clean up view files and use the main_view. (create a private method in controller to build the custom view)
integrated into main view but content pages not cleaned up (still html and body tags)
- make sure stylesheets are not changing elements of the main_view
complete
- make sure everything works (show online users) and integrates well into the site
still not working
- Drop down list to select usertype, and field (update field_model for the latter)
complete
- Optional: create a small view to choose the type of deletion when a user is deleted (at least support cascade and deactivate)
complete
assigned to: @ghezalahmad @ashuqullah
Create an Admin Dashboard showing information about users and their activity
Create a new controller called admin or dashboard. It should check if the user trying to access its functions is an admin and otherwise redirect. Create a controller function that shows all users and their most important properties in a table. Create another function that shows the users currently on the site (including anonymous users NOT logged in). For anonymous users display their IP address and other session information (see Session-library). next to each user there should be a button to delete it.