require(dirname(__FILE__)."/connexio.php"); ?>
|
|
|
||||||||||||||||
if (isset($unitat) && ($unitat > 0 )) { $txt=" AND unitat= ". $unitat. " ";
echo "";
if ($unitat=="1") { echo "Unidad 1. Problemas generales";}
if ($unitat=="2") { echo "Unidad 2. Problemas en la cara-nariz-boca-garganta-o�dos";}
if ($unitat=="3") { echo "Unidad 3. Problemas del sistema nervioso";}
if ($unitat=="4") { echo "Unidad 4. Problemas de la conducta y de relaci�n";}
if ($unitat=="5") { echo "Unidad 5. Problemas abdominales, de la digesti�n y de la evacuaci�n";}
if ($unitat=="6") { echo "Unidad 6. Problemas de la reproducci�n y aparato genital";}
if ($unitat=="7") { echo "Unidad 7. Situaciones de riesgo familiar y social";}
if ($unitat=="8") { echo "Unidad 8. Problemas musculoesquel�ticos (1� parte)";}
if ($unitat=="9") { echo "Unidad 9. Problemas de la piel (1� parte)";}
if ($unitat=="10") { echo "Unidad 10. Problemas musculoesquel�ticos (2� parte)";}
if ($unitat=="11") { echo "Unidad 11. Problemas de la piel (2� parte)";}
if ($unitat=="12") { echo "Unidad 12. Problemas de la respiraci�n, card�acos y vasculares";}
if ($unitat=="13") { echo "Unidad 13. Problemas de los ojos";}
if ($unitat=="14") { echo "Unidad 14. Problemas espec�ficos del ni�o";}
if ($unitat=="15") { echo "Unidad 15. Problemas del ri��n";}
if ($unitat=="16") { echo "Unidad 16. Problemas de la respiraci�n";}
if ($unitat=="17") { echo "Unidad 17. Problemas endocrinol�gicos";}
if ($unitat=="18") { echo "Unidad 18. Conductas de riesgo";}
if ($unitat=="19") { echo "Unidad 19. Anexos pr�cticos (21)";}
if ($unitat=="20") { echo "Unidad 20. Tabla de f�rmacos (457 fichas)";}
if ($unitat=="100") { echo "Consultas administrativas y de organizaci�n";}
echo "";
} else { $txt= " ";}
if (isset($unitat) && ($unitat == 0 )) { echo " Vista de todas las consultas "; }
?>
". "PREGUNTA: ". $Consulta ." Fecha : ". date("d-m-Y H:m:s ",time()) . " ". "Formulada Por: ". $NomAlumne . " ". $Cognoms. " E-mail: ". $Email. " \n". " Para responder a la pregunta, utilice este enlace: \n ". " Responder a la pregunta \n"; if ($unitat== 100){ // mail("$TO_5 ", " "." !! Consulta administraci�n ". "$miss", "$miss". "\n".$txt , "From: [email protected] \n \n" ." MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1" ) ; $assumplte="!! Consulta administraci�n ".$miss; $sfrom="[email protected]"; $sheader="From:".$sfrom."\nReply-To:".$sfrom."\n"; $sheader=$sheader."X-Mailer:PHP/".phpversion()."\n"; $sheader=$sheader."Mime-Version: 1.0\n"; $sheader=$sheader."Content-Type: text/html"; mail($TO_5, $assumplte,$txt, $sheader); } else { // mail("$TO ", " " ."$miss","$miss". "\n".$txt , "From: [email protected] \n \n" ."MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1" ); $assumplte=$miss; $sfrom="[email protected]"; $sheader="From:".$sfrom."\nReply-To:".$sfrom."\n"; $sheader=$sheader."X-Mailer:PHP/".phpversion()."\n"; $sheader=$sheader."Mime-Version: 1.0\n"; $sheader=$sheader."Content-Type: text/html"; mail($TO, $assumplte, $txt, $sheader); } } ?> //desem la pregunta d'un estudiant i enviem mail al coordinador. function desa_resposta() { global $Resposta, $Id_FAQ , $Consulta, $Data, $Email , $unitat, $Respost, $fitxer_name ; global $TO , $miss, $taula_faqs, $URL_FAQ ; $text=" ". "". "". "". " ". " Este e-mail es un aviso automatico de que su pregunta, formulada en el area de FAQ's ". " del Curso Guía de Actuación en atención primaria, ha sido contestada \n ". "
". " Su E-mail: ". $Email. " \n". " Para ver la respuesta a su pregunta ,utilice este enlace: \n ". " PREGUNTA: ". $Consulta . " \n "; echo " | ||||||||||||||||
| ";
echo " RESPUESTA: ". $Resposta . " \n "; ?> |
Gracias por su colaboraci�n
"; if($fitxer_name) { echo "Copiando ...
"; if($fitxer_name) { // echo "Copiando ...