This commit is contained in:
Michael RICOIS 2016-04-29 21:45:16 +02:00
parent 1f2f0f4364
commit 1b9c4554f4
10 changed files with 257 additions and 264 deletions

View File

@ -57,12 +57,11 @@
<?php foreach ($this->UserHisto as $item) {?> <?php foreach ($this->UserHisto as $item) {?>
<li><a href="<?=$this->url(array('module'=>'default', 'controller'=>'identite', 'action'=>'fiche', <li><a href="<?=$this->url(array('module'=>'default', 'controller'=>'identite', 'action'=>'fiche',
'siret'=>$item->CompanyId), 'default', true)?>" target="_blank"> 'siret'=>$item->CompanyId), 'default', true)?>" target="_blank">
<div> <div><strong><?=$item->CompanyName?></strong></div>
<strong><?=$item->CompanyName?></strong>
</div>
<div class="clearfix"> <div class="clearfix">
<small><?=$item->CompanyId?></small> <small><?=$item->CompanyId?></small>
<span class="text-muted"><small><em><?=$item->Date?></em></small></span></div> <span class="text-muted"><small><em><?=$item->Date?></em></small></span>
</div>
</a> </a>
</li> </li>
<li class="divider"></li> <li class="divider"></li>
@ -102,7 +101,7 @@
'default', true)?>">Extranet Dashboard</a></li> 'default', true)?>">Extranet Dashboard</a></li>
<?php }?> <?php }?>
<li role="separator" class="divider"></li> <li role="separator" class="divider"></li>
<li><a href="<?=$this->url(array('module'=>'default', 'controller'=>'order', 'action'=>'index'), <li><a href="<?=$this->url(array('module'=>'user', 'controller'=>'order', 'action'=>'index'),
'default', true)?>">Commandes</a></li> 'default', true)?>">Commandes</a></li>
<li><a href="<?=$this->url(array('module'=>'default', 'controller'=>'surveillance', 'action'=>'liste'), <li><a href="<?=$this->url(array('module'=>'default', 'controller'=>'surveillance', 'action'=>'liste'),
'default', true)?>">Surveillances</a></li> 'default', true)?>">Surveillances</a></li>

View File

