<?php
//#20.0.49.3 ERP_ThinkApplis
ob_start();define('UNICODE_PAGE_UTF8',false);
$gszId='ERP_ThinkApplis	INDEX	20160820222308';
//-----------------------------------------------------------------------
// Include standard (définition des types, fonctions utilitaires)
//-----------------------------------------------------------------------
$CheminRepRes='./res/';
require_once($CheminRepRes.'WD20.0/WDFramework.php');
WB_Include('Architecture.php');
WB_Include('Interface.php');
WB_Include('HF.php');
IHM_Include('CBouton');
IHM_Include('CSaisie');


Res_Include('MonProjet-class.php',RES_CLASS_GLOBALES);
// Equivalent de [%URL()%]
$gszURL='index.php';
$j=1;$i=1;
session_start();
// protection contre register_globals = on
unset($INDEX);
if(SID!='')$gszURL.='?'.SID;

ChangeAlphabet(1,false);
ChangeNation(1);
$gtabCheminPage = array();
$gtabCheminPage['MENU']=array(5=>array('NOM'=>'menu','URL'=>'./'));
$gszCheminPageInverse='./';
$gtabCheminPage['INDEX']=array(5=>array('NOM'=>'index','URL'=>'./'));

EnvSet('JOURSSEMAINE',array("lundi","mardi","mercredi","jeudi","vendredi","samedi","dimanche"));
EnvSet('MOIS',array("janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"));
EnvSet('HCreationAutoActive',true);
EnvSet('FORMATDATESYSTEME','JJ/MM/AAAA');
EnvSet('FORMATHEURESYSTEME','HH:MM');
EnvSet('UNITESTAILLESFICHIER',array("o","Ko","Mo","Go","To"));
$_gszSEPDEVISE = "€";
$_gszSEPDEC = ",";
$_gszSEPMIL = " ";
//-----------------------------------------------------------------------
//  Restauration de contexte 
//-----------------------------------------------------------------------
RechargementPageSiBesoin('INDEX');
$gTabVarSession = GetSessionVar();
$_bContextePageExiste = isset($gTabVarSession['INDEX']);
$_bContexteProjetExiste = isset($gTabVarSession['MonProjet']);
if ($_bContexteProjetExiste) {
	// Le contexte du projet existe, on le restaure
	$MonProjet= $gTabVarSession['MonProjet'];
	$MonProjet->WB_RestaureContexte();
}
if ($_bContextePageExiste) {
	// Le contexte de la page existe, on le restaure
	$INDEX= $gTabVarSession['INDEX'];
	$INDEX->WB_RestaureContexte();
$MaPage = &$INDEX;
}
//-----------------------------------------------------------------------
// Déclaration de la page et de ses champs 
//-----------------------------------------------------------------------
// le 'if (isset())' gère le cas ou session.bug_compat_42 est à VRAI
if (!isset($INDEX)) {
$INDEX= new CPage(true);
$INDEX->Nom = 'index';
$INDEX->NomPhysique = basename (  __FILE__ ,substr(__FILE__,-4));
$INDEX->Alias = 'INDEX';
$INDEX->m_sNomPHP = 'INDEX';
$INDEX->Libelle = 'ERP ThinkApplis';
$INDEX->bUTF8 = true;
$INDEX->bAvecContexte = true;
$INDEX->sFichierPalette = './res/Phenix.wpc';
$MaPage = &$INDEX;
$A2_Bouton1=&CreerChamp('CBouton');$INDEX->WB_AjouteChamp('Bouton1','A2',$A2_Bouton1,'A2_Bouton1');
$A2_Bouton1->m_bLibelleRiche=true;

$A3_Bouton2=&CreerChamp('CBouton');$INDEX->WB_AjouteChamp('Bouton2','A3',$A3_Bouton2,'A3_Bouton2');
$A3_Bouton2->m_bLibelleRiche=true;

$A7_Saisie1=&CreerChamp('CSaisie');$INDEX->WB_AjouteChamp('Saisie1','A7',$A7_Saisie1,'A7_Saisie1');
$A7_Saisie1->SetATTMISEABLANC(true);
$A7_Saisie1->SetChampFormate(false);
$A7_Saisie1->m_bLibelleRiche=true;

$A8_Saisie2=&CreerChamp('CSaisie');$INDEX->WB_AjouteChamp('Saisie2','A8',$A8_Saisie2,'A8_Saisie2');
$A8_Saisie2->SetATTMISEABLANC(true);
$A8_Saisie2->SetChampFormate(false);
$A8_Saisie2->m_bLibelleRiche=true;



//-----------------------------------------------------------------------
//  Initialisation de la valeur des champs
//-----------------------------------------------------------------------
$A2_Bouton1->Libelle = function_exists("construireTexteRiche_A2_Bouton1") ? null : 'Se connecter';


$A2_Bouton1->lierVM('index','Bouton1','A2_Bouton1');
$A3_Bouton2->Libelle = function_exists("construireTexteRiche_A3_Bouton2") ? null : 'Fermer';


$A3_Bouton2->lierVM('index','Bouton2','A3_Bouton2');
$A7_Saisie1->Libelle = 'Votre email :';
$A7_Saisie1->Masque = '0';


$A7_Saisie1->lierVM('index','Saisie1','A7_Saisie1');
$A8_Saisie2->Libelle = 'Mot de passe :';
$A8_Saisie2->Masque = '0';


$A8_Saisie2->lierVM('index','Saisie2','A8_Saisie2');


// fin de bloc pour 'if (isset())' qui gère le cas ou session.bug_compat_42 est à VRAI
}
if (!$_bContexteProjetExiste) {
	// Pas de contexte, il faut initialiser le conctexte globlal
	$MonProjet= new CProjet();
//  Ouverture de l'analyse 
	HOuvreAnalyse($CheminRepRes.'ERP_ThinkApplis.xdd');
	// on charge le code du projet, 
	if (	Res_Include('ERP_ThinkApplis-prj.php',RES_PROJET)) {DeclMonProjet(); }
	$MonProjet->InitProjet('ERP_ThinkApplis');
}
 else { 
	Res_Include('ERP_ThinkApplis-prj.php',RES_PROJET);
}
//-----------------------------------------------------------------------
// Implémentation des Traitements 
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
// Procédures locales de la page
//-----------------------------------------------------------------------
// Code d'initialisation de page
// Code de chaque affichage de page

