Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2015
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.82 KB | None | 0 0
  1. <?php if (!defined('APPLICATION')) exit(); ?>
  2.   <div class="LoginPanel">
  3.      <?php $this->FireEvent('BeforeSignInButton'); ?>
  4.      <?php
  5.         $Target = Gdn::Request()->PathAndQuery();
  6.         if ($Target != '')
  7.            $Target = '?Target='.urlencode($Target);
  8.         $Controller = Gdn::Controller();
  9.      ?>
  10.       <div class="MainForm MySignIn">
  11.          <?php
  12.          echo $Controller->Form->Open(array('Action' => Url('/entry/signin'.$Target), 'id' => 'Form_User_SignIn'));
  13.          echo $Controller->Form->Errors();
  14.          ?>
  15.          <div class="Wrap">
  16.              <div class="ctrlWrapper">
  17.                 <dl class="ctrlUnit">
  18.                     <dt><?php echo $Controller->Form->Label('Your name or email address:', 'Email'); ?></dt>
  19.                     <dd><?php echo $Controller->Form->TextBox('Email', array('class' => 'InputBox Password', 'tabindex' => '101')); ?></dd>
  20.                 </dl>
  21.  
  22.                 <dl class="ctrlUnit">
  23.                     <dt>
  24.                         <?php echo $Controller->Form->Label('Do you already have an account?', 'Password'); ?>
  25.                     </dt>
  26.                     <dd>
  27.                         <ul>
  28.                             <li><label for="ctrl_not_registered"><input type="radio" name="register" value="1" id="ctrl_not_registered">
  29.                                 No, create an account now.</label></li>
  30.                             <li><label for="ctrl_registered"><input type="radio" name="register" value="0" id="ctrl_registered" checked="checked" class="Disabler">
  31.                                 Yes, my password is:</label></li>
  32.                             <li id="ctrl_registered_Disabler">
  33.                                 <?php
  34.                                   echo $Controller->Form->Input('Password', 'password', array('class' => 'InputBox Password', 'tabindex' => '102'));
  35.                                   echo Anchor(T('Forgot your password?'), '/entry/passwordrequest', 'ForgotPassword');
  36.                                ?>
  37.                             </li>
  38.                         </ul>
  39.                     </dd>
  40.                 </dl>
  41.                
  42.                 <dl class="ctrlUnit submitUnit">
  43.                     <dt></dt>
  44.                     <dd>
  45.                     <?php
  46.                         echo $Controller->Form->Button('Sign In');
  47.                         echo $Controller->Form->CheckBox('RememberMe', T('Keep me signed in'), array('value' => '1', 'id' => 'SignInRememberMe'));
  48.                     ?>
  49.                     </dd>
  50.                 </dl>
  51.             </div>
  52.         </div>
  53.         <ul>
  54.            
  55.             <?php if (strcasecmp(C('Garden.Registration.Method'), 'Connect') != 0): ?>
  56.             <li class="CreateAccount">
  57.                <?php
  58.                   printf(T("Don't have an account? %s"), Anchor(T('Create One.'), '/entry/register'.$Target));
  59.                ?>
  60.             </li>
  61.             <?php endif; ?>
  62.          </ul>
  63.          <?php
  64.          echo $Controller->Form->Close();
  65.          echo $Controller->Form->Open(array('Action' => Url('/entry/passwordrequest'), 'id' => 'Form_User_Password', 'style' => 'display: none;'));
  66.          ?>
  67.          <ul>
  68.             <li>
  69.                <?php
  70.                   echo $Controller->Form->Label('Enter your Email address or username', 'Email');
  71.                   echo $Controller->Form->TextBox('Email');
  72.                ?>
  73.             </li>
  74.             <li class="Buttons">
  75.                <?php
  76.                   echo $Controller->Form->Button('Request a new password');
  77.                   echo Wrap(Anchor(T('I remember now!'), '/entry/signin', 'ForgotPassword'), 'div');
  78.                ?>
  79.             </li>
  80.          </ul>
  81.          <?php echo $Controller->Form->Close(); ?>
  82.       </div>
  83.      <?php $this->FireEvent('AfterSignInButton'); ?>
  84.   </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement