<tr>
<td align="left" class="tiny" style="padding-right:0.5em;padding-bottom:1px;white-space:nowrap;">
  ' . $star2 . '

</td>
<td style="min-width:60; background-color: #eeeecc" width="60" align="left" class="tiny" title="' . $totalStar2 . '%"><div style="background-color:#FFCC66; height:13px; width:' . $totalStar2 . '%;"></div></td>
<td align="right" class="tiny">&nbsp;(' . $poll2 . ')</td>
</tr>

<tr>
<td align="left" class="tiny" style="padding-right:0.5em;padding-bottom:1px;white-space:nowrap;">
  ' . $star1 . '

</td>
<td style="min-width:60; background-color: #eeeecc" width="60" align="left" class="tiny" title="' . $totalStar1 . '%"><div style="background-color:#FFCC66; height:13px; width:' . $totalStar1 . '%;"></div></td>
<td align="right" class="tiny">&nbsp;(' . $poll1 . ')</td>
</tr>



</table>


</div>
                           </td></tr></table>

';
    $showHtmlProductPollCoustomers = "\n\n<div style=\"width:100%; height:17px; padding-left:15px;\">\n<strong>" . TAVERAGECUSTOMER . "</strong>\n</div>\n<div style=\"width:100%;\">\n<div style=\"float:left;\">\n\n\n\t\t\t\t\t\t   \n" . $showHtmlPoll5AllTitleRight . "\t\t\t\t   \n\t\t\t\t\t\t   \n\n                        \n</div>\n<div style=\" margin:0px; float:left; margin-left:10px; margin-top:0px;\">\n\n<div style=\"padding-top:2px;\">\n<table  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n  <tr>\n    <td align=\"left\" valign=\"middle\">\n\t\n\t\n\t\n" . $starall . "\n\t\n\t\n\t\n\t</td>\n    <td align=\"left\" valign=\"middle\"><div style=\" font-size:11px; padding-left:10px; padding-top:30px;\" class=\"swsprite\">( " . $totalPoll . "  " . showHtmlStars($showHtmlProductLiStars) . " )</div></td>\n  </tr>\n</table>\n<div class=\"poll_over\" onMouseOver=\"this.className='poll_hover'\" onMouseOut=\"this.className='poll_over'\"onclick=\"pollCustomersC(1)\" style=\"margin-top:3px; margin-left:0px;\">" . TYOURREVIEWS . "</div>\n\n</div>\n\n\n</div>\n\n</div>\n\n";
}
echo $showHtmlProductPollCoustomers;
Esempio n. 2
0
<td align="left" class="tiny" style="padding-right:0.5em;padding-bottom:1px;white-space:nowrap;">
  ' . $star2 . '

</td>
<td style="min-width:60; background-color: #eeeecc" width="60" align="left" class="tiny" title="' . $totalStar2 . '%"><div style="background-color:#FFCC66; height:13px; width:' . $totalStar2 . '%;"></div></td>
<td align="right" class="tiny">&nbsp;(' . $poll2 . ')</td>
</tr>

<tr>
<td align="left" class="tiny" style="padding-right:0.5em;padding-bottom:1px;white-space:nowrap;">
  ' . $star1 . '

</td>
<td style="min-width:60; background-color: #eeeecc" width="60" align="left" class="tiny" title="' . $totalStar1 . '%"><div style="background-color:#FFCC66; height:13px; width:' . $totalStar1 . '%;"></div></td>
<td align="right" class="tiny">&nbsp;(' . $poll1 . ')</td>
</tr>



</table>


</div>
                           </td></tr></table>

