tpl
{if $users_cfg.sw_photo} <span class="my_photos"> <a href="/users/{$id}/photoalbum.html">{$LANG.USERMENU_PHOTOS}</a> </span> {/if}
как правельно прописать Из tpl в php
{if $users_cfg.sw_photo} <span class="my_photos"> <a href="/users/{$id}/photoalbum.html">{$LANG.USERMENU_PHOTOS}</a> </span> {/if}
<?PHP if ($users_cfg['sw_photo']) { echo "<span class='my_photos'> <a href='/users/$id/photoalbum.html'>{$LANG.USERMENU_PHOTOS}</a> </span>"; } ?>
<?PHP if ($users_cfg['sw_photo']) { echo '<span class="my_photos"> <a href="/users/'.$id.'/photoalbum.html">'.$LANG.USERMENU_PHOTOS.'</a> </span>'; } ?>
<?PHP if ($users_cfg['sw_photo']) {?> <span class="my_photos"> <a href="/users/<? echo $id; ?>/photoalbum.html"><? echo $LANG.USERMENU_PHOTOS; ?></a> </span> <?php }?>
<?PHP echo '<a href="/users/'.$id.'/photoalbum.html">';?><?php echo $_LANG['FOTO'];?></a>
<script type="text/javascript"> /**********************************************/ /*$(document).ready(function(){ $("li").mouseover(function(){ $(this).find("div").slideUp(20000) }) $("li").mouseout(function(){ $(this).find("div").slideDown(20000) }) })*/ var timeout = 500; var closetimer = 0; var ddmenuitem = 0; // open hidden layer function mopen(id) { // cancel close timer mcancelclosetime(); // close old layer if(ddmenuitem) ddmenuitem.style.visibility = 'hidden'; // get new layer and show it ddmenuitem = document.getElementById(id); ddmenuitem.style.visibility = 'visible'; } // close showed layer function mclose() { if(ddmenuitem) ddmenuitem.style.visibility = 'hidden'; } // go close timer function mclosetime() { closetimer = window.setTimeout(mclose, timeout); } // cancel close timer function mcancelclosetime() { if(closetimer) { window.clearTimeout(closetimer); closetimer = null; } } // close layer when click-out document.onclick = mclose; // --> </script> </head> <body> <?php if ($inConf->siteoff && $inUser->is_admin) { ?> <div style="margin:4px; padding:5px; border:solid 1px red; background:#FFF; position: fixed;opacity: 0.8; z-index:999"><?php echo $_LANG['SITE_IS_DISABLE']; ?></div> <?php } ?> <div id="wrapper"> <div id="header"> <div class="container_12"> <div class="grid_3"> <ul id="sddm"> <li><a href="/" onmouseover="mopen('m1')" onmouseout="mclosetime()"><img src="/templates/<?php echo TEMPLATE; ?>/images/logo.png" style="margin-left:-410px" alt="BIZIM-DIN" /></a> <div id="m1" onmouseover="mcancelclosetime()" onmouseout="mclosetime()"> <?php if ($inUser->is_admin) { ?> <a href="/admin" target="_blank"><?php echo $_LANG['CP'];?></a> <?php } ?> <?php if ($users_cfg.sw_photo) {?> <a href="/users/<?php echo ['$id'];?>/photoalbum.html"><?php echo $_LANG['FOTO'];?></a> <?php } ?> <a href="#">JavaScript DropDown</a> <a href="#">DropDown Menu</a> <a href="/logout"><?php echo $_LANG['EXIT'];?></a> </div> </li> </ul>
<?php if ($users_cfg.sw_photo) {?> <a href="/users/<?php echo ['$id'];?>/photoalbum.html"><?php echo $_LANG['FOTO'];?></a> <?php } ?>
Мы не можем увидеть ваш сайт на денвере.Итог newin/users/Array/photoalbum.html страница не найдена
ПОМОГЛО БОЛЬШОЕ ВАМ СПАСИБО!!!<?php echo $inUser->id;?>