Hallo,
ich habe das WunderList-Skript in IPSView integriert. Die Anzeige im WebFront sieht aber anders aus, als in IPSView. Eine Liste ist als HTML-Box integriert. Im WF werden die Symbole und Überschriften für „erledigt“ und „löschen“ schön am rechten Rand angeordnet. In IPSView (HTML-Box) werden die Spalten gleichmäßig verteilt. Es ist der gleiche HTML-Code. Warum wird der gleiche Code unterschiedlich dargestellt ???
WebFront:
IPSView:
HTML-Schnipsel:
...
...
$html = '<table style="width: 100%;" cellspacing=0 cellpadding=2><tbody>
<tr style="color:grey;">
<td style="border-bottom-width:2px; border-bottom-style:solid; border-bottom-color:#3B3B4D;"></td>
<td align="left" style="border-bottom-width:2px; border-bottom-style:solid; border-bottom-color:#3B3B4D;">Beschreibung</td>
<td style="border-bottom-width:2px; border-bottom-style:solid; border-bottom-color:#3B3B4D;">erledigen*</td>
<td align="right" style="border-bottom-width:2px; border-bottom-style:solid; border-bottom-color:#3B3B4D;">löschen</td>
</tr>';
for($x=0; $x < $TasksCount; $x++ ) {
if (($TasksArray[$x][3]=="True") and ($TasksArray[$x][4]==0)) //Eintrag ist als WICHTIG markiert
{
$html .= '<tr><td align="center" width=25px style="line-height:25px; border-bottom-width:1px; border-bottom-style:dotted; border-bottom-color:#3B3B4D;"><div onclick="window.xhrGet=function xhrGet(o) {var HTTP = new XMLHttpRequest(); HTTP.open(\'GET\',o.url,true);HTTP. send();};window.xhrGet({ url: \'user/WunderlistButton.php?ts=\' + (new Date()).getTime() + \'&ScriptID='.$_IPS['SELF'].'&do=IMPORTANT&number='.$TasksArray[$x][0].'\' });"><img src="/user/icons/fixed/important.png"></img></div></td>';
}
else
{
$html .='<tr><td align="center" width=25px style="line-height:25px; border-bottom-width:1px; border-bottom-style:dotted; border-bottom-color:#3B3B4D;"><div onclick="window.xhrGet=function xhrGet(o) {var HTTP = new XMLHttpRequest(); HTTP.open(\'GET\',o.url,true);HTTP. send();};window.xhrGet({ url: \'user/WunderlistButton.php?ts=\' + (new Date()).getTime() + \'&ScriptID='.$_IPS['SELF'].'&do=IMPORTANT&number='.$TasksArray[$x][0].'\' });"><img src="/user/icons/fixed/leer.png"></img></div></td>';
}
if ($TasksArray[$x][4]=="True") //text durchstreichen wenn in wunderlist als erledigt markiert= DONE
{
$html.='<td style="border-bottom-width:1px; border-bottom-style:dotted; border-bottom-color:#3B3B4D; color:grey;">*<strike>*'.$TasksArray[$x][1].'*</strike></td>';
$html.='<td align="center" width=25px style="line-height:25px; border-bottom-width:1px; border-bottom-style:dotted; border-bottom-color:#3B3B4D;"><div onclick="window.xhrGet=function xhrGet(o) {var HTTP = new XMLHttpRequest(); HTTP.open(\'GET\',o.url,true);HTTP. send();};window.xhrGet({ url: \'user/WunderlistButton.php?ts=\' + (new Date()).getTime() + \'&ScriptID='.$_IPS['SELF'].'&do=DONE&number='.$TasksArray[$x][0].'\' });"><img src="/user/icons/fixed/undone.png"></img></div></td>';
$html.='<td align="center" width=35px style="border-bottom-width:1px; border-bottom-style:dotted; border-bottom-color:#3B3B4D;"><div onclick="window.xhrGet=function xhrGet(o) {var HTTP = new XMLHttpRequest(); HTTP.open(\'GET\',o.url,true);HTTP. send();};window.xhrGet({ url: \'user/WunderlistButton.php?ts=\' + (new Date()).getTime() + \'&ScriptID='.$_IPS['SELF'].'&do=DELETE&number='.$TasksArray[$x][0].'\' });"><img src="/user/icons/fixed/Delete.png"></img></div></td></tr>';
}
else
{
$html.='<td style="border-bottom-width:1px; border-bottom-style:dotted; border-bottom-color:#3B3B4D; color:white;">*<div onclick="window.xhrGet=function xhrGet(o) {var HTTP = new XMLHttpRequest(); HTTP.open(\'GET\',o.url,true);HTTP. send();};window.xhrGet({ url: \'user/WunderlistButton.php?ts=\' + (new Date()).getTime() + \'&ScriptID='.$_IPS['SELF'].'&do=EDIT&number='.$TasksArray[$x][0].'\' });">'.$TasksArray[$x][1].'</div></td>';
$html.='<td align="center" width=25px style="line-height:25px; border-bottom-width:1px; border-bottom-style:dotted; border-bottom-color:#3B3B4D;"><div onclick="window.xhrGet=function xhrGet(o) {var HTTP = new XMLHttpRequest(); HTTP.open(\'GET\',o.url,true);HTTP. send();};window.xhrGet({ url: \'user/WunderlistButton.php?ts=\' + (new Date()).getTime() + \'&ScriptID='.$_IPS['SELF'].'&do=DONE&number='.$TasksArray[$x][0].'\' });"><img src="/user/icons/fixed/done.png"></img></div></td>';
$html.='<td align="center" width=35px style="border-bottom-width:1px; border-bottom-style:dotted; border-bottom-color:#3B3B4D;"><div onclick="window.xhrGet=function xhrGet(o) {var HTTP = new XMLHttpRequest(); HTTP.open(\'GET\',o.url,true);HTTP. send();};window.xhrGet({ url: \'user/WunderlistButton.php?ts=\' + (new Date()).getTime() + \'&ScriptID='.$_IPS['SELF'].'&do=DELETE&number='.$TasksArray[$x][0].'\' });"><img src="/user/icons/fixed/Delete.png"></img></div></td></tr>';
}
}
$html .= '</tbody></table>';
setvalue($VisuTaskListID,$html);
...
...
Gruß Proxima