本文整理汇总了PHP中smn_image_button函数的典型用法代码示例。如果您正苦于以下问题:PHP smn_image_button函数的具体用法?PHP smn_image_button怎么用?PHP smn_image_button使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了smn_image_button函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: confirm
function confirm()
{
global $_GET;
$mail_query = smn_db_query("select count(*) as count from " . TABLE_CUSTOMERS . " where customers_newsletter = '1'");
$mail = smn_db_fetch_array($mail_query);
$confirm_string = '<table border="0" cellspacing="0" cellpadding="2">' . "\n" . ' <tr>' . "\n" . ' <td class="main"><font color="#ff0000"><b>' . sprintf(TEXT_COUNT_CUSTOMERS, $mail['count']) . '</b></font></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . smn_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main"><b>' . $this->title . '</b></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . smn_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main"><tt>' . nl2br($this->content) . '</tt></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . smn_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td align="right"><a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm_send') . '">' . smn_image_button('button_send.gif', IMAGE_SEND) . '</a> <a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a></td>' . "\n" . ' </tr>' . "\n" . '</table>';
return $confirm_string;
}
示例2: credit_selection
function credit_selection()
{
global $customer_id, $currencies, $language;
$selection_string = '';
$selection_string .= '' . "\n";
$selection_string .= ' </tr><tr><td class="main">' . "\n";
$selection_string .= TEXT_ENTER_GV_CODE . smn_draw_input_field('gv_redeem_code') . ' and click ';
$image_submit = '<input type="image" name="submit_redeem" onClick="return check_form(), submitFunction()" ' . smn_image_button('button_redeem.gif', IMAGE_REDEEM_VOUCHER);
$selection_string .= '';
$selection_string .= '' . $image_submit . '</td>';
$selection_string .= '';
$selection_string .= '' . "\n";
return $selection_string;
}
示例3: smn_draw_separator
</tr>
<tr>
</td><h5><?php
echo TEXT_HEADING_CONTINUE_CHECKOUT;
?>
</h5></td>
</tr>
</tr>
<td valign="top" class="main"><?php
echo smn_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<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>';
?>
</td>
</tr>
<tr>
<td width="10"><?php
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php
示例4: smn_draw_separator
</table></td>
</tr>
</table></td>
</tr>
<?php
if ($process == true) {
?>
<tr>
<td><?php
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
</tr>
<tr>
<td><?php
echo '<a href="' . smn_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'NONSSL') . '">' . smn_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>';
?>
</td>
</tr>
<?php
}
?>
<tr>
<td><?php
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
示例5: array
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_TITLE . '<br>' . smn_draw_input_field('tax_class_title', $tcInfo->tax_class_title));
$contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_DESCRIPTION . '<br>' . smn_draw_input_field('tax_class_description', $tcInfo->tax_class_description));
$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . smn_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_TAX_CLASS . '</b>');
$contents = array('form' => smn_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br><b>' . $tcInfo->tax_class_title . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($tcInfo) && is_object($tcInfo)) {
$heading[] = array('text' => '<b>' . $tcInfo->tax_class_title . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=edit') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
$contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . smn_date_short($tcInfo->date_added));
$contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . ' ' . smn_date_short($tcInfo->last_modified));
$contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_DESCRIPTION . '<br>' . $tcInfo->tax_class_description);
}
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);
echo ' </td>' . "\n";
}
?>
</tr>
</table></td>
示例6: smn_draw_separator
}
$left = !$left;
}
}
$dir->close();
}
?>
</tr>
</table></td>
</tr>
<tr>
<td><?php
echo smn_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td align="right"><?php
echo '<a href="' . smn_href_link(FILENAME_FILE_MANAGER, 'current_path=' . DIR_FS_CATALOG_LANGUAGES . $_GET['lngdir']) . '">' . smn_image_button('button_file_manager.gif', IMAGE_FILE_MANAGER) . '</a>';
?>
</td>
</tr>
<?php
}
?>
</table></td>
</tr>
</table>
示例7: smn_href_link
?>
<div id="productListing"></div>
<div id="productListing_preview" style="padding-top:10px;"></div>
<textarea id="preview-tpl" style="display:none;">
<div class="post-data">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="{image}"></td>
<td>{description}</td>
</tr>
<tr>
<td colspan="2" align="right"><a href="<?php
echo smn_href_link(basename($PHP_SELF), smn_get_all_get_params(array('action')) . 'action=buy_now&ID={store_id}&products_id={product_id}');
?>
"><?php
echo smn_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW);
?>
</a></tD>
</tr>
</table>
</div>
</textarea>
<link rel="stylesheet" type="text/css" href="ext/<?php
echo EXTJS_VERSION;
?>
/resources/css/ext-all.css" />
<script type="text/javascript" src="ext/<?php
echo EXTJS_VERSION;
?>
示例8: smn_draw_separator
?>
</b></td>
</tr>
</table></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><?php
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
<td class="main" width="50%" valign="top"><?php
echo TEXT_CHOOSE_SHIPPING_DESTINATION . '<br><br><a href="' . smn_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'NONSSL') . '">' . smn_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . '</a>';
?>
</td>
<td align="right" width="50%" valign="top"><table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main" align="center" valign="top"><?php
echo '<b>' . TITLE_SHIPPING_ADDRESS . '</b><br>' . smn_image(DIR_WS_IMAGES . 'arrow_south_east.gif');
?>
</td>
<td><?php
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
<td class="main" valign="top"><?php
echo smn_address_label($customer_id, $sendto, true, ' ', '<br>');
?>
示例9: smn_draw_separator
</tr>
<tr>
<td colspan="4"><?php
echo smn_draw_separator();
?>
</td>
</tr>
<tr>
<td align="center" class="dataTableContent" colspan="4"><b><?php
echo TEXT_SUMMARY;
?>
</b></td>
</tr>
<tr>
<td colspan="4"><?php
echo smn_draw_separator();
?>
</td>
</tr>
<tr>
<td align="right" class="dataTableContent" colspan="4"><?php
echo '<a href="' . smn_href_link(FILENAME_AFFILIATE_BANNERS, '') . '">' . smn_image_button('button_affiliate_banners.gif', IMAGE_BANNERS) . '</a> <a href="' . smn_href_link(FILENAME_AFFILIATE_CLICKS, '') . '">' . smn_image_button('button_affiliate_clickthroughs.gif', IMAGE_CLICKTHROUGHS) . '</a> <a href="' . smn_href_link(FILENAME_AFFILIATE_SALES, '') . '">' . smn_image_button('button_affiliate_sales.gif', IMAGE_SALES) . '</a>';
?>
</td>
</tr>
</center>
</table></td>
</tr>
</table></td>
</tr>
</table>
示例10: array
$contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_CODE_2 . '<br>' . smn_draw_input_field('countries_iso_code_2', $cInfo->countries_iso_code_2));
$contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_CODE_3 . '<br>' . smn_draw_input_field('countries_iso_code_3', $cInfo->countries_iso_code_3));
$contents[] = array('text' => '<br>' . TEXT_INFO_ADDRESS_FORMAT . '<br>' . smn_draw_pull_down_menu('address_format_id', smn_get_address_formats(), $cInfo->address_format_id));
$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . smn_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_COUNTRY . '</b>');
$contents = array('form' => smn_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br><b>' . $cInfo->countries_name . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_UPDATE) . ' <a href="' . smn_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (is_object($cInfo)) {
$heading[] = array('text' => '<b>' . $cInfo->countries_name . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=edit') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
$contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_NAME . '<br>' . $cInfo->countries_name);
$contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_CODE_2 . ' ' . $cInfo->countries_iso_code_2);
$contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY_CODE_3 . ' ' . $cInfo->countries_iso_code_3);
$contents[] = array('text' => '<br>' . TEXT_INFO_ADDRESS_FORMAT . ' ' . $cInfo->address_format_id);
}
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);
echo ' </td>' . "\n";
}
?>
</tr>
示例11: array
$heading[] = array('text' => '<b>' . $abInfo->affiliate_banners_title . '</b>');
$contents = array('form' => smn_draw_form('affiliate_banners', FILENAME_AFFILIATE_BANNER_MANAGER, 'page=' . $_GET['page'] . '&abID=' . $abInfo->affiliate_banners_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br><b>' . $abInfo->affiliate_banners_title . '</b>');
if ($abInfo->affiliate_banners_image) {
$contents[] = array('text' => '<br>' . smn_draw_checkbox_field('delete_image', 'on', true) . ' ' . TEXT_INFO_DELETE_IMAGE);
}
$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, 'selected_box=affiliate&page=' . $_GET['page'] . '&abID=' . $_GET['abID']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (is_object($abInfo)) {
$sql = "select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $abInfo->affiliate_products_id . "' and language_id = '" . $languages_id . "'";
$product_description_query = smn_db_query($sql);
$product_description = smn_db_fetch_array($product_description_query);
$heading[] = array('text' => '<b>' . $abInfo->affiliate_banners_title . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, 'selected_box=affiliate&page=' . $_GET['page'] . '&abID=' . $abInfo->affiliate_banners_id . '&action=new') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, 'selected_box=affiliate&page=' . $_GET['page'] . '&abID=' . $abInfo->affiliate_banners_id . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
$contents[] = array('text' => $product_description['products_name']);
$contents[] = array('text' => '<br>' . TEXT_BANNERS_DATE_ADDED . ' ' . smn_date_short($abInfo->affiliate_date_added));
$contents[] = array('text' => '' . sprintf(TEXT_BANNERS_STATUS_CHANGE, smn_date_short($abInfo->affiliate_date_status_change)));
}
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);
echo ' </td>' . "\n";
}
?>
</tr>
</table></td>
示例12: smn_draw_separator
<td class="smallText"><?php
echo TEXT_INFORMATION;
?>
</td>
</tr>
</table></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="0" cellpadding="2">
<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="left" valign="top"><?php
echo '<a href="' . smn_href_link(FILENAME_AFFILIATE, '', 'NONSSL') . '">' . smn_image_button('button_login.gif', IMAGE_BUTTON_LOGIN) . '</a>';
?>
</td>
</tr>
</table></td>
</tr>
</table>
示例13: while
</tr>
<tr>
<td>
<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<!-- list of products -->
<?php
while ($downloads_values = smn_db_fetch_array($downloads_query)) {
list($dt_year, $dt_month, $dt_day) = explode('-', $downloads_values['date_purchased_day']);
$download_timestamp = mktime(23, 59, 59, $dt_month, $dt_day + $downloads_values['download_maxdays'], $dt_year);
$download_expiry = date('Y-m-d H:i:s', $download_timestamp);
if ($downloads_values['download_count'] > 0 && file_exists(DIR_FS_DOWNLOAD . $downloads_values['orders_products_filename']) && ($downloads_values['download_maxdays'] == 0 || $download_timestamp > time())) {
$n = $n + 1;
echo ' <tr class="infoBoxContents">' . "\n";
echo ' <td align="left">#' . $n . '</td>' . "\n";
echo ' <td align="left">' . smn_image_button("button_archive.gif", 'Archive', 'onmouseover="this.style.cursor=\'hand\'" onclick="document.location.href=\'' . smn_href_link('download_files.php', smn_get_all_get_params(array('dID', 'action')) . 'action=archive' . '&aID=' . $downloads_values['orders_products_download_id'] . '\'"')) . '</td>' . "\n";
echo ' <td><a href="' . smn_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $downloads_values['products_id'], 'NONSSL') . '">' . $downloads_values['products_name'] . '</a></td>' . "\n";
echo ' <td><a href="' . smn_href_link(FILENAME_DOWNLOAD, 'order=' . $downloads_values['orders_id'] . '&id=' . $downloads_values['orders_products_download_id']) . '">' . $downloads_values['orders_products_filename'] . '</a></td>' . "\n";
echo ' <td>' . TABLE_HEADING_DOWNLOAD_DATE . smn_date_long($download_expiry) . '</td>' . "\n";
echo ' <td align="right">' . $downloads_values['download_count'] . TABLE_HEADING_DOWNLOAD_COUNT . '</td>' . "\n";
echo ' </tr>' . "\n";
}
}
?>
</tr>
</table>
</td>
</tr>
<?php
if (!strstr($PHP_SELF, FILENAME_ACCOUNT_HISTORY_INFO)) {
?>
示例14: reset
/* Re-Post all POST'ed variables */
reset($_POST);
while (list($key, $value) = each($_POST)) {
if (!is_array($_POST[$key])) {
echo smn_draw_hidden_field($key, htmlspecialchars(stripslashes($value)));
}
}
?>
<table border="0" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><?php
echo smn_image_submit('button_back.gif', IMAGE_BACK, 'name="back"');
?>
</td>
<td align="right"><?php
echo '<a href="' . smn_href_link(FILENAME_MAIL) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a> ' . smn_image_submit('button_send_mail.gif', IMAGE_SEND_EMAIL);
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</form></tr>
<?php
} else {
?>
<tr><?php
echo smn_draw_form('mail', FILENAME_MAIL, 'action=preview');
?>
<td><table border="0" cellpadding="0" cellspacing="2">
<tr>
示例15: 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="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
echo '<a href="' . $origin_href . '">' . smn_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>';
?>
</td>
<td width="10"><?php
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>