+ complete task #320:add other fileds to user's profile.
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
-- 2010-11-13 project table.
|
||||
ALTER TABLE `zt_project` ADD `RM` varchar(30) NOT NULL DEFAULT '' AFTER `QM`;
|
||||
ALTER TABLE `zt_user` DROP `birthday` ;
|
||||
|
||||
@@ -49,6 +49,42 @@
|
||||
<th class='rowhead'><?php echo $lang->user->last;?></th>
|
||||
<td><?php echo $user->last;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->user->msn;?></th>
|
||||
<td><?php echo $user->msn;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->user->qq;?></th>
|
||||
<td><?php echo $user->qq;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->user->yahoo;?></th>
|
||||
<td><?php echo $user->yahoo;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->user->gtalk;?></th>
|
||||
<td><?php echo $user->gtalk;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->user->wangwang;?></th>
|
||||
<td><?php echo $user->wangwang;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->user->mobile;?></th>
|
||||
<td><?php echo $user->mobile;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->user->phone;?></th>
|
||||
<td><?php echo $user->phone;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->user->address;?></th>
|
||||
<td><?php echo $user->address;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->user->zipcode;?></th>
|
||||
<td><?php echo $user->zipcode;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' class='a-center'>
|
||||
<?php
|
||||
|
||||
@@ -59,7 +59,6 @@ $lang->user->realname = 'Realname';
|
||||
$lang->user->nickname = 'Nickname';
|
||||
$lang->user->avatar = 'Avatar';
|
||||
$lang->user->birthyear = 'Birth year';
|
||||
$lang->user->birthday = 'Birthday';
|
||||
$lang->user->gendar = 'Gender';
|
||||
$lang->user->email = 'Email';
|
||||
$lang->user->msn = 'MSN';
|
||||
|
||||
@@ -59,7 +59,6 @@ $lang->user->realname = '実名';
|
||||
$lang->user->nickname = 'ニックネーム';
|
||||
$lang->user->avatar = 'アバター';
|
||||
$lang->user->birthyear = '誕生年';
|
||||
$lang->user->birthday = '誕生日';
|
||||
$lang->user->gendar = '性別';
|
||||
$lang->user->email = 'Eメール';
|
||||
$lang->user->msn = 'MSNの';
|
||||
|
||||
@@ -59,7 +59,6 @@ $lang->user->realname = 'Realname';
|
||||
$lang->user->nickname = '별명';
|
||||
$lang->user->avatar = '화신';
|
||||
$lang->user->birthyear = '출생 연도';
|
||||
$lang->user->birthday = '생일';
|
||||
$lang->user->gendar = '성별';
|
||||
$lang->user->email = '이메일';
|
||||
$lang->user->msn = 'MSN';
|
||||
|
||||
@@ -59,7 +59,6 @@ $lang->user->realname = '真实姓名';
|
||||
$lang->user->nickname = '昵称';
|
||||
$lang->user->avatar = '头像';
|
||||
$lang->user->birthyear = '出生年';
|
||||
$lang->user->birthday = '出生月日';
|
||||
$lang->user->gendar = '性别';
|
||||
$lang->user->email = '邮箱';
|
||||
$lang->user->msn = 'MSN';
|
||||
|
||||
@@ -59,7 +59,6 @@ $lang->user->realname = '真實姓名';
|
||||
$lang->user->nickname = '暱稱';
|
||||
$lang->user->avatar = '頭像';
|
||||
$lang->user->birthyear = '出生年';
|
||||
$lang->user->birthday = '出生月日';
|
||||
$lang->user->gendar = '性別';
|
||||
$lang->user->email = '郵箱';
|
||||
$lang->user->msn = 'MSN';
|
||||
|
||||
@@ -117,6 +117,7 @@ class userModel extends model
|
||||
->setIF(isset($_POST['join']) and $this->post->join == '', 'join', '0000-00-00')
|
||||
->setIF($this->post->password1 != false, 'password', md5($this->post->password1))
|
||||
->remove('password1, password2')
|
||||
->specialChars('msn,qq,yahoo,gtalk,wangwang,mobile,phone,address,zipcode')
|
||||
->get();
|
||||
|
||||
$this->dao->update(TABLE_USER)->data($user)
|
||||
|
||||
@@ -48,6 +48,42 @@
|
||||
<th class='rowhead'><?php echo $lang->user->password2;?></th>
|
||||
<td><?php echo html::password('password2', '', "class='text-3'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->user->msn;?></th>
|
||||
<td><?php echo html::input('msn', $user->msn, "class='text-3'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->user->qq;?></th>
|
||||
<td><?php echo html::input('qq', $user->qq, "class='text-3'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->user->yahoo;?></th>
|
||||
<td><?php echo html::input('yahoo', $user->yahoo, "class='text-3'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->user->gtalk;?></th>
|
||||
<td><?php echo html::input('gtalk', $user->gtalk, "class='text-3'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->user->wangwang;?></th>
|
||||
<td><?php echo html::input('wangwang', $user->wangwang, "class='text-3'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->user->mobile;?></th>
|
||||
<td><?php echo html::input('mobile', $user->mobile, "class='text-3'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->user->phone;?></th>
|
||||
<td><?php echo html::input('phone', $user->phone, "class='text-3'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->user->address;?></th>
|
||||
<td><?php echo html::input('address', $user->address, "class='text-3'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->user->zipcode;?></th>
|
||||
<td><?php echo html::input('zipcode', $user->zipcode, "class='text-3'");?></td>
|
||||
</tr>
|
||||
<tr><td colspan='2' class='a-center'><?php echo html::submitButton() . html::resetButton();?></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user