Je cherche à créer une page HTML avec des effets css et inclure dans cette page un tableau multidimensionnelle généré par la fonction _StringToArray2D().
Créer la page OK, les effets css +- OK ^^
Par contre je n'arrive pas à intégrer mon tableau multidimensionnel...
Ci-joint mon code.
Merci par avance pour votre aide.
► Afficher le texte
Code : Tout sélectionner
Func _CaulkingValues()
;$aFileValues -> TABLEAU RETOURNE PAR LA FONCTION _StringToArray2D()
$oIE = _IECreate("about:blank", 0,0,0)
local $hwndIE = _IEPropertyGet ($oIE, "hwnd")
$sHTML = @CRLF & "<!DOCTYPE HTML PUBLIC " & Chr(34) & "-//W3C//DTD HTML 4.01 Transitional//EN" & Chr(34) & @CRLF & @TAB & @TAB & Chr(34) & "http://www.w3.org/TR/html4/loose.dtd" & Chr(34) & ">" & @CRLF
$sHTML &= "<html>" & @CRLF
$sHTML &= "<head>" & @CRLF
$sHTML &= " <meta http-equiv=" & Chr(34) & "Content-Type" & Chr(34) & " content=" & Chr(34) & "text/html" & ";" & " charset=ISO-8859-1" & Chr(34) & ">" & @CRLF
$sHTML &= " <title>_MyHTMLSheet()</title>" & @CRLF
$sHTML &= "<style type=" & Chr(34) & "text/css" & Chr(34) & ">" & @CRLF
$sHTML &= "td { white-space:nowrap; background-color:transparent; color:black; font-size:10pt; font-weight:normal; font-family:monospace,arial,sans-serif; border-width:thin; border-style:none none none none; }" & @CRLF
$sHTML &= "body { background-color:transparent; color:black; font-size:8pt; font-weight:normal; font-family:monospace,arial,sans-serif; }" & @CRLF
$sHTML &= " .whitebox4 { background-color:white; font-size:8pt; padding:0px 0px 0px 6px; margin:0px 0px 0px 0px; border-bottom:3px solid #A8BAD2; width:100%; }" & @CRLF
$sHTML &= " .whitebox5 { background-color:white; font-size:8pt; padding:0px 0px 0px 6px; margin:0px 0px 0px 0px; width:100%; white-space:nowrap}" & @CRLF
$sHTML &= " .labelbox1 { background-color:#6E8CB2; color:white; font-size:9pt; font-weight:bold; padding:0px 0px 0px 6px; margin:5px 0px 5px 0px; border-top:2px solid #6E8CB2; border-bottom:2px solid #6E8CB2; width:710px; ; font-family:arial;}" & @CRLF
$sHTML &= " .labelbox2 { background-color:gray; color:white; font-size:8pt; font-weight:normal; padding:0px 0px 0px 6px; margin:0px 0px 0px 0px; border-top:2px solid #A8BAD2; border-bottom:2px solid #A8BAD2; width:710px; ; font-family:arial;}" & @CRLF
$sHTML &= " .headerbox1 { background-color:#A8BAD2; color:white; font-size:8pt; font-weight:bold; padding:0px 0px 0px 6px; margin:0px 0px 0px 0px; border-top:1px solid #A8BAD2; border-bottom:1px solid #A8BAD2; width:710px; font-family:arial; }" & @CRLF
$sHTML &= " .headerbox2 { background-color:#A8BAD2; color:white; font-size:8pt; font-weight:bold; padding:0px 0px 0px 6px; margin:0px 0px 0px 0px; border-top:1px solid #A8BAD2; border-bottom:1px solid #A8BAD2; width:710px; font-family:arial; }" & @CRLF
$sHTML &= " .blankline1 { background-color:white; color:white; padding:0px 0px 0px 0px; margin:0px 0px 0px 0px; border-style:none none none none; border-color:white white white white; height:3px; width:100%; }" & @CRLF
$sHTML &= " .blankline2 { background-color:white; color:white; padding:0px 0px 0px 0px; margin:0px 0px 0px 0px; border-style:none none none none; border-color:white white white white; height:6px; width:100%; }" & @CRLF
$sHTML &= " .blankline3 { background-color:white; color:white; padding:0px 0px 0px 0px; margin:0px 0px 0px 0px; border-style:none none none none; border-color:white white white white; height:9px; width:100%; }" & @CRLF
$sHTML &= " .dividingrule1 { background-color:#A8BAD2; color:#A8BAD2; padding:0px 0px 0px 0px; margin:10px 0px 10px 0px; border-style:none none none none; height:3px; width:710px; text-align:left; }" & @CRLF
$sHTML &= " .dividingrule2 { background-color:#A8BAD2; color:#A8BAD2; padding:0px 0px 0px 0px; margin:10px 0px 10px 0px; border-style:none none none none; height:6px; width:710px; text-align:left; }" & @CRLF
$sHTML &= " .dividingrule3 { background-color:#A8BAD2; color:#A8BAD2; padding:0px 0px 0px 0px; margin:10px 0px 10px 0px; border-style:none none none none; height:9px; width:710px; text-align:left; }" & @CRLF
$sHTML &= @CRLF
$sHTML &= "a:link { text-decoration:none; font-weight:normal; color:blue; }" & @CRLF
$sHTML &= "a:visited { text-decoration:none; font-weight:bold; color:blue; }" & @CRLF
$sHTML &= "a:hover { text-decoration:none; font-weight:bold; background-color:silver; }" & @CRLF
$sHTML &= "a:active { text-decoration:none; font-weight:bold; background-color:gray; }" & @CRLF
$sHTML &= "a:focus { text-decoration:none; font-weight:bold; background-color:teal; }" & @CRLF
$sHTML &= @CRLF
$sHTML &= ".cs1 { border-style:none none solid none; }" & @CRLF
$sHTML &= ".cs2 { border-style:none none solid none; }" & @CRLF
$sHTML &= ".cs3 { }" & @CRLF
$sHTML &= ".cs4 { }" & @CRLF
$sHTML &= ".cs5 { font-family:arial; }" & @CRLF
$sHTML &= ".cs6 { font-family:arial; }" & @CRLF
$sHTML &= ".cs7 { background-color:#3A5A82; color:white; font-size:8pt; font-family:arial; }" & @CRLF
$sHTML &= ".cs8 { border-bottom-color:gray; border-bottom-width:thin; border-style:none none solid none; background-color:white; color:black; font-size:8pt; font-family:arial; }" & @CRLF
$sHTML &= ".cs9 { background-color:white; color:black; font-size:8pt; font-family:arial; }" & @CRLF
$sHTML &= "</style>" & @CRLF
$sHTML &= "</head>" & @CRLF
$sHTML &= "<table border='0' cellpadding='0' cellspacing='0' rules='none' style='width:100%'><tbody valign='top'>" & @CRLF
$sHTML &= "<tr><td colspan=10 align='center' style='width:100%;background-color:#3A5A82; color:white; font-size:12pt; font-family:arial;'>MA PAGE HTML AVEC TABLEAU GRACE A AutoIt</font></td>" & @CRLF
$sHTML &= "<tr><td align='left' style='width:100%;border-style:none none solid none;'></td></tr>" & @CRLF
$sHTML &= "<tr><td align='left' style='width:100%;border-style:none none solid none;'>"& "Chemin: \\MonDossier\MonDossier2\</td></tr>" & @CRLF
$sHTML &= "</tbody></table>" & @CRLF
$sHTML &= "<BR>" & @CRLF
$sHTML &= "<BR>" & @CRLF
;ICI JE VEUX INTEGRER UN TABLEAU MULTIDIMENSIONNEL GENERE GRACE A LA FONCTION _StringToArray2D()
$sHTML &= ???
$sHTML &= "<hr></hr>" & @CRLF
$sHTML &= "<tt><font size='2' color='black'>Generated by YY_XX Powered By xxxx le " & _Now() & " sur " & @ComputerName & "-" & @LogonDomain & "-" & StringUpper(@UserName) & ".</font></tt>" & @CRLF
_IEDocWriteHTML($oIE, $sHTML)
WinSetState($hwndIE, "", @SW_MAXIMIZE)
EndFunc


