Esempio n. 1
0
        $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('delete_image', '', true) . ' ' . TEXT_DELETE_IMAGE);
        if ($mInfo->products_count > 0) {
            $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('delete_products') . ' ' . TEXT_DELETE_PRODUCTS);
            $contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $mInfo->products_count));
        }
        $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    default:
        if (isset($mInfo) && is_object($mInfo)) {
            $heading[] = array('text' => '<b>' . $mInfo->manufacturers_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
            $contents[] = array('text' => '<br>' . TEXT_DATE_ADDED . ' ' . tep_date_short($mInfo->date_added));
            if (tep_not_null($mInfo->last_modified)) {
                $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . tep_date_short($mInfo->last_modified));
            }
            $contents[] = array('text' => '<br>' . tep_info_image($mInfo->manufacturers_image, $mInfo->manufacturers_name));
            $contents[] = array('text' => '<br>' . TEXT_PRODUCTS . ' ' . $mInfo->products_count);
        }
        break;
}
if (tep_not_null($heading) && tep_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . "\n";
}
?>
          </tr>
        </table></td>
      </tr>
    </table></td>
Esempio n. 2
0
         $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('delete_image', '', true) . ' ' . TEXT_DELETE_IMAGE);
         if ($aInfo->products_count > 0) {
             $contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $aInfo->products_count));
             $contents[] = array('text' => tep_draw_checkbox_field('delete_products') . ' ' . TEXT_DELETE_PRODUCTS);
         }
         $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_AUTHORS, 'search=' . urlencode($search) . '&page=' . $HTTP_GET_VARS['page'] . '&aID=' . $aInfo->authors_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
         break;
     default:
         if (isset($aInfo) && is_object($aInfo)) {
             $heading[] = array('text' => '<strong>' . $aInfo->authors_name . '</strong>');
             $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_AUTHORS, 'search=' . urlencode($search) . '&page=' . $HTTP_GET_VARS['page'] . '&aID=' . $aInfo->authors_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_AUTHORS, 'search=' . urlencode($search) . '&page=' . $HTTP_GET_VARS['page'] . '&aID=' . $aInfo->authors_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
             $contents[] = array('text' => '<br>' . TEXT_DATE_ADDED . ' ' . tep_date_short($aInfo->date_added));
             if (tep_not_null($aInfo->last_modified)) {
                 $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . tep_date_short($aInfo->last_modified));
             }
             $contents[] = array('text' => '<br>' . tep_info_image($aInfo->authors_image, $aInfo->authors_name));
             $contents[] = array('text' => '<br>' . TEXT_PRODUCTS . ' ' . $aInfo->products_count);
         }
         break;
 }
 if (tep_not_null($heading) && tep_not_null($contents)) {
     echo '            <td width="25%" valign="top">' . "\n";
     $box = new box();
     echo $box->infoBox($heading, $contents);
     echo '            </td>' . "\n";
 }
 ?>
       </tr>
     </table></td>
   </tr>
 </table>
