Esempio n. 1
0
          <?php 
} else {
    ?>

            <p><?php 
    echo $osC_Language->get('introduction_rating');
    ?>
</p>
              
            <form id="frmReviews" name="newReview" action="<?php 
    echo osc_href_link(FILENAME_PRODUCTS, 'reviews=new&' . $osC_Product->getID() . '&action=process');
    ?>
" method="post">
            
            <?php 
    $ratings = osC_Reviews::getCategoryRatings($osC_Product->getCategoryID());
    if (sizeof($ratings) == 0) {
        ?>
              <p><?php 
        echo '<b>' . $osC_Language->get('field_review_rating') . '</b>&nbsp;&nbsp;&nbsp;' . $osC_Language->get('review_lowest_rating_title') . ' ' . osc_draw_radio_field('rating', array('1', '2', '3', '4', '5')) . ' ' . $osC_Language->get('review_highest_rating_title');
        ?>
</p>
              <input type="hidden" id="rat_flag" name="rat_flag" value="0" />
            <?php 
    } else {
        ?>
                <table class="ratings" border="1" cellspacing="0" cellpadding="0">
                  <thead>
                    <tr>
                      <td width="45%">&nbsp;</td>
                      <td><?php