Ver Mensaje Individual
  #4 (permalink)  
Antiguo 18/06/2014, 12:54
chelix
 
Fecha de Ingreso: septiembre-2006
Ubicación: Montevideo
Mensajes: 46
Antigüedad: 18 años, 4 meses
Puntos: 1
Respuesta: ¿Como imprimo las variable &_GET y $_POST de PHP en Smarty?

Tuve que hacer 3 codigos, uno para el template de cada idioma.

El codigo final quedo asi:

Cita:

RUSSIAN TEMPLATE
<select onchange="this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value)">
<option class="txt" value="http://en.mypage.com{$smarty.server.REQUEST_URI}">English </option>
<option class="txt" value="http://es.mypage.com{$smarty.server.REQUEST_URI}">Espa&nt ilde;ol</option>
<option class="txt" value="http://{$smarty.server.SERVER_NAME}{$smarty.server.REQUES T_URI}" selected>Pусский</option>
</select>

Cita:
ENGLISH TEMPLATE
<select onchange="this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value)">
<option class="txt" value="http://{$smarty.server.SERVER_NAME}{$smarty.server.REQUES T_URI}">English</option>
<option class="txt" value="http://es.mypage.com{$smarty.server.REQUEST_URI}">Espa&nt ilde;ol</option>
<option class="txt" value="http://ru.mypage.com{$smarty.server.REQUEST_URI}" selected>Pусский</option>
</select>

Cita:
SPANISH TEMPLATE
<select onchange="this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value)">
<option class="txt" value="http://en.mypage.com{$smarty.server.REQUEST_URI}">English </option>
<option class="txt" value="http://{$smarty.server.SERVER_NAME}{$smarty.server.REQUES T_URI}">Espa&ntilde;ol</option>
<option class="txt" value="http://ru.mypage.com{$smarty.server.REQUEST_URI}" selected>Pусский</option>
</select>