Esempio n. 3
0
                     $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . tep_date_short($cInfo->last_modified));
                 }
                 $contents[] = array('text' => '<br>' . tep_info_image($cInfo->categories_image, $cInfo->categories_name, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT) . '<br>' . $cInfo->categories_image);
                 $contents[] = array('text' => '<br>' . TEXT_SUBCATEGORIES . ' ' . $cInfo->childs_count . '<br>' . TEXT_PRODUCTS . ' ' . $cInfo->products_count);
             } elseif (isset($pInfo) && is_object($pInfo)) {
                 // product info box contents
                 $heading[] = array('text' => '<b>' . tep_get_products_name($pInfo->products_id, $languages_id) . '</b>');
                 $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=new_product') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=delete_product') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=move_product') . '">' . tep_image_button('button_move.gif', IMAGE_MOVE) . '</a> <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=copy_to') . '">' . tep_image_button('button_copy_to.gif', IMAGE_COPY_TO) . '</a>');
                 $contents[] = array('text' => '<br>' . TEXT_DATE_ADDED . ' ' . tep_date_short($pInfo->products_date_added));
                 if (tep_not_null($pInfo->products_last_modified)) {
                     $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . tep_date_short($pInfo->products_last_modified));
                 }
                 if (date('Y-m-d') < $pInfo->products_date_available) {
                     $contents[] = array('text' => TEXT_DATE_AVAILABLE . ' ' . tep_date_short($pInfo->products_date_available));
                 }
                 $contents[] = array('text' => '<br>' . tep_info_image($pInfo->products_image, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br>' . $pInfo->products_image);
                 $contents[] = array('text' => '<br>' . TEXT_PRODUCTS_PRICE_INFO . ' ' . $currencies->format($pInfo->products_price) . '<br>' . TEXT_PRODUCTS_QUANTITY_INFO . ' ' . $pInfo->products_quantity);
                 $contents[] = array('text' => '<br>' . TEXT_PRODUCTS_AVERAGE_RATING . ' ' . number_format($pInfo->average_rating, 2) . '%');
             }
         } else {
             // create category/product info
             $heading[] = array('text' => '<b>' . EMPTY_CATEGORY . '</b>');
             $contents[] = array('text' => TEXT_NO_CHILD_CATEGORIES_OR_PRODUCTS);
         }
         break;
 }
 if (tep_not_null($heading) && tep_not_null($contents)) {
     echo '            <td width="25%" valign="top">' . "\n";
     $box = new box();
     echo $box->infoBox($heading, $contents);
     echo '            </td>' . "\n";
Esempio n. 4
0
    }
    ?>
</td>
          </tr>
          <tr>
            <td class="main" width="250"><?php 
    echo ENTRY_IMAGES;
    ?>
</td>
            <td class="main"><?php 
    if (tep_not_null($bInfo->boards_image)) {
        $boards_images_dir = 'boards/' . substr(sprintf('%09d', $bInfo->boards_id), 0, 6) . '/';
        $boards_images = explode("\n", $bInfo->boards_image);
        reset($boards_images);
        while (list($i, $boards_image) = each($boards_images)) {
            echo '<a href="#" onclick="return false;" onmouseover="document.getElementById(\'bim' . $i . '\').style.display = \'\';" onmouseout="document.getElementById(\'bim' . $i . '\').style.display = \'none\';">' . $boards_image . '</a><span style="position: absolute; display: none; margin-top: -100px; border: 1px solid black;" id="bim' . $i . '">' . tep_info_image($boards_images_dir . $boards_image, '') . '</span> &nbsp; ' . tep_draw_checkbox_field('boards_images_delete[' . $i . ']', '1', false) . ENTRY_IMAGES_DELETE . tep_draw_hidden_field('boards_existing_images[' . $i . ']', $boards_image) . '<br>' . "\n";
        }
    }
    ?>
</td>
          </tr>
		  <tr>
			<td colspan="2"><?php 
    echo tep_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
		  </tr>
		  <tr>
			<td colspan="2" class="formAreaTitle"><?php 
    echo CATEGORY_ADDRESS;
    ?>
