From 74688efe9b8d91b97a2dda71c5c8682610e16b47 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Fri, 23 Dec 2011 12:38:47 +0000 Subject: [PATCH] * task#647, added commiter field to user table. --- db/update2.4.sql | 1 + module/my/view/editprofile.html.php | 10 +++++----- module/my/view/profile.html.php | 4 ++++ module/user/lang/en.php | 1 + module/user/lang/zh-cn.php | 1 + module/user/view/create.html.php | 4 ++++ module/user/view/edit.html.php | 4 ++++ module/user/view/profile.html.php | 4 ++++ module/user/view/view.html.php | 4 ++++ 9 files changed, 28 insertions(+), 5 deletions(-) diff --git a/db/update2.4.sql b/db/update2.4.sql index 4afb133fcf..7f57fd1fcc 100644 --- a/db/update2.4.sql +++ b/db/update2.4.sql @@ -1 +1,2 @@ ALTER TABLE `zt_user` CHANGE `gendar` `gender` ENUM( 'f', 'm' ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'f' ; +ALTER TABLE `zt_user` ADD `commiter` VARCHAR( 100 ) NOT NULL AFTER `nickname` ; diff --git a/module/my/view/editprofile.html.php b/module/my/view/editprofile.html.php index 1b39043f17..5340d6104e 100644 --- a/module/my/view/editprofile.html.php +++ b/module/my/view/editprofile.html.php @@ -17,16 +17,16 @@ my->editProfile;?> user->account;?> - account, "readonly"); - echo $user->account; - echo html::hidden('account',$user->account); - ?> - + account . html::hidden('account',$user->account);?> user->realname;?> realname);?> + + user->commiter;?> + commiter);?> + user->email;?> email);?> diff --git a/module/my/view/profile.html.php b/module/my/view/profile.html.php index 466e5bcf8e..83f33adbdb 100644 --- a/module/my/view/profile.html.php +++ b/module/my/view/profile.html.php @@ -42,6 +42,10 @@ user->realname;?> realname;?> + + user->commiter;?> + commiter;?> +