* task#647, added commiter field to user table.

This commit is contained in:
wangchunsheng
2011-12-23 12:38:47 +00:00
parent 54e08a1409
commit 74688efe9b
9 changed files with 28 additions and 5 deletions
+1
View File
@@ -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` ;
+5 -5
View File
@@ -17,16 +17,16 @@
<caption><?php echo $lang->my->editProfile;?></caption>
<tr>
<th class='rowhead'><?php echo $lang->user->account;?></th>
<td><?php //echo html::input('account', $user->account, "readonly");
echo $user->account;
echo html::hidden('account',$user->account);
?>
</td>
<td><?php echo $user->account . html::hidden('account',$user->account);?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->user->realname;?></th>
<td><?php echo html::input('realname', $user->realname);?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->user->commiter;?></th>
<td><?php echo html::input('commiter', $user->commiter);?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->user->email;?></th>
<td><?php echo html::input('email', $user->email);?></td>
+4
View File
@@ -42,6 +42,10 @@
<th class='rowhead'><?php echo $lang->user->realname;?></th>
<td><?php echo $user->realname;?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->user->commiter;?></th>
<td><?php echo $user->commiter;?></td>
</tr>
<!--
<tr>
<?php //echo $lang->user->nickname;?>
+1
View File
@@ -60,6 +60,7 @@ $lang->user->password = 'Password';
$lang->user->password2 = 'Repeat password';
$lang->user->realname = 'Fullname';
$lang->user->nickname = 'Nickname';
$lang->user->commiter = 'Commit account';
$lang->user->avatar = 'Avatar';
$lang->user->birthyear = 'Birth year';
$lang->user->gender = 'Gender';
+1
View File
@@ -60,6 +60,7 @@ $lang->user->password = '密码';
$lang->user->password2 = '请重复密码';
$lang->user->realname = '真实姓名';
$lang->user->nickname = '昵称';
$lang->user->commiter = '源代码提交帐号';
$lang->user->avatar = '头像';
$lang->user->birthyear = '出生年';
$lang->user->gender = '性别';
+4
View File
@@ -27,6 +27,10 @@
<th class='rowhead'><?php echo $lang->user->realname;?></th>
<td><?php echo html::input('realname', '', "class='text-3'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->user->commiter;?></th>
<td><?php echo html::input('commiter', '', "class='text-3'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->user->email;?></th>
<td><?php echo html::input('email', '', "class='text-3'");?></td>
+4
View File
@@ -27,6 +27,10 @@
<th class='rowhead'><?php echo $lang->user->realname;?></th>
<td><?php echo html::input('realname', $user->realname, "class='text-3'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->user->commiter;?></th>
<td><?php echo html::input('commiter', $user->commiter, "class='text-3'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->user->email;?></th>
<td><?php echo html::input('email', $user->email, "class='text-3'");?></td>
+4
View File
@@ -41,6 +41,10 @@
<th class='rowhead'><?php echo $lang->user->realname;?></th>
<td><?php echo $user->realname;?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->user->commiter;?></th>
<td><?php echo $user->commiter;?></td>
</tr>
<!--
<tr>
<?php // echo $lang->user->nickname;?>
+4
View File
@@ -28,6 +28,10 @@
<th class='rowhead'><?php echo $lang->user->nickname;?></th>
<td><?php echo $user->nickname;?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->user->commiter;?></th>
<td><?php echo $user->commiter;?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->user->join;?></th>
<td><?php echo $user->join;?></td>