Show
Ignore:
Timestamp:
08/11/05 17:46:24 (8 years ago)
Author:
fproulx
Message:

2005-08-11 Francois Proulx <francois.proulx@…>

  • Refactored the Admin UI.
  • I need to write the upload form and rewrite statistics
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/classes/MainUI.php

    r679 r684  
    8282                        $html .= "<li><a href='hotspot_log.php'>"._("Hotspot logs")."</a></li>\n"; 
    8383                        $html .= "<li><a href='import_user_database.php'>"._("Import NoCat user database")."</a></li>\n"; 
    84                         $html .= "<li><a href='hotspot.php'>"._("Hotspot creation and configuration")."</a> - Beta</li>\n"; 
    85                         $html .= "<li><a href='owner_sendfiles.php'>"._("Hotspot owner administration")."</a> - Beta</li>\n"; 
     84                        $html .= "<li><a href='content_admin.php'>"._("Content manager")."</a></li>\n"; 
    8685            } 
     86             
     87            $html .= "</ul>\n"; 
    8788 
    8889                        // If the user is super admin OR owner of at least one hotspot show the menu 
     
    9192                                /* Node admin */ 
    9293                                $html .= "<div class='admin_section_container'>\n"; 
    93                                 $html .= '<form action="'.GENERIC_OBJECT_ADMIN_ABS_HREF.'" method="get">'; 
     94                                $html .= '<form action="'.GENERIC_OBJECT_ADMIN_ABS_HREF.'" method="post">'; 
    9495                                $html .= "<div class='admin_section_title'>"._("Node administration:")." </div>\n"; 
    9596         
    9697                                $html .= "<div class='admin_section_data'>\n"; 
    97                                 $html .= "<input type='hidden' name='action' value='edit'>\n"; 
    98                                 $html .= "<input type='hidden' name='object_class' value='Node'><br>\n"; 
    9998 
    10099                                if ($current_user->isSuperAdmin()) 
     
    108107                                $html .= "<div class='admin_section_tools'>\n"; 
    109108         
    110                                 $html .= "<input type=submit name='edit_submit' value='"._("Edit")."'>\n"; 
     109                                $html .= "<input type='hidden' name='object_class' value='Node'>\n"; 
     110                                $html .= "<input type='hidden' name='action' value='edit'>\n"; 
     111                                $html .= "<input type='submit' name='edit_submit' value='"._("Edit")."'>\n"; 
    111112                                 
    112113                                $html .= "</div>\n"; 
     
    134135                        $html .= "</div>\n"; 
    135136            } 
    136  
    137                         $html .= "<li><a href='content_admin.php'>"._("Content manager")."</a></li>\n"; 
    138                         $html .= "</ul>\n"; 
    139  
    140137                } 
    141138                else