<!--
sitio: www.interlimec.com
file: index.php
realizado por: iridizen.com
programador: Ing. Daniel Castillo Torres
Fecha: 16/01/12
-->
<?php
function getForm($leng){
$formulario;
if($leng=="EN"){
$arrInfContacto = array("CONTACT INFORMATION",
"Company name:",
"Main line of business:",
"City and Country:",
"Telephone(s):",
"Name of contact person:",
"Email address:",
"How did you get to know about InteliMerc?"
);
$arrProduct = array("YOUR PRODUCT OR SERVICE",
"Main product or service:",
"Trademark(s) or commercial name(s):",
);
$arrAmbito = array("SCOPE",
"Your commercial channel is:<br />Example: direct sales, network marketing, retail, wholesale, pharma, supermarket, others",
"Your main market(s) is(are):<br />Ex: (please detail country, geographical region, states, cities)",
"Other (secondary) market(s):<br />Ex: México, Central America, South America, Caribbean, etc",
"Do you import?<br />Ex: Yes / No (raw materials / finished products)",
"Do you export directly?<br />Ex: Yes / No (please mention destinations)",
);
}
else{
$arrInfContacto = array(" ",
"Nombre de la Empresa:",
"Giro Principal:",
"Ciudad:",
"Teléfonos:",
"Nombre Persona de contacto:",
"Correo Electrónico",
"¿Cómo se enteró de Intelimerc?"
);
$arrProduct = array("Su Producto o Servicio",
"Producto o Servicio Principal es:",
"Marca(s) o nombre(s) comercial(es):",
);
$arrAmbito = array("Ambito",
"Su Canal Comercial es:<br />Ejs: ventas directas, mercadeo en red, retail, mayorista, abarrotero, farmacéutico u otro(s)",
"Su mercado principal actual es:<br />Ej: México (detallar región geográfica, <br />estados y/o ciudades)",
"Otro(s) mercado(s) secundario(s)<br />Ej: Estados Unidos, Guatemala, Centro América:",
"¿Importa Actualmente?<br />Ej: Sí / No (materias primas / productos
terminados)",
"¿Exporta o ha exportado Directamente?<br />Ej: Sí / No (materias primas / productos
terminados)",
);
} //end ELSE
if($leng=="EN"){
$formulario = $formulario.crearTabla($arrInfContacto);
$formulario = $formulario.crearTabla($arrProduct);
$formulario = $formulario.crearTabla($arrAmbito);
$formulario = $formulario."<br /><p><b>Project</b></p><br />
<p>Briefly describe your project of interest. Please mention country(ies) or market(s) of your initial interest.</p>
<table class='tableComents'>
<tr>
<td>Message</td>
<td><textarea name='contacto[]' cols='60' rows='10'></textarea></td>
</tr>
</table>
";
}
else{
$formulario = $formulario.crearTabla($arrInfContacto);
$formulario = $formulario.crearTabla($arrProduct);
$formulario = $formulario.crearTabla($arrAmbito);
$formulario = $formulario."<br /><p><b>Proyecto</b></p><br />
<p>Describa brevemente el proyecto que le interesa prospectar para llevar a cabo, mencionando los países o mercados de su interés inicial</p>
<table class='tableComents'>
<tr>
<td>Mensaje</td>
<td><textarea name='contacto[]' cols='60' rows='10'></textarea></td>
</tr>
</table>
";
}
return $formulario;
}
function crearTabla(array $arreglo){
$formulario = ("
<table class='tableContacto'>
<th>
".$arreglo[0]."
</th>");
for($i=1;$i<count($arreglo);$i++)
{
$formulario = $formulario.
"<tr>
<td>$arreglo[$i]</td>
<td><input type='text' name='contacto[]' /></td>
</tr>";
}
$formulario = $formulario."</table>";
return $formulario;
}
?>