@ -1,225 +0,0 @@
<?php
class OrderController extends Zend_Controller_Action
{
protected $theme;
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
}
public function indexAction(){}
public function kbisAction()
{
$request = $this->getRequest();
// --- Année de départ
$user = new Scores_Utilisateur();
$startYear = substr($user->identity->dateDebutCompte,0,4);
if (empty($startYear)) {
$startYear = 2006;
}
// --- Date
$date = new Zend_Date();
$year = $date->toString('yyyy'); //Année en cours
$month = $date->toString('MM'); //Mois en cours
$nbYear = $year - $startYear + 1;
$selectYear = array();
for( $i=0; $i<$nbYear; $i++ ) {
$selectYear[] = $startYear + $i;
}
$this->view->Years = $selectYear;
$selectMonth = array('01','02','03','04','05','06','07','08','09','10','11','12');
$this->view->Months = $selectMonth;
$selectedYear = $request->getParam('y', date('Y'));
$this->view->year = $selectedYear;
$selectedMonth = $request->getParam('m', date('m'));
$this->view->month = $selectedMonth;
// --- Fin Date
$ws = new Scores_Ws_Client('order', '0.1');
$params = new stdClass();
$params->month = $selectedYear.'-'.$selectedMonth;
$response = $ws->getKbisList($params);
if ($response === false) {
$this->view->Error = true;
} else {
$this->view->Cmd = $response->item;
}
}
public function bilaninputAction()
{
$request = $this->getRequest();
// --- Année de départ
$user = new Scores_Utilisateur();
$startYear = substr($user->identity->dateDebutCompte,0,4);
if (empty($startYear)) {
$startYear = 2006;
}
// --- Date
$date = new Zend_Date();
$year = $date->toString('yyyy'); //Année en cours
$month = $date->toString('MM'); //Mois en cours
$nbYear = $year - $startYear + 1;
$selectYear = array();
for( $i=0; $i<$nbYear; $i++ ) {
$selectYear[] = $startYear + $i;
}
$this->view->Years = $selectYear;
$selectMonth = array('01','02','03','04','05','06','07','08','09','10','11','12');
$this->view->Months = $selectMonth;
$selectedYear = $request->getParam('y', date('Y'));
$this->view->year = $selectedYear;
$selectedMonth = $request->getParam('m', date('m'));
$this->view->month = $selectedMonth;
// --- Fin Date
$ws = new Scores_Ws_Client('order', '0.1');
$params = new stdClass();
$params->month = $selectedYear.'-'.$selectedMonth;
$response = $ws->getBilanInputList($params);
if ($response === false) {
$this->view->Error = true;
} else {
$this->view->Cmd = $response->item;;
}
}
public function greffebilanAction()
{
$request = $this->getRequest();
// --- Année de départ
$user = new Scores_Utilisateur();
$startYear = substr($user->identity->dateDebutCompte,0,4);
if (empty($startYear)) {
$startYear = 2006;
}
// --- Date
$date = new Zend_Date();
$year = $date->toString('yyyy'); //Année en cours
$month = $date->toString('MM'); //Mois en cours
$nbYear = $year - $startYear + 1;
$selectYear = array();
for( $i=0; $i<$nbYear; $i++ ) {
$selectYear[] = $startYear + $i;
}
$this->view->Years = $selectYear;
$selectMonth = array('01','02','03','04','05','06','07','08','09','10','11','12');
$this->view->Months = $selectMonth;
$selectedYear = $request->getParam('y', date('Y'));
$this->view->year = $selectedYear;
$selectedMonth = $request->getParam('m', date('m'));
$this->view->month = $selectedMonth;
// --- Fin Date
$ws = new Scores_Ws_Client('order', '0.1');
$params = new stdClass();
$params->month = $selectedYear.'-'.$selectedMonth;
$response = $ws->getBilanList($params);
if ($response === false) {
$this->view->Error = true;
} else {
$this->view->Cmd = $response->item;;
}
}
public function greffeacteAction()
{
$request = $this->getRequest();
// --- Année de départ
$user = new Scores_Utilisateur();
$startYear = substr($user->identity->dateDebutCompte,0,4);
if (empty($startYear)) {
$startYear = 2006;
}
// --- Date
$date = new Zend_Date();
$year = $date->toString('yyyy'); //Année en cours
$month = $date->toString('MM'); //Mois en cours
$nbYear = $year - $startYear + 1;
$selectYear = array();
for( $i=0; $i<$nbYear; $i++ ) {
$selectYear[] = $startYear + $i;
}
$this->view->Years = $selectYear;
$selectMonth = array('01','02','03','04','05','06','07','08','09','10','11','12');
$this->view->Months = $selectMonth;
$selectedYear = $request->getParam('y', date('Y'));
$this->view->year = $selectedYear;
$selectedMonth = $request->getParam('m', date('m'));
$this->view->month = $selectedMonth;
// --- Fin Date
$ws = new Scores_Ws_Client('order', '0.1');
$params = new stdClass();
$params->month = $selectedYear.'-'.$selectedMonth;
$response = $ws->getActeList($params);
if ($response === false) {
$this->view->Error = true;
} else {
$this->view->Cmd = $response->item;;
}
}
public function assostatutAction()
{
$request = $this->getRequest();
// --- Année de départ
$user = new Scores_Utilisateur();
$startYear = substr($user->identity->dateDebutCompte,0,4);
if (empty($startYear)) {
$startYear = 2006;
}
// --- Date
$date = new Zend_Date();
$year = $date->toString('yyyy'); //Année en cours
$month = $date->toString('MM'); //Mois en cours
$nbYear = $year - $startYear + 1;
$selectYear = array();
for( $i=0; $i<$nbYear; $i++ ) {
$selectYear[] = $startYear + $i;
}
$this->view->Years = $selectYear;
$selectMonth = array('01','02','03','04','05','06','07','08','09','10','11','12');
$this->view->Months = $selectMonth;
$selectedYear = $request->getParam('y', date('Y'));
$this->view->year = $selectedYear;
$selectedMonth = $request->getParam('m', date('m'));
$this->view->month = $selectedMonth;
// --- Fin Date
}
}

View File

