DV Unit CMS:2010 Fall Scott

P3
For this Project Iteration, my role was to help develop a way to set up user settings. I helped by making edits to the header and persons page. We talked about it in class, and ultimately I went with how Cedric suggested we do it. I used a Session variable to store a query to return a specific user. If that user's usertype is not "admin", we disable buttons. This is done by using a variable $disabletext, and then editing the appropriate buttons to to add in a "disabled=$disabletext". Then an if statement is used to basically say if usertype is not admin, set $disabletext = disabled. It seems to work well. The if statement, variable declaration, and user query is done on the header page, and the rest on the persons page.
 * What role(s) have you assumed?
 * What tasks have you performed to fulfill responsibilities of your role(s)?

I uploaded the edited users and persons page.
 * What work products have you completed?

I collaborated by posting to the group site and using email. Also, Rebecca and I met at the school on Friday in the lab.
 * How did you collaborate?

I mainly used Netbeans to do my editing to the code. I did also get set up on SourceForge so I can add files. Another resource I used was w3schools.com.
 * What infrastructure resources have you used to do your work? Be clear (that’s specific).

I plan on making whatever edits are necessary to the user and persons page so they are fully functional, and add any other odds and ends that arise for the final iteration. We are also going to add more specific user settings, and make sure we can add users.
 * What tasks and work products do you plan to do for P4?

P4
For P4, my role was to finish setting up user privileges.
 * What role(s) have you assumed?

I edited the header, cases, persons, and programs pages to reflect proper user privileges. This was done by defining $disabletext and $disabletext2 in the header page, and setting each equal to either "" or "disabled". An if/else statement was then used to reflect proper privileges for each user type. A mysql_query statement was used, as well as mysql_fetch_row, and then $result[0] to get proper return values. When just using the mysql_query, I figured out through echo debug statements that a funky reult (reource id #5) was being returned, instead of the actual value for UserType. The final code uses variables of "$disabletext and $disabletext2 = "" or "disabled = disabled". I had trouble getting the variable subsitution to work in the actual buttons, but Rebecca managed to get it by making this change while she was refactoring.
 * What tasks have you performed to fulfill responsibilities of your role(s)?

I uploaded the edited versions of header.php, cases.php, persons.php, and programs.php.
 * What work products have you completed?

I collaborated by posting to the group site and working with communicating with Rebecca to get the final version we'll use for user privileges.
 * How did you collaborate?

I used Netbeans to make my code edits. I used SourceForge to get the latest versions of the project. W3schools.com was useful in structuring mysql statements and disabling features. I attempted to connect to the VPN, but had major problems. We plan on making sure the staging server is all set when we get to class.
 * What infrastructure resources have you used to do your work? Be clear (that’s specific).

A devloper could work to add even more versatility to user privileges (i.e. search but not delete or update, instead of all or nothing access to pages). Also, eventually an actual admin will have to be determined, and only that person should have access to the users page. Eventually, printing features and also some kind of ability to set up a mailing list will be useful. It seems from here, Rosemary should do a testdrive, and see what else she wants.
 * What tasks and work products do you plan to do for P5, etc?