';
$showHtmlPoll = "\n\n<script type=\"text/javascript\">\nfunction pollCustomersC(str)\n{\n\n\ndocument.getElementById(\"pollCustomers\").innerHTML = '<div style=\"padding:4px;\"><div style=\"text-align:left;float:left; padding-top:3px;\" class=\"name_xam\">Load...</div><div style=\"text-align:left;float:left \"><img src=\"" . $serverName . $folderImages . "/loadinfo.sachdientu.gif\" width=\"24\"  /></div></div>'\nvar xmlhttp;    \nif (str==\"\")\n  {\n  document.getElementById(\"pollCustomers\").innerHTML=\"\";\n  return;\n  }\nif (window.XMLHttpRequest)\n  {// code for IE7+, Firefox, Chrome, Opera, Safari\n  xmlhttp=new XMLHttpRequest();\n  }\nelse\n  {// code for IE6, IE5\n  xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");\n  }\nxmlhttp.onreadystatechange=function()\n  {\n  if (xmlhttp.readyState==4 && xmlhttp.status==200)\n    {\n    document.getElementById(\"pollCustomers\").innerHTML=xmlhttp.responseText;\n    }\n  }\nxmlhttp.open(\"GET\",\"" . $serverName . $folderPoll . "/product_pollcustomers.php?q=\"+str+\"&id=" . $idProduct . "&lang=" . $_lang . "\",true);\nxmlhttp.send();\n}\n</script>\n\n<script language=\"javascript\">\n/* ---------------------------- */\n/* XMLHTTPRequest Enable */\n/* ---------------------------- */\nfunction createObjectPoll() {\nvar request_type;\nvar browser = navigator.appName;\nif(browser == \"Microsoft Internet Explorer\"){\nrequest_type = new ActiveXObject(\"Microsoft.XMLHTTP\");\n}else{\nrequest_type = new XMLHttpRequest();\n}\nreturn request_type;\n}\n\nvar httpPoll = createObjectPoll();\n\n\n/* -------------------------- */\n/* INSERT */\n/* -------------------------- */\n/* Required: var nocache is a random number to add to request. This value solve an Internet Explorer cache issue */\nvar nocache = 0;\nfunction insertPoll() {\n\n// Optional: Show a waiting message in the layer with ID login_response\ndocument.getElementById('insert_product_pollcustomers').innerHTML = '<div style=\"padding:4px;\"><div style=\"text-align:left;float:left; padding-top:3px;\" class=\"name_xam\">Load...</div><div style=\"text-align:left;float:left \"><img src=\"" . $serverName . $folderImages . "/loadinfo.sachdientu.gif\" width=\"24\"  /></div></div>'\n// Required: verify that all fileds is not empty. Use encodeURI() to solve some issues about character encoding.\n\nvar site_id\t\t\t= encodeURI(document.getElementById('txtId').value);\n\nif (document.getElementById(\"Poll1\").checked){ \nvar site_pm\t\t\t= encodeURI(document.getElementById('Poll1').value);\n} else if(document.getElementById(\"Poll2\").checked){\nvar site_pm\t\t\t= encodeURI(document.getElementById('Poll2').value);\n} else if(document.getElementById(\"Poll3\").checked){\nvar site_pm\t\t\t= encodeURI(document.getElementById('Poll3').value);\n} else if(document.getElementById(\"Poll4\").checked){\nvar site_pm\t\t\t= encodeURI(document.getElementById('Poll4').value);\n} else if(document.getElementById(\"Poll5\").checked){\nvar site_pm\t\t\t= encodeURI(document.getElementById('Poll5').value);\n}\n//alert(site_pm);\n//alert(site_id);\n//var site_pm\t\t\t= 1;\n// Set te random number to add to URL request\nnocache = Math.random();\n// Pass the login variables like URL variable\nhttpPoll.open('get', '" . $serverName . $folderPoll . "/product_pollcustomers_insert.php?site_pm='+site_pm+'&site_id=' +site_id+'&lang=" . $_lang . "&nocache = '+nocache);\nhttpPoll.onreadystatechange = insertReplyPoll;\nhttpPoll.send(null);\n}\nfunction insertReplyPoll() {\nif(httpPoll.readyState == 4){\nvar response = httpPoll.responseText;\n//alert(response);\nif(response==0) {\nvar responseInfo= '" . ACANNOTUPDATE . "';\ndocument.getElementById('insert_product_pollcustomers').innerHTML = responseInfo;\n}else {\n//document.getElementById('insert_product_pollcustomers').innerHTML = response;\n//alert(response);\n//document.getElementById('insert_product_pollcustomers').innerHTML = response;\nwindow.onload=pollCustomersC(2); \n}\n\n}\n}\n\n\n</script>\n\n<div id=\"pollCustomers\" style=\"width:100%;  margin:0px; padding:0px;  margin-top:0px; padding-bottom:10px;\" align=\"left\">\n<div style=\"width:100%; height:17px; padding-left:15px;\">\n<strong>" . TAVERAGECUSTOMER . "</strong>\n</div>\n<div style=\"width:100%;\">\n<div style=\"float:left;\">\n\n\n\t\t\t\t\t\t   \n" . $showHtmlPoll5AllTitleRight . "\t\t\t\t   \n\t\t\t\t\t\t   \n\n                        \n</div>\n<div style=\" margin:0px; float:left; margin-left:10px; margin-top:0px;\">\n\n<div style=\"padding-top:2px;\">\n<table  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n  <tr>\n    <td align=\"left\" valign=\"middle\">\n\t\n\t\n\t\n" . $starall . "\n\t\n\t\n\t\n\t</td>\n    <td align=\"left\" valign=\"middle\"><div style=\" font-size:11px; padding-left:10px; padding-top:30px;\" class=\"swsprite\">( " . $totalPoll . "  " . showHtmlStars($showHtmlProductLiStars) . " )</div></td>\n  </tr>\n</table>\n<div class=\"poll_over\" onMouseOver=\"this.className='poll_hover'\" onMouseOut=\"this.className='poll_over'\"onclick=\"pollCustomersC(1)\" style=\"margin-top:3px; margin-left:0px;\">" . TYOURREVIEWS . "</div>\n\n</div>\n\n\n</div>\n\n</div>\n\n</div>\n\n";
?>