@ -1,29 +0,0 @@
<div id="center">
<h1>Commandes</h1>
<div class="paragraph">
<a href="<?=$this->url(array('controller'=>'order', 'action'=>'kbis'), 'default', true)?>">KBIS</a>
<br/>Liste des commandes KBIS.
</div>
<div class="paragraph">
<a href="<?=$this->url(array('controller'=>'order', 'action'=>'greffebilan'), 'default', true)?>">Pièces officielles - Bilans</a>
</br>Liste des commandes de bilan au format image.
</div>
<div class="paragraph">
<a href="<?=$this->url(array('controller'=>'order', 'action'=>'greffeacte'), 'default', true)?>">Pièces officielles - Actes</a>
</br>Liste des commandes d'actes et statuts
</div>
<div class="paragraph">
<a href="<?=$this->url(array('controller'=>'order', 'action'=>'assostatut'), 'default', true)?>">Statuts associations</a>
</br>Liste des commandes de statuts associations
</div>
<div class="paragraph">
<a href="<?=$this->url(array('controller'=>'order', 'action'=>'bilaninput'), 'default', true)?>">Saisie de bilan</a>
</br>Liste des commandes de saisie de bilan
</div>
</div>

View File

@ -1,5 +1,224 @@
<?php <?php
class User_OrderController extends Zend_Controller_Action class User_OrderController extends Zend_Controller_Action
{ {
protected $theme;
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
}
public function indexAction(){}
public function kbisAction()
{
$request = $this->getRequest();
// --- Année de départ
$user = new Scores_Utilisateur();
$startYear = substr($user->identity->dateDebutCompte,0,4);
if (empty($startYear)) {
$startYear = 2006;
}
// --- Date
$date = new Zend_Date();
$year = $date->toString('yyyy'); //Année en cours
$month = $date->toString('MM'); //Mois en cours
$nbYear = $year - $startYear + 1;
$selectYear = array();
for( $i=0; $i<$nbYear; $i++ ) {
$selectYear[] = $startYear + $i;
}
$this->view->Years = $selectYear;
$selectMonth = array('01','02','03','04','05','06','07','08','09','10','11','12');
$this->view->Months = $selectMonth;
$selectedYear = $request->getParam('y', date('Y'));
$this->view->year = $selectedYear;
$selectedMonth = $request->getParam('m', date('m'));
$this->view->month = $selectedMonth;
// --- Fin Date
$ws = new Scores_Ws_Client('order', '0.1');
$params = new stdClass();
$params->month = $selectedYear.'-'.$selectedMonth;
$response = $ws->getKbisList($params);
if ($response === false) {
$this->view->Error = true;
} else {
$this->view->Cmd = $response->item;
}
}
public function bilaninputAction()
{
$request = $this->getRequest();
// --- Année de départ
$user = new Scores_Utilisateur();
$startYear = substr($user->identity->dateDebutCompte,0,4);
if (empty($startYear)) {
$startYear = 2006;
}
// --- Date
$date = new Zend_Date();
$year = $date->toString('yyyy'); //Année en cours
$month = $date->toString('MM'); //Mois en cours
$nbYear = $year - $startYear + 1;
$selectYear = array();
for( $i=0; $i<$nbYear; $i++ ) {
$selectYear[] = $startYear + $i;
}
$this->view->Years = $selectYear;
$selectMonth = array('01','02','03','04','05','06','07','08','09','10','11','12');
$this->view->Months = $selectMonth;
$selectedYear = $request->getParam('y', date('Y'));
$this->view->year = $selectedYear;
$selectedMonth = $request->getParam('m', date('m'));
$this->view->month = $selectedMonth;
// --- Fin Date
$ws = new Scores_Ws_Client('order', '0.1');
$params = new stdClass();
$params->month = $selectedYear.'-'.$selectedMonth;
$response = $ws->getBilanInputList($params);
if ($response === false) {
$this->view->Error = true;
} else {
$this->view->Cmd = $response->item;;
}
}
public function greffebilanAction()
{
$request = $this->getRequest();
// --- Année de départ
$user = new Scores_Utilisateur();
$startYear = substr($user->identity->dateDebutCompte,0,4);
if (empty($startYear)) {
$startYear = 2006;
}
// --- Date
$date = new Zend_Date();
$year = $date->toString('yyyy'); //Année en cours
$month = $date->toString('MM'); //Mois en cours
$nbYear = $year - $startYear + 1;
$selectYear = array();
for( $i=0; $i<$nbYear; $i++ ) {
$selectYear[] = $startYear + $i;
}
$this->view->Years = $selectYear;
$selectMonth = array('01','02','03','04','05','06','07','08','09','10','11','12');
$this->view->Months = $selectMonth;
$selectedYear = $request->getParam('y', date('Y'));
$this->view->year = $selectedYear;
$selectedMonth = $request->getParam('m', date('m'));
$this->view->month = $selectedMonth;
// --- Fin Date
$ws = new Scores_Ws_Client('order', '0.1');
$params = new stdClass();
$params->month = $selectedYear.'-'.$selectedMonth;
$response = $ws->getBilanList($params);
if ($response === false) {
$this->view->Error = true;
} else {
$this->view->Cmd = $response->item;;
}
}
public function greffeacteAction()
{
$request = $this->getRequest();
// --- Année de départ
$user = new Scores_Utilisateur();
$startYear = substr($user->identity->dateDebutCompte,0,4);
if (empty($startYear)) {
$startYear = 2006;
}
// --- Date
$date = new Zend_Date();
$year = $date->toString('yyyy'); //Année en cours
$month = $date->toString('MM'); //Mois en cours
$nbYear = $year - $startYear + 1;
$selectYear = array();
for( $i=0; $i<$nbYear; $i++ ) {
$selectYear[] = $startYear + $i;
}
$this->view->Years = $selectYear;
$selectMonth = array('01','02','03','04','05','06','07','08','09','10','11','12');
$this->view->Months = $selectMonth;
$selectedYear = $request->getParam('y', date('Y'));
$this->view->year = $selectedYear;
$selectedMonth = $request->getParam('m', date('m'));
$this->view->month = $selectedMonth;
// --- Fin Date
$ws = new Scores_Ws_Client('order', '0.1');
$params = new stdClass();
$params->month = $selectedYear.'-'.$selectedMonth;
$response = $ws->getActeList($params);
if ($response === false) {
$this->view->Error = true;
} else {
$this->view->Cmd = $response->item;;
}
}
public function assostatutAction()
{
$request = $this->getRequest();
// --- Année de départ
$user = new Scores_Utilisateur();
$startYear = substr($user->identity->dateDebutCompte,0,4);
if (empty($startYear)) {
$startYear = 2006;
}
// --- Date
$date = new Zend_Date();
$year = $date->toString('yyyy'); //Année en cours
$month = $date->toString('MM'); //Mois en cours
$nbYear = $year - $startYear + 1;
$selectYear = array();
for( $i=0; $i<$nbYear; $i++ ) {
$selectYear[] = $startYear + $i;
}
$this->view->Years = $selectYear;
$selectMonth = array('01','02','03','04','05','06','07','08','09','10','11','12');
$this->view->Months = $selectMonth;
$selectedYear = $request->getParam('y', date('Y'));
$this->view->year = $selectedYear;
$selectedMonth = $request->getParam('m', date('m'));
$this->view->month = $selectedMonth;
// --- Fin Date
}
} }

