source: companies/serpro/help/enviasugestao.php @ 903

Revision 903, 2.8 KB checked in by niltonneto, 15 years ago (diff)

Importacao inicial do Expresso do Serpro

Line 
1<?php   
2        $GLOBALS['phpgw_info']['flags'] = array(
3                'noheader' => True,
4                'nonavbar' => True,
5                'currentapp' => 'expressoMail1_2',
6                'enable_nextmatchs_class' => True
7        );
8       
9        include('../header.inc.php');
10        $GLOBALS['phpgw']->preferences->read_repository();                                                                     
11        $_SESSION['phpgw_info']['expressomail']['user'] = $GLOBALS['phpgw_info']['user'];               
12        $boemailadmin   = CreateObject('emailadmin.bo');
13        $emailadmin_profile = $boemailadmin->getProfileList();
14        $_SESSION['phpgw_info']['expressomail']['email_server'] = $boemailadmin->getProfile($emailadmin_profile[0]['profileID']);
15        $_SESSION['phpgw_info']['expressomail']['server'] = $GLOBALS['phpgw_info']['server'];           
16        $_SESSION['phpgw_info']['expressomail']['user']['email'] = $GLOBALS['phpgw']->preferences->values['email'];
17       
18        $img_root = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/' . $GLOBALS['phpgw_info']['login_template_set'] . '/images/';
19        $image_navbar_bg = $img_root . $GLOBALS['phpgw_info']['server']['image_navbar_bg'];
20        $image_navbar_left =$img_root . $GLOBALS['phpgw_info']['server']['image_navbar_left'];
21
22?>
23<html>
24        <head>
25                <title>Expresso Livre</title>
26                <script language="Javascript">
27                function send() {
28                        if(document.doit.body.value ==""){
29                                alert('Não existe nenhum texto digitado.');
30                                return false;
31                        }
32                        document.doit.submit();
33                }
34                </script>               
35        </head>
36<body style="margin:0px;padding:0px">
37<div class=Section1 align='center'>
38<table border="0" width="100%" cellpadding=0 cellspacing=0>
39          <tr>
40        <td background="<?php echo $image_navbar_bg; ?>"><img src="<?php echo $image_navbar_left; ?>" style="width:142px;height:58px"/></td>
41        <td  background="<?php echo $image_navbar_bg; ?>f">
42       
43        </td><td style="padding-left:0px;padding-right:25px" align="right" background="<?php echo $image_navbar_bg; ?>" nowrap>
44<a name="0"><img src="<?php echo $img_root.'logo_expresso_transparente.png?1'; ?>"></a></td></tr></table>
45<p align="center">
46<font face="Arial" size="2"><b>Utilize este espaço para enviar<br><br> suas dúvidas, críticas e sugestões</b></font></p>
47<form name="doit" action="sugestaoenviada.php" method="POST">
48<textarea name="body" cols="40" rows="15" wrap></textarea>
49<input type="hidden" name="to" value="<?=$GLOBALS['phpgw_info']['server']['sugestoes_email_to']?>">
50<input type="hidden" name="cc" value="<?=$GLOBALS['phpgw_info']['server']['sugestoes_email_cc']?>">
51<input type="hidden" name="bcc" value="<?=$GLOBALS['phpgw_info']['server']['sugestoes_email_bcc']?>">
52<input type="hidden" name="subject" value="Dicas, Dúvidas e Sugestões">
53<br>
54<br>
55<input type="button" name="enviar" value="enviar" onClick="javascript:send()">
56&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
57<input type="button" name="cancelar" value="cancelar" onClick="javascript:window.close()">
58</form>
59</div>
60</body>
61
62</html>
Note: See TracBrowser for help on using the repository browser.