Changeset 9203a2f


Ignore:
Timestamp:
08/04/14 17:17:29 (9 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2
Children:
097e228
Parents:
c744172
Message:

Update WebApp? UI to use some more tables / div stuff,
add new ability to display different menus for phone / computer
viewers

Location:
src-webui
Files:
5 added
2 edited
8 moved

Legend:

Unmodified
Added
Removed
  • src-webui/appweb/share/html/include/header-phone.php

    rf2973ab r9203a2f  
    1 <!DOCTYPE html> 
     1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" 
     2   "http://www.w3.org/TR/html4/frameset.dtd"> 
    23 
    34<html lang="en"> 
  • src-webui/appweb/share/html/index.php

    rf2973ab r9203a2f  
    22  require("include/Mobile_Detect.php"); 
    33  require("include/functions.php"); 
    4   require("include/header.php"); 
    5   require("include/nav.php"); 
     4 
     5  // Figure out what page is being requested 
     6  if ( empty($_GET["p"])) 
     7     $page = "main"; 
     8  else 
     9     $page = $_GET["p"]; 
    610 
    711  // Set some globals for mobile detection 
     
    1014  $scriptVersion = $detect->getScriptVersion(); 
    1115 
    12   // Figure out what page is being requested 
    13   if ( empty($_GET["p"])) 
    14      $page = "main"; 
    15   else 
    16      $page = $_GET["p"]; 
    17   
     16  if ( $deviceType == "computer" ) 
     17  { 
     18    require("include/header-computer.php"); 
     19    require("include/nav-computer.php"); 
     20  } else { 
     21    require("include/header-phone.php"); 
     22    require("include/nav-phone.php"); 
     23  } 
     24 
    1825  // Does the page exist? 
    19   if ( file_exists("include/$page.php") === false ) { 
    20     echo ("<h1>Invalid page specified!</h1>\n"); 
     26  if ( file_exists("pages/$page.php") === false ) { 
     27    require("pages/error.php"); 
    2128  } else { 
    22     // Load the page now 
    23     require("include/$page.php"); 
     29    require("pages/$page.php"); 
    2430  } 
    2531 
    2632 
    27   require("include/footer.php"); 
     33  if ( $deviceType == "computer" ) 
     34    require("include/footer-computer.php"); 
     35  else 
     36    require("include/footer-phone.php"); 
    2837?> 
  • src-webui/appweb/share/html/pages/main.php

    r4c6c433 r9203a2f  
    1  
    21<h2>Welcome to the AppWeb Utility!</h2> 
    32 
  • src-webui/port-files/pkg-plist

    rf2973ab r9203a2f  
    99share/appweb/html/images/pbiicon.php 
    1010share/appweb/html/include/Mobile_Detect.php 
    11 share/appweb/html/include/header.php 
    12 share/appweb/html/include/error.php 
     11share/appweb/html/include/header-computer.php 
     12share/appweb/html/include/header-phone.php 
    1313share/appweb/html/include/functions.php 
    14 share/appweb/html/include/footer.php 
    15 share/appweb/html/include/jails.php 
    16 share/appweb/html/include/main.php 
    17 share/appweb/html/include/nav.php 
    18 share/appweb/html/include/sysapp.php 
    19 share/appweb/html/include/sysappinfo.php 
     14share/appweb/html/include/footer-computer.php 
     15share/appweb/html/include/footer-phone.php 
     16share/appweb/html/include/leftmenu.php 
     17share/appweb/html/include/nav-computer.php 
     18share/appweb/html/include/nav-phone.php 
     19share/appweb/html/pages/error.php 
     20share/appweb/html/pages/jails.php 
     21share/appweb/html/pages/main.php 
     22share/appweb/html/pages/notifer.php 
     23share/appweb/html/pages/sysapp.php 
     24share/appweb/html/pages/sysappinfo.php 
    2025share/appweb/html/js/doubletaptogo.js 
    2126share/appweb/html/js/main.js 
     
    2631@dirrm share/appweb/html/include 
    2732@dirrm share/appweb/html/js 
     33@dirrm share/appweb/html/pages 
    2834@dirrm share/appweb/html 
    2935@dirrm share/appweb 
Note: See TracChangeset for help on using the changeset viewer.