예제 #1
0
function EchoLig($NmChamp, $FTE = "")
{
    global $CIL, $access;
    // FTE= Force Type Edit
    if ($FTE != "") {
        $CIL[$NmChamp]->TypEdit = $FTE;
    }
    if ($CIL[$NmChamp]->TypEdit != "C" || $CIL[$NmChamp]->ValChp != "") {
        // ne pas afficher les libelle des champs cachés
        if ($CIL[$NmChamp]->TypeAff != "HID") {
            echo '<tr><td><b>' . $CIL[$NmChamp]->Libelle . '</b>';
            if ($CIL[$NmChamp]->TypEdit != "C" && $CIL[$NmChamp]->Comment != "") {
                echspan("legendes9px", "<BR>" . $CIL[$NmChamp]->Comment);
            }
            echo "</td>\n";
            echo "<td>";
            // traitement valeurs avant MAJ
            $CIL[$NmChamp]->InitAvMaj($_SESSION['auth_id']);
            $CIL[$NmChamp]->EchoEditAll();
            // pas de champs hidden
            echo "</td></tr>\n";
        } else {
            // champs cachés
            $CIL[$NmChamp]->InitAvMaj($_SESSION['auth_id']);
            $CIL[$NmChamp]->EchoEditAll();
        }
    }
}
예제 #2
0
function EchoLig($NmChamp, $FTE = "")
{
    global $CIL, $access;
    // FTE= Force Type Edit
    if ($FTE != "") {
        $CIL[$NmChamp]->TypEdit = $FTE;
    }
    if ($CIL[$NmChamp]->TypEdit != "C" || $CIL[$NmChamp]->ValChp != "") {
        // on vire la ligne categorie parent et entite parent
        $display = true;
        if ($NmChamp == 'CATEGORIES_CAT_ID' || $NmChamp == 'ENT_PARENTID') {
            $display = false;
        }
        if ($FTE == 'C' && ereg('PROPRIETE', $NmChamp) && !$access) {
            $display = false;
        }
        if ($display == true) {
            // ne pas afficher les libelle des champs cachés
            if ($CIL[$NmChamp]->TypeAff != "HID") {
                echo '<tr><td><b>' . $CIL[$NmChamp]->Libelle . '</b>';
                if ($CIL[$NmChamp]->TypEdit != "C" && $CIL[$NmChamp]->Comment != "") {
                    echspan("legendes9px", "<BR>" . $CIL[$NmChamp]->Comment);
                }
                echo "</td>\n";
                echo "<td>";
                // traitement valeurs avant MAJ
                $CIL[$NmChamp]->InitAvMaj($_SESSION['auth_id']);
                $CIL[$NmChamp]->EchoEditAll();
                // pas de champs hidden
                echo "</td></tr>\n";
            } else {
                // champs cachés
                $CIL[$NmChamp]->InitAvMaj($_SESSION['auth_id']);
                $CIL[$NmChamp]->EchoEditAll();
            }
        }
    }
}
예제 #3
0
        $CIL[$NmChamp]->ValChp = $data[$NmChamp];
        $CIL[$NmChamp]->TypEdit = 'C';
        // on affiche pas les champs cachés
        if ($CIL[$NmChamp]->Typaff_l != '' && $CIL[$NmChamp]->TypeAff != "HID" && ($CIL[$NmChamp]->TypEdit != "C" || $CIL[$NmChamp]->ValChp != "")) {
            // on vire les champs qui ne doivent pas etre affiché (droit ou inutiles)
            $display = true;
            if ($NmChamp == 'ENT_PARENTID' || $NmChamp == 'CATEGORIES_CAT_ID') {
                $display = false;
            }
            if (ereg('PROPRIETE', $NmChamp) && !$access) {
                $display = false;
            }
            if ($display == true) {
                $tmp .= '<tr><td style="vertical-align:top;"><b>' . $CIL[$NmChamp]->Libelle . '</b>';
                if ($CIL[$NmChamp]->TypEdit != "C" && $CIL[$NmChamp]->Comment != "") {
                    $tmp .= echspan("legendes9px", "<BR>" . $CIL[$NmChamp]->Comment);
                }
                $tmp .= '</td>' . "\n";
                $tmp .= '<td valign="top"><b>:</b> ';
                // traitement valeurs avant MAJ
                $CIL[$NmChamp]->DirEcho = false;
                $tmp .= $CIL[$NmChamp]->EchoEditAll();
                // pas de champs hidden
                $tmp .= '</td></tr>' . "\n";
            }
        }
    }
    $tmp .= '</table>';
    $tmp = str_replace('&lt;br&gt;', '<br>', $tmp);
    $tpl->set_var('contenu', $tmp);
}
예제 #4
0
function EchoLig($NmChamp,$FTE=""){
	global $CIL,$ss_InfoUser;
	// FTE= Force Type Edit
	if ($FTE!="") $CIL[$NmChamp]->TypEdit=$FTE;
	if ($CIL[$NmChamp]->TypEdit!="C" || $CIL[$NmChamp]->ValChp!="") { 
	  	echo "<tr><td>".$CIL[$NmChamp]->Libelle;
		if ($CIL[$NmChamp]->TypEdit!="C" && $CIL[$NmChamp]->Comment!="") {
			echspan("legendes9px","<BR>".$CIL[$NmChamp]->Comment);
			} 
		echo "</td>\n";
		echo "<td>";
	  	// traitement valeurs avant MAJ
  	  	$CIL[$NmChamp]->InitAvMaj($ss_InfoUser[NUPERS]);
		$CIL[$NmChamp]->EchoEditAll(); // pas de champs hidden
		echo "</td></tr>\n";
	}
}