sasanrose/phpredmin — pull request #41 by blitzmann (2014-02-09 02:57:55+00:00)
Title: Add support for adding new database

- Adds ability to navigate to a DB that currently holds no information (previously defaults to first available database)
- Sets new variable `newDB` to `current` if database being requested is new (used as a flag for the navigation)
- Sets validation rules on requested database now that we are not simply checking against available databases.
- Sets new variable `max_databases` that is set to the sever's max database configuration. This is used to validate requested database indexm, but I also have plans to use it in a few other places.
- Creates a new navigation option "+ Add DB" that, when clicked, opens a modal with a dropdown of available databases.

When navigated to a new database, it shows up with a `+` next to it in the navigation, showing you that it's still new. If the user does not add data to the database and then navigates to another database, the new database information is lost and the "+ Add DB" option is present again

Pictures: (because everyone loves pictures)
![1](https://f.cloud.github.com/assets/3904767/2118990/dead129c-9135-11e3-9921-3bbb00df51ac.PNG)
![2](https://f.cloud.github.com/assets/3904767/2118991/deb658de-9135-11e3-82f8-7d939922179f.PNG)
![3](https://f.cloud.github.com/assets/3904767/2118989/de9fd4e2-9135-11e3-9e9b-c28b6545e263.PNG)