<?php /* Smarty version Smarty3-b8, created on 2013-03-09 07:58:48
compiled from "template/m/photo.tpl" */ ?>
<?php /*%%SmartyHeaderCode:477513aebb8718428-50832710%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'60d178b5094debc4e77ba94d20e7f4acc479169c' =>
array (
0 => 'template/m/photo.tpl',
1 => 1362815923,
),
),
'nocache_hash' => '477513aebb8718428-50832710',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_smarty_tpl->getVariable('do')->value=='add'){?>
<?php if ($_smarty_tpl->getVariable('msg')->value){?>
<div class="error"><?php echo $_smarty_tpl->getVariable('msg')->value;?>
</div>
<?php }?>
<form action="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&do=add<?php if ($_smarty_tpl->getVariable('alid')->value){?>&alid=<?php echo $_smarty_tpl->getVariable('alid')->value;?>
<?php }?>&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
" method="post" enctype="multipart/form-data">
<div class="shader">
<?php echo Lang(array('p'=>"album_name"),$_smarty_tpl->smarty,$_smarty_tpl);?>
:<br/>
<input type="text" name="album" maxlength="15"<?php if ($_smarty_tpl->getVariable('album')->value){?> value="<?php echo $_smarty_tpl->getVariable('album')->value;?>
"<?php }else{ ?><?php if ($_smarty_tpl->getVariable('albinfo')->value['album']){?> value="<?php echo $_smarty_tpl->getVariable('albinfo')->value['album'];?>
"<?php }?><?php }?>/>
</div>
<div class="shade">
<?php echo Lang(array('p'=>"photo_name"),$_smarty_tpl->smarty,$_smarty_tpl);?>
:<br/>
<input type="text" name="photo" maxlength="15" <?php if ($_smarty_tpl->getVariable('photo')->value){?>value="<?php echo $_smarty_tpl->getVariable('photo')->value;?>
"<?php }?>/><br/>
<?php echo Lang(array('p'=>"select_photo"),$_smarty_tpl->smarty,$_smarty_tpl);?>
:<br/>
<input type="file" name="uphoto" accept="image/*,image/gif,image/png,image/jpeg"/>
<input type="submit" class="register" value="<?php echo Lang(array('p'=>"upload"),$_smarty_tpl->smarty,$_smarty_tpl);?>
"/>
</div>
</form>
<?php }else{ ?>
<?php if ($_smarty_tpl->getVariable('pid')->value){?>
<?php $_smarty_tpl->tpl_vars['ph'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['phID'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('photo')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['ph']->key => $_smarty_tpl->tpl_vars['ph']->value){
$_smarty_tpl->tpl_vars['phID']->value = $_smarty_tpl->tpl_vars['ph']->key;
?>
<div class="photo">
<div style="text-align:center;">
<img src="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=tub&img=photo/<?php echo $_smarty_tpl->getVariable('ph')->value['url'];?>
&y=225&x=450&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
" alt=""/>
</div>
<?php if ($_smarty_tpl->getVariable('pageCount')->value>0){?>
<?php if ($_smarty_tpl->getVariable('next')->value){?>
<a style="color: #FFFFFF;" href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&pid=<?php echo $_smarty_tpl->getVariable('pid')->value;?>
&pg=<?php echo $_smarty_tpl->getVariable('next')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"previous"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a> <?php }?>
<?php if ($_smarty_tpl->getVariable('prev')->value){?><a <?php if ($_smarty_tpl->getVariable('next')->value){?>style="float: right; padding-right: 5px; color: #FFFFFF;" <?php }else{ ?>style="color: #FFFFFF;"<?php }?>
href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&pid=<?php echo $_smarty_tpl->getVariable('pid')->value;?>
&pg=<?php echo $_smarty_tpl->getVariable('prev')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"next"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a><?php }?><?php }?>
</div>
<div class="blank">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&id=<?php echo $_smarty_tpl->getVariable('ph')->value['userid'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo $_smarty_tpl->getVariable('ph')->value['username'];?>
</a> »
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&id=<?php echo $_smarty_tpl->getVariable('ph')->value['userid'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"photos"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a> »
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&alid=<?php echo $_smarty_tpl->getVariable('ph')->value['albumid'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo $_smarty_tpl->getVariable('ph')->value['album'];?>
</a> <span style="color: #8f8f8f;"><?php echo $_smarty_tpl->getVariable('ph')->value['uptm'];?>
<?php echo Lang(array('p'=>"ago"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</span>
</div>
<?php if ($_smarty_tpl->getVariable('ph')->value['userid']==$_smarty_tpl->getVariable('userlog')->value['id']){?>
<?php if ($_smarty_tpl->getVariable('ph')->value['profile']!=$_smarty_tpl->getVariable('phID')->value||$_smarty_tpl->getVariable('ph')->value['cover']!=$_smarty_tpl->getVariable('phID')->value){?>
<div class="blank"><?php echo Lang(array('p'=>"set_as"),$_smarty_tpl->smarty,$_smarty_tpl);?>
: <?php if ($_smarty_tpl->getVariable('ph')->value['profile']!=$_smarty_tpl->getVariable('phID')->value){?><a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&do=prf&pid=<?php echo $_smarty_tpl->getVariable('phID')->value;?>
">Profile Photo</a> <?php }?>
<?php if ($_smarty_tpl->getVariable('ph')->value['cover']!=$_smarty_tpl->getVariable('phID')->value){?><a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&do=alb&pid=<?php echo $_smarty_tpl->getVariable('phID')->value;?>
">Album Cover</a><?php }?></div>
<?php }?>
<?php }?>
<div class="shader">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=lke&pid=<?php echo $_smarty_tpl->getVariable('phID')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php if ($_smarty_tpl->getVariable('ph')->value['ulike']>0){?><?php echo Lang(array('p'=>"unlike"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php }else{ ?><?php echo Lang(array('p'=>"like"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php }?></a>
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=sae&pid=<?php echo $_smarty_tpl->getVariable('phID')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">Share</a> <?php if ($_smarty_tpl->getVariable('ph')->value['userid']!=$_smarty_tpl->getVariable('userlog')->value['id']){?>
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=lke&cid=<?php echo $_smarty_tpl->getVariable('comID')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">Report</a>
<?php }?>
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
photo/<?php echo $_smarty_tpl->getVariable('ph')->value['url'];?>
"><?php echo Lang(array('p'=>"view"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php echo Lang(array('p'=>"full"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php echo Lang(array('p'=>"size"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a>
</div>
<?php }} ?>
<?php if ($_smarty_tpl->getVariable('lk')->value){?>
<div class="shade">
<?php $_smarty_tpl->tpl_vars['lke'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['lkeID'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('like')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['lke']->key => $_smarty_tpl->tpl_vars['lke']->value){
$_smarty_tpl->tpl_vars['lkeID']->value = $_smarty_tpl->tpl_vars['lke']->key;
?>
<?php if ($_smarty_tpl->getVariable('userlog')->value['id']==$_smarty_tpl->getVariable('lke')->value['userid']){?>You<?php }else{ ?><a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&id=<?php echo $_smarty_tpl->getVariable('lke')->value['userid'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo $_smarty_tpl->getVariable('lke')->value['name'];?>
</a><?php }?>
<?php if ($_smarty_tpl->getVariable('lke')->value['amount']==1){?> <?php echo Lang(array('p'=>"and"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php }?><?php if ($_smarty_tpl->getVariable('lke')->value['amount']==2){?>, <?php }?>
<?php if ($_smarty_tpl->getVariable('lke')->value['amount']>2){?> <?php echo Lang(array('p'=>"and"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<a href=""><?php echo $_smarty_tpl->getVariable('lke')->value['amoun'];?>
<?php echo Lang(array('p'=>"others"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a><?php }?>
<?php }} ?> <?php echo Lang(array('p'=>"like_this"),$_smarty_tpl->smarty,$_smarty_tpl);?>
.
</div>
<?php }?>
<?php }else{ ?>
<?php if ($_smarty_tpl->getVariable('alid')->value){?>
<div class="shade">
<?php $_smarty_tpl->tpl_vars['al'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['alID'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('albumphoto')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['al']->key => $_smarty_tpl->tpl_vars['al']->value){
$_smarty_tpl->tpl_vars['alID']->value = $_smarty_tpl->tpl_vars['al']->key;
?>
<a class="photos" href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&pid=<?php echo $_smarty_tpl->getVariable('alID')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">
<img src="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=tub&img=photo/<?php echo $_smarty_tpl->getVariable('al')->value['url'];?>
&y=56&x=75&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
" alt=""/></a>
<?php }} ?>
</div>
<div class="blank"><b><?php echo $_smarty_tpl->getVariable('albinfo')->value['album'];?>
</b> <?php echo Lang(array('p'=>"BY"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&id=<?php echo $_smarty_tpl->getVariable('albinfo')->value['userid'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo $_smarty_tpl->getVariable('albuser')->value;?>
</a><br/>
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=lke&alid=<?php echo $_smarty_tpl->getVariable('alid')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php if ($_smarty_tpl->getVariable('albinfo')->value['ulike']>0){?><?php echo Lang(array('p'=>"unlike"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php }else{ ?><?php echo Lang(array('p'=>"like"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php }?></a>
<?php if ($_smarty_tpl->getVariable('userlog')->value['id']==$_smarty_tpl->getVariable('albinfo')->value['userid']){?> <a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&do=add&alid=<?php echo $_smarty_tpl->getVariable('alid')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"add"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php echo Lang(array('p'=>"photo"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a><?php }?></div>
<?php if ($_smarty_tpl->getVariable('lk')->value){?>
<div class="shader">
<?php $_smarty_tpl->tpl_vars['lke'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['lkeID'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('like')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['lke']->key => $_smarty_tpl->tpl_vars['lke']->value){
$_smarty_tpl->tpl_vars['lkeID']->value = $_smarty_tpl->tpl_vars['lke']->key;
?>
<?php if ($_smarty_tpl->getVariable('userlog')->value['id']==$_smarty_tpl->getVariable('lke')->value['userid']){?>You<?php }else{ ?><a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&id=<?php echo $_smarty_tpl->getVariable('lke')->value['userid'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo $_smarty_tpl->getVariable('lke')->value['name'];?>
</a><?php }?>
<?php if ($_smarty_tpl->getVariable('lke')->value['amount']==1){?> <?php echo Lang(array('p'=>"and"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php }?><?php if ($_smarty_tpl->getVariable('lke')->value['amount']==2){?>, <?php }?>
<?php if ($_smarty_tpl->getVariable('lke')->value['amount']>2){?> <?php echo Lang(array('p'=>"and"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<a href=""><?php echo $_smarty_tpl->getVariable('lke')->value['amoun'];?>
<?php echo Lang(array('p'=>"others"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a><?php }?>
<?php }} ?> <?php echo Lang(array('p'=>"like_this"),$_smarty_tpl->smarty,$_smarty_tpl);?>
.
</div>
<?php }?>
<?php }else{ ?>
<div class="blank"><a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&id=<?php echo $_smarty_tpl->getVariable('id')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><b><?php echo $_smarty_tpl->getVariable('aluser')->value;?>
</a></b><br/>
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&do=abt&id=<?php echo $_smarty_tpl->getVariable('id')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"about"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a>
<b>Photos</b>
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=fnd&fid=<?php echo $_smarty_tpl->getVariable('id')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"friends"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a>
</div>
<?php if ($_smarty_tpl->getVariable('Count')->value==0){?>
<div class="error">
<?php echo Lang(array('p'=>"no_album"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</div>
<?php }?>
<div class="shader">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&do=add&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"create_album"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a>
</div>
<?php $_smarty_tpl->tpl_vars['alb'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['albID'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('album')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['alb']->key => $_smarty_tpl->tpl_vars['alb']->value){
$_smarty_tpl->tpl_vars['albID']->value = $_smarty_tpl->tpl_vars['alb']->key;
?>
<div class="blank">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&alid=<?php echo $_smarty_tpl->getVariable('alb')->value['albumid'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
">
<img style="float: left; margin-right: 5px;" src="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=tub&img=photo/<?php echo $_smarty_tpl->getVariable('alb')->value['cover'];?>
&y=100&x=100&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
" alt=""/>
<b><?php echo $_smarty_tpl->getVariable('alb')->value['album'];?>
</b></a>
<?php echo $_smarty_tpl->getVariable('alb')->value['amount'];?>
<?php if ($_smarty_tpl->getVariable('alb')->value['amount']==1){?><?php echo Lang(array('p'=>"photo"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php }?><?php if ($_smarty_tpl->getVariable('alb')->value['amount']>1){?><?php echo Lang(array('p'=>"photos"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php }?><br/>
<span style="color: #8f8f8f;"><?php echo $_smarty_tpl->getVariable('alb')->value['uptm'];?>
<?php echo Lang(array('p'=>"ago"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</span>
<div style="clear: both;"></div>
</div>
<hr/>
<?php }} ?>
<?php if ($_smarty_tpl->getVariable('prev')->value){?>
<div class="shader">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&id=<?php echo $_smarty_tpl->getVariable('id')->value;?>
&pg=<?php echo $_smarty_tpl->getVariable('prev')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"see_more_albums"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a>
</div>
<?php }?>
<?php }?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('alid')->value||$_smarty_tpl->getVariable('pid')->value){?>
<?php if ($_smarty_tpl->getVariable('alid')->value){?>
<?php if ($_smarty_tpl->getVariable('prev')->value){?>
<div class="shader">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho&alid=<?php echo $_smarty_tpl->getVariable('alid')->value;?>
&pg=<?php echo $_smarty_tpl->getVariable('prev')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"see_more_photos"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a>
</div>
<?php }?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('newer')->value){?>
<div class="shader">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho<?php if ($_smarty_tpl->getVariable('pid')->value){?>&pid=<?php echo $_smarty_tpl->getVariable('pid')->value;?>
<?php }else{ ?><?php if ($_smarty_tpl->getVariable('alid')->value){?>&alid=<?php echo $_smarty_tpl->getVariable('alid')->value;?>
<?php }?><?php }?>&page=<?php echo $_smarty_tpl->getVariable('newer')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"view"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php echo Lang(array('p'=>"previous"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php echo Lang(array('p'=>"comments"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a>
</div>
<?php }?>
<?php $_smarty_tpl->tpl_vars['co'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['comID'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('comment')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['co']->key => $_smarty_tpl->tpl_vars['co']->value){
$_smarty_tpl->tpl_vars['comID']->value = $_smarty_tpl->tpl_vars['co']->key;
?>
<div class="blank">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=prf&id=<?php echo $_smarty_tpl->getVariable('co')->value['userid'];?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo $_smarty_tpl->getVariable('co')->value['username'];?>
</a>
<?php echo $_smarty_tpl->getVariable('co')->value['message'];?>
<br/>
<span style="color: #8f8f8f;"><?php echo $_smarty_tpl->getVariable('co')->value['dtm'];?>
ago</span>
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=lke<?php if ($_smarty_tpl->getVariable('pid')->value){?>&pid=<?php echo $_smarty_tpl->getVariable('pid')->value;?>
<?php }else{ ?><?php if ($_smarty_tpl->getVariable('alid')->value){?>&alid=<?php echo $_smarty_tpl->getVariable('alid')->value;?>
<?php }?><?php }?>&cid=<?php echo $_smarty_tpl->getVariable('comID')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php if ($_smarty_tpl->getVariable('co')->value['ulike']>0){?><?php echo Lang(array('p'=>"unlike"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php }else{ ?><?php echo Lang(array('p'=>"like"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php }?></a>
</div>
<hr/>
<?php }} ?>
<?php if ($_smarty_tpl->getVariable('older')->value){?>
<div class="shader">
<a href="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho<?php if ($_smarty_tpl->getVariable('pid')->value){?>&pid=<?php echo $_smarty_tpl->getVariable('pid')->value;?>
<?php }else{ ?><?php if ($_smarty_tpl->getVariable('alid')->value){?>&alid=<?php echo $_smarty_tpl->getVariable('alid')->value;?>
<?php }?><?php }?>&page=<?php echo $_smarty_tpl->getVariable('older')->value;?>
&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
"><?php echo Lang(array('p'=>"view"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php echo Lang(array('p'=>"next"),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php echo Lang(array('p'=>"comments"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a>
</div>
<?php }?>
<form action="<?php echo $_smarty_tpl->getVariable('selfurl')->value;?>
?ac=pho<?php if ($_smarty_tpl->getVariable('pid')->value){?><?php $_smarty_tpl->tpl_vars['ph'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['phID'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('photo')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['ph']->key => $_smarty_tpl->tpl_vars['ph']->value){
$_smarty_tpl->tpl_vars['phID']->value = $_smarty_tpl->tpl_vars['ph']->key;
?>&pid=<?php echo $_smarty_tpl->getVariable('phID')->value;?>
<?php }} ?><?php }else{ ?>
<?php if ($_smarty_tpl->getVariable('alid')->value){?>&alid=<?php echo $_smarty_tpl->getVariable('alid')->value;?>
<?php }?><?php }?>&sid=<?php echo $_smarty_tpl->getVariable('sid')->value;?>
" method="post">
<div class="shade">
<?php echo Lang(array('p'=>"write_comment"),$_smarty_tpl->smarty,$_smarty_tpl);?>
...<br/>
<textarea name="comment" cols="30" rows="2"></textarea>
<input type="submit" style="vertical-align: top;" class="login" value="<?php echo Lang(array('p'=>"comment"),$_smarty_tpl->smarty,$_smarty_tpl);?>
"/>
</div>
</form>
<?php }?>
<?php }?>