Example #1
0
 protected function action()
 {
     $this->showContentOnly = TRUE;
     try {
         $parent = $this->uriPath[count($this->uriPath) - 4];
         $sponsor = $this->uriPath[count($this->uriPath) - 3] . ' ' . $this->uriPath[count($this->uriPath) - 2];
         $avatar = Utente::decode($this->uriPath[count($this->uriPath) - 1]);
     } catch (Exception $exc) {
         $parent = NULL_PARENT_ROOT;
         $sponsor = NON_DEFINITO;
         $avatar = Utente::getDefaultAvatarUrl();
     }
     $this->addParameter('parent', $parent);
     $this->addParameter('sponsor', $sponsor);
     $this->addParameter('avatar', $avatar);
     $this->pageToView = "newuser";
     parent::action();
 }
 protected function action()
 {
     $this->showContentOnly = TRUE;
     try {
         $idntwrkr = $this->uriPath[count($this->uriPath) - 4];
         $fullname = $this->uriPath[count($this->uriPath) - 3] . ' ' . $this->uriPath[count($this->uriPath) - 2];
         $avatar = Utente::decode($this->uriPath[count($this->uriPath) - 1]);
     } catch (Exception $exc) {
         $idntwrkr = NULL_PARENT_ROOT;
         $fullname = NON_DEFINITO;
         $avatar = Utente::getDefaultAvatarUrl();
     }
     $this->addParameter('idntwrkr', $idntwrkr);
     $this->addParameter('fullname', $fullname);
     $this->addParameter('avatar', $avatar);
     $this->pageToView = "addntwrkrsale";
     parent::action();
 }
Example #3
0
    <div class="formlogin">
      <form id="frmLogin" name="Login" action="userlogin" method="POST" >
        <p>
          Username:<br/>
          <input type="text" name="username" value="" size="40" class="login required"/>
        </p>
        <p>
          Password:<br/>
          <input type="password" name="password" value="" size="40" class="login required"/>
        </p>
        <input type="submit" value="Login" name="login" class="button" onclick="return validateAll($('#frmLogin'),'.login.required');"/>
      </form>

      <div>
          <br/>
          <br/>
          <a href="<?php 
    echo UriDispatch::getFullUri('user/newuser/0/non/applicabile/' . Utente::encode(Utente::getDefaultAvatarUrl()));
    ?>
">Nuovo utente</a> | 
          <a href="<?php 
    echo UriDispatch::getFullUri('user/forgotpwd');
    ?>
">Recupera password</a>
      </div>
    </div>
    <?php 
}
?>
</div>