The " STEEM WATCHER " Detectives Reporting Portal -- Development on Add Reports -- 15/12/2022
Hello everyone!
How are you all? I hope my friends will be happy and well. by the grace of God, I am also well. Today I am here with new development of SW portal. In the last post SW portal, i have shared the complete introduction of portal that how it will work and what are the benefit of it.
Today i will share the development of add reports and discuss the backend working behavior of it. first of all, i will share the look of add report farm. then i will discuss on it. The frontend is based on HTML, CSS and JavaScript but in the backend, all development is preforming on PHP and SQL language.
Four things are mandatory to add in the report. These are ID, Post Link, Caught By, Plagiarism Type but Source link is also necessary to add in the report but in the case of reward farming. you can skip to add it. that is way, it is not mandatory to add it.
When we will try to add the report without filling the mandatory text boxes, then an error message will display on screen as you can see in the below screenshot.
As I discussed above, the source link text box is not mandatory to fill in the reward farming report case. I will apply the condition on it that we can just skip the source link in only reward farming report case because reward farming can be done on the base reposting content. so, when we skip to add the source link the report will be added as you can see in the below screenshot.
Plagiarism type section is based on drop-down menu. when we click on it a drop-down menu list will appear from where you can select the plagiarism type. as you can see in the below screenshot.
when the report enters then confirmation message will show on the screen.
PHP Code for data verification.
if (isset($_REQUEST['submit']) and $_REQUEST['submit'] != '') {
extract($_REQUEST);
if ($user_id == '') {
header('Location:' . $_SERVER['PHP_SELF'] . '?msg=uid');
exit;
}
if ($post_link == '') {
header('Location:' . $_SERVER['PHP_SELF'] . '?msg=pl');
exit;
}
if ($caught_by == '') {
header('Location:' . $_SERVER['PHP_SELF'] . '?msg=cb');
exit;
}
if ($plag_type == '') {
header('Location:' . $_SERVER['PHP_SELF'] . '?msg=pt');
exit;
}
if (isset($_REQUEST['msg']) and $_REQUEST['msg'] == 'uid') {
echo '<div class=" mt-4 alert alert-danger alert-dismissible fade show" role="alert">User ID is required!.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>';
}
if (isset($_REQUEST['msg']) and $_REQUEST['msg'] == 'pl') {
echo '<div class="alert alert-danger alert-dismissible fade show" role="alert">Post Link is required!.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>';
}
if (isset($_REQUEST['msg']) and $_REQUEST['msg'] == 'cb') {
echo '<div class=" mt-4 alert alert-danger alert-dismissible fade show" role="alert">Caught By is required!.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>';
}
if (isset($_REQUEST['msg']) and $_REQUEST['msg'] == 'pt') {
echo '<div class=" mt-4 alert alert-danger alert-dismissible fade show" role="alert">Plagiarism Type is required!.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>';
}
?>
if you have any suggestion then must share with us in the comment section. we will focus on it and try to apply it if it will suitable.
Thanks for giving your precious time to my post.
Follow | Upvote | Share | Comments
Special Thanks to
Cc: @rme
Cc: @hungry-griffin
Cc: @blacks
Follow me on Instagram.
Instagram
🆃🅷🅰🅽🅺 🆈🅾🆄
Congratulations, your post has been upvoted by @dsc-r2cornell, which is the curating account for @R2cornell's Discord Community.