Changeset 1100 for trunk/help/enviasugestao.php
- Timestamp:
- 07/08/09 16:59:21 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/help/enviasugestao.php
r201 r1100 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']; 1 <?php 2 /**************************************************************************\ 3 * eGroupWare - Online User manual * 4 * http://www.eGroupWare.org * 5 * Written and (c) by RalfBecker@outdoor-training.de * 6 * -------------------------------------------- * 7 * This program is free software; you can redistribute it and/or modify it * 8 * under the terms of the GNU General Public License as published by the * 9 * Free Software Foundation; either version 2 of the License, or (at your * 10 * option) any later version. * 11 \**************************************************************************/ 12 13 /* $Id: index.php,v 1.13 2004/04/13 08:19:10 ralfbecker Exp $ */ 14 15 $GLOBALS['phpgw_info']['flags'] = array( 16 'currentapp' => 'help', 17 'nonavbar' => true, 18 'noheader' => true, 19 ); 20 21 include('../header.inc.php'); 22 if($_POST){ 23 $params['input_to'] = $_POST['to']; 24 $params['input_cc'] = $_POST['cc']; 25 $params['input_cc'] = $_POST['cco']; 26 $params['input_subject'] = $_POST['subject']; 27 $params['body'] = $_POST['body']; 28 $expressoMail = CreateObject('expressoMail1_2.imap_functions'); 29 $returncode = $expressoMail->send_mail($params); 30 if (!$returncode) { 31 echo "$to<Br>$subject<br>$tmpbody<br>$sender<br>\n"; 32 echo '<i>'.$send->err['desc']."</i><br>\n"; 33 exit; 34 } 35 else{ 36 ExecMethod('help.uihelp.viewSuccess'); 37 } 38 } 39 else { 40 ExecMethod('help.uihelp.viewSuggestions'); 41 } 17 42 ?> 18 <html>19 <head>20 <title>Expresso Livre</title>21 <script language="Javascript">22 function send() {23 if(document.doit.body.value ==""){24 alert('Não existe nenhum texto digitado.');25 return false;26 }27 document.doit.submit();28 }29 </script>30 </head>31 <body style="margin:0px;padding:0px">32 <div class=Section1 align='center'>33 <table cellspacing="0" cellpadding="0" width="100%">34 <tr><td style="padding-left:0px;padding-right:25px" align="right" background="../phpgwapi/templates/celepar/images/fundo_topo.gif" nowrap>35 <a name="0"><img src="../phpgwapi/templates/celepar/images/logo_expresso.png?1"></a></td>36 </tr></table></p>37 <p align="center">38 <font face="Arial" size="2"><b><? echo lang("Use this space to send your doubts, critics and suggestions") ?></font></p>39 <form name="doit" action="sugestaoenviada.php" method="POST">40 <textarea name="body" cols="40" rows="15" wrap></textarea>41 <input type="hidden" name="to" value="<?=$GLOBALS['phpgw_info']['server']['sugestoes_email_to']?>">42 <input type="hidden" name="cc" value="<?=$GLOBALS['phpgw_info']['server']['sugestoes_email_cc']?>">43 <input type="hidden" name="bcc" value="<?=$GLOBALS['phpgw_info']['server']['sugestoes_email_bcc']?>">44 <input type="hidden" name="subject" value="Dicas, Dúvidas e Sugestões">45 <br>46 <br>47 <input type="button" name="enviar" value=<? echo lang("Send") ?> onClick="javascript:send()">48 49 <input type="button" name="cancelar" value=<? echo lang("Cancel") ?> onClick="javascript:window.close()">50 </form>51 </div>52 </body>53 54 </html>
Note: See TracChangeset
for help on using the changeset viewer.