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