Пример #1
0
 protected function action()
 {
     try {
         $idntwrkr = $this->uriPath[count($this->uriPath) - 1];
     } catch (Exception $exc) {
         $idntwrkr = BASE_AVATAR_ID;
     }
     //Check file
     $avfile = UriDispatch::getBaseDir() . 'avatar/' . $idntwrkr . '.png';
     $idntwrkr = file_exists($avfile) ? $idntwrkr : BASE_AVATAR_ID;
     //***
     header("Content-type: image/png");
     readfile(UriDispatch::getBaseUri() . 'avatar/' . $idntwrkr . '.png');
 }
Пример #2
0
 public function save($name)
 {
     switch ($this->avatarFile['type']) {
         case 'image/jpeg':
             $tempAvatar = imagecreatefromjpeg($this->avatarFile["tmp_name"]);
             break;
         case 'image/png':
             $tempAvatar = imagecreatefrompng($this->avatarFile["tmp_name"]);
             break;
         case 'image/gif':
             $tempAvatar = imagecreatefromgif($this->avatarFile["tmp_name"]);
             break;
     }
     return imagepng($tempAvatar, UriDispatch::getBaseDir() . 'avatar/' . $name . '.png');
 }
Пример #3
0
<?php

$user = Session::getObj(Session::UTENTE);
?>
<div class="boxcommonform">
  <br/>
  <div class="boxtitle">
    IMMAGINE DEL PROFILO
  </div>
  <div >
    <div class="boxaddavatar" >
      <img src="<?php 
echo $user->getAvatarUrl();
?>
" class="avatar img_200_200" />
    </div>

    <div class="formlogin">
      <form action="<?php 
echo UriDispatch::getFullUri("user/useravatarsave");
?>
" method="post" name="frmAddUserAvatar" enctype="multipart/form-data">
        <input type="file" name="browse" title="Sfoglia" class="login required"/>
        <br /> 
        <input type="submit" name="submit" value="Salva" class="button" onclick="return validateAll($('#frmAddUserAvatar'),'.login.required');"/> 
      </form>         
    </div>    
    
  </div>
</div>
Пример #4
0
        </tr>
        <?php 
$plan = $ul->getPlan();
foreach ($plan as $lvl) {
    ?>
          <tr>
            <td><p><?php 
    echo $lvl[Unilevel::MAP_LEVEL];
    ?>
</p></td>  
            <td><p><?php 
    echo $lvl[Unilevel::MAP_DESCRIPTION];
    ?>
</p></td>  
            <td><p style="text-align:right;"><?php 
    echo number_format($lvl[Unilevel::MAP_COMMISSION], 2);
    ?>
 %</p></td>  
            <td><p style="padding-left:60px;"><button type="submit" name="salva" title="Elimina" class="buttonimage" onclick="return validateAll($('#frmAddPlanUnilevel'),'.login.required');"><img src="<?php 
    echo UriDispatch::getFullUri('view/box/img/delicon.png');
    ?>
" class="img_36_36"/></button></p></td>
          </tr>
        <?php 
}
?>
      </table>
    </form>
  </div>
</div>
Пример #5
0
    <!-- FANCYBOX -->
      <script type="text/javascript">
        $(document).ready(function() {
          $(".fancybox").fancybox();
        });
      </script>
    <!-- FANCYBOX -->
  </body>
</html>
<!-- MULTINESTEDLIST -->        
<!-- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> -->
<script src="<?php 
echo UriDispatch::getBaseUri();
?>
view/box/lib/multinestedlist/multinestedlist.js"></script>
<!-- MULTINESTEDLIST -->
Пример #6
0
 public static function getAvatarUrl()
 {
     return UriDispatch::getBaseUri() . 'view/box/img/team.png';
 }
Пример #7
0
<div>
  <a href="<?php 
echo UriDispatch::getBaseUri() . 'user/login';
?>
" title="home">
      <img src="<?php 
echo UriDispatch::getBaseUri() . 'view/box/img/homepage.png';
?>
" class="img_36_36" />
  </a>
</div>

Пример #8
0
    $('#datepickerId').datepicker({ dateFormat: 'dd/mm/yy' });
  });
</script>
<!-- DATEPICKER -->
<div class="boxlogin">
  <br/>
  <div class="boxtitle">
    DETTAGLIO NUOVA VENDITA
  </div>

  <div class="formlogin">
    <div class="boxtitle boxsponsor">
      Consulente: <img src="{SNIPPET::avatar}" class="avatar img_36_36" /> {SNIPPET::fullname}  
    </div>
    <form id="frmAddNtwrkrSale" name="frmAddNtwrkrSale" action="<?php 