//-----------------------------------------------------------------------
// Codes d'initialisation des champ et de la page
//-----------------------------------------------------------------------
// Si c'est le 1er appel pour cette page (=pas de contexte)
if (!$_bContextePageExiste) {
	$MonProjet->SetPageCourante('INDEX','index');

// Code de déclaration des globales de page
function& index0()
{
	$WB_NIVEAU_PILE=empileVM('index','index');
	return _return ($_PHP_VAR_RETURN_);
}
// Appel le code de déclaration des globales de index
	index0();



// Code d'initialisation de page

}
else
{
	$MonProjet->SetPageCouranteContexte('INDEX','index');
}
//-----------------------------------------------------------------------
//  Affectation des champ, recherche du Traitement à exécuter 
//-----------------------------------------------------------------------
if(!GereActions( $INDEX)){
$_BTNACTION = TrouveBouton( $INDEX );

}
if ( !bRenvoitCodeHTML($INDEX,true)) exit();
?>
<!DOCTYPE html>
<html lang="fr" class="no-js htmlstd html5">
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo $MaPage->GetLibelle(); ?></title><meta name="generator" content="WEBDEV">
<meta name="Description" lang="fr" content="<?php echo $MaPage->GetDescription(); ?>">
<meta name="keywords" lang="fr" content="<?php echo $MaPage->GetMotsCles(); ?>">
<?php echo $MaPage->GetHTMLEnteteHTML(); ?><link rel="shortcut icon" type="image/x-icon" href="res/FLS01051k_24_1_19A37E45_.png">
<style type="text/css">.wblien,.wblienHorsZTR {border:0;background:transparent;padding:0;text-align:center;box-shadow:none; color:#2B93FF;}.wblienHorsZTR {border:0 !important;background:transparent !important;outline-width:0 !important;} :not(.wblienHorsZTR[class^=l-]) {box-shadow: none !important;}a:active{}a:visited{}*::-moz-selection{color:#FFFFFF;background-color:#000080;}::selection{color:#FFFFFF;background-color:#000080;}</style><link rel="stylesheet" type="text/css" href="res/standard.css?4258c56">
<link rel="stylesheet" type="text/css" href="res/static.css?d7a458fb">
<link rel="stylesheet" type="text/css" href="index_style.css?2428f0b7">
<link rel="stylesheet" type="text/css" href="Willy200WillyPhenix.css?a66b0f68">
<link rel="stylesheet" type="text/css" href="ERP_ThinkApplis200WillyPhenix.css?e52e0f52">
<link rel="stylesheet" type="text/css" href="palette-ERP_ThinkApplis.css?4cb5fdc9">
<link rel="stylesheet" type="text/css" href="palette-Phenix.css?1f49faea">
<style type="text/css">
body{line-height:normal;height:100%;width:100%;margin:0; color:#7E7E7E;}html,body { background-color:#DBDBDB;}#page{position:relative; background-color:#EEEEEE;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;border-style:solid;border-width:1px;border-color:#FCFCFC;border-collapse:collapse;empty-cells:show;border-spacing:0;}html, form {height:100%;}.A1{ }.dzA1{width:100%;height:100%;;overflow-x:hidden;overflow-y:hidden;position:relative;height:100%}.A4{ }.dzA4{width:32px;height:32px;;overflow-x:hidden;overflow-y:hidden;position:relative}#A5,#tzA5{font-size:x-large;}#A6,#tzA6{text-align:center;}.A7{ width:172px;height:21px;}.A8{ width:172px;height:21px;}#A8,#bzA8{text-align:left;}#A9,#tzA9,#bzA9{border-top:solid 1px #808080;border-right:none;border-bottom:none;border-left:none;border-collapse:collapse;empty-cells:show;border-spacing:0;}#A10,#tzA10,#bzA10{border-top:none;border-right:none;border-bottom:solid 1px #808080;border-left:none;border-collapse:collapse;empty-cells:show;border-spacing:0;}.wbplanche{background-repeat:repeat;background-position:0% 0%;background-attachment:scroll;background-size:auto auto;background-origin:padding-box;}.wbplancheLibInc{_font-size:1px;}</style><style id="wbStyleAncrageIE11" type="text/css">/*<!--*/ @media all and (-ms-high-contrast:none) { *::-ms-backdrop, #page, tr[style*='height: 100%']>td>*[style*='height: 100%'] { height:auto !important; } }  /* IE11 -->*/</style><script src="res/modernizr-2.5.3.js"></script></head><body onload="FinInitJS();chfocus();<?php echo WB_AfficheInfo(); ?> "><form name="INDEX" action="<?php echo $gszURL;?>" target="_self" method="post"><div class="h-0"><input type="hidden" name="WD_BUTTON_CLICK_" value=""><input type="hidden" name="WD_ACTION_" value=""></div><table style="width:100.00%;height:100.00%"><tr style="height:6px"><td style="width:980px"></td></tr><tr style="height:100.00%"><td style="width:100.00%"><table style="width:100.00%;height:100.00%"><tr style="height:100%"><td style="width:6px"><div style="height:100%;min-width:6px;width:auto !important;width:6px;" class="lh0"></div></td><td style="width:100.00%"><div  id="page" class="clearfix pos1"><table style="width:100.00%;height:100.00%"><tr style="height:100.00%"><td style="width:100.00%"><table style="width:100.00%;height:100.00%"><tr style="height:100%"><td style="width:100.00%"><div class="lh0 dzSpan dzA1" id="dzA1" style="min-height:586px\9;"><span style="position:absolute;top:0px;left:0px;width:100%;height:100%;"><img src="Technology.jpg" alt="" id="A1" class="Image padding" style="display:block;border:0;"></span></div></td><td style="width:19px"><div style="height:100%;min-width:19px;width:auto !important;width:19px;" class="lh0"></div></td><td style="width:309px"><div style="height:100%;min-width:309px;width:auto !important;width:309px;" class="lh0"><table style="width:309px;height:100.00%"><tr style="height:25px"><td style="width:309px"></td></tr><tr style="height:36px"><td style="width:309px"><div style="height:100%;min-width:309px;width:auto !important;width:309px;" class="lh0"><div  class="pos2"><div  class="pos3"><div class="lh0 dzSpan dzA4" id="dzA4" style="min-height:32px\9;"><img src="FLS07330_32_1.png" alt="" id="A4" class="Image padding" style="display:block;border:0;"></div></div></div><div  class="pos4"><div  class="pos5"><table style=" width:167px;height:36px;"><tr><td id="tzA5" class="Normal padding">ThinkApplis</td></tr></table></div></div></div></td></tr><tr style="height:22px"><td style="width:309px"></td></tr><tr style="height:53px"><td style="width:309px"><div style="height:100%;min-width:309px;width:auto !important;width:309px;" class="lh0"><div  class="pos6"><div  class="pos7"><table style=" width:305px;height:53px;"><tr><td id="tzA6" class="Normal padding">Une nouvelle génération d’ERP Full Web,<BR> Intégré &amp; Modulaire, source d’un avantage concurrentiel durable pour PME/PMI.</td></tr></table></div></div></div></td></tr><tr><td></td></tr><tr style="height:60px"><td style="width:309px"></td></tr><tr style="height:21px"><td style="width:309px"><div style="height:100%;min-width:309px;width:auto !important;width:309px;" class="lh0"><div  class="pos8"><div  class="pos9"><table style=" width:248px;border-spacing:0;height:21px;border-collapse:separate;outline:none;" id="bzA10"><tr><td style="border:none;" id="tzA10" class="Normal padding">Bienvenue dans votre ERP :</td></tr></table></div></div></div></td></tr><tr style="height:46px"><td style="width:309px"></td></tr><tr style="height:23px"><td style="width:309px"><div style="height:100%;min-width:309px;width:auto !important;width:309px;" class="lh0"><div  class="pos10"><div  class="pos11"><TABLE style=" width:266px;border-collapse:separate;_border-collapse:collapse;">
<TR><TD style=" width:94px; height:23px;" id="lzA7" class="Normal padding webdevclass-riche">Votre email :</TD><TD style=" width:172px;"><table style=" width:172px;border-spacing:0;height:23px;border-collapse:separate;border:0;outline:none;" id="bzA7"><tr><td style="border:none;" id="tzA7" class="valignmiddle"><INPUT TYPE="text" SIZE="15" NAME="A7" VALUE="<?php echo $A7_Saisie1->GetValeurHTML(); ?>" onblur="_T1(event) " onfocus="_T2(event) " id="A7" class="SAI A7 padding webdevclass-riche" title="Veuillez saisir votre email : xyz@exemple.com" placeholder="xyz@exemple.com"></td></tr></table></TD></TR>
</TABLE></div></div></div></td></tr><tr style="height:24px"><td style="width:309px"></td></tr><tr style="height:23px"><td style="width:309px"><div style="height:100%;min-width:309px;width:auto !important;width:309px;" class="lh0"><div  class="pos12"><div  class="pos13"><TABLE style=" width:266px;border-collapse:separate;_border-collapse:collapse;">
<TR><TD style=" width:94px; height:23px;" id="lzA8" class="Normal padding webdevclass-riche">Mot de passe :</TD><TD style=" width:172px;"><table style=" width:172px;border-spacing:0;height:23px;border-collapse:separate;border:0;outline:none;" id="bzA8"><tr><td style="border:none;" id="tzA8" class="valignmiddle"><INPUT TYPE="password" SIZE="15" NAME="A8" VALUE="<?php echo $A8_Saisie2->GetValeurHTML(); ?>" id="A8" class="SAI A8 padding webdevclass-riche" title="Veuillez saisir votre mot de passe"></td></tr></table></TD></TR>
</TABLE></div></div></div></td></tr><tr><td></td></tr><tr style="height:85px"><td style="width:309px"></td></tr><tr style="height:24px"><td style="width:309px"><div style="height:100%;min-width:309px;width:auto !important;width:309px;" class="lh0"><div  class="pos14"><div  class="pos15"><button type="button" onclick="_JSU(_PAGE_,'menu'+'.php'+'<?php if (SID != '') echo '?'.SID; ?>','post','_self','','') " id="A2" class="BTN-Image wblien padding webdevclass-riche" style="display:block;width:100%;height:24px;width:135px;height:24px;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;">Se connecter</button></div></div><div  class="pos16"><div  class="pos17"><button type="button" onclick="if(_T0()){_JSL(_PAGE_,'A3','_self','','')} " id="A3" class="BTN-Image wblien padding webdevclass-riche" style="display:block;width:100%;height:24px;width:80px;height:24px;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;">Fermer</button></div></div></div></td></tr><tr style="height:90px"><td style="width:309px"></td></tr><tr style="height:29px"><td style="width:309px"><div style="height:100%;min-width:309px;width:auto !important;width:309px;" class="lh0"><table style=" width:309px;border-spacing:0;height:29px;border-collapse:separate;outline:none;" id="bzA9"><tr><td style="border:none;" id="tzA9" class="Normal padding">Libellé</td></tr></table></div></td></tr><tr style="height:25px"><td style="width:309px"></td></tr></table></div></td><td style="width:15px"><div style="height:100%;min-width:15px;width:auto !important;width:15px;" class="lh0"></div></td></tr></table></td></tr></table></div></td><td style="width:6px"><div style="height:100%;min-width:6px;width:auto !important;width:6px;" class="lh0"></div></td></tr></table></td></tr><tr style="height:6px"><td style="width:980px"></td></tr></table>
</form>
<script type="text/javascript">var _bTable16_=false;
</script>
<script type="text/javascript" src="./res/StdAction.js?c66657e8" charset="windows-1252"></script>
<script type="text/javascript" src="./res/WDUtil.js?96576190" charset="windows-1252"></script>
<script type="text/javascript" src="./res/WDChamp.js?87373543" charset="windows-1252"></script>
<script type="text/javascript" src="./res/WDSaisie.js?a16e4097" charset="windows-1252"></script>
<script type="text/javascript">
var _PHPID_="<?php echo session_name() . '=' . session_id(); ?>";
var _PAGE_=document["INDEX"];
<!--
var _COL={9:"#ca232a",66:"#ffffff"};
function _JSU(p,u,m,t,n,o){u=_CFI(u);if(t=="_blank"&&o){var e=(n!=""?n.toUpperCase():"_BLANK_"+Math.abs((new Date()).getTime()));if(o)open("",e,o);else open("",e);t=e;}else if(t!="_blank"&&t!="_self"&&t!="_top"&&t!="_parent"){t=t.toUpperCase();}var _a=p.action;p.action=u;var _d=p.target;p.target=t;var _m=p.method;p.method=m;p.submit();setTimeout(function(){p.action=_a;p.target=_d;p.method=_m;},1);}
function _T0(event){clA7.OnSubmit(event);return true;}
function _T1(event){{}clA7.OnBlur(event);}
function _T2(event){clA7.OnFocus(event);{}}
function _LOD_COM(event){}
function _UNL_COM(event){}
//-->
</script>

<script type="text/javascript">function chfocus(){window.focus();if(_PAGE_["A7"]!=null)try{_PAGE_["A7"].focus();}catch(e){}}</script>
<script type="text/javascript">var clA7=new WDSaisie("xyz@exemple.com","A7","");</script><script type="text/javascript">function FinInitJS(){clA7.Init(null,"");}</script><script type="text/javascript">function FinSubmitAJAX(){clA7.RAZIndication();}</script><script data-wb-modal type="text/javascript">window.jQuery || document.write('\x3Cscript src="res/jquery.js"\x3E\x3C\/script\x3E')</script><script type="text/javascript" data-wb-modal src="res/jquery-ancrage-ie.js?16cf2ebb"></script><?php echo $MaPage->GetHTMLFinPageHTML(); ?></body></html><?php $_PHP_VAR_TMP_2=ob_get_contents();ob_end_clean();echo _cp1252_to_utf8($_PHP_VAR_TMP_2); ?>