Genfon Posted August 31, 2012 Report Share Posted August 31, 2012 Коллеги, подскажите решение. Накак не могу написать.Есть 3 вкладки <li><a href="http://site.ru/monitoring?cam=1">http://site.ru/monitoring?cam=1</a></li> <li><a href="http://site.ru/monitoring?cam=2">http://site.ru/monitoring?cam=2</a></li> <li><a href="http://site.ru/monitoring?cam=3">http://site.ru/monitoring?cam=3</a></li>в файле page.tplподключаю файл monitoring.tpl{include file='monitoring.tpl'} Теперь нужно в этом файле, monitoring.tpl, проверить, чему равна переменная $_GET['cam']и в зависимости от цифры выдать из базы поле IP.$_GET['cam'].,например, IP1, IP2 или IP3http://IP такой тоСпасибо заранее за помощь! Quote Link to post Share on other sites
osben Posted August 31, 2012 Report Share Posted August 31, 2012 {if $smarty.get.cam} есть $_GET['cam'] и он равняется {$smarty.get.cam}{/if}http://www.smarty.net/ в помощь Quote Link to post Share on other sites
Genfon Posted September 6, 2012 Author Report Share Posted September 6, 2012 Большое спасибо. Все сделал. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.