Codice PHP:
<td class="statocommento">
<?php
if( $array['enable']==1){
echo"<a href=\"$path_site/admin/knowldgebase.php?knowldgebase=viewcomments&page=$current_page&id=".$array['id']."&stato_comments=0&comments_status=change_statuscomments\"
onclick=\"return(confirm('"._CONFIRM_UNAPPROVE_COMMENTS_."'))\"><img src=\"$path_site/admin/img/icon_unapprovecomment.gif\" class='editicon' border=0 style='width:16px; height:16px;padding-left:10px;' ></a>";
echo"<a href=\"$path_site/admin/knowldgebase.php?knowldgebase=viewcomments&page=$current_page&id=".$array['id']."&stato_comments=0&comments_status=change_statuscomments\"
onclick=\"return(confirm('"._CONFIRM_UNAPPROVE_COMMENTS_."'))\">Disapprova</a>";
}else{
echo"<a href=\"$path_site/admin/knowldgebase.php?knowldgebase=viewcomments&page=$current_page&id=".$array['id']."&stato_comments=1&comments_status=change_statuscomments\"
onclick=\"return(confirm('"._CONFIRM_APPROVE_COMMENTS_."'))\"><img src=\"$path_site/admin/img/icon_approvecomment.gif\" class='editicon' border=0 style='width:16px; height:16px;padding-left:10px;' ></a>";
echo"<a href=\"$path_site/admin/knowldgebase.php?knowldgebase=viewcomments&page=$current_page&id=".$array['id']."&stato_comments=1&comments_status=change_statuscomments\"
onclick=\"return(confirm('"._CONFIRM_APPROVE_COMMENTS_."'))\">Approva</a>";
}
?>
</td>
codice:
.statocommento{
width: 15%;
height:24px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000000;
text-align:center;
border-right-width: 1px;
border-right-style: solid;
border-right-color: #D1DCEB;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #D1DCEB;
}