本文整理汇总了PHP中tep_draw_button函数的典型用法代码示例。如果您正苦于以下问题:PHP tep_draw_button函数的具体用法?PHP tep_draw_button怎么用?PHP tep_draw_button使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tep_draw_button函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: execute
function execute()
{
global $cart, $oscTemplate;
$data = '<div id="headerShortcuts" class="btn-group">' . ' ' . tep_draw_button(MODULE_BOXES_HEADER_MENU_DEFAULT, 'btn btn-default', tep_href_link(FILENAME_DEFAULT)) . ' ' . tep_draw_button(MODULE_BOXES_HEADER_MENU_NEW, 'btn btn-default', tep_href_link(FILENAME_PRODUCTS_NEW)) . ' ' . tep_draw_button(MODULE_BOXES_HEADER_MENU_FEATURED, 'btn btn-default', tep_href_link(FILENAME_FEATURED_PRODUCTS)) . ' ' . tep_draw_button(MODULE_BOXES_HEADER_MENU_TOPSELLERS, 'btn btn-default', tep_href_link(FILENAME_TOPSELLERS_PRODUCTS)) . ' ' . tep_draw_button(MODULE_BOXES_HEADER_MENU_SPECIALS, 'btn btn-default', tep_href_link(FILENAME_SPECIALS)) . ' ' . tep_draw_button(MODULE_BOXES_HEADER_MENU_REVIEWS, 'btn btn-default', tep_href_link(FILENAME_REVIEWS));
$data .= '</div>';
$oscTemplate->addBlock($data, $this->group);
}
示例2: confirm
function confirm()
{
$mail_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS . " where customers_newsletter = '1'");
$mail = tep_db_fetch_array($mail_query);
$confirm_string = '<table border="0" cellspacing="0" cellpadding="2">' . "\n" . ' <tr>' . "\n" . ' <td class="main"><font color="#ff0000"><strong>' . sprintf(TEXT_COUNT_CUSTOMERS, $mail['count']) . '</strong></font></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main"><strong>' . $this->title . '</strong></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . tep_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>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="smallText" align="right">' . tep_draw_button(IMAGE_SEND, 'mail-closed', tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm_send'), 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'])) . '</td>' . "\n" . ' </tr>' . "\n" . '</table>';
return $confirm_string;
}
示例3: execute
function execute()
{
global $oscTemplate;
$data = '<div id="headerShortcutsTop" class="btn-group">' . ' ' . tep_draw_button(HEADER_TITLE_MY_ACCOUNT, 'btn btn-default', tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));
if (tep_session_is_registered('customer_id')) {
$data .= tep_draw_button(HEADER_TITLE_LOGOFF, 'btn btn-default', tep_href_link(FILENAME_LOGOFF, '', 'SSL'));
} else {
$data .= tep_draw_button(HEADER_TITLE_LOGIN, 'btn btn-default', tep_href_link(FILENAME_LOGIN, '', 'SSL'));
}
$data .= '</div>';
$oscTemplate->addBlock($data, $this->group);
}
示例4: _buildBranch
protected function _buildBranch($parent_id, $level = 0)
{
$result = $level === 0 && $this->parent_group_apply_to_root === true || $level > 0 ? $this->parent_group_start_string : null;
if (isset($this->_data[$parent_id])) {
foreach ($this->_data[$parent_id] as $category_id => $category) {
$result .= '<div class="panel panel-default">';
$result .= ' <div class="panel-heading">';
$result .= ' <h2 class="panel-title">';
$result .= ' <a data-toggle="collapse" data-parent="#accordion" href="#collapse_' . $category_id . '">';
$result .= $category['selectors_name'];
$result .= ' </a>';
$result .= tep_draw_form('delete_css', FILENAME_BTS_CSS, 'selID=' . $category_id . '&action=deleteconfirm', 'post', 'class="pull-right"') . tep_draw_button(IMAGE_DELETE, 'trash', null, 'primary') . '</form>';
$result .= ' </h2>';
$result .= ' </div>';
$result .= ' <div id="collapse_' . $category_id . '" class="panel-collapse collapse">';
$result .= ' <div class="panel-body">';
$result .= tep_draw_form('css', FILENAME_BTS_CSS, 'selID=' . $category_id . '&action=save', 'post', 'id="' . $category_id . '"');
$result .= TEXT_CSS_SELECTOR_NAME . ' ' . tep_draw_input_field('selectors_name', $category['selectors_name'], 'class="form-control"') . '<br />';
$result .= '<table class="table table-hover table-striped table-bordered input_new_edit_fields_wrap">';
$result .= '<tr><th>' . TEXT_PROPERTY_ELEMENT . '</td><th>' . TEXT_PROPERTY_VALUE . '</th><th><button id="' . $category_id . '" class="add_new_edit_field_button"> + </button></th></tr>';
$properties = tep_get_properties($category_id);
for ($i = 0, $n = sizeof($properties); $i < $n; $i++) {
$result .= '<tr id="' . $properties[$i]['properties_id'] . '">';
$result .= ' <td>' . tep_draw_input_field('property_element[' . $properties[$i]['properties_id'] . ']', tep_get_property_element($category_id, $properties[$i]['properties_id']), 'class="form-control"') . '</td>';
$result .= ' <td>' . tep_draw_input_field('property_value[' . $properties[$i]['properties_id'] . ']', tep_get_property_value($category_id, $properties[$i]['properties_id']), 'class="form-control"') . '</td>';
$result .= ' <td><a href="#" class="remove_new_edit_field">Remove</a></td>';
$result .= '</tr>';
}
$result .= ' </table>';
$result .= '<br />' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_BTS_CSS));
$result .= ' </form>';
$result .= ' </div>';
$result .= ' </div>';
$result .= '</div>';
if (isset($this->_data[$category_id]) && ($this->max_level == '0' || $this->max_level > $level + 1)) {
$result .= $this->_buildBranch($category_id, $level + 1);
}
}
}
$result .= $level === 0 && $this->parent_group_apply_to_root === true || $level > 0 ? $this->parent_group_end_string : null;
return $result;
}
示例5: tep_href_link
require 'includes/application_top.php';
require DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHIPPING;
$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SHIPPING));
require DIR_WS_INCLUDES . 'template_top.php';
?>
<div class="page-header">
<h1><?php
echo HEADING_TITLE;
?>
</h1>
</div>
<div class="contentContainer">
<div class="contentText">
<?php
echo TEXT_INFORMATION;
?>
</div>
<div class="buttonSet">
<div class="text-right"><?php
echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'fa fa-angle-right', tep_href_link(FILENAME_DEFAULT));
?>
</div>
</div>
</div>
<?php
require DIR_WS_INCLUDES . 'template_bottom.php';
require DIR_WS_INCLUDES . 'application_bottom.php';
示例6: tep_draw_checkbox_field
<?php
echo tep_draw_checkbox_field('newsletter_general', '1', $newsletter['customers_newsletter'] == '1' ? true : false);
?>
<?php
if (tep_not_null(MY_NEWSLETTERS_GENERAL_NEWSLETTER_DESCRIPTION)) {
echo MY_NEWSLETTERS_GENERAL_NEWSLETTER_DESCRIPTION;
}
?>
</label>
</div>
</div>
</div>
</div>
<div class="buttonSet row">
<div class="col-xs-6"><?php
echo tep_draw_button(IMAGE_BUTTON_BACK, 'fa fa-angle-left', tep_href_link('account.php', '', 'SSL'));
?>
</div>
<div class="col-xs-6 text-right"><?php
echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'fa fa-angle-right', null, 'primary', null, 'btn-success');
?>
</div>
</div>
</div>
</form>
<?php
require 'includes/template_bottom.php';
require 'includes/application_bottom.php';
示例7: sizeof
</span>
</div>
</div>
<?php
}
?>
<br />
<div class="buttonSet row">
<div class="col-xs-6">
<?php
$back = sizeof($navigation->path) - 2;
if (isset($navigation->path[$back])) {
echo tep_draw_button(IMAGE_BUTTON_BACK, 'glyphicon glyphicon-chevron-left', tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']));
}
?>
</div>
<div class="col-xs-6 text-right"><?php
echo tep_draw_button(IMAGE_BUTTON_WRITE_REVIEW, 'glyphicon glyphicon-comment', tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, tep_get_all_get_params()), 'primary', NULL, 'btn-success');
?>
</div>
</div>
</div>
</div>
<?php
require DIR_WS_INCLUDES . 'template_bottom.php';
require DIR_WS_INCLUDES . 'application_bottom.php';
示例8: tep_draw_form
<tr>
<td><?php
echo tep_draw_form('logo', FILENAME_STORE_LOGO, 'action=save', 'post', 'enctype="multipart/form-data"');
?>
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main" valign="top"><?php
echo TEXT_LOGO_IMAGE;
?>
</td>
<td class="main"><?php
echo tep_draw_file_field('store_logo');
?>
</td>
<td class="smallText"><?php
echo tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary');
?>
</td>
</tr>
</table>
</form></td>
</tr>
<tr>
<td><?php
echo tep_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td class="main"><?php
echo TEXT_FORMAT_AND_LOCATION;
示例9: array
$heading = array();
$contents = array();
switch ($action) {
case 'confirm':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_CUSTOMER . '</b>');
$contents = array('form' => tep_draw_form('customers', FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_DELETE_INTRO . '<br><br><b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>');
if (isset($cInfo->number_of_reviews) && $cInfo->number_of_reviews > 0) {
$contents[] = array('text' => '<br>' . tep_draw_checkbox_field('delete_reviews', 'on', true) . ' ' . sprintf(TEXT_DELETE_REVIEWS, $cInfo->number_of_reviews));
}
$contents[] = array('align' => 'center', 'text' => '<br>' . tep_draw_button(IMAGE_DELETE, 'trash', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id)));
break;
default:
if (isset($cInfo) && is_object($cInfo)) {
$heading[] = array('text' => '<b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>');
$contents[] = array('align' => 'center', 'text' => tep_draw_button(IMAGE_EDIT, 'document', tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=edit')) . tep_draw_button(IMAGE_DELETE, 'trash', tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=confirm')) . tep_draw_button(IMAGE_ORDERS, 'cart', tep_href_link(FILENAME_ORDERS, 'cID=' . $cInfo->customers_id)) . tep_draw_button(IMAGE_EMAIL, 'mail-closed', tep_href_link(FILENAME_MAIL, 'selected_box=tools&customer=' . $cInfo->customers_email_address)));
$contents[] = array('text' => '<br>' . TEXT_DATE_ACCOUNT_CREATED . ' ' . tep_date_short($cInfo->date_account_created));
$contents[] = array('text' => '<br>' . TEXT_DATE_ACCOUNT_LAST_MODIFIED . ' ' . tep_date_short($cInfo->date_account_last_modified));
$contents[] = array('text' => '<br>' . TEXT_INFO_DATE_LAST_LOGON . ' ' . tep_date_short($cInfo->date_last_logon));
$contents[] = array('text' => '<br>' . TEXT_INFO_NUMBER_OF_LOGONS . ' ' . $cInfo->number_of_logons);
$contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY . ' ' . $cInfo->countries_name);
$contents[] = array('text' => '<br>' . TEXT_INFO_NUMBER_OF_REVIEWS . ' ' . $cInfo->number_of_reviews);
}
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";
}
示例10: tep_draw_separator
<td><?php
echo tep_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 tep_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
<td class="smallText" align="right"><?php
echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary');
?>
</td>
<td width="10"><?php
echo tep_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<?php
}
?>
</table></form>
示例11: array
case 'delete':
$heading[] = array('text' => '<strong>' . TEXT_HEADING_DELETE_MANUFACTURER . '</strong>');
$contents = array('form' => tep_draw_form('manufacturers', FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_DELETE_INTRO);
$contents[] = array('text' => '<br /><strong>' . $mInfo->manufacturers_name . '</strong>');
$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_draw_button(IMAGE_DELETE, 'trash', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id)));
break;
default:
if (isset($mInfo) && is_object($mInfo)) {
$heading[] = array('text' => '<strong>' . $mInfo->manufacturers_name . '</strong>');
$contents[] = array('align' => 'center', 'text' => tep_draw_button(IMAGE_EDIT, 'document', tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=edit')) . tep_draw_button(IMAGE_DELETE, 'trash', tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=delete')));
$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";
}
示例12: array
$contents[] = array('text' => '<br />' . TEXT_INFO_COUNTRY_CODE_2 . '<br />' . tep_draw_input_field('countries_iso_code_2', $cInfo->countries_iso_code_2));
$contents[] = array('text' => '<br />' . TEXT_INFO_COUNTRY_CODE_3 . '<br />' . tep_draw_input_field('countries_iso_code_3', $cInfo->countries_iso_code_3));
$contents[] = array('text' => '<br />' . TEXT_INFO_ADDRESS_FORMAT . '<br />' . tep_draw_pull_down_menu('address_format_id', tep_get_address_formats(), $cInfo->address_format_id));
$contents[] = array('align' => 'center', 'text' => '<br />' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id)));
break;
case 'delete':
$heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_DELETE_COUNTRY . '</strong>');
$contents = array('form' => tep_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 /><strong>' . $cInfo->countries_name . '</strong>');
$contents[] = array('align' => 'center', 'text' => '<br />' . tep_draw_button(IMAGE_DELETE, 'trash', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id)));
break;
default:
if (is_object($cInfo)) {
$heading[] = array('text' => '<strong>' . $cInfo->countries_name . '</strong>');
$contents[] = array('align' => 'center', 'text' => tep_draw_button(IMAGE_EDIT, 'document', tep_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=edit')) . tep_draw_button(IMAGE_DELETE, 'trash', tep_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=delete')));
$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 (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>
示例13: tep_draw_hidden_field
echo tep_draw_hidden_field('module') . tep_hide_session_id() . '</form>';
?>
</td>
</tr>
<tr>
<td class="smallText" align="right">
<?php
echo tep_draw_form('filter', 'action_recorder.php', '', 'get');
echo tep_draw_pull_down_menu('module', $modules_list_array, null, 'onchange="this.form.submit();"');
echo tep_draw_hidden_field('search') . tep_hide_session_id() . '</form>';
?>
</td>
</tr>
</table></td>
<td class="smallText" align="right"><?php
echo tep_draw_button(IMAGE_DELETE, 'trash', tep_href_link('action_recorder.php', 'action=expire' . (isset($HTTP_GET_VARS['module']) && in_array($HTTP_GET_VARS['module'], $modules_array) ? '&module=' . $HTTP_GET_VARS['module'] : '')), 'primary');
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="dataTableHeadingRow">
<td class="dataTableHeadingContent" width="20"> </td>
<td class="dataTableHeadingContent"><?php
echo TABLE_HEADING_MODULE;
?>
</td>
示例14: tep_draw_button
<div class="pwa_login <?php
echo MODULE_CONTENT_PWA_LOGIN_CONTENT_WIDTH == 'Half' ? 'col-sm-6' : 'col-sm-12';
?>
">
<div class="panel panel-info">
<div class="panel-body">
<h2><?php
echo MODULE_CONTENT_PWA_LOGIN_HEADING;
?>
</h2>
<p class="alert alert-info"><?php
echo MODULE_CONTENT_PWA_LOGIN_TEXT;
?>
</p>
<p class="text-right"><?php
echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'glyphicon glyphicon-chevron-right', tep_href_link('account_pwa.php', '', 'SSL'), null, null, 'btn-primary btn-block');
?>
</p>
</div>
</div>
</div>
示例15: tep_href_link
} else {
if (sizeof($navigation->snapshot) > 0) {
$back_link = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']);
} else {
$back_link = tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL');
}
?>
<div class="buttonSet">
<span class="buttonAction"><?php
echo tep_draw_hidden_field('action', 'process') . tep_draw_button(IMAGE_BUTTON_CONTINUE, 'glyphicon-chevron-right', null, 'primary');
?>
</span>
<?php
echo tep_draw_button(IMAGE_BUTTON_BACK, 'glyphicon-chevron-left', $back_link);
?>
</div>
<?php
}
?>
</div>
</form>
<?php
}
?>