Exemplo n.º 1
0
if ($CleOK == '069b9247591948b71d303ac66371bf0b') {
    require_once $PATH_CLASS . 'CEntreprise.php';
    require_once $PATH_RACINE . 'Util/UtilPages.php';
    if ($Status == TUTEUR) {
        $IdentPK = $FK_EntrepriseUser;
    }
    $ObjTuple = new CEntreprise($IdentPK);
    $ValPK_Entreprise = $ObjTuple->GetPK_Entreprise();
    $ValNomE = $ObjTuple->GetNomE();
    $ValAdr1 = $ObjTuple->GetAdr1();
    $ValAdr2 = $ObjTuple->GetAdr2();
    $ValCP = $ObjTuple->GetCP();
    $ValVille = $ObjTuple->GetVille();
    $ValCivilite = $ObjTuple->GetCivilite();
    $ValNomRespAdmin = $ObjTuple->GetNomR();
    $ValPrenomRespAdmin = $ObjTuple->GetPrenomR();
    $ValTelRespAdmin = $ObjTuple->GetTelR();
    $ValMailRespAdmin = $ObjTuple->GetMailR();
    $ValFaxRespAdmin = $ObjTuple->GetFaxR();
    $ValPresentEntreprise = $ObjTuple->GetPresentEntreprise();
    $ValSiteEntreprise = $ObjTuple->GetSiteEntreprise();
    $WidthButton = 100;
    ?>

	<br />
	<h4 class="center"><?php 
    echo $ValNomE;
    ?>
</h4>
	<table class="bordered striped">
 if (!GetDroits($Status, 'ModifEntreprise')) {
     $IdentPK = $_SESSION['FK_EntrepriseUser'];
 }
 if (!isset($StepConsult)) {
     $StepConsult = isset($IdentPK) && $IdentPK != 0 ? 'InitModif' : 'InitNew';
 }
 $ValidPK_Entreprise = $ValidCivilite = $ValidNomE = $ValidNomR = $ValidPrenomR = $ValidAdr1 = $ValidAdr2 = $ValidCP = $ValidVille = $ValidTelR = $ValidMailR = $ValidFaxR = $ValidPresentEntreprise = $ValidSiteEntreprise = ESPACE;
 switch ($StepConsult) {
     case 'InitModif':
     case 'InitNew':
         // Préparation du nouvel enreg. ou récupération de l'enreg. à modifier
         $ObjTuple = new CEntreprise($StepConsult == 'InitModif' ? $IdentPK : 0);
         $ValPK_Entreprise = $ObjTuple->GetPK_Entreprise();
         $ValNomE = $ObjTuple->GetNomE();
         $ValCivilite = $ObjTuple->GetCivilite();
         $ValNomR = $ObjTuple->GetNomR();
         $ValPrenomR = $ObjTuple->GetPrenomR();
         $ValAdr1 = $ObjTuple->GetAdr1();
         $ValAdr2 = $ObjTuple->GetAdr2();
         $ValCP = $ObjTuple->GetCP();
         $ValVille = $ObjTuple->GetVille();
         $ValTelR = $ObjTuple->GetTelR();
         $ValMailR = $ObjTuple->GetMailR();
         $ValFaxR = $ObjTuple->GetFaxR();
         $ValPresentEntreprise = $ObjTuple->GetPresentEntreprise();
         if (trim($ObjTuple->GetSiteEntreprise()) == 'http://') {
             $ObjTuple->SetSiteEntreprise('');
         }
         $ValSiteEntreprise = $ObjTuple->GetSiteEntreprise();
         break;
     case 'Valid':
Exemplo n.º 3
0
					<div class="info-table">
	    	<table class="bordered striped" >
				<thead class="bleu1 white-text">
				<tr>
       	   	        <th >&nbsp;</th>
                    <th >Responsable administratif</th>
                    <th >Maître de stage</th>
                </tr>
				</thead>
                <tr>
                    <th>Nom</th>
                    <td><?php 
    echo $ObjEntreprise->GetPrenomR();
    ?>
					    <?php 
    echo $ObjEntreprise->GetNomR();
    ?>
					</td>
                    <td><?php 
    echo $ObjUser->GetPrenom();
    ?>
					    <?php 
    echo $ObjUser->GetNom();
    ?>
					</td>
                </tr>
                <tr>
                    <th>Tél.</th>
                    <td><?php 
    echo $ObjEntreprise->GetTelR();
    ?>