Esempio n. 5
0
    $contents = array();
    switch ($action) {
        case 'delete':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_SPECIALS . '</b>');
            $contents = array('form' => tep_draw_form('specials', FILENAME_SPECIALS, 'page=' . $HTTP_GET_VARS['page'] . '&sID=' . $sInfo->specials_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
            $contents[] = array('text' => '<br><b>' . $sInfo->products_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . '&nbsp;<a href="' . tep_href_link(FILENAME_SPECIALS, 'page=' . $HTTP_GET_VARS['page'] . '&sID=' . $sInfo->specials_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (is_object($sInfo)) {
                $heading[] = array('text' => '<b>' . $sInfo->products_name . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_SPECIALS, 'page=' . $HTTP_GET_VARS['page'] . '&sID=' . $sInfo->specials_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_SPECIALS, 'page=' . $HTTP_GET_VARS['page'] . '&sID=' . $sInfo->specials_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
                $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . tep_date_short($sInfo->specials_date_added));
                $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . ' ' . tep_date_short($sInfo->specials_last_modified));
                $contents[] = array('align' => 'center', 'text' => '<br>' . tep_info_image($sInfo->products_image, $sInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT));
                $contents[] = array('text' => '<br>' . TEXT_INFO_ORIGINAL_PRICE . ' ' . $currencies->format($sInfo->products_price));
                $contents[] = array('text' => '' . TEXT_INFO_NEW_PRICE . ' ' . $currencies->format($sInfo->specials_new_products_price));
                $contents[] = array('text' => '' . TEXT_INFO_PERCENTAGE . ' ' . number_format(100 - $sInfo->specials_new_products_price / $sInfo->products_price * 100) . '%');
                $contents[] = array('text' => '<br>' . TEXT_INFO_EXPIRES_DATE . ' <b>' . tep_date_short($sInfo->expires_date) . '</b>');
                $contents[] = array('text' => '' . TEXT_INFO_STATUS_CHANGE . ' ' . tep_date_short($sInfo->date_status_change));
            }
            break;
    }
    if (tep_not_null($heading) && tep_not_null($contents)) {
        echo '            <td width="25%" valign="top">' . "\n";
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . "\n";
    }
}
Esempio n. 6
0
 if (isset($cInfo) && is_object($cInfo)) {
     // category info box contents
     $category_path_string = '';
     $category_path = tep_generate_category_path($cInfo->categories_id);
     for ($i = sizeof($category_path[0]) - 1; $i > 0; $i--) {
         $category_path_string .= $category_path[0][$i]['id'] . '_';
     }
     $category_path_string = substr($category_path_string, 0, -1);
     $heading[] = array('text' => '<b>' . $cInfo->categories_name . '</b>');
     $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $category_path_string . '&amp;cID=' . $cInfo->categories_id . '&amp;action=edit_category') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $category_path_string . '&amp;cID=' . $cInfo->categories_id . '&amp;action=delete_category') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $category_path_string . '&amp;cID=' . $cInfo->categories_id . '&amp;action=move_category') . '">' . tep_image_button('button_move.gif', IMAGE_MOVE) . '</a>');
     $contents[] = array('text' => '<br>' . TEXT_DATE_ADDED . ' ' . tep_date_short($cInfo->date_added));
     if (tep_not_null($cInfo->last_modified)) {
         $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . tep_date_short($cInfo->last_modified));
     }
     //            $contents[] = array('text' => '<br>' . tep_info_image($cInfo->categories_image, $cInfo->categories_name, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT) . '<br>' . $cInfo->categories_image);
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_info_image(CATEGORY_IMAGES_DIR . $cInfo->categories_image, $cInfo->categories_name, HEADING_IMAGE_WIDTH) . '<br>' . $cInfo->categories_image);
     $contents[] = array('text' => '<br>' . TEXT_SUBCATEGORIES . ' ' . $cInfo->childs_count . '<br>' . TEXT_PRODUCTS . ' ' . $cInfo->products_count);
     // BOF SPPC hide products and categories from groups
     $category_hidden_from_string = '';
     for ($i = 0; $i < count($customers_groups); $i++) {
         if (in_array($customers_groups[$i]['id'], $hide_cat_from_groups_array)) {
             $category_hidden_from_string .= $customers_groups[$i]['text'] . ', ';
         }
     }
     // end for ($i = 0; $i < count($customers_groups); $i++)
     $category_hidden_from_string = rtrim($category_hidden_from_string);
     // remove space on the right
     $category_hidden_from_string = substr($category_hidden_from_string, 0, strlen($category_hidden_from_string) - 1);
     // remove last comma
     if (!tep_not_null($category_hidden_from_string)) {
         $category_hidden_from_string = TEXT_GROUPS_NONE;
Esempio n. 7
0
            $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('delete_products') . ' ' . TEXT_DELETE_PRODUCTS);
            $contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $mInfo->products_count));
        }
        $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&amp;mID=' . $mInfo->manufacturers_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    default:
        if (isset($mInfo) && is_object($mInfo)) {
            $heading[] = array('text' => '<b>' . $mInfo->manufacturers_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&amp;mID=' . $mInfo->manufacturers_id . '&amp;action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&amp;mID=' . $mInfo->manufacturers_id . '&amp;action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
            $contents[] = array('text' => '<br>' . TEXT_DATE_ADDED . ' ' . tep_date_short($mInfo->date_added));
            if (tep_not_null($mInfo->last_modified)) {
                $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . tep_date_short($mInfo->last_modified));
            }
            //        $contents[] = array('text' => '<br>' . tep_info_image($mInfo->manufacturers_image, $mInfo->manufacturers_name));
            if ($mInfo->manufacturers_image != '') {
                $contents[] = array('align' => 'center', 'text' => '<br>' . tep_info_image(MANUFACTURERS_IMAGES_DIR . $mInfo->manufacturers_image, $mInfo->manufacturers_name));
            }
            $contents[] = array('text' => '<br>' . TEXT_PRODUCTS . ' ' . $mInfo->products_count);
        }
        break;
}
if (tep_not_null($heading) && tep_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . "\n";
}
?>
          </tr>
        </table></td>
      </tr>
