source: branches/2.5/admin/navbar-create.php @ 5509

Revision 5509, 2.1 KB checked in by gustavo, 12 years ago (diff)

Ticket #2488 - Adicionar cabecalho de licenca em arquivos que nao o possuem

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<?php
2                /***************************************************************************
3                * Expresso Livre                                                           *
4                * http://www.expressolivre.org                                             *
5                * --------------------------------------------                             *
6                *  This program is free software; you can redistribute it and/or modify it *
7                *  under the terms of the GNU General Public License as published by the   *
8                *  Free Software Foundation; either version 2 of the License, or (at your  *
9                *  option) any later version.                                              *
10                \**************************************************************************/
11               
12  $phpgw_info = array();
13  $phpgw_info["flags"]["currentapp"] = "admin";
14  $phpgw_info["server"]["site_title"] = "Create a selected navbar image";
15  include("../header.inc.php");
16?>
17
18This is a utility that will help developers automatically create "selected" navigation bar images.  Currently, it just adds a 1 pixel border around the image in a style that suggests a depressed button. 
19<p>
20The instructions are as follows:
21<ol>
22<li>Select an app from the list below.</li>
23<li>Right click on the image that appears in your browser and save the image.</li>
24<li>Name the image "navbar-sel.gif" -- but without the quotes.</li>
25<li>Copy the image to the images subdirectory of the app.</li>
26<li>Commit the image to cvs, adding it first if necessary.</li>
27</ol>
28<p>
29<b>NOTE:</b> <i>This app will only work if your server has the GD library compiled into PHP.  Furthermore, if your GD library is too new, it will not work with GIF's, only PNG's...</i>
30<p>
31<b>NOTE 2:</b> <i>Also, some images seem to give load errors.  This is easily fixed by reexporting them as a GIF from Photoshop in GIF89a format.  Other programs will also work.</i>
32<p>
33<b>Applications</b>
34<p>
35<?php
36  while (list($key, $val) = each($phpgw_info["apps"])) {
37    echo "\n<A HREF=\"".$phpgw->link("/admin/navbar-sel.php","filename=".$phpgw_info["server"]["server_root"]."/".$key."/images/navbar.gif")."\">";
38    echo $phpgw_info["apps"][$key]["title"]."</A><BR>";
39  }
40
41  $phpgw->common->phpgw_footer();
42?>
Note: See TracBrowser for help on using the repository browser.