Montant, Bootstrap v3.0.2

This commit is contained in:
Michael RICOIS 2013-11-12 10:51:38 +00:00
parent 9859c1dc9c
commit 4066f12763
10 changed files with 99 additions and 140 deletions

View File

@ -37,6 +37,8 @@ profil.db.sdv1.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
profil.report.username=partner144
profil.report.password=yY2Uhp0mf5
profil.report.montant = 21.53
[staging : production]
resources.frontController.params.displayExceptions = 1

View File

@ -33,9 +33,11 @@ class ReportController extends Zend_Controller_Action
if (intval($siren)>100) {
//Vérifier que le SIREN existe en base
require_once 'Scores/WsScores.php';
$c = Zend_Registry::get('config');
$login = $c->profil->report->username;
$password = $c->profil->report->password;
$ws = new WsScores($login, $password);
$response = $ws->getIdentiteLight($siren);
if ($response !== false) {
@ -52,6 +54,8 @@ class ReportController extends Zend_Controller_Action
'siren'=>$response->Siren
));
$this->view->montant = $c->profil->report->montant . " €";
//Session
$session->CmdSiren = $response->Siren;
$session->CmdRaisonSociale = $response->Nom;
@ -157,11 +161,15 @@ class ReportController extends Zend_Controller_Action
if ( !isset($session->CmdID) || empty($session->CmdID) ) {
$c = Zend_Registry::get('config');
$this->view->montant = $c->profil->report->montant . " €";
//Get the report
if (intval($siren)>100) {
//$report = new Scores_Partner_Report('indiscore3', $siren, 'mricois', 'ju2loh6o');
//$html = $report->getContent();
$html = 'blabla';
$login = $c->profil->report->username;
$password = $c->profil->report->password;
$report = new Scores_Partner_Report('indiscore3', $siren, $login, $password);
$html = $report->getContent();
if ( $html !== false ) {
$c = Zend_Registry::get('config');
@ -239,17 +247,18 @@ class ReportController extends Zend_Controller_Action
$row = $commandM->fetchRow('cmdId="'.$cmdId.'"');
if ($row !== null) {
//Paybox : Liste des types de paiements possible
$c = Zend_Registry::get('config');
$this->view->montant = $c->profil->report->montant . " €";
//Paybox
$paybox = new Paybox_System();
$paybox->setUrlPaiement();
$paybox->setEmail($row->email);
$paybox->setReference($cmdId);
$paybox->setMontant(10.00);
$paybox->setMontant($c->profil->report->montant);
$paybox->setUrlParameters();
$paybox->calculateHMAC();
//@todo : Set PBX_EFFECTUE, PBX_REFUSE, PBX_ANNULE, PBX_ATTENTE, PBX_REPONDRE_A
$this->view->PayboxUrl = $paybox->getFormUrl();
$this->view->PayboxValues = $paybox->getFormParameters();

View File

@ -1,17 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="viewport" content="width=device-width, initial-scale=1.0" >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<meta http-equiv="Content-Language" content="fr-FR" >
<title>Kompass - Achat Bilan Financier</title>
<link href="/libs/bootstrap-v3.0.0/css/bootstrap.min.css" media="all" rel="stylesheet" type="text/css" >
<link href="/themes/default/css/justified-nav.css" media="all" rel="stylesheet" type="text/css" >
<!--[if lt IE 9]> <script type="text/javascript" src="/libs/html5shiv.js"></script><![endif]-->
<!--[if lt IE 9]> <script type="text/javascript" src="/libs/respond.min.js"></script><![endif]-->
</head>
<body>
<div class="container">
<?php echo $this->render('report/header.phtml')?>
<div class="page-header">
<h2>RAPPORT FINANCIER COMPLET <small>Informations et paiement</small></h2>
@ -42,7 +29,7 @@
<dd><?=$this->AdresseL2?></dd>
</dl>
<div class="alert alert-info">Prix : 10,00 &euro;</div>
<div class="alert alert-info">Prix : <?=$this->montant?></div>
</div>
@ -172,13 +159,4 @@
<?php }?>
<!-- Site footer -->
<div class="footer">
<p>&copy; Scores & Décisions <?=date('Y')?></p>
</div>
</div>
<?php echo $this->inlineScript(); ?>
</body>
</html>
<?php echo $this->render('report/footer.phtml')?>

View File

@ -1,17 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="viewport" content="width=device-width, initial-scale=1.0" >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<meta http-equiv="Content-Language" content="fr-FR" >
<title>Kompass - Achat Bilan Financier</title>
<link href="/libs/bootstrap-v3.0.0/css/bootstrap.min.css" media="all" rel="stylesheet" type="text/css" >
<link href="/themes/default/css/justified-nav.css" media="all" rel="stylesheet" type="text/css" >
<!--[if lt IE 9]> <script type="text/javascript" src="/libs/html5shiv.js"></script><![endif]-->
<!--[if lt IE 9]> <script type="text/javascript" src="/libs/respond.min.js"></script><![endif]-->
</head>
<body>
<div class="container">
<?php echo $this->render('report/header.phtml')?>
<div class="page-header">
<h2>RAPPORT FINANCIER COMPLET <small>Livraison du rapport complet</small></h2>
@ -75,13 +62,4 @@
</div>
</div>
<!-- Site footer -->
<div class="footer">
<p>&copy; Scores & Décisions <?=date('Y')?></p>
</div>
</div>
<?php echo $this->inlineScript(); ?>
</body>
</html>
<?php echo $this->render('report/footer.phtml')?>

View File

@ -0,0 +1,10 @@
<!-- Site footer -->
<div class="footer">
<p>&copy; Scores & Décisions <?=date('Y')?></p>
</div>
</div>
<?php echo $this->inlineScript(); ?>
</body>
</html>

View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="viewport" content="width=device-width, initial-scale=1.0" >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<meta http-equiv="Content-Language" content="fr-FR" >
<title>Kompass - Achat Bilan Financier</title>
<link href="/libs/bootstrap-v3.0.2/css/bootstrap.min.css" media="all" rel="stylesheet" type="text/css" >
<link href="/themes/default/css/justified-nav.css" media="all" rel="stylesheet" type="text/css" >
<!--[if lt IE 9]> <script type="text/javascript" src="/libs/html5shiv.js"></script><![endif]-->
<!--[if lt IE 9]> <script type="text/javascript" src="/libs/respond.min.js"></script><![endif]-->
</head>
<body>
<div class="container">

View File

@ -1,17 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="viewport" content="width=device-width, initial-scale=1.0" >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<meta http-equiv="Content-Language" content="fr-FR" >
<title>Kompass - Achat Bilan Financier</title>
<link href="/libs/bootstrap-v3.0.0/css/bootstrap.min.css" media="all" rel="stylesheet" type="text/css" >
<link href="/themes/default/css/justified-nav.css" media="all" rel="stylesheet" type="text/css" >
<!--[if lt IE 9]> <script type="text/javascript" src="/libs/html5shiv.js"></script><![endif]-->
<!--[if lt IE 9]> <script type="text/javascript" src="/libs/respond.min.js"></script><![endif]-->
</head>
<body>
<div class="container">
<?php echo $this->render('report/header.phtml')?>
<div class="page-header">
<h2>RAPPORT FINANCIER COMPLET <small>Commande d'un rapport financier</small></h2>
@ -37,37 +24,49 @@
<div><b>Liste des informations disponibles</b></div>
<ul class="list-group">
<li class="list-group-item">
<span class="badge">Inclus</span>
<span class="glyphicon glyphicon-check pull-right" title="Inclus"></span>
Identité complète
</li>
<li class="list-group-item">
<span class="badge">Inclus</span>
Dirigeants
<span class="glyphicon glyphicon-check pull-right" title="Inclus"></span>
Dirigeants Statutaires
</li>
<li class="list-group-item">
<span class="badge"><?=($this->NbLiens == 0) ? 'Néant': 'Inclus';?></span>
<?php if ($this->NbLiens == 0) {?>
<span class="glyphicon glyphicon-uncheck pull-right" title="Néant"></span>
<?php } else {?>
<span class="glyphicon glyphicon-check pull-right" title="Inclus"></span>
<?php }?>
Liens inter-entreprises
</li>
<li class="list-group-item">
<span class="badge"><?=($this->NbAnnonces == 0) ? 'Néant': 'Inclus';?></span>
<?php if ($this->NbAnnonces == 0) {?>
<span class="glyphicon glyphicon-uncheck pull-right" title="Néant"></span>
<?php } else {?>
<span class="glyphicon glyphicon-check pull-right" title="Inclus"></span>
<?php }?>
Annonces légales
</li>
<li class="list-group-item">
<span class="badge"><?=($this->NbBilans == 0 ) ? 'Néant': 'Inclus';?></span>
<?php if ($this->NbBilans == 0) {?>
<span class="glyphicon glyphicon-uncheck pull-right" title="Néant"></span>
<?php } else {?>
<span class="glyphicon glyphicon-check pull-right" title="Inclus"></span>
<?php }?>
Bilans, ratios et SIG
</li>
<li class="list-group-item">
<span class="badge">Inclus</span>
<span class="glyphicon glyphicon-check pull-right" title="Inclus"></span>
Analyse financière et les commentaires
</li>
<li class="list-group-item">
<span class="badge">Inclus</span>
<span class="glyphicon glyphicon-check pull-right" title="Inclus"></span>
Indiscore (scoring financier) et encours conseillé
</li>
@ -76,7 +75,7 @@
<div class="row clearfix">
<div class="col-md-6">
<div class="alert alert-info">Prix : 10,00 &euro;</div>
<div class="alert alert-info">Prix : <?=$this->montant?></div>
</div>
<div class="col-md-6">
@ -87,13 +86,4 @@
<?php }?>
<!-- Site footer -->
<div class="footer">
<p>&copy; Scores & Décisions <?=date('Y')?></p>
</div>
</div>
<?php echo $this->inlineScript(); ?>
</body>
</html>
<?php echo $this->render('report/footer.phtml')?>

View File

@ -1,17 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="viewport" content="width=device-width, initial-scale=1.0" >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<meta http-equiv="Content-Language" content="fr-FR" >
<title>Kompass - Achat Bilan Financier</title>
<link href="/libs/bootstrap-v3.0.0/css/bootstrap.min.css" media="all" rel="stylesheet" type="text/css" >
<link href="/themes/default/css/justified-nav.css" media="all" rel="stylesheet" type="text/css" >
<!--[if lt IE 9]> <script type="text/javascript" src="/libs/html5shiv.js"></script><![endif]-->
<!--[if lt IE 9]> <script type="text/javascript" src="/libs/respond.min.js"></script><![endif]-->
</head>
<body>
<div class="container">
<?php echo $this->render('report/header.phtml')?>
<div class="page-header">
<h2>RAPPORT FINANCIER COMPLET <small>Mode de paiement</small></h2>
@ -40,7 +27,7 @@
<dd><?=$this->AdresseL2?></dd>
</dl>
<div class="alert alert-info">Prix : 10,00 &euro;</div>
<div class="alert alert-info">Prix : <?=$this->montant?></div>
</div>
@ -77,13 +64,4 @@
<?php }?>
<!-- Site footer -->
<div class="footer">
<p>&copy; Scores & Décisions <?=date('Y')?></p>
</div>
</div>
<?php echo $this->inlineScript(); ?>
</body>
</html>
<?php echo $this->render('report/footer.phtml')?>

View File

@ -1,17 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="viewport" content="width=device-width, initial-scale=1.0" >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<meta http-equiv="Content-Language" content="fr-FR" >
<title>Kompass - Achat Bilan Financier</title>
<link href="/libs/bootstrap-v3.0.0/css/bootstrap.min.css" media="all" rel="stylesheet" type="text/css" >
<link href="/themes/default/css/justified-nav.css" media="all" rel="stylesheet" type="text/css" >
<!--[if lt IE 9]> <script type="text/javascript" src="/libs/html5shiv.js"></script><![endif]-->
<!--[if lt IE 9]> <script type="text/javascript" src="/libs/respond.min.js"></script><![endif]-->
</head>
<body>
<div class="container">
<?php echo $this->render('report/header.phtml')?>
<div class="page-header">
<h2>RAPPORT FINANCIER COMPLET <small>Erreur</small></h2>
@ -28,13 +15,4 @@
<?php }?>
<!-- Site footer -->
<div class="footer">
<p>&copy; Scores & Décisions <?=date('Y')?></p>
</div>
</div>
<?php echo $this->inlineScript(); ?>
</body>
</html>
<?php echo $this->render('report/footer.phtml')?>

View File

@ -212,10 +212,21 @@ class Paybox_System extends Paybox_Config
}
/**
*
* Define URL parameters as strng to calculate HMAC
* @param string $withReturnUrl
*/
public function setUrlParameters()
public function setUrlParameters($withReturnUrl = '')
{
if ( !empty($withReturnUrl) ) {
$this->setReturnUrl($withReturnUrl);
$this->stackfields = $this->stackfields + array(
'PBX_EFFECTUE',
'PBX_REFUSE',
'PBX_ATTENTE',
'PBX_ANNULE',
);
}
$dateTime = date('c');
$this->PBX_TIME = $dateTime;
$params = '';
@ -264,4 +275,15 @@ class Paybox_System extends Paybox_Config
$this->PBX_HMAC = strtoupper(hash_hmac('sha512', $this->URL_PARAMETERS, $binKey));
}
/**
* Define Return URL
* @param string $url
*/
public function setReturnUrl($url)
{
$this->PBX_EFFECTUE = $url;
$this->PBX_REFUSE = $url;
$this->PBX_ATTENTE = $url;
$this->PBX_ANNULE = $url;
}
}