Based on given template in HTML5 with framework7 the should be some addtional expansions.
User Login: php request to an given php file with access levels
XML Validation: Validate XML answer against xsd
hide Menu: hide menues with access levels
cookies: store login data in cookies with timeout
linked sides: should be saved against direct accees by redirect to [url removed, login to view]
I also write a small PDF with details. Please have a look.
Everythings should be deveoped with technics are useable for phonegap.
So php ist not a solution.