recovery - 当我点击我的个人资料以在我返回时重新显示它们时如何恢复我随机发布的数据 php
问题描述
您好,我在我的网站上随机发布了用户,但是当我单击用户查看他的个人资料时,我希望在返回时会求助于相同的用户。请帮我
解决方案
<?php if (is_logged_in()): ?>
<?= $verify_email->active == '0' ? '<div class="introduction"><span>Confirm your email : <b>'.$verify_email->email.'</b>, Otherwise your account will be disabled after 30 days.</span></div>' : '' ?>
<?php endif ?>
<?php include_once 'partials/searching.php'; ?>
<!-- CATEGORIES_INFOS -->
<div class="header_bar_djaspora" style="margin-top: 10px;">
Members connected for meeting
</div>
<div class="introduction">
<div id="standardProfileViewProfile">
<?php if (is_logged_in()): ?>
<?php if ($data->display_user_fetch == '1'): ?>
<u><a href="<?= WEBSITE_NAME_URL ?>/?action=standard_profile">Use standard profile view</a></u>
<?php else: ?>
<u><a href="<?= WEBSITE_NAME_URL ?>">View profiles by thumbnail</a></u>
<?php endif ?>
<?php else: ?>
<?php if ($action): ?>
<u><a href="<?= WEBSITE_NAME_URL ?>">View profiles by thumbnail</a></u>
<?php else: ?>
<u><a href="<?= WEBSITE_NAME_URL ?>/?action=standard_profile">Use standard profile view</a></u>
<?php endif ?>
<?php endif ?>
</div>
</div>
<?php if (is_logged_in()): ?>
<?php if ($data->display_user_fetch == '1'): ?>
<div class="container">
<ul class="usersFetch">
<center>
<?php if (count($listAllUsers) != 0): ?>
<?php foreach ($listAllUsers as $listAllUser): ?>
<li style="text-align:center;">
<div class="userFetchBloc">
<a href="<?= WEBSITE_NAME_URL ?>/profile/<?= strtolower($listAllUser->username) ?>">
<img src="/<?= $listAllUser->img_original ?>" class="img_user_fetch_bloc" style="width: 100%;" alt="Meeting <?= $listAllUser->username ?> On <?= WEBSITE_NAME ?>">
</a>
<div class="fetchInfosUserStandardProfile">
<span class="fetchInfosUserText">
<span class="infosUserText2"><?= $listAllUser->username ?>, </span><?= date('Y') - $listAllUser->years ?> old <br>
<?= $listAllUser->city ?><span class="infosUserText">, <?= $listAllUser->regionOuProvince ?></span>
<span class="infosUserText2"><br> <?= NbrePictures($listAllUser->id) ?> photo<?= NbrePictures($listAllUser->id) > 1 ? 's' : ''; ?> </span>
</span>
</div>
</div>
<div class="all_necessary_infos">
<div>
<b><?= $listAllUser->titleOuSlogan ?></b>
</div>
<em><?= $listAllUser->civil_status ?> <?= $listAllUser->sex ?> of <?= date('Y') - $listAllUser->years ?> years looking for <?= verify_looking_for($listAllUser->id, $listAllUser->sex) ?> for <?= $listAllUser->orientation ?></em>
<div class="wideDiv">
<?= $listAllUser->about ?>
</div>
<strong>Meet</strong> <a style="color: #be0210;" href="<?= WEBSITE_NAME_URL ?>/meet-<?= lcfirst($listAllUser->sex) ?>-<?= suppr_accents($listAllUser->city) ?>" style="color:#be0210;"><?= $listAllUser->city ?></a>,
<a style="color: #be0210;" href="<?= WEBSITE_NAME_URL ?>/meet-<?= lcfirst($listAllUser->sex) ?>-<?= suppr_accents($listAllUser->regionOuProvince) ?>" style="color:#be0210;"><?= $listAllUser->regionOuProvince ?></a>,
<a style="color: #be0210;" href="<?= WEBSITE_NAME_URL ?>/meet-<?= lcfirst($listAllUser->sex) ?>-<?= lcfirst($listAllUser->country) ?>" style="color:#be0210;"><?= $listAllUser->country ?></a>
</div>
</li>
<?php endforeach ?>
<?php else: ?>
<p style="text-align: center;">No users on <?= WEBSITE_NAME ?></p>
<?php endif ?>
</center>
</ul>
<?php if (count($listAllUsers) != 0): ?>
<div id="pagination" style="position: relative; top: 10px; bottom: 5px;"><?= $pagination ?></div>
<?php endif ?>
</div>
<?php else: ?>
<?php if (count($listAllUsers) != 0): ?>
<?php foreach ($listAllUsers as $key => $listAllUser): ?>
<div id="user_container_testimony">
<div class="userTestimony">
<span class="img_message_testimony">
<a href="<?= WEBSITE_NAME_URL ?>/profile/<?= strtolower($listAllUser->username) ?>">
<img src="/<?= $listAllUser->img_original ?>" class="img_testimony" alt="This image shows <?= $listAllUser->username ?> meeting on <?= WEBSITE_NAME ?>.">
</a>
</span>
<div class="fetchInfosUserStandardProfileStyle">
<span class="fetchInfosUserText">
<span class="infosUserText2"><?= $listAllUser->username ?>, </span><?= date('Y') - $listAllUser->years ?> old <br>
<?= $listAllUser->city ?><span class="infosUserText">, <?= $listAllUser->regionOuProvince ?></span>
<span class="infosUserText2"><br> <?= NbrePictures($listAllUser->id) ?> photo<?= (NbrePictures($listAllUser->id) > 1) ? 's' : '' ?> </span>
</span>
</div>
<div class="allTestimony">
<div class="titleTestimony">
<strong><u><?= $listAllUser->titleOuSlogan ?></u></strong>
</div>
<div class="subtitleTestimony">
<span class="describeSubtitleTestimony">
<u><a href="<?= WEBSITE_NAME_URL ?>/profile/<?= strtolower($listAllUser->username) ?>" style="color: #be0210;"><?= $listAllUser->username ?></a></u> <?= $listAllUser->civil_status ?> <?= $listAllUser->sex ?> of <?= date('Y') - $listAllUser->years ?> years looking for <?= verify_looking_for($listAllUser->id, $listAllUser->sex) ?> for <?= $listAllUser->orientation ?>
</span>
</div>
<div class="testimony">
<span class="describeTestimony">
<?= mb_strlen($listAllUser->about) > 350 ? substr($listAllUser->about, 0, 350).' <a href="'.WEBSITE_NAME_URL.'/profile/'.strtolower($listAllUser->username).'" style="color: #be0210;">More Read...</a>' : $listAllUser->about ?>
</span>
</div>
</div>
<div class="meetCityRegion">
<strong>Meet</strong> <u style="color: #be0210;"><a href="<?= WEBSITE_NAME_URL ?>/meet-<?= lcfirst($listAllUser->sex) ?>-<?= suppr_accents($listAllUser->city) ?>" style="color:#be0210;"><?= $listAllUser->city ?></a></u>,
<u style="color: #be0210;"><a href="<?= WEBSITE_NAME_URL ?>/meet-<?= lcfirst($listAllUser->sex) ?>-<?= suppr_accents($listAllUser->regionOuProvince) ?>" style="color:#be0210;"><?= $listAllUser->regionOuProvince ?></a></u>,
<u style="color: #be0210;"><a href="<?= WEBSITE_NAME_URL ?>/meet-<?= lcfirst($listAllUser->sex) ?>-<?= lcfirst($listAllUser->country) ?>" style="color:#be0210;"><?= $listAllUser->country ?></a></u>
</div>
</div>
</div>
<?php endforeach ?>
<div id="pagination" style="position: relative; top: 10px; bottom: 5px;"><?= $pagination ?></div>
<?php else: ?>
<p style="text-align: center;">You have not traded anything with this user yet.</p>
<?php endif ?>
<?php endif ?>
<?php else: ?>
<?php if (!$action): ?>
<div class="container">
<ul class="usersFetch">
<center>
<?php if (count($listAllUsers) != 0): ?>
<?php foreach ($listAllUsers as $listAllUser): ?>
<li style="text-align:center;">
<div class="userFetchBloc">
<a href="<?= WEBSITE_NAME_URL ?>/profile/<?= strtolower($listAllUser->username) ?>">
<img src="/<?= $listAllUser->img_original ?>" class="img_user_fetch_bloc" style="width: 100%;" alt="Meeting <?= $listAllUser->username ?> On <?= WEBSITE_NAME ?>">
</a>
<div class="fetchInfosUserStandardProfile">
<span class="fetchInfosUserText">
<span class="infosUserText2"><?= $listAllUser->username ?>, </span><?= date('Y') - $listAllUser->years ?> old <br>
<?= $listAllUser->city ?><span class="infosUserText">, <?= $listAllUser->regionOuProvince ?></span>
<span class="infosUserText2"><br> <?= NbrePictures($listAllUser->id) ?> photo<?= (NbrePictures($listAllUser->id) > 1) ? 's' : '' ?> </span>
</span>
</div>
</div>
<div class="all_necessary_infos">
<div>
<b><?= $listAllUser->titleOuSlogan ?></b>
</div>
<em><?= $listAllUser->civil_status ?> <?= $listAllUser->sex ?> of <?= date('Y') - $listAllUser->years ?> years looking for <?= verify_looking_for($listAllUser->id, $listAllUser->sex) ?> for <?= $listAllUser->orientation ?></em>
<div class="wideDiv">
<?= $listAllUser->about ?>
</div>
<strong>Meet</strong> <a style="color: #be0210;" href="<?= WEBSITE_NAME_URL ?>/meet-<?= lcfirst($listAllUser->sex) ?>-<?= suppr_accents($listAllUser->city) ?>" style="color:#be0210;"><?= $listAllUser->city ?></a>,
<a style="color: #be0210;" href="<?= WEBSITE_NAME_URL ?>/meet-<?= lcfirst($listAllUser->sex) ?>-<?= suppr_accents($listAllUser->regionOuProvince) ?>" style="color:#be0210;"><?= $listAllUser->regionOuProvince ?></a>,
<a style="color: #be0210;" href="<?= WEBSITE_NAME_URL ?>/meet-<?= lcfirst($listAllUser->sex) ?>-<?= lcfirst($listAllUser->country) ?>" style="color:#be0210;"><?= $listAllUser->country ?></a>
</div>
</li>
<?php endforeach ?>
<?php else: ?>
<p style="text-align: center;">No users on <?= WEBSITE_NAME ?></p>
<?php endif ?>
</center>
</ul>
<?php if (count($listAllUsers) != 0): ?>
<div id="pagination" style="position: relative; top: 10px; bottom: 5px;"><?= $pagination ?></div>
<?php endif ?>
</div>
<?php else: ?>
<?php if (count($listAllUsers) != 0): ?>
<?php foreach ($listAllUsers as $listAllUser):?>
<div id="user_container_testimony">
<div class="userTestimony">
<span class="img_message_testimony">
<a href="<?= WEBSITE_NAME_URL ?>/profile/<?= strtolower($listAllUser->username) ?>">
<img src="/<?= $listAllUser->img_original ?>" class="img_testimony" alt="This image shows <?= $listAllUser->username ?> meeting on <?= WEBSITE_NAME ?>.">
</a>
</span>
<div class="fetchInfosUserStandardProfileStyle">
<span class="fetchInfosUserText">
<span class="infosUserText2"><?= $listAllUser->username ?>, </span><?= date('Y') - $listAllUser->years ?> old <br>
<?= $listAllUser->city ?><span class="infosUserText">, <?= $listAllUser->regionOuProvince ?></span>
<span class="infosUserText2"><br> <?= NbrePictures($listAllUser->id) ?> photo<?= (NbrePictures($listAllUser->id) > 1) ? 's' : '' ?> </span>
</span>
</div>
<div class="allTestimony">
<div class="titleTestimony">
<strong><u><?= $listAllUser->titleOuSlogan ?></u></strong>
</div>
<div class="subtitleTestimony">
<span class="describeSubtitleTestimony">
<u><a href="<?= WEBSITE_NAME_URL ?>/profile/<?= strtolower($listAllUser->username) ?>" style="color: #be0210;"><?= $listAllUser->username ?></a></u> <?= $listAllUser->civil_status ?> <?= $listAllUser->sex ?> of <?= date('Y') - $listAllUser->years ?> years looking for <?= verify_looking_for($listAllUser->id, $listAllUser->sex) ?> for <?= $listAllUser->orientation ?>
</span>
</div>
<div class="testimony">
<span class="describeTestimony">
<?= mb_strlen($listAllUser->about) > 350 ? substr($listAllUser->about, 0, 350).' <a href="'.WEBSITE_NAME_URL.'/profile/'.strtolower($listAllUser->username).'" style="color: #be0210;">More Read...</a>' : $listAllUser->about ?>
</span>
</div>
</div>
<div class="meetCityRegion">
<strong>Meet</strong> <u style="color: #be0210;"><a href="<?= WEBSITE_NAME_URL ?>/meet-<?= lcfirst($listAllUser->sex) ?>-<?= suppr_accents($listAllUser->city) ?>" style="color:#be0210;"><?= $listAllUser->city ?></a></u>,
<u style="color: #be0210;"><a href="<?= WEBSITE_NAME_URL ?>/meet-<?= lcfirst($listAllUser->sex) ?>-<?= suppr_accents($listAllUser->regionOuProvince) ?>" style="color:#be0210;"><?= $listAllUser->regionOuProvince ?></a></u>,
<u style="color: #be0210;"><a href="<?= WEBSITE_NAME_URL ?>/meet-<?= lcfirst($listAllUser->sex) ?>-<?= lcfirst($listAllUser->country) ?>" style="color:#be0210;"><?= $listAllUser->country ?></a></u>
</div>
</div>
</div>
<?php endforeach ?>
<div id="pagination" style="position: relative; top: 10px; bottom: 5px;"><?= $pagination ?></div>
<?php else: ?>
<p style="text-align: center;">You have not traded anything with this user yet.</p>
<?php endif ?>
<?php endif ?>
<?php endif ?>
<script>
if ($('.introduction #alert_message').val()) {
$(".introduction span").css("display", "none")
}
</script>
<?php require_once 'partials/footer.php'; ?>
推荐阅读
- wordpress - Wordpress 将文件添加到 [wpdm_all_packages]
- django - 创建帐户后,Django用户无法登录,但管理员可以
- javascript - 如何从一组照片中创建一个 base64 数组
- c# - c# winforms clickonce分别下载不同的环境应用?
- c# - 在动态对象上设置属性的通用方法
- elasticsearch - 按未找到但该字段存在的现有字段搜索 Elasticsearch 文档
- javascript - Web OTP api 给出 DOMException:OTP 检索超时
- angular - 可观察的抽象类未触发,Angular 11 ts 4
- django-templates - 表格行中的下拉列表显示循环中的所有元素
- dart - 如何在 Dart 或 Flutter 中创建点函数