Pesquisar na Comunidade
Mostrando resultados para as tags ''switch case''.
Encontrado 1 registro
-
Fiz assim mas dá erro na última linha... Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\v5\modules\mod_k2_tools\tmpl\archive.php on line 69 <?php /** * @version 2.7.x * @package K2 * @author JoomlaWorks http://www.joomlaworks.net * @copyright Copyright (c) 2006 - 2016 JoomlaWorks Ltd. All rights reserved. * @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html */ // no direct access defined('_JEXEC') or die; ?> <div id="k2ModuleBox"<?php echo $module->id; ?>" class="k2ArchivesBlock"<?php if($params->get('moduleclass_sfx')) echo ' '.$params->get('moduleclass_sfx'); ?>"> <ul> <?php foreach ($months as $month): ?> <li> <a href="<?php echo $month->link; ?>"> <?php switch ($month) { case 1:?> <img src="images/calendario/jan.png"> <?php break; case 2:?> <img src="images/calendario/fev.png"> <?php break; case 3:?> <img src="images/calendario/mar.png"> <?php break; case 4:?> <img src="images/calendario/abr.png"> <?php break; case 5:?> <img src="images/calendario/mai.png"> <?php break; case 6:?> <img src="images/calendario/jun.png"> <?php break; case 7:?> <img src="images/calendario/jul.png"> <?php break; case 8:?> <img src="images/calendario/ago.png"> <?php break; case 9:?> <img src="images/calendario/set.png"> <?php break; case 10:?> <img src="images/calendario/out.png"> <?php break; case 11:?> <img src="images/calendario/nov.png"> <?php break; case 12:?> <img src="images/calendario/dez.png"> <?php break; } ?> <?php echo $month->name?></a><br> <div class="numAtividades"> <?php echo "número atividades "; if ($params->get('archiveItemsCounter')) echo '['.$month->numOfItems.']';?><br> <?php echo $month->y;?> </div> </li> <?php t_endforeach; ?> </ul> </div>
- 1 resposta