本文整理汇总了PHP中tep_info_image函数的典型用法代码示例。如果您正苦于以下问题:PHP tep_info_image函数的具体用法?PHP tep_info_image怎么用?PHP tep_info_image使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tep_info_image函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: array
$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>
开发者ID:JanZ,项目名称:oscommerce2,代码行数:31,代码来源:manufacturers.php
示例2: array
$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>
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:authors.php
示例3: array
$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";
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:categories.php
示例4: substr
}
?>
</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> ' . 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;
?>
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:boards.php
示例5: array
$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) . ' <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";
}
}
开发者ID:laiello,项目名称:hotel-os,代码行数:31,代码来源:specials.php
示例6: tep_generate_category_path
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 . '&cID=' . $cInfo->categories_id . '&action=edit_category') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $category_path_string . '&cID=' . $cInfo->categories_id . '&action=delete_category') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $category_path_string . '&cID=' . $cInfo->categories_id . '&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;
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:categories.php
示例7: array
$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'] . '&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'] . '&mID=' . $mInfo->manufacturers_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['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));
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>
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:manufacturers.php
示例8: array
$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'] . '&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) . ' <a href="' . tep_href_link(FILENAME_SPECIALS, 'page=' . $_GET['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=' . $_GET['page'] . '&sID=' . $sInfo->specials_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_SPECIALS, 'page=' . $_GET['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(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;
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:specials.php
示例9: foreach
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':
开发者ID:othreed,项目名称:osCommerce-234-bootstrap-wADDONS,代码行数:31,代码来源:index.php
示例10: array
$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>
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:series.php
示例11: foreach
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'] . '" >';
开发者ID:othreed,项目名称:osCommerce-234-bootstrap-wADDONS,代码行数:31,代码来源:aas.php
示例12: array
$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
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:news.php
注:本文中的tep_info_image函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论