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=438c4109726b7eb713549743c439f20e8205a8aa;hb=080b37a97e93691b3ba1c4aa3982a143167115a7;hpb=9cc2a6602b47ac97d72efa51ec654418b252b4e4 diff --git a/application/views/user/register_view.php b/application/views/user/register_view.php index 438c410..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; + + + + + + + + + + + + + + - + @@ -171,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_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,13 +151,29 @@ 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') ?>
+
+ +
+

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