Viewing file: ce4b690a85e3a56579f9fd77c651abb23f162870.file.user-info.tpl.php (18.66 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2012-05-10 19:18:06 compiled from "user/templates/users/user-info.tpl" */ ?> <?php /*%%SmartyHeaderCode:5551993134fabea3e1fe8c8-62568827%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( 'ce4b690a85e3a56579f9fd77c651abb23f162870' => array ( 0 => 'user/templates/users/user-info.tpl', 1 => 1333008115, ), ), 'nocache_hash' => '5551993134fabea3e1fe8c8-62568827', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <?php $_smarty_tpl->tpl_vars["albums_list"] = new Smarty_variable(Photochapter::GetAlbumsOfUser($_smarty_tpl->getVariable('row')->value['user_id']), null, null);?> <?php if (!empty($_smarty_tpl->getVariable('row')->value)){?> <div class="user-info" style="overflow: hidden;"> <div class="avatar-block"> <?php if (file_exists("data/users/photos/x_".($_smarty_tpl->getVariable('row')->value['user_photo']))){?> <div class="avatar"><img src="/data/users/photos/x_<?php echo $_smarty_tpl->getVariable('row')->value['user_photo'];?> " /></div> <?php }else{ ?> <div class="avatar"><img src="/data/users/photos/x_question.jpg" /></div> <?php }?> <?php if (isset($_SESSION['user_id'])){?> <div class="admin-users-links"> <?php $_template = new Smarty_Internal_Template('admin-users-links.tpl', $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?> </div> <?php }?> </div> <div class="main"> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['Name'];?> </label> <div><?php echo $_smarty_tpl->getVariable('row')->value['user_name'];?> </div></div> <?php if (strlen(trim($_smarty_tpl->getVariable('row')->value['user_nick']))>0){?> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['Nick'];?> </label> <div><?php echo $_smarty_tpl->getVariable('row')->value['user_nick'];?> </div></div> <?php }?> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['Surname'];?> </label> <div><?php echo $_smarty_tpl->getVariable('row')->value['user_surname'];?> </div></div> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['BirthDate'];?> </label> <div><?php echo $_smarty_tpl->getVariable('row')->value['user_birth_day'];?> .<?php echo $_smarty_tpl->getVariable('row')->value['user_birth_month'];?> .<?php echo $_smarty_tpl->getVariable('row')->value['user_birth_year'];?> </div></div> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['Gender'];?> </label> <div style="text-transform: capitalize;"><?php echo $_smarty_tpl->getVariable('row')->value['user_sex_str'];?> </div></div> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['Country'];?> </label> <div><?php echo $_smarty_tpl->getVariable('this')->value->GetCountryName($_smarty_tpl->getVariable('row')->value['user_country'],$_smarty_tpl->getVariable('ulang')->value);?> </div></div> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['Region'];?> </label> <div><?php echo $_smarty_tpl->getVariable('this')->value->GetRegionName($_smarty_tpl->getVariable('row')->value['user_region'],$_smarty_tpl->getVariable('ulang')->value);?> </div></div> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['City'];?> </label> <div><?php echo $_smarty_tpl->getVariable('this')->value->GetCityName($_smarty_tpl->getVariable('row')->value['user_city'],$_smarty_tpl->getVariable('ulang')->value);?> </div></div> <?php if ($_smarty_tpl->getVariable('row')->value['user_marital_status']>0){?> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['Marital'];?> </label> <div><?php echo $_smarty_tpl->getVariable('UsersMaritalStatuses')->value[$_smarty_tpl->getVariable('row')->value['user_marital_status']];?> </div></div> <?php }?> <br /> <div class="user-city user-info-field"> <?php if ($_smarty_tpl->getVariable('row')->value['user_date_lastaccess']!="0000-00-00 00:00:00"){?> <?php if (!$_smarty_tpl->getVariable('row')->value['online']){?> <label><?php echo Gender($_smarty_tpl->getVariable('row')->value['user_sex'],$_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['Was']);?> </label><div> <?php echo GetUsefulDate($_smarty_tpl->getVariable('row')->value['user_date_lastaccess']);?> </div> <?php }else{ ?> <label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['OnlineStatus'];?> </label> <div> <span class="online"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['online'];?> </span></div> <?php }?> <?php }?> </div> <br /> <?php if (((strlen(trim($_smarty_tpl->getVariable('row')->value['user_mobile_phone']))>0))||((strlen(trim($_smarty_tpl->getVariable('row')->value['user_home_phone']))>0))||((strlen(trim($_smarty_tpl->getVariable('row')->value['user_email']))>0))||((strlen(trim($_smarty_tpl->getVariable('row')->value['user_icq']))>0))||((strlen(trim($_smarty_tpl->getVariable('row')->value['user_skype']))>0))||((strlen(trim($_smarty_tpl->getVariable('row')->value['user_vk']))>0))||((strlen(trim($_smarty_tpl->getVariable('row')->value['user_homepage']))>0))){?> <h4>Контактная информация</h4> <?php if ((strlen(trim($_smarty_tpl->getVariable('row')->value['user_mobile_phone']))>0)){?> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['UsersContactsMobile'];?> :</label><div><?php echo $_smarty_tpl->getVariable('row')->value['user_mobile_phone'];?> </div></div> <?php }?> <?php if ((strlen(trim($_smarty_tpl->getVariable('row')->value['user_home_phone']))>0)){?> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['UsersContactsHomePhone'];?> :</label><div><?php echo $_smarty_tpl->getVariable('row')->value['user_home_phone'];?> </div></div> <?php }?> <?php if ((strlen(trim($_smarty_tpl->getVariable('row')->value['user_email']))>0)){?> <div class="user-info-field"><label>Email:</label><div><?php echo $_smarty_tpl->getVariable('row')->value['user_email'];?> </div></div> <?php }?> <?php if ((strlen(trim($_smarty_tpl->getVariable('row')->value['user_icq']))>0)){?> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['UsersContactsICQ'];?> :</label><div><?php echo $_smarty_tpl->getVariable('row')->value['user_icq'];?> </div></div> <?php }?> <?php if ((strlen(trim($_smarty_tpl->getVariable('row')->value['user_skype']))>0)){?> <div class="user-info-field"><label>Skype:</label><div><?php echo $_smarty_tpl->getVariable('row')->value['user_skype'];?> </div></div> <?php }?> <?php if ((strlen(trim($_smarty_tpl->getVariable('row')->value['user_vk']))>0)){?> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['VK'];?> </label><div><a href="<?php echo $_smarty_tpl->getVariable('row')->value['user_vk'];?> " target="_blank"><?php echo $_smarty_tpl->getVariable('row')->value['user_vk'];?> </a></div></div> <?php }?> <?php if ((strlen(trim($_smarty_tpl->getVariable('row')->value['user_homepage']))>0)){?> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['UsersContactsHomePage'];?> :</label><div><a href="<?php echo $_smarty_tpl->getVariable('row')->value['user_homepage'];?> " target="_blank"><?php echo $_smarty_tpl->getVariable('row')->value['user_homepage'];?> </a></div></div> <?php }?> <br /> <?php }?>
<?php if (strlen(trim($_smarty_tpl->getVariable('row')->value['user_education_institution']['sad']))+strlen(trim($_smarty_tpl->getVariable('row')->value['user_education_institution']['school']))+strlen(trim($_smarty_tpl->getVariable('row')->value['user_education_institution']['liceum']))+strlen(trim($_smarty_tpl->getVariable('row')->value['user_education_institution']['gimnaziya']))+strlen(trim($_smarty_tpl->getVariable('row')->value['user_education_institution']['kollegium']))+strlen(trim($_smarty_tpl->getVariable('row')->value['user_education_institution']['ptu']))+strlen(trim($_smarty_tpl->getVariable('row')->value['user_education_institution']['technikum']))+strlen(trim($_smarty_tpl->getVariable('row')->value['user_education_institution']['college']))+strlen(trim($_smarty_tpl->getVariable('row')->value['user_education_institution']['vuz']))>0){?> <h4>Образование</h4> <?php if (strlen(trim($_smarty_tpl->getVariable('row')->value['user_education_institution']['sad']))>0){?> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['Garden'];?> </label> <div><?php echo $_smarty_tpl->getVariable('row')->value['user_education_institution']['sad'];?> </div></div> <?php }?> <?php if (strlen(trim($_smarty_tpl->getVariable('row')->value['user_education_institution']['school']))>0){?> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['School'];?> </label> <div><?php echo $_smarty_tpl->getVariable('row')->value['user_education_institution']['school'];?> </div></div> <?php }?> <?php if (strlen(trim($_smarty_tpl->getVariable('row')->value['user_education_institution']['liceum']))>0){?> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['Liceum'];?> </label> <div><?php echo $_smarty_tpl->getVariable('row')->value['user_education_institution']['liceum'];?> </div></div> <?php }?> <?php if (strlen(trim($_smarty_tpl->getVariable('row')->value['user_education_institution']['gimnaziya']))>0){?> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['Gimnazium'];?> </label> <div><?php echo $_smarty_tpl->getVariable('row')->value['user_education_institution']['gimnaziya'];?> </div></div> <?php }?> <?php if (strlen(trim($_smarty_tpl->getVariable('row')->value['user_education_institution']['kollegium']))>0){?> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['Collegium'];?> </label> <div><?php echo $_smarty_tpl->getVariable('row')->value['user_education_institution']['kollegium'];?> </div></div> <?php }?> <?php if (strlen(trim($_smarty_tpl->getVariable('row')->value['user_education_institution']['ptu']))>0){?> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['PTU'];?> </label> <div><?php echo $_smarty_tpl->getVariable('row')->value['user_education_institution']['ptu'];?> </div></div> <?php }?> <?php if (strlen(trim($_smarty_tpl->getVariable('row')->value['user_education_institution']['technikum']))>0){?> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['Tehnikum'];?> </label> <div><?php echo $_smarty_tpl->getVariable('row')->value['user_education_institution']['technikum'];?> </div></div> <?php }?> <?php if (strlen(trim($_smarty_tpl->getVariable('row')->value['user_education_institution']['college']))>0){?> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['College'];?> </label> <div><?php echo $_smarty_tpl->getVariable('row')->value['user_education_institution']['college'];?> </div></div> <?php }?> <?php if (strlen(trim($_smarty_tpl->getVariable('row')->value['user_education_institution']['vuz']))>0){?> <div class="user-info-field"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['VUZ'];?> </label> <div><?php echo $_smarty_tpl->getVariable('row')->value['user_education_institution']['vuz'];?> </div></div> <?php }?> <br /> <?php }?>
<?php if (strlen(trim($_smarty_tpl->getVariable('row')->value['user_interests']))+strlen(trim($_smarty_tpl->getVariable('row')->value['user_trainer_work']))>0){?> <h4><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['PersonalInfo'];?> </h4> <?php if (strlen(trim($_smarty_tpl->getVariable('row')->value['user_trainer_work']))>0){?> <div class="user-info-field" style="text-align: justify;"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_users']['AboutMe'];?> </label><div><?php echo nl2br($_smarty_tpl->getVariable('row')->value['user_trainer_work']);?> </div></div> <?php }?> <?php if (strlen(trim($_smarty_tpl->getVariable('row')->value['user_interests']))>0){?> <div class="user-info-field" style="text-align: justify;"><label><?php echo $_smarty_tpl->getVariable('ULANG')->value['UsersInterests'];?> :</label><div><?php echo nl2br($_smarty_tpl->getVariable('row')->value['user_interests']);?> </div></div> <?php }?> <?php }?> <br /> <?php if (Photochapter::GetCountOfPhotosFromUser($_smarty_tpl->getVariable('row')->value['user_id'])>0){?> <h4>Загруженные фотографии:</h4> <div class="user-info-field" style="text-align: justify;"><label>Общее количество:</label><div><a href="/photochapter/0?user_id=<?php echo $_smarty_tpl->getVariable('row')->value['user_id'];?> "><?php echo Photochapter::GetCountOfPhotosFromUser($_smarty_tpl->getVariable('row')->value['user_id']);?> </a></div></div> <div class="user-info-field" style="text-align: justify;"><label>Альбомы:</label><div> <ul style="list-style: none; padding:0;margin:0;"> <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']); $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i'; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('albums_list')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = ((int)+1) == 0 ? 1 : (int)+1; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start']+1)/abs($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max']); if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0) $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false; } else $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):
for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++): $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1); $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']); ?> <li><a href="/photochapter/<?php echo $_smarty_tpl->getVariable('albums_list')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['album_id'];?> ?user_id=<?php echo $_smarty_tpl->getVariable('row')->value['user_id'];?> " target="_blank"><?php echo $_smarty_tpl->getVariable('albums_list')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]["album_title_".($_smarty_tpl->getVariable('ulang')->value)];?> (<?php echo $_smarty_tpl->getVariable('albums_list')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['count'];?> <?php echo AssumeNumber($_smarty_tpl->getVariable('albums_list')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['count'],$_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['photos']);?> )</a></li> <?php endfor; endif; ?> </ul> </div></div> <?php }?> </div> </div> <div id="dialog"></div> <?php }else{ ?> <div style="text-align: center; padding: 200px 0; font-size:16px;"> Страница удалена, либо еще не создана. </div> <?php }?>
|