";
//
//
$ergebnis = variable_recherche( $_SESSION[ "mandant_name" ], "USERNOTE", $_SESSION[ "benutzer_anmeldename" ], array( array( "feld"=>"alpha_01", "operator"=>"EQUAL", "wert"=>$_SESSION[ "benutzer_anmeldename" ] ) ) );
if ( $ergebnis[ 0 ] > 0 )
{
$dok_id = $ergebnis[ 2 ][ 0 ][ "dok_id" ];
$bin = liefere_dokumentbinary( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ], $dok_id );
if ( $bin[ 0 ] > 0 )
{
$binary = $bin[ 2 ];
$bin_arr = explode( "|||||", $binary );
$dok_vorhanden = true;
}
}
else
{
$dok_vorhanden = false;
}
$divine = '';
for ( $j = 1; $j <= 10; $j++ )
{
if ( $dok_vorhanden == true )
{
$textarea = $bin_arr[ $j ];
}
else
{
$textarea = "";
}
$divine = $divine.'- Notizen '.$j.'
';
$o = $o."";
}
$divine = $divine."
".$o."
";
$skript = "function notizen_speichern() {
var not1 = document.getElementById( 'id_1' );
var not2 = document.getElementById( 'id_2' );
var not3 = document.getElementById( 'id_3' );
var not4 = document.getElementById( 'id_4' );
var not5 = document.getElementById( 'id_5' );
var not6 = document.getElementById( 'id_6' );
var not7 = document.getElementById( 'id_7' );
var not8 = document.getElementById( 'id_8' );
var not9 = document.getElementById( 'id_9' );
var not10 = document.getElementById( 'id_10' );
not1 = encodeURIComponent( not1.value );
not2 = encodeURIComponent( not2.value );
not3 = encodeURIComponent( not3.value );
not4 = encodeURIComponent( not4.value );
not5 = encodeURIComponent( not5.value );
not6 = encodeURIComponent( not6.value );
not7 = encodeURIComponent( not7.value );
not8 = encodeURIComponent( not8.value );
not9 = encodeURIComponent( not9.value );
not10 = encodeURIComponent( not10.value );
ajaxFunction( 'su_web.php?cmd=speichere_notizen_pbn&element_id=".$_SESSION[ "benutzer_anmeldename" ]."&alpha_01='+not1+'&alpha_02='+not2+'&alpha_03='+not3+'&alpha_04='+not4+'&alpha_05='+not5+'&alpha_06='+not6+'&alpha_07='+not7+'&alpha_08='+not8+'&alpha_09='+not9+'&alpha_10='+not10, 'ergebnis_1' );
}";
$skript = "";
$button = "
";
echo $button.$divine.$skript;
?>
'.$_SESSION[ "wkz_meld" ].'';
$_SESSION[ "wkz_meld" ] = "";
echo "";
include( 'ssi_footer.php' );
?>