View File

@ -1,7 +1,7 @@
<div id="center"> <div id="center">
<h1>Commandes de Statuts Association</h1> <h1>Commandes de Statuts Association</h1>
<div class="paragraph"> <div class="paragraph">
<form action="<?=$this->url(array('controller'=>'order', 'action'=>'assostatut'), null, true)?>"> <form action="<?=$this->url(array('module'=>'user', 'controller'=>'order', 'action'=>'assostatut'), null, true)?>">
<select name="y" > <select name="y" >
<?php foreach($this->Years as $year) { ?> <?php foreach($this->Years as $year) { ?>
<option value="<?=$year?>" <?php if($year==$this->year) echo 'selected';?>><?=$year?></option> <option value="<?=$year?>" <?php if($year==$this->year) echo 'selected';?>><?=$year?></option>

View File

@ -1,7 +1,7 @@
<div id="center"> <div id="center">
<h1>Commandes de saisie de bilan</h1> <h1>Commandes de saisie de bilan</h1>
<div class="paragraph"> <div class="paragraph">
<form action="<?=$this->url(array('controller'=>'order', 'action'=>'bilaninput'), null, true)?>"> <form action="<?=$this->url(array('module'=>'user', 'controller'=>'order', 'action'=>'bilaninput'), null, true)?>">
<select name="y" > <select name="y" >
<?php foreach($this->Years as $year) { ?> <?php foreach($this->Years as $year) { ?>
<option value="<?=$year?>" <?php if($year==$this->year) echo 'selected';?>><?=$year?></option> <option value="<?=$year?>" <?php if($year==$this->year) echo 'selected';?>><?=$year?></option>

View File

@ -1,7 +1,7 @@
<div id="center"> <div id="center">
<h1>Commandes de pièces officielles - actes</h1> <h1>Commandes de pièces officielles - actes</h1>
<div class="paragraph"> <div class="paragraph">
<form action="<?=$this->url(array('controller'=>'order', 'action'=>'greffeacte'), null, true)?>"> <form action="<?=$this->url(array('module'=>'user', 'controller'=>'order', 'action'=>'greffeacte'), null, true)?>">
<select name="y" > <select name="y" >
<?php foreach($this->Years as $year) { ?> <?php foreach($this->Years as $year) { ?>
<option value="<?=$year?>" <?php if($year==$this->year) echo 'selected';?>><?=$year?></option> <option value="<?=$year?>" <?php if($year==$this->year) echo 'selected';?>><?=$year?></option>

View File

@ -1,7 +1,7 @@
<div id="center"> <div id="center">
<h1>Commandes de pièces officielles - bilans au format image</h1> <h1>Commandes de pièces officielles - bilans au format image</h1>
<div class="paragraph"> <div class="paragraph">
<form action="<?=$this->url(array('controller'=>'order', 'action'=>'greffebilan'), null, true)?>"> <form action="<?=$this->url(array('module'=>'user', 'controller'=>'order', 'action'=>'greffebilan'), null, true)?>">
<select name="y" > <select name="y" >
<?php foreach($this->Years as $year) { ?> <?php foreach($this->Years as $year) { ?>
<option value="<?=$year?>" <?php if($year==$this->year) echo 'selected';?>><?=$year?></option> <option value="<?=$year?>" <?php if($year==$this->year) echo 'selected';?>><?=$year?></option>

View File

@ -0,0 +1,29 @@
<div id="content">
<h1>Commandes</h1>
<div class="paragraph">
<a href="<?=$this->url(array('module'=>'user', 'controller'=>'order', 'action'=>'kbis'), 'default', true)?>">KBIS</a>
<br/>Liste des commandes KBIS.
</div>
<div class="paragraph">
<a href="<?=$this->url(array('module'=>'user', 'controller'=>'order', 'action'=>'greffebilan'), 'default', true)?>">Pièces officielles - Bilans</a>
</br>Liste des commandes de bilan au format image.
</div>
<div class="paragraph">
<a href="<?=$this->url(array('module'=>'user', 'controller'=>'order', 'action'=>'greffeacte'), 'default', true)?>">Pièces officielles - Actes</a>
</br>Liste des commandes d'actes et statuts
</div>
<div class="paragraph">
<a href="<?=$this->url(array('module'=>'user', 'controller'=>'order', 'action'=>'assostatut'), 'default', true)?>">Statuts associations</a>
</br>Liste des commandes de statuts associations
</div>
<div class="paragraph">
<a href="<?=$this->url(array('module'=>'user', 'controller'=>'order', 'action'=>'bilaninput'), 'default', true)?>">Saisie de bilan</a>
</br>Liste des commandes de saisie de bilan
</div>
</div>

View File

@ -1,7 +1,7 @@
<div id="center"> <div id="center">
<h1>Commandes KBIS</h1> <h1>Commandes KBIS</h1>
<div class="paragraph"> <div class="paragraph">
<form action="<?=$this->url(array('controller'=>'order', 'action'=>'kbis'), null, true)?>"> <form action="<?=$this->url(array('module'=>'user', 'controller'=>'order', 'action'=>'kbis'), null, true)?>">
<select name="y" > <select name="y" >
<?php foreach($this->Years as $year) { ?> <?php foreach($this->Years as $year) { ?>
<option value="<?=$year?>" <?php if($year==$this->year) echo 'selected';?>><?=$year?></option> <option value="<?=$year?>" <?php if($year==$this->year) echo 'selected';?>><?=$year?></option>