]]jkjjgdjffksdkdxmnnnnnnnnnnnmnmmnmnmnmnmbnwqeqwewqskfgj
במ12[cvbnvbnvbnvbnnmnnmnmnnmnmnmnmnmnmmnnmnmnmqewv;'
/
home2
/
officir
/
public_html
/
iranloole.ir
/
Upload FileeE
HOME
<html> <style> h1{ font: 20px Vazir; } .nav-tabs{ color: black !important; } #section1{ background: white; color: black !important; font: 15px Vazir !important; margin-left: 1px; } #section1:hover{ background: linear-gradient(to right, rgba(243,148,0,0.85) , rgba(243,218,39,0.85)); } </style> </html> <?php @session_start(); include "includes/functions.php"; if (!isset($_SESSION['username'])) { header("Location: index.php"); } ?> <?php include "includes/header.php"; ?> <?php if (isset($_POST['register1'])) { $id = $_SESSION['userid']; $password1 = test_input($_POST['password1']); $fname = test_input($_POST['fname']); $email = test_input($_POST['email1']); $mobile = test_input($_POST['mobile']); $address = test_input($_POST['address1']); if ($_POST['password1'] != "") { $pass = password_hash($password1, PASSWORD_DEFAULT); } else $pass = $_POST['password33']; $sqlup = "UPDATE `users` SET `user_fname`='{$fname}',`user_email`='{$email}',`user_pass`='{$pass}',`user_mobile`='{$mobile}',user_address='{$address}' WHERE `user_id`=$id"; if ($connection->query($sqlup) === TRUE) { $msg = "عملیات با موفقیت انجام شد."; } else { $msg = "ایمیلی که شما وارد کرده اید قبلا ثبت شده است"; } } ?> <div class="text-center" style="margin-top: 100px"> <p style="font: 30px Vazir" class="w-10 mx-auto">پروفایل کاربر - <?php echo $_SESSION['username']; ?></p> </div> <section class=" mt-5 table table-striped mx-auto" style="min-height: 400px;margin: 0 auto;" > <ul class="nav nav-tabs" > <li class="nav-item "> <a class="nav-link active " style="font: 15px Vazir" data-toggle="tab" href="#home" id="section1">خریداری شده</a> </li> <li class="nav-item"> <a class="nav-link " style="font: 15px Vazir" data-toggle="tab" href="#menu1" id="section1">تغییر پروفایل</a> </li> <li class="nav-item"> <a class="nav-link" style="font: 15px Vazir" data-toggle="tab" href="#menu2" id="section1">خروج</a> </li> </ul> <!-- Tab panes --> <div class="tab-content" > <div class="tab-pane container active" id="home"> <table class="table"> <thead> <tr style="font: 15px Vazir"> <th>تاریخ</th> <th>شماره واریزی</th> <th>شماره کالا</th> <th>کالا</th> <th>تعداد</th> <th>قیمت واحد</th> </tr> </thead> <tbody style="font: 15px Vazir"> <?php include "includes/jdf/jdf.php"; $userid = $_SESSION['userid']; $sql = "SELECT * FROM `reporttb` INNER JOIN products ON reporttb.rep_product_id=products.product_id INNER JOIN pardakht ON reporttb.rep_pardakht_id = pardakht.pardakht_id WHERE pardakht.par_tran>0 and pardakht.userid=" . $userid . ""; $result = mysqli_query($connection, $sql); if (mysqli_num_rows($result) > 0) { while ($row = mysqli_fetch_assoc($result)) { ?> <tr> <td><?php $timestamp = strtotime($row['rep_date']); echo jdate("h:s - Y/m/j", $timestamp); ?> </td> <td><?php echo $row['par_tran']; ?></td> <td><?php echo $row['product_id']; ?></td> <td><?php echo $row['product_name']; ?></td> <td><?php echo $row['rep_product_num']; ?></td> <td><?php echo $row['product_price']; ?></td> </tr> <?php } } ?> </tbody> </table> </div> <div class="tab-pane container fade" id="menu1" style="background-color: whitesmoke;border-radius: 10px;"> <?php $sql2 = "SELECT * FROM `users` WHERE `user_id`=" . $userid . ""; $result2 = mysqli_query($connection, $sql2); if (mysqli_num_rows($result2) > 0) { $row2 = mysqli_fetch_assoc($result2); } ?> <form action="" method="post"> <div class="form-group"> <label for="fname">نام</label> <input type="text" name="fname" value="<?php echo $row2['user_fname'] ?>" class="form-control" id="fname"> </div> <div class="form-group"> <label for="mobile">موبایل</label> <input type="text" name="mobile" value="<?php echo $row2['user_mobile'] ?>" class="form-control" id="mobile"> </div> <div class="form-group"> <label for="email">ایمیل</label> <input type="email" name="email1" value="<?php echo $row2['user_email'] ?>" class="form-control" id="email"> </div> <div class="form-group"> <label for="pwd1">رمز عبور</label> <input type="password" name="password1" class="form-control" id="pwd1"> <input type="hidden" name="password33" value="<?php echo $row2['user_pass'] ?>"> </div> <div class="form-group"> <label for="comment">آدرس پستی:</label> <textarea class="form-control" name="address1" rows="5" id="comment"><?php echo $row2['user_address'] ?></textarea> </div> <button type="submit" name="register1" class="btn btn-warning mb-5">ویرایش</button> </form> <p class="mx-auto w-50 text-center text-success" style="border-radius: 5px;padding-top: 10px;padding-bottom: 10px"><?php if (isset($msg)) echo $msg; ?></p> </div> <div class="tab-pane container fade" id="menu2"> <a href="logout.php" class="btn btn-danger" style="margin-top: 20px">خروج از حساب کاربری</a> </div> </section> <?php include "includes/footer.php"; ?>