本文整理匯總了PHP中smn_image_submit函數的典型用法代碼示例。如果您正苦於以下問題:PHP smn_image_submit函數的具體用法?PHP smn_image_submit怎麽用?PHP smn_image_submit使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了smn_image_submit函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Copyright
oscMall System Version 4
http://www.systemsmanager.net
Portions Copyright (c) 2002 osCommerce
This source file is subject to version 2.0 of the GPL license,
that is bundled with this package in the file LICENSE. If you
did not receive a copy of the oscMall System license and are unable
to obtain it through the world-wide-web, please send a note to
license@systemsmanager.net so we can mail you a copy immediately.
*/
?>
<!-- loginbox //-->
<?php
if (!smn_session_is_registered('customer_id')) {
$boxContent = "\n <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n <tr>\n <td align=\"left\" class=\"main\">\n <a href=\"" . smn_href_link(FILENAME_LOGIN, 'ID=1&account=new_customer', 'NONSSL') . "\">" . smn_image_button('button_create_account.gif', IMAGE_CREATE_CUSTOMER) . "</a>\n </td>\n </tr>\n <tr>\n <td align=\"left\" class=\"main\">\n <a href=\"" . smn_href_link(FILENAME_LOGIN, 'ID=1&account=new_agent', 'NONSSL') . "\">" . smn_image_button('button_create_agent.gif', IMAGE_CREATE_AGENT) . "</a>\n </td>\n </tr>\n <tr>\n <td align=\"left\" class=\"main\">\n <a href=\"" . smn_href_link(FILENAME_LOGIN, 'ID=1&account=new_store', 'NONSSL') . "\">" . smn_image_button('button_create_store.gif', IMAGE_CREATE_STORE) . "</a>\n </td>\n </tr>\n <form name=\"login\" method=\"post\" action=\"" . smn_href_link(FILENAME_LOGIN, 'action=process', 'NONSSL') . "\">\n <tr>\n <td align=\"left\" class=\"main\">\n " . BOX_LOGINBOX_EMAIL . "\n </td>\n </tr>\n <tr>\n <td align=\"left\" class=\"main\">\n <input type=\"text\" name=\"email_address\" maxlength=\"96\" size=\"20\" value=\"\">\n </td>\n </tr>\n <tr>\n <td align=\"left\" class=\"main\">\n " . BOX_LOGINBOX_PASSWORD . "\n </td>\n </tr>\n <tr>\n <td align=\"left\" class=\"main\">\n <input type=\"password\" name=\"password\" maxlength=\"40\" size=\"20\" value=\"\">\n </td>\n </tr>\n <tr>\n <td class=\"main\" align=\"left\"><br>\n " . smn_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN) . "\n </td>\n </tr>\n </form>\n </table> ";
} elseif (smn_session_is_registered('customer_id')) {
$check_store_owner_query = smn_db_query("select c.customers_firstname, a.store_id, sd.store_name, a.admin_email_address from " . TABLE_CUSTOMERS . " c, " . TABLE_STORE_DESCRIPTION . " sd, " . TABLE_ADMIN . " a where c.customers_id = '" . $customer_id . "' and c.customers_email_address = a.admin_email_address and a.store_id = sd.store_id");
if (smn_db_num_rows($check_store_owner_query)) {
$check_store_owner = smn_db_fetch_array($check_store_owner_query);
//$store_site_address = $check_store_owner['store_site_address'];
$owner_store_id = $check_store_owner['store_id'];
$display_store_name = $check_store_owner['store_name'];
$admin = HTTP_SERVER . DIR_WS_ADMIN . FILENAME_DEFAULT;
$store_site_address = HTTP_SERVER . DIR_WS_HTTP_CATALOG . FILENAME_DEFAULT . '?ID=' . $owner_store_id;
$boxContent = '<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="left" class="main">Welcome Back ' . $check_store_owner['customers_firstname'] . '<br>' . '<a href=" ' . $admin . ' " target="_blank" class="main"><b>Store Administration</b></a><br>' . '<a href="' . $store_site_address . '" class="main"><b>Go to your store ' . $display_store_name . '</b></a><br><br>' . '<a href="' . smn_href_link(FILENAME_ACCOUNT, 'ID=' . $owner_store_id, 'NONSSL') . '">' . LOGIN_BOX_MY_ACCOUNT . '</a><br>' . '<a href="' . smn_href_link(FILENAME_ACCOUNT_EDIT, 'ID=' . $owner_store_id, 'NONSSL') . '">' . LOGIN_BOX_ACCOUNT_EDIT . '</a><br>' . '<a href="' . smn_href_link(FILENAME_ACCOUNT_HISTORY, 'ID=' . $owner_store_id, 'NONSSL') . '">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><br>' . '<a href="' . smn_href_link(FILENAME_ADDRESS_BOOK, 'ID=' . $owner_store_id, 'NONSSL') . '">' . LOGIN_BOX_ADDRESS_BOOK . '</a><br>' . '<a href="' . smn_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, 'ID=' . $owner_store_id, 'NONSSL') . '">' . LOGIN_BOX_PRODUCT_NOTIFICATIONS . '</a><br>' . '<a href="' . smn_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '">' . LOGIN_BOX_LOGOFF . '</a><br></td>
</tr>
</table>';
} else {
示例2: array
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
<?php
$heading = array();
$contents = array();
switch ($action) {
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_REVIEW . '</b>');
$contents = array('form' => smn_draw_form('reviews', FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_REVIEW_INTRO);
$contents[] = array('text' => '<br><b>' . $rInfo->products_name . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($rInfo) && is_object($rInfo)) {
$heading[] = array('text' => '<b>' . $rInfo->products_name . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=edit') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
$contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . smn_date_short($rInfo->date_added));
if (smn_not_null($rInfo->last_modified)) {
$contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . smn_date_short($rInfo->last_modified));
}
$contents[] = array('text' => '<br>' . smn_info_image($rInfo->products_image, $rInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT));
$contents[] = array('text' => '<br>' . TEXT_INFO_REVIEW_AUTHOR . ' ' . $rInfo->customers_name);
$contents[] = array('text' => TEXT_INFO_REVIEW_RATING . ' ' . smn_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . 'stars_' . $rInfo->reviews_rating . '.gif'));
$contents[] = array('text' => TEXT_INFO_REVIEW_READ . ' ' . $rInfo->reviews_read);
$contents[] = array('text' => '<br>' . TEXT_INFO_REVIEW_SIZE . ' ' . $rInfo->reviews_text_size . ' bytes');
$contents[] = array('text' => '<br>' . TEXT_INFO_PRODUCTS_AVERAGE_RATING . ' ' . number_format($rInfo->average_rating, 2) . '%');
示例3: smn_draw_separator
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
<td class="main"><?php
echo '<b>' . TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE;
?>
</td>
<td class="main" align="right"><?php
echo smn_draw_hidden_field('action', 'submit') . smn_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE);
?>
</td>
<td width="10"><?php
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<?php
if ($process == true) {
?>
<tr>
示例4: array
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
<?php
$heading = array();
$contents = array();
switch ($action) {
case 'delete':
$heading[] = array('text' => '<b>' . $nInfo->title . '</b>');
$contents = array('form' => smn_draw_form('newsletters', FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br><b>' . $nInfo->title . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (is_object($nInfo)) {
$heading[] = array('text' => '<b>' . $nInfo->title . '</b>');
if ($nInfo->locked > 0) {
$contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=new') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=preview') . '">' . smn_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=send') . '">' . smn_image_button('button_send.gif', IMAGE_SEND) . '</a> <a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=unlock') . '">' . smn_image_button('button_unlock.gif', IMAGE_UNLOCK) . '</a>');
} else {
$contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=preview') . '">' . smn_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=lock') . '">' . smn_image_button('button_lock.gif', IMAGE_LOCK) . '</a>');
}
$contents[] = array('text' => '<br>' . TEXT_NEWSLETTER_DATE_ADDED . ' ' . smn_date_short($nInfo->date_added));
if ($nInfo->status == '1') {
$contents[] = array('text' => TEXT_NEWSLETTER_DATE_SENT . ' ' . smn_date_short($nInfo->date_sent));
}
}
break;
示例5: smn_draw_separator
<td><?php
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
<td class="main"><?php
echo smn_image_submit('button_update_cart.gif', IMAGE_BUTTON_UPDATE_CART);
?>
</td>
<?php
$back = sizeof($navigation->path) - 2;
if (isset($navigation->path[$back])) {
?>
<td class="main"><?php
echo '<a href="' . smn_href_link($navigation->path[$back]['page'], smn_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . smn_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>';
?>
</td>
<?php
}
?>
<td align="right" class="main"><?php
echo '<a href="' . smn_href_link(FILENAME_CHECKOUT_SELECT, '', 'NONSSL') . '">' . smn_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>';
示例6: smn_draw_separator
</tr>
<tr>
<td><?php
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText"><?php
echo '<a href="javascript:popupWindow(\'' . smn_href_link(FILENAME_POPUP_SEARCH_HELP) . '\')">' . TEXT_SEARCH_HELP_LINK . '</a>';
?>
</td>
<td class="smallText" align="right"><?php
echo smn_image_submit('button_search.gif', IMAGE_BUTTON_SEARCH);
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><?php
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
示例7: Copyright
<?php
/*
Copyright (c) 2002 - 2006 SystemsManager.Net
SystemsManager Technologies
oscMall System Version 4
http://www.systemsmanager.net
Portions Copyright (c) 2002 osCommerce
This source file is subject to version 2.0 of the GPL license,
that is bundled with this package in the file LICENSE. If you
did not receive a copy of the oscMall System license and are unable
to obtain it through the world-wide-web, please send a note to
license@systemsmanager.net so we can mail you a copy immediately.
*/
$boxHeading = BOX_HEADING_SEARCH;
$box_base_name = 'search';
$box_id = $box_base_name . 'Box';
$boxContent = smn_draw_form('quick_find', smn_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'ID=1', 'NONSSL', false), 'get');
$boxContent .= smn_draw_hidden_field('search_in_description', '1') . smn_draw_input_field('keywords', '', 'size="10" maxlength="30" ') . ' ' . smn_hide_session_id() . smn_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . smn_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>';
$boxContent .= '</form>';
if (file_exists(DIR_WS_BOX_TEMPLATES . $box_base_name . '.php')) {
require DIR_WS_BOX_TEMPLATES . $box_base_name . '.php';
} else {
require DEFAULT_TEMPLATENAME_BOX;
}
$boxContent_attributes = '';
示例8: smn_href_link
</tr>
<tr>
<td class="main" colspan="2"><?php
echo '<a href="' . smn_href_link(FILENAME_AFFILIATE_PASSWORD_FORGOTTEN, '', 'NONSSL') . '">' . TEXT_AFFILIATE_PASSWORD_FORGOTTEN . '</a>';
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td width="50%" align="right" valign="top"><?php
echo '<a href="' . smn_href_link(FILENAME_AFFILIATE_SIGNUP, '', 'NONSSL') . '">' . smn_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>';
?>
</td>
<td width="50%" align="right" valign="top"><?php
echo smn_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN);
?>
</td>
</tr>
</table></form></td>
</tr>
</table>
示例9: smn_draw_form
' <td align="right" class="smallText">' . $order->totals[$i]['text'] . '</td>' . "\n" .
' </tr>' . "\n";
}
?>
</table></td>
</tr>
</table></td>
</tr>
<tr class="infoBoxContents"><td><?=ORDER_DELETE_DESCRIPTION?></td></tr>
<tr class="infoBoxContents"><?php echo smn_draw_form('order_delete', smn_href_link(FILENAME_STORE_ORDER_EDIT, smn_get_all_get_params(array('action')) . 'action=deleteconfirm&ID='.$store_id,'NONSSL'),'POST'); ?>
<td><?php echo smn_draw_checkbox_field('restock') . ' ' . TEXT_INFO_RESTOCK_PRODUCT_QUANTITY; ?></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php echo smn_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td><?php echo '<a href="' . smn_href_link(FILENAME_STORE_ORDER_TOOL, 'ID='.$store_id, 'NONSSL') . '">' . smn_image_button('small_back.gif', IMAGE_small_back) . '</a>'; ?></td>
<td valign="top"><?php echo smn_image_submit('button_delete.gif', IMAGE_DELETE); ?></td>
<td width="10"><?php echo smn_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<?
}
?>
示例10: smn_draw_separator
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
<td align ="right">
<?php
/* Added the hidden field for store id by Cimi on June 12,2007*/
echo smn_draw_hidden_field('ID', $_REQUEST['ID']);
if (is_array($payment_modules->modules)) {
echo $payment_modules->process_button();
}
echo smn_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . "\n";
?>
</td>
<td width="10"><?php
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php
示例11: smn_draw_date_selector
</td>
<td align="left"><?php
echo smn_draw_date_selector('coupon_finishdate', mktime(0, 0, 0, $coupon_finishdate[1], $coupon_finishdate[2], $coupon_finishdate[0], 0));
?>
</td>
<td align="left" class="main"><?php
echo COUPON_FINISHDATE_HELP;
?>
</td>
</tr>
<?php
echo smn_draw_hidden_field('date_created', $date_created);
?>
<tr>
<td align="left"><?php
echo smn_image_submit('button_preview.gif', IMAGE_PREVIEW);
?>
</td>
<td align="left"> <a href="<?php
echo smn_href_link('coupon_admin.php', '');
?>
"><?php
echo smn_image_button('button_cancel.gif', IMAGE_CANCEL);
?>
</a>
</td>
</tr>
</td></table></form>
</tr>
</table></td>
示例12: smn_draw_separator
<td><table width="95%" align="center" border="0" cellpadding="4" cellspacing="0"><td>
<tr class="footer">
<td class="infoBoxHeading" align="center"><?php
echo TEXT_AFFILIATE_INDIVIDUAL_BANNER . ' ' . $affiliate_banners['affiliate_banners_title'];
?>
</td>
</tr>
<tr>
<td><?php
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
</tr>
<tr>
<td class="smallText" align="center"><?php
echo TEXT_AFFILIATE_INDIVIDUAL_BANNER_INFO . smn_draw_form('individual_banner', smn_href_link(FILENAME_AFFILIATE_BANNERS_BUILD)) . "\n" . smn_draw_input_field('individual_banner_id', '', 'size="5"') . " " . smn_image_submit('button_affiliate_build_a_link.gif', IMAGE_BUTTON_BUILD_A_LINK);
?>
</form></td>
</tr>
<tr>
<td class="smallText" align="center"><?php
echo '<a href="javascript:popupWindow(\'' . smn_href_link(FILENAME_AFFILIATE_VALIDPRODUCTS) . '\')"><b>' . TEXT_AFFILIATE_VALIDPRODUCTS . '</b></a>';
?>
<?php
echo TEXT_AFFILIATE_INDIVIDUAL_BANNER_VIEW;
?>
<br><?php
echo TEXT_AFFILIATE_INDIVIDUAL_BANNER_HELP;
?>
</td>
</tr>
示例13: array
$contents[] = array('align' => 'center', 'text' => '<br><a href="' . smn_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file . '&action=restorenow') . '">' . smn_image_button('button_restore.gif', IMAGE_RESTORE) . '</a> <a href="' . smn_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'restorelocal':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_RESTORE_LOCAL . '</b>');
$contents = array('form' => smn_draw_form('restore', FILENAME_BACKUP, 'action=restorelocalnow', 'post', 'enctype="multipart/form-data"'));
$contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL . '<br><br>' . TEXT_INFO_BEST_THROUGH_HTTPS);
$contents[] = array('text' => '<br>' . smn_draw_file_field('sql_file'));
$contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL_RAW_FILE);
$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_restore.gif', IMAGE_RESTORE) . ' <a href="' . smn_href_link(FILENAME_BACKUP) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
$contents = array('form' => smn_draw_form('delete', FILENAME_BACKUP, 'file=' . $buInfo->file . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_DELETE_INTRO);
$contents[] = array('text' => '<br><b>' . $buInfo->file . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($buInfo) && is_object($buInfo)) {
$heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file . '&action=restore') . '">' . smn_image_button('button_restore.gif', IMAGE_RESTORE) . '</a> <a href="' . smn_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
$contents[] = array('text' => '<br>' . TEXT_INFO_DATE . ' ' . $buInfo->date);
$contents[] = array('text' => TEXT_INFO_SIZE . ' ' . $buInfo->size);
$contents[] = array('text' => '<br>' . TEXT_INFO_COMPRESSION . ' ' . $buInfo->compression);
}
break;
}
if (smn_not_null($heading) && smn_not_null($contents)) {
echo ' <td width="25%" valign="top">' . "\n";
$box = new box();
echo $box->infoBox($heading, $contents);
示例14: smn_draw_separator
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
<td class="main"><?php
echo '<a href="' . smn_href_link(FILENAME_PRODUCT_REVIEWS, smn_get_all_get_params()) . '">' . smn_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>';
?>
</td>
<?php
if ($product_master['product_master_status'] != 1) {
?>
<td class="main" align="right"><?php
echo smn_draw_hidden_field('products_id', $product_info['products_id']) . smn_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART);
?>
</td></form>
<?php
}
?>
<td width="10"><?php
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
示例15: array
$contents[] = array('align' => 'left', 'text' => TEXT_INFO_EDIT_GROUP_NAME . '<br> <br>' . smn_draw_input_field('admin_groups_name', $gInfo->admin_groups_name));
$contents[] = array('align' => 'left', 'text' => TEXT_INFO_EDIT_GROUP_STORE_TYPE . '<br> <br>' . smn_pull_down_store_list($gInfo->admin_groups_store_type));
$contents[] = array('align' => 'left', 'text' => TEXT_INFO_EDIT_GROUP_MAX_PRODUCTS . '<br> <br>' . smn_draw_input_field('admin_groups_max_products', $gInfo->admin_groups_max_products));
$contents[] = array('align' => 'left', 'text' => TEXT_INFO_EDIT_SALES_COST . '<br> <br>' . smn_draw_input_field('admin_sales_cost', $gInfo->admin_sales_cost));
$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . smn_href_link(FILENAME_ADMIN_MEMBERS, 'gID=' . $gInfo->admin_groups_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'del_group':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_GROUPS . '</b>');
$contents = array('form' => smn_draw_form('delete_group', FILENAME_ADMIN_MEMBERS, 'action=group_delete&gID=' . $gInfo->admin_groups_id, 'post', 'enctype="multipart/form-data"'));
if ($gInfo->admin_groups_id == 1) {
$contents[] = array('align' => 'center', 'text' => sprintf(TEXT_INFO_DELETE_GROUPS_INTRO_NOT, $gInfo->admin_groups_name));
$contents[] = array('align' => 'center', 'text' => '<br><a href="' . smn_href_link(FILENAME_ADMIN_MEMBERS, 'gID=' . $_GET['gID']) . '">' . smn_image_button('button_back.gif', IMAGE_BACK) . '</a><br> ');
} else {
$contents[] = array('text' => smn_draw_hidden_field('set_groups_id', substr($del_groups_prepare, 4)));
$contents[] = array('align' => 'center', 'text' => sprintf(TEXT_INFO_DELETE_GROUPS_INTRO, $gInfo->admin_groups_name));
$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_ADMIN_MEMBERS, 'gID=' . $_GET['gID']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a><br> ');
}
break;
case 'define_group':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DEFINE . '</b>');
$contents[] = array('text' => sprintf(TEXT_INFO_DEFINE_INTRO, $group_name['admin_groups_name']));
if ($_GET['gPath'] == 1) {
$contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_ADMIN_MEMBERS, 'gID=' . $_GET['gPath']) . '">' . smn_image_button('button_back.gif', IMAGE_CANCEL) . '</a><br>');
}
break;
case 'show_group':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_GROUP . '</b>');
$check_email_query = smn_db_query("select admin_email_address from " . TABLE_ADMIN . "");
//$stored_email[];
while ($check_email = smn_db_fetch_array($check_email_query)) {
$stored_email[] = $check_email['admin_email_address'];