source: trunk/calendar/templates/default/publicView.php @ 5509

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

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

  • 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        $user = $_POST['user'] ? $_POST['user'] :
13                ($_GET['user'] ? $_GET['user']: '');
14       
15        if($user) {
16                $organization = $_POST['organization'] ? $_POST['organization'] :
17                ($_GET['organization'] ? $_GET['organization']: '');
18               
19                if($organization)
20                        $arg1 = $organization."-".$user;
21                else
22                        $arg1 = $user;
23               
24                $params = "&account_name=".$arg1;
25        }
26        else
27                $params = '';
28?>
29<html>
30        <head><title>Visualizar Agenda</title>
31        <head>
32        <style type="text/css">
33                .grid_right{
34                border-style: groove;
35                border-width: 0px;
36                border-right-width: 1px;               
37                border-color: BLACK;           
38                }
39                .grid_top{
40                border-style: groove;
41                border-width: 0px;
42                border-top-width: 1px;         
43                border-color: BLACK;           
44                }
45        </style>
46        <LINK href="../../../phpgwapi/templates/default/css/azul.css" type=text/css rel=StyleSheet>
47        <script language="Javascript">
48                function validate(){
49                        if(document.login.user.value =="")      {
50                                alert('Você deve digitar um nome no campo Usuário.');
51                                document.login.user.focus();
52                                return false;
53                        }
54                       
55                        return true;
56                }
57        </script>
58        </head>
59        <body>
60          <div align="center" valign="center">
61                <table cellspacing="0" cellpadding="5" width="100%" height="100%">                     
62                        <tr><td width="10%" valign="center"  class="grid_right"><br>
63                                <table border="0" cellpadding="0" cellspacing="0" class="login" height="100%" width="100%">
64                                        <tr>
65                                                <td valign="top">
66                                                <FORM name="login" method="post" action="publicView.php" onSubmit="javascript:return validate()">
67                                                        <table border="0" cellpadding="0" cellspacing="0" class="tableLogin">
68                                                                <tr>
69                                                                        <td width="66" class="loginLabel" align="center"><b>Organização</b><br><input type="text" value="<?=$organization?>" name="organization" size="15"></td>
70                                                                </tr>
71                                                                <tr>                                                                   
72                                                                        <td>&nbsp;</td>
73                                                                </tr>
74                                                                <tr>
75                                                                        <td width="136" align="center" class="loginLabel"><b>Usuário</b><br><input name="user" size="15" value="<?=$user?>"></td>
76                                                                </tr>
77                                                                <tr>                                                                   
78                                                                        <td height="16">&nbsp;</td>
79                                                                </tr>
80                                                                <tr>
81                                                                        <td width="135" colspan="2" align="center">                                             
82                                                                        <input type="submit" value="Visualizar" name="submitit" class=button >
83                                                                        </td>
84                                                                        </tr>
85                                                        </table>
86                                                        </FORM>
87                                                </td>
88                                        </tr>
89                                </table>                                                               
90                        </td>
91                                <td width="90%" valign="top">
92                                        <iframe  width="100%" height="95%" src="../../../index.php?menuaction=calendar.uipublicview.publicView<?=$params?>"
93                                                marginwidth="0" marginheight="0"  topmargin="0" leftmargin="0" frameborder="0" scrolling="auto" noresize>
94                                        </iframe>
95                        </td></tr>
96                </table>
97          </div>
98        </body>
99</html>
Note: See TracBrowser for help on using the repository browser.