Show
Ignore:
Timestamp:
07/05/08 01:09:56 (5 months ago)
Author:
aarkerio
Message:

Internatiantilzation

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/users/register.ctp

    r615 r627  
    44else: 
    55?> 
    6 <div style="border-bottom:1px dotted gray;font-size:16pt;color:green;font-weigth:bold;margin-top:15px">Registration form </div> 
     6<div style="border-bottom:1px dotted gray;font-size:16pt;color:green;font-weigth:bold;margin-top:15px"> 
     7<?php __('Registration form'); ?> </div> 
    78 
    89<div id="charging" style="display:none;"><?php echo $html->image('static/loading.gif', array("alt"=>"Loading")); ?></div> 
     
    1516 
    1617<fieldset> 
    17   <legend>New User:</legend>      
    18      <?php echo $form->input('User.username', array("size" => 10, "maxlength" => 10, "between"=>": ", "onBlur"=>"this.value=this.value.toLowerCase()")); ?><span class="small">At least 5 characters, only lowercase. No spaces.</span> 
    19      <br /> 
     18  <legend><?php __('New user'); ?></legend>      
     19    <?php echo $form->input('User.username', array("size" => 10, "maxlength" => 10, "between"=>": ", "onBlur"=>"this.value=this.value.toLowerCase()")); ?> 
     20  <span class="small"><?php __('At least 5 characters, only lowercase. No spaces.');?></span> 
     21     <div><br /></div> 
     22    <?php echo $form->label('User.pwd', __('Password'.': ', true)) . $form->password('User.pwd', array('size'=>9,'maxlength'=>9)); ?> 
     23   <span class="small"><?php __('At least 6 characters'); ?></span> 
     24  <?php 
     25    echo $html->div(null, '<br />'); 
     26    echo $form->input('User.name', array('size' => 25, 'maxlength' => 50, 'between'=>': ', 'label'=>__('Name and last name', true))); 
     27  
     28    echo $html->div(null, '<br />'); 
     29    echo $form->input('User.email', array('size' => 20, 'maxlength' => 45, 'between'=>': ', 'label'=>__('Email', true)));  
     30      
     31    echo $html->div(null, '<br />'); 
     32    echo $form->label('User.group_id', __('Group'.': ', true)); 
     33       
     34    $fieldName      = 'User.group_id'; 
     35    $selected       = 3; 
     36    $showEmpty      = false; 
     37    $return         = true; 
     38      
     39    echo $form->select($fieldName, $groups, $selected, null, null, $showEmpty, $return);  
    2040     
    21      <?php echo $form->input('User.email', array("size" => 20, "maxlength" => 45, "between"=>": ")); ?> 
    22      <br /> 
     41    echo $html->div(null, '<br />'); 
     42    echo $form->input('User.code', array('size' => 7, 'maxlength' => 7, 'between'=>': '));     
    2343     
    24      <?php echo $form->input('User.name', array("size" => 25, "maxlength" => 50, "between"=>": ")); ?> 
    25      <br /> 
    26      <?php echo $form->label('User.group_id', 'Group:' );?> 
    27      <?php  
    28      $fieldName      = 'User.group_id'; 
    29      $selected       = 3; 
    30      $showEmpty      = false; 
    31      $return         = true; 
    32       
    33      echo $form->select($fieldName, $groups, $selected, null, null, $showEmpty, $return);  
    34  ?> 
    35    <br /> 
    36       
    37      <?php echo $form->input('User.code', array("size" => 7, "maxlength" => 7)); ?> 
    38       
    39      <?php echo $form->label('User.pwd', 'Password: ') . $form->password('User.pwd', array('size' => 9, 'maxlength' => 9)); ?> 
    40    <span class="small">At least 6 characters</span> 
    41      <br /><br /> 
    42      <?php echo $form->label('User.description', 'About you and your interests:' );?><br /> 
    43      <?php echo $form->textarea('User.description', array("rows"=>4, "cols"=>50)) ?> 
    44      <br /><br /> 
    45 <?php  
     44    echo $html->div(null, '<br />');   
     45    echo $form->label('User.description', __('About you and your interests', true) ) . '<br />'; 
     46    echo $form->textarea('User.description', array("rows"=>4, "cols"=>50)).'<br />';  
    4647         
    47 $tmp = $html->link('I read the terms:','#header', 
     48    $tmp = $html->link(__('I read and I do agree with terms', true),'#header', 
    4849                                    array("onclick"=>"javascript:window.open('/colleges/terms', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=400')")) . ' '; 
    4950 
    50   echo $form->label('User.agree', $tmp); 
    51   echo $form->checkbox('User.agree', array("value"=>1));  
    52      
    53   echo $ajax->submit('Send', array("url" => "/users/insert/",  
     51    echo $form->label('User.agree', $tmp); 
     52    echo $form->checkbox('User.agree', array('value'=>1));  
     53 
     54    echo $html->div(null, '<br />'); 
     55 
     56    echo $ajax->submit(__('Send', true), array("url" => "/users/insert/",  
    5457                                         "update"=>"updater",  
    5558                     "before" => "if ( !validateData() ) return false;", 
     
    6265 
    6366<?php 
    64 echo $html->para(null,  
     67echo $html->para(null, 
    6568'Please contact <a href="mailto:webmaster@conrad-college.edu">webmaster@conrad-college.edu</a> if you have doubts or comments about this registration process.'); 
    6669?>