Location: PHPKode > projects > ZZ/OSS Installer > zic-1.1.0dev1/installer/themes/com.zzoss.zic.theme.kde/header.php
<?php   
    /*
    Copyright (C) 2001-2004 ZZOSS GbR, http://www.zzoss.com

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    */
    
    /**
    @version $Id: header.php,v 1.13 2004/04/06 19:51:11 ordnas Exp $
    @copyright Copyright &copy; 2001-2004 ZZ/OSS GbR, http://www.zzoss.com
    @license http://opensource.org/licenses/lgpl-license.php GNU Lesser General Public License
    */
    
    include 'theme_config.php';
    
    ob_start();
?>
<html>
    <head>
        <title><?php echo $zi_theme['installer_title']; ?></title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <link rel="stylesheet" href="themes/<?php echo $GLOBALS['ZI']['theme']; ?>/styles.css">
        <link rel="icon" href="themes/<?php echo $GLOBALS['ZI']['theme']; ?>/favicon.ico" type="image/x-icon"> 
        <link rel="shortcut icon" href="themes/<?php echo $GLOBALS['ZI']['theme']; ?>/favicon.ico" type="image/x-icon">
        <link rel="icon" href="../themes/<?php echo $GLOBALS['ZI']['theme']; ?>/favicon.ico" type="image/x-icon"> 
        <link rel="shortcut icon" href="../themes/<?php echo $GLOBALS['ZI']['theme']; ?>/favicon.ico" type="image/x-icon">
    </head>

    <body>

        <div class="widget">
        
            <div class="header">
        
                <div class="status">
                <?php echo $zi_theme['installer_title']; ?> - 
                <?php
                if($GLOBALS['ZI']['mode'] == 'dev'){
                        echo 'Development ';
                } else if($GLOBALS['ZI']['mode'] == 'setup'){
                        echo 'Setup ';
                } else if(strlen($GLOBALS['ZI']['application']) || strlen($GLOBALS['ZI']['distribution'])){
                    echo 'Installation ';
                }
                ?>Wizard
                </div>
            </div>
            
            <div class="menu">
                <?php
                    if(!strlen($GLOBALS['ZI']['application'])) { 
                    ?>
						<div class="menuitem<?php echo zi_theme_selected('apps'); ?>">
							<table>
								<tr>
									<td valign="middle">
										<a href="<?php echo $chdir; ?>applications.php?nav_parent=apps&nav_child=applications"><img src="<?php echo $chdir; ?>themes/share/icons/org.kde.icons.crystalsvg/32x32/kcmsystem.gif" alt="Manage Applications" title="Manage Applications" align="left"></a>
									</td>
									<td valign="middle">
			                            <a href="<?php echo $chdir; ?>applications.php?nav_parent=apps&nav_child=applications">Manage<br/>Applications</a>
									</td>
								</tr>
							</table>
                        </div>
                        <?php 
                    }
                    if($GLOBALS['ZI']['is_single_app']) {
                        
                        $_REQUEST['mode'] = '';
                        
                        if(is_object($zi_registry)){
                            $application = $zi_registry->getApplication($GLOBALS['ZI']['application'], $GLOBALS['ZI']['distribution']);
                        }
                        
                        $_REQUEST['distribution'] = $GLOBALS['ZI']['distribution'];
                        $_REQUEST['application'] = $GLOBALS['ZI']['application'];
                        
                        if(!isset($application['installed']) || !strlen($application['installed'])){
                            ?>
							<div class="menuitem<?php echo zi_theme_selected('app_install'); ?>">
							<table>
								<tr>
									<td valign="middle">
										<a href="<?php echo $chdir; ?>applications.php<?php echo zi_form_querystr(); ?>action=install&nav_parent=app_install"><img src="<?php echo $chdir; ?>themes/share/icons/org.kde.icons.crystalsvg/32x32/kcmsystem.gif" alt="Install Application" title="Install Application" align="left"></a>
									</td>
									<td valign="middle">
			                            <a href="<?php echo $chdir; ?>applications.php<?php echo zi_form_querystr(); ?>&action=install&nav_parent=app_install">Install<br/>Application</a>
									</td>
								</tr>
							</table>
	                        </div>
                            <?php
                        } elseif($GLOBALS['ZI']['mode'] != 'setup') {
                            $_REQUEST['widget_type'] = '_self';
                            ?>
                            <div class="menuitem<?php echo zi_theme_selected('app_info'); ?>">
                                <table>
                                    <tr>
                                        <td valign="middle">
                                            <a href="<?php echo $chdir; ?>info.php<?php echo zi_form_querystr(); ?>&nav_parent=app_info"><img src="<?php echo $chdir; ?>themes/share/icons/org.kde.icons.crystalsvg/32x32/kcmsystem.gif" alt="Application Information" title="Application Information" align="left"></a>
                                        </td>
                                        <td valign="middle">
                                            <a href="<?php echo $chdir; ?>info.php<?php echo zi_form_querystr(); ?>&nav_parent=app_info">Application<br>Information</a>
                                        </td>
                                    </tr>
                                </table>
                            </div>
						<div class="menuitem<?php echo zi_theme_selected('app_update'); ?>">
							<table>
								<tr>
									<td valign="middle">
										<a href="<?php echo $chdir; ?>application_update.php<?php echo zi_form_querystr(); ?>&nav_parent=app_update"><img src="<?php echo $chdir; ?>themes/share/icons/org.kde.icons.crystalsvg/32x32/rebuild.gif" alt="Update Application" title="Update Application" align="left"></a>
									</td>
									<td valign="middle">
			                            <a href="<?php echo $chdir; ?>application_update.php<?php echo zi_form_querystr(); ?>&nav_parent=app_update">Update<br/>Application</a>
									</td>
								</tr>
							</table>
                        </div>						
                            <!--
                            <div class="menuitem">
                                <a href="<?php echo $chdir; ?>plugins_rebuild.php<?php echo zi_form_querystr(); ?>"><img src="<?php echo $chdir; ?>themes/share/icons/org.kde.icons.crystalsvg/32x32/package_settings.gif" alt="Options" title="Options" align="left">Options</a>
                            </div>
                            -->
						<div class="menuitem<?php echo zi_theme_selected('app_delete'); ?>">
							<table>
								<tr>
									<td valign="middle">
										<a href="<?php echo $chdir; ?>application_delete.php<?php echo zi_form_querystr(); ?>&nav_parent=app_delete"><img src="<?php echo $chdir; ?>themes/share/icons/org.kde.icons.crystalsvg/32x32/trashcan_empty.gif" alt="Delete Application" title="Delete Application" align="left"></a>
									</td>
									<td valign="middle">
			                            <a href="<?php echo $chdir; ?>application_delete.php<?php echo zi_form_querystr(); ?>&nav_parent=app_delete">Delete Application</a>
									</td>
								</tr>
							</table>
                        </div>						
                    <!--
                    <div class="menuitem">
                        <a href="<?php echo $chdir; ?>menu.php?ZI_VALUES[type]=change_global_config"><img src="<?php echo $chdir; ?>themes/share/icons/org.kde.icons.crystalsvg/32x32/app_configure.gif" alt="Configure Application" title="Configure Application" align="left">Configure<br/>Application</a>
                    </div>
                    <div class="menuitem">
                        <a href="<?php echo $chdir; ?>menu.php?ZI_VALUES[type]=packages"><img src="<?php echo $chdir; ?>themes/share/icons/org.kde.icons.crystalsvg/32x32/package.gif" alt="Manage Packages" title="Manage Packages" align="left">Manage<br/>Packages</a>
                    </div>
                    <div class="menuitem">
                        <a href="<?php echo $chdir; ?>menu.php?ZI_VALUES[type]=change_components_config"><img src="<?php echo $chdir; ?>themes/share/icons/org.kde.icons.crystalsvg/32x32/package_configure.gif" alt="Configure Packages" title="Configure Packages" align="left">Configure<br/>Packages</a>
                    </div>
                    -->
                    <?php
                        }
                    }
                    if($GLOBALS['ZI']['application']['settings']['allow_online_update'] == 'true') {
                        ?>
                        <div class="menuitem">
                            <a href="<?php echo $chdir; ?>menu.php?ZI_VALUES[type]=download"><img src="<?php echo $chdir; ?>themes/share/icons/org.kde.icons.crystalsvg/48x48/package_download.gif" border="0" alt="Online Update" title="Online Update" align="left">Online<br/>Update</a>
                        </div>
                        <?php
                    }
                    if($GLOBALS['ZI']['mode'] == 'dev') {
                        ?>
							<div class="menuitem<?php echo zi_theme_selected('dev'); ?>">
							<table>
								<tr>
									<td valign="middle">
										<a href="<?php echo $chdir; ?>applications.php?mode=dev&nav_parent=dev&nav_child=applications"><img src="<?php echo $chdir; ?>themes/share/icons/org.kde.icons.crystalsvg/32x32/template_source.gif" alt="Develop Applications" title="Develop Applications" align="left"></a>
									</td>
									<td valign="middle">
			                            <a href="<?php echo $chdir; ?>applications.php?mode=dev&nav_parent=dev&nav_child=applications">Develop<br/>Applications</a>
									</td>
								</tr>
							</table>
                        </div>
                        <?php
                    }
                    if($GLOBALS['ZI']['mode'] != 'setup' && !$GLOBALS['ZI']['is_single_app']){
                    ?>
                        <div class="menuitem<?php echo zi_theme_selected('installer'); ?>">
							<table>
								<tr>
									<td valign="middle">
										<a href="<?php echo $chdir; ?>applications.php?mode=installer&nav_parent=installer&nav_child=options&action=options&application=<?php echo $GLOBALS['ZI']['installer_application']; ?>&distribution=<?php echo $GLOBALS['ZI']['installer_distribution']; ?>"><img src="<?php echo $chdir; ?>themes/share/icons/org.kde.icons.crystalsvg/32x32/kcontrol.gif" alt="Manage Installer" title="Manage Installer" align="left"></a>
									</td>
									<td valign="middle">
			                            <a href="<?php echo $chdir; ?>applications.php?mode=installer&nav_parent=installer&nav_child=options&action=options&application=<?php echo $GLOBALS['ZI']['installer_application']; ?>&distribution=<?php echo $GLOBALS['ZI']['installer_distribution']; ?>">Manage<br/>Installer</a>
									</td>
								</tr>
							</table>
                        </div>
                    <?php
                    }
                //}
                ?>
            </div>
            
            <div class="body"><?php
                require_once 'inc/toolbar.php';
                ?>  
    
                <div class="content_frame<?php if(isset($_REQUEST['mode']) && $_REQUEST['mode'] == 'dev') echo '_dev'; ?>">

                    <div class="content">
                        <form method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>" enctype="multipart/form-data">
                        <?php
                        // Do we suppress this component because we show the setup header?
                        if($zi_setup->isInitiated()){
                            $zi_help_pathinfo = pathinfo(getenv('SCRIPT_FILENAME'));
                            //print_r($help_pathinfo);
                            $zi_help_file = str_replace($zi_help_pathinfo['extension'], 'html', $zi_help_pathinfo['basename']);
                            if(file_exists('help/'.$zi_help_file)){
                                ?>
                                <div class="help">
                                <a href="help.php?file=<?php echo rawurlencode($zi_help_file); ?>" onclick="javascript:window.open('help.php?file=<?php echo rawurlencode($zi_help_file); ?>', 'Help', 'width=320,height=500,resizable=1,status=0,scrollbars=1,toolbar=0,location=0,directories=0,menubar=0,dependent=0');void(0);javascript:return(false);" target="_blank" title="Help"><img src="<?php echo $chdir; ?>themes/share/icons/org.kde.icons.crystalsvg/16x16/help.gif" border="0" alt="Help" title="Help"/></a>
                                </div><?php
                                }
                                ?>
                            <?php
                        }       
                        ?>
Return current item: ZZ/OSS Installer