Esempio n. 8
0
 $contents = array();
 switch ($action) {
     case 'delete':
         $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_SPECIALS . '</b>');
         $contents = array('form' => tep_draw_form('specials', FILENAME_SPECIALS, 'page=' . $_GET['page'] . '&amp;sID=' . $sInfo->specials_id . '&amp;action=deleteconfirm'));
         $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
         $contents[] = array('text' => '<br><b>' . $sInfo->products_name . '</b>');
         $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . '&nbsp;<a href="' . tep_href_link(FILENAME_SPECIALS, 'page=' . $_GET['page'] . '&amp;sID=' . $sInfo->specials_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
         break;
     default:
         if (is_object($sInfo)) {
             $heading[] = array('text' => '<b>' . $sInfo->products_name . '</b>');
             $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_SPECIALS, 'page=' . $_GET['page'] . '&amp;sID=' . $sInfo->specials_id . '&amp;action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_SPECIALS, 'page=' . $_GET['page'] . '&amp;sID=' . $sInfo->specials_id . '&amp;action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
             $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . tep_date_short($sInfo->specials_date_added));
             $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . ' ' . tep_date_short($sInfo->specials_last_modified));
             $contents[] = array('align' => 'center', 'text' => '<br>' . tep_info_image(DYNAMIC_MOPICS_THUMBS_DIR . $sInfo->products_image, $sInfo->products_name, SMALL_IMAGE_WIDTH));
             $contents[] = array('text' => '<br>' . TEXT_INFO_ORIGINAL_PRICE . ' ' . $currencies->format($sInfo->products_price));
             $contents[] = array('text' => '' . TEXT_INFO_NEW_PRICE . ' ' . $currencies->format($sInfo->specials_new_products_price));
             $contents[] = array('text' => '' . TEXT_INFO_PERCENTAGE . ' ' . number_format(100 - $sInfo->specials_new_products_price / $sInfo->products_price * 100) . '%');
             if ($sInfo->expires_date < 1) {
                 $contents[] = array('text' => '<br>' . TEXT_INFO_EXPIRES_DATE . ' <b>' . TEXT_NEVER . '</b>');
             } else {
                 $contents[] = array('text' => '<br>' . TEXT_INFO_EXPIRES_DATE . ' <b>' . tep_date_short($sInfo->expires_date) . '</b>');
             }
             if (is_null($sInfo->date_status_change)) {
                 $contents[] = array('text' => '<br>' . TEXT_INFO_STATUS_CHANGE . ' <b>' . TEXT_CURRENTLY_ACTIVE . '</b>');
             } else {
                 $contents[] = array('text' => '<br>' . TEXT_INFO_STATUS_CHANGE . ' <b>' . tep_date_short($sInfo->date_status_change) . '</b>');
             }
         }
         break;
             echo $tca['title'] . ' ' . $tca['tax_rate'] . '%';
             break;
         }
     }
     break;
 case 'manufacturers_name':
     echo $value['theadText'] . ': ';
     foreach ($manufacturers_array as $man) {
         if ($man['id'] == $pproducts['manufacturers_id']) {
             echo $man['name'];
             break;
         }
     }
     break;
 case 'products_image':
     echo tep_info_image($pproducts[$key], $pproducts['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
     break;
 case 'products_price_gross':
     echo $value['theadText'] . ': ' . $currencies->display_price($pproducts['products_price'], tep_get_tax_rate($pproducts['products_tax_class_id']));
     break;
 case 'products_order_status':
     $numItems = count($orders_status_array);
     foreach ($orders_status_array as $key => $osa) {
         echo $osa . ': ' . (isset($products_quantity_by_orders[$pproducts['products_id']][$key]) ? $products_quantity_by_orders[$pproducts['products_id']][$key] : '0') . ($key < $numItems ? ' / ' : '');
     }
     break;
 case 'products_linked':
 case 'special':
     echo $value['theadText'];
     break;
 case 'sort_order':
Esempio n. 10
0
         $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('delete_image', '', true) . ' ' . TEXT_DELETE_IMAGE);
         if ($sInfo->products_count > 0) {
             $contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $sInfo->products_count));
             $contents[] = array('text' => tep_draw_checkbox_field('delete_products') . ' ' . TEXT_DELETE_PRODUCTS);
         }
         $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_SERIES, 'search=' . urlencode($search) . '&page=' . $HTTP_GET_VARS['page'] . '&sID=' . $sInfo->series_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
         break;
     default:
         if (isset($sInfo) && is_object($sInfo)) {
             $heading[] = array('text' => '<strong>' . $sInfo->series_name . '</strong>');
             $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_SERIES, 'search=' . urlencode($search) . '&page=' . $HTTP_GET_VARS['page'] . '&sID=' . $sInfo->series_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_SERIES, 'search=' . urlencode($search) . '&page=' . $HTTP_GET_VARS['page'] . '&sID=' . $sInfo->series_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
             $contents[] = array('text' => '<br>' . TEXT_DATE_ADDED . ' ' . tep_date_short($sInfo->date_added));
             if (tep_not_null($sInfo->last_modified)) {
                 $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . tep_date_short($sInfo->last_modified));
             }
             $contents[] = array('text' => '<br>' . tep_info_image($sInfo->series_image, $sInfo->series_name));
             $contents[] = array('text' => '<br>' . TEXT_PRODUCTS . ' ' . $sInfo->products_count);
         }
         break;
 }
 if (tep_not_null($heading) && tep_not_null($contents)) {
     echo '            <td width="25%" valign="top">' . "\n";
     $box = new box();
     echo $box->infoBox($heading, $contents);
     echo '            </td>' . "\n";
 }
 ?>
       </tr>
     </table></td>
   </tr>
 </table>
                        echo AAS_NONE;
                        ?>
