X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?p=living-lab-site.git;a=blobdiff_plain;f=application%2Fviews%2Fuser%2Fregister_view.php;h=eedc199e2292f8dd819f841104877bc89ecaa18e;hp=f5398d6fef5be195a900c46cd748f3f23bc25a1b;hb=080b37a97e93691b3ba1c4aa3982a143167115a7;hpb=6679566ca99a72ab9243e4eaef8e071f89283918 diff --git a/application/views/user/register_view.php b/application/views/user/register_view.php index f5398d6..eedc199 100644 --- a/application/views/user/register_view.php +++ b/application/views/user/register_view.php @@ -7,44 +7,39 @@ function _set_value($userdata, $field, $default = '') return $post_value; return ($post_value === $default - ? $userdata[ str_replace('-','_',$field) ] + ? ''.$userdata[ str_replace('-','_',$field) ] : $post_value); } -?> - - - - - - +if (!$userdata) + echo form_open_multipart("user/register/$redirect"); +else + echo form_open_multipart("user/account/$redirect"); +?> - + - + - + ` +   + @@ -119,6 +114,19 @@ endif; + + + + + + + + + + + + + + + + + + + + @@ -163,6 +195,23 @@ endif; + + + + + + + + + +
lang->line('user_note_required_fields') ?>lang->line('ui_required_fields') ?>
 
lang->line('user_username'). ' * : ' ?> + + + + lang->line('user_username'). ': ' ?>lang->line('user_username'). ' : ' ?> -   -
lang->line('user_sex'). ' * : ' ?> + $this->lang->line('user_sex_male'), + '1'=> $this->lang->line('user_sex_female')), + _set_value($userdata, 'sex', '0') + ) ?> +
lang->line('user_birth_date'). ' : ' ?> @@ -143,6 +151,30 @@ endif;
lang->line('user_picture'). ' : ' ?> + <?php echo $userdata['username'] ?> +
+ + lang->line('user_picture'). ' : ' ?> + + lang->line('user_change_picture'). ' : ' ?> + + + +
 
 
lang->line('ui_captcha'). ' * : ' ?> +
lang->line('ui_captcha_instructions') ?>
+
+ +
+

+
 
@@ -187,5 +236,11 @@ endif; buttonImage: "", buttonImageOnly: true }); + + $('#button-change-captcha') + .click(function() { + $('#container-captcha') + .load(''); + }); }); \ No newline at end of file