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=42159c202622cf3e1a2b3707a18bf10037a8b4ba;hb=080b37a97e93691b3ba1c4aa3982a143167115a7;hpb=37fe2e29a60066614f4155c292e2a2bd99b71b49 diff --git a/application/views/user/register_view.php b/application/views/user/register_view.php index 42159c2..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