</option><?php 
                        foreach ($manufacturers_array as $man) {
                            echo '<option value="' . $man['id'] . '" ' . ($man['id'] == $products['manufacturers_id'] ? 'selected="selected"' : '') . ' >' . $man['name'] . '</option>';
                        }
                        ?>
            </select></td>
            <?php 
                    }
                    break;
                case 'products_image':
                    if (isset($aasAac['fields_disable_action'][$key][$_SESSION['admin']['id']]) && $aasAac['fields_disable_action'][$key][$_SESSION['admin']['id']]) {
                        echo '<td style="' . $_table_td_rules[$key]['style'] . '" class="' . ($value['cellEditable'] ? '' : 'nojedit') . ' ' . $_table_td_rules[$key]['class'] . '" >' . tep_info_image($products[$key], $products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</td>' . PHP_EOL;
                    } else {
                        echo '<td style="' . $_table_td_rules[$key]['style'] . '" class="' . ($value['cellEditable'] ? '' : 'nojedit') . ' ' . $_table_td_rules[$key]['class'] . '" ><a data-poc="product" data-productname="' . $products['products_name'] . '" class="product_image_link" href="#">' . tep_info_image($products[$key], $products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' . PHP_EOL;
                    }
                    break;
                case 'products_price_gross':
                    $taxRate = tep_get_tax_rate($products['products_tax_class_id']);
                    if (isset($aasAac['fields_disable_action'][$key][$_SESSION['admin']['id']]) && $aasAac['fields_disable_action'][$key][$_SESSION['admin']['id']]) {
                        $cursorDefault = 'cursor:default;';
                        $noJedit = 'nojedit';
                    } else {
                        $noJedit = $value['cellEditable'] ? '' : 'nojedit';
                        $cursorDefault = '';
                    }
                    echo '<td data-price-net="' . $products['products_price'] . '" data-tax-rate="' . $taxRate . '" data-column="' . $key . '" id="' . $key . '_' . $products['products_id'] . '" style="' . $_table_td_rules[$key]['style'] . ' ' . $cursorDefault . '" class="' . $noJedit . ' ' . $_table_td_rules[$key]['class'] . '" >' . tep_get_price_with_tax($products['products_price'], $taxRate, $currency_symbols[0]) . '</td>';
                    break;
                case 'products_order_status':
                    echo '<td id="' . $key . '_' . $products['products_id'] . '" style="' . $_table_td_rules[$key]['style'] . '" class="' . ($value['cellEditable'] ? '' : 'nojedit') . ' ' . $_table_td_rules[$key]['class'] . '" >';
Esempio n. 12
0
                $heading[] = array('text' => '<strong>' . $tInfo->news_types_name . '</strong>');
                if (DEBUG_MODE == 'on') {
                    $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_NEWS, tep_get_all_get_params(array('nID', 'action', 'tID')) . 'tID=' . $tInfo->news_types_id . '&action=edit_type') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_NEWS, tep_get_all_get_params(array('nID', 'action', 'tID')) . 'tID=' . $tInfo->news_types_id . '&action=delete_type') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a><br><br>');
                }
                if (tep_not_null($tInfo->news_types_short_description)) {
                    $contents[] = array('text' => $tInfo->news_types_short_description);
                }
                $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . tep_date_short($tInfo->date_added));
                if (tep_not_null($tInfo->last_modified)) {
                    $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . ' ' . tep_date_short($tInfo->last_modified));
                }
            } elseif (is_object($nInfo)) {
                $heading[] = array('text' => '<strong>' . tep_get_news_info($nInfo->news_id, $languages_id) . '</strong>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_NEWS, tep_get_all_get_params(array('action', 'nID')) . 'nID=' . $nInfo->news_id . '&action=new_news') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_NEWS, tep_get_all_get_params(array('action', 'nID')) . 'nID=' . $nInfo->news_id . '&action=delete_news') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
                $contents[] = array('text' => '<br>' . TEXT_DATE_ADDED . ' ' . tep_datetime_short($nInfo->date_added));
                $contents[] = array('text' => '<br>' . tep_info_image($nInfo->news_image, $nInfo->news_name));
            }
            break;
    }
    if (tep_not_null($heading) && tep_not_null($contents)) {
        echo '            <td width="25%" valign="top">' . "\n";
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . "\n";
    }
    ?>
          </tr>
        </table></td>
      </tr>
    </table>
<?php