forked from bastosmichael/biverr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile_edit.php
115 lines (106 loc) · 4.28 KB
/
profile_edit.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?php
session_start();
include_once('config/db_conn.php');
include_once('db_config/db_user.php');
$user=new user();
$rs_user=$user->uniq_user_list('user_id',$_SESSION['user_id']);
$data_user=mysql_fetch_array($rs_user);
if($_REQUEST['submit'])
{
$user_data['user_fullname']= $_REQUEST['user_fullname'];
$user_data['user_primary_email']= $_REQUEST['user_primary_email'];
$user_data['user_paypal_account_email']= $_REQUEST['user_paypal_account_email'];
$user_data['user_desc']= htmlspecialchars($_REQUEST['user_desc'],ENT_QUOTES);
if($_FILES['user_image']['name']!='')
{
$user_data['user_image']= date("ymdhi").$_FILES['user_image']['name'];
}
$fldArray['user_id']=$_SESSION['user_id'];
$rs_user=$user->dataUpdate('ninerr_user',$user_data,$fldArray);
$fileName=$_FILES['user_image']['name'];
$fileSize='2000';
$fileTempName=$_FILES['user_image']['tmp_name'];
$folderPath='userimg';
$oldfileName='';
fileUpload($fileName,$oldfileName,$fileSize,$fileTempName,$folderPath,$maxSize=5242880);
reDirect('profile_edit.php');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php echo SITE_TITLE ;?></title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="javascript/jquery.min.js"></script>
<script type="text/javascript" src="javascript/jquery.simplemodal.js"></script>
<script type="text/javascript" src="javascript/init.js"></script>
<script type="text/javascript" src="javascript/init1.js"></script>
<link type='text/css' href='css/stylesheet.css' rel='stylesheet' media='screen' />
<link type='text/css' href='css/basic.css' rel='stylesheet' media='screen' />
</head>
<body>
<div id="container">
<!--HEADER AREA-->
<?php include('header.php')?>
<!--HEADER AREA END-->
<div class="body_cont">
<div class="body_cont_top">
</div>
<div class="body_cont_center">
<div class="left_cont">
<div class="tweet_bx">
<form method="post" id="edit_user" enctype="multipart/form-data" class="settings-form" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#EFFAFF" >
<tr height="40">
<td width="1%"> </td>
<td width="27%"> <strong>Fullname</strong></td>
<td width="72%"><input type="text" value="<?php echo $data_user['user_fullname']; ?>" size="30" name="user_fullname" id="profile_name" class="text"></td>
</tr>
<tr height="40">
<td width="1%"> </td>
<td><strong>Email </strong></td>
<td><input type="text" value="<?php echo $data_user['user_primary_email']; ?>" size="30" name="user_primary_email" id="user_email" class="text"></td>
</tr>
<tr height="40">
<td width="1%"> </td>
<td><strong>Paypal Account Email</strong></td>
<td><input type="text" value="<?php echo $data_user['user_paypal_account_email']; ?>" size="30" name="user_paypal_account_email" id="user_paypal_email" class="text"></td>
</tr>
<tr height="200">
<td width="1%"> </td>
<td><strong>Something about you</strong></td>
<td style="padding-left:6px;"><textarea name="user_desc" id="<?php echo $data_user['user_desc']; ?>" rows="5" cols="25" class="textarea"><?php
if($data_user['user_desc']!='')
echo $data_user['user_desc']; ?></textarea></td>
</tr>
<tr height="40">
<td width="1%"> </td>
<td><strong>Profile Picture</strong><img src="userimg/<?php echo $data_user['user_image']; ?>" height="72" width="102" /></td>
<td><input type="file" value="" size="30" name="user_image" id="gig_Image" class="browsefile"></td>
</tr>
<tr height="40">
<td width="1%"> </td>
<td> </td>
<td align="center"><input type="image" src="images/btn-2-save.png" name="submit" value="submit" class="btn-update" alt="Update"></td>
</tr>
<tr height="20">
<td width="1%"> </td>
<td><a href="change_password.php" >Change Password </a></td>
<td align="center"> </td>
</tr>
</table>
</form>
</div>
</div>
<?php include('profile_right.php'); ?>
</div>
<div class="body_cont_bottom">
</div>
</div>
<?php
include('footer.php');
?>
</div>
</body>
</html>