echo UriDispatch::getFullUri("user/ntwrkrsalesave");
?>
" method="POST">
      <input type="hidden" name="idntwrkr" value="{SNIPPET::idntwrkr}" />
      <p>
        * Data:<br/>
        <input id="datepickerId" type="text" name="datepicker" value="<?php 
echo date("d/m/Y");
?>
" class="login required"/>
      </p>
      <p>
        * Importo:<br/>
        <input type="text" name="importo" value="" class="login required"/>
      </p>
      <p>
Пример #9
0
<?php

$utente = Session::getObj(Session::NETWORKER);
?>
<div class="boxlogin">
    <br/>
    <div class="boxtitle">
        AGGIORNA CONSULENTE
    </div>
    
    <div class="formlogin">
      <form id="frmUpdUser" name="Login" action="<?php 
echo UriDispatch::getFullUri('user/ntwrkrupdate');
?>
" method="POST">
          <p>
              * Nome:<br/>
              <input type="text" name="nome" value="<?php 
echo $utente->getNome();
?>
" size="40" class="login required"/>
          </p>
          <p>
              * Cognome:<br/>
              <input type="text" name="cognome" value="<?php 
echo $utente->getCognome();
?>
" size="40" class="login required"/>
          </p>
          <p>
              * Email:<br/>
Пример #10
0
 public function getIconUrl()
 {
     return UriDispatch::getBaseUri() . 'view/box/img/' . $this->type . '.png';
 }
Пример #11
0
  <?php 
?>

  <div class="footer">
    <div>
      <img src="<?php 
echo UriDispatch::getFullUri("view/box/img/f.png");
?>
" class="img_60_60"/>
      <img src="<?php 
echo UriDispatch::getFullUri("view/box/img/t.png");
?>
" class="img_60_60"/>
      <img src="<?php 
echo UriDispatch::getFullUri("view/box/img/p.png");
?>
" class="img_60_60"/>
      <img src="<?php 
echo UriDispatch::getFullUri("view/box/img/yt.png");
?>
" class="img_60_60"/>
    </div>
    <div style="padding-top:90px">
      &reg; Copyright - RiccoPensa - Tutti i diritti riservati.
    </div>
  </div>  
Пример #12
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>
Пример #13
0
session_start();
include_once '../model/class/lib/Constant.php';
//*** ELENCO PATH DEI MODULI DI CLASSE ***
$CLASSPATH = ['command', 'lib', 'plan', 'user', 'team', 'command/api', 'command/model/user', 'command/model/plan', 'command/view/user', 'command/view/team', 'command/view/plan'];
//***
spl_autoload_register('privateAutoload');
function privateAutoload($class_name)
{
    loadResouce($class_name, 0);
}
function loadResouce($res, $idx)
{
    global $CLASSPATH;
    if ($idx === count($CLASSPATH)) {
        return;
    }
    $filename = $_SERVER["DOCUMENT_ROOT"] . "/" . ROOT_SITO . "/model/class/" . $CLASSPATH[$idx] . "/" . $res . ".php";
    file_exists($filename) ? require_once $filename : loadResouce($res, $idx + 1);
}
//***
$uriPath = UriDispatch::getUriDispatch();
$uriCommand = $uriPath[1];
!class_exists($uriCommand, TRUE) && UriDispatch::redirectToLocation('user/login');
//*** REFLECTION BY VARIABLE VALUE ***
$command = new $uriCommand();
$command->setUriPath($uriPath);
$command->isAuth() && $command->execute();
!is_null($command->getRedirect()) && UriDispatch::redirectToLocation($command->getRedirect());
//***
exit;
Пример #14
0
 public static function getDefaultAvatarUrl()
 {
     return UriDispatch::getBaseUri() . 'user/useravatar/0';
 }
Пример #15
0
echo UriDispatch::getBaseUri() . 'user/login';
?>
" title="home">
      <img src="<?php 
echo UriDispatch::getBaseUri() . 'view/box/img/homepage.png';
?>
" class="img_36_36" />
  </a>
  <a href="<?php 
echo UriDispatch::getFullUri('team/viewallteam');
?>
" style="padding-left:20px;">
    il mio team
  </a>
  <a href="<?php 
echo UriDispatch::getFullUri('user/addplanunilevel');
?>
" style="padding-left:20px;" class="fancybox fancybox.iframe">
    piano Unilevel
  </a>
  <div class="avatarmenubar">
    <img src="<?php 
echo $utente->getAvatarUrl();
?>
" class="avatar img_48_48" title="<?php 
echo $utente->getNome() . " " . $utente->getCognome();
?>
" />
  </div>
</div>