コード例 #1
0
ファイル: ot_coupon.php プロジェクト: digideskio/oscmax2
 function credit_selection()
 {
     global $customer_id, $currencies, $language, $cc_id, $languages_id;
     // START Checkout Display Fix by BTBlomberg
     if (tep_session_is_registered('cc_id')) {
         $selection_string = '<tr><td></td><td>';
         $selection_string .= '<table border="0" width="100%"><tr><td class="main" width="275">';
         // Now lets get the name of the coupon and the description
         $coupon_desc_query = tep_db_query("select c.coupon_code, cd.coupon_name, cd.coupon_description from " . TABLE_COUPONS . " c, " . TABLE_COUPONS_DESCRIPTION . " cd where c.coupon_id = cd.coupon_id and c.coupon_id = '" . $cc_id . "' and cd.language_id = '" . $languages_id . "'");
         $coupon = tep_db_fetch_array($coupon_desc_query);
         $selection_string .= TEXT_COUPON_REDEEMED . $coupon['coupon_code'];
         $selection_string .= '</td><td align="right">';
         $selection_string .= '<a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'remove_coupon', 'SSL') . '">' . tep_image_button('button_wishlist_remove.gif', IMAGE_REMOVE) . '</a>';
         $selection_string .= '</td></tr>';
         if ($coupon['coupon_description'] != '') {
             $selection_string .= '<tr><td class="main" colspan="2">' . $coupon['coupon_description'] . '</td></tr>';
         }
         $selection_string .= '</table></td></tr>';
         // END Checkout Display Fix by BTBlomberg
         return $selection_string;
         // They already entered a coupon code
     } else {
         // Let them enter one
         $selection_string = '<tr><td></td><td>';
         $selection_string .= tep_draw_form('checkout_payment_gift', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post');
         $selection_string .= '<table border="0" width="100%"><tr><td class="main" width="275">';
         $selection_string .= TEXT_ENTER_GV_CODE . tep_draw_input_field('gv_redeem_code', TEXT_GV_CODE_INPUT_DEFAULT);
         $selection_string .= '</td><td align="right">';
         $selection_string .= tep_image_submit('button_redeem.gif', IMAGE_REDEEM_VOUCHER, 'onclick="return submitFunction()"');
         $selection_string .= '</td></tr></table></form></td></tr>';
         // END Checkout Display Fix by BTBlomberg
         return $selection_string;
     }
 }
コード例 #2
0
ファイル: newsletter.php プロジェクト: quangbt2005/belamdep
 function confirm()
 {
     global $HTTP_GET_VARS;
     $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"><b>' . sprintf(TEXT_COUNT_CUSTOMERS, $mail['count']) . '</b></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"><b>' . $this->title . '</b></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 align="right"><a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID'] . '&action=confirm_send') . '">' . tep_image_button('button_send.gif', IMAGE_SEND) . '</a> <a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a></td>' . "\n" . '  </tr>' . "\n" . '</table>';
     return $confirm_string;
 }
コード例 #3
0
ファイル: newsletter.php プロジェクト: eosc/EosC-2.3
 function confirm()
 {
     global $_GET;
     $mail_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS . " where customers_newsletter = '1'");
     $mail = tep_db_fetch_array($mail_query);
     // ################# Contribution Newsletter v050 ##############
     $confirm_string = '<table border="0" cellspacing="0" cellpadding="2">' . "\n" . '  <tr>' . "\n" . '    <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td class="main"><font color="#ff0000"><b>' . tep_draw_separator('pixel_trans.gif', '20', '1') . TEXT_TITRE_INFO . '</b></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">' . sprintf(TEXT_COUNT_CUSTOMERS, $mail['count']) . '</td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td class="main">' . TEXT_BULLETIN_NUMB . "&nbsp;" . '<font color="#0000ff">' . $this->newsletters_id . '</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">' . TEXT_MODULE . "&nbsp;" . '<font color="#0000ff">' . $this->module_subscribers . '</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">' . TEXT_TITRE_MAIL . "&nbsp;" . '<font color="#0000ff">' . $this->title . '</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"><font color="#ff0000"><b>' . tep_draw_separator('pixel_trans.gif', '20', '1') . TEXT_TITRE_VIEW . '</b></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"><tt>' . $this->header . '</tt></td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td class="main"><tt>' . $this->content . '</tt></td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td class="main"><tt>' . $this->unsubscribea . '</tt></td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td class="main"><tt>' . $this->unsubscribeb . '</tt></td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td>' . tep_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td align="right"><a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm_send') . '">' . tep_image_button('button_send.gif', IMAGE_SEND) . '</a> <a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a></td>' . "\n" . '  </tr>' . "\n" . '</table>';
     // ################# END - Contribution Newsletter v050 ##############
     return $confirm_string;
 }
コード例 #4
0
ファイル: subscribers.php プロジェクト: rrecurse/IntenseCart
    function confirm()
    {
        global $HTTP_GET_VARS;
        $mail_query = tep_db_query("SELECT COUNT(*) AS count\n\t\t\t\t\t\t\t\t  FROM (SELECT DISTINCT c.customers_email_address, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tc.customers_firstname, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tc.customers_lastname,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tc.customers_newsletter\n\t\t\t\t\t\t\t\tFROM " . TABLE_CUSTOMERS . "  c\n\t\t\t\t\t\t\t\tWHERE c.customers_email_address NOT LIKE '*****@*****.**'\n\t\t\t\t\t\t\t\tAND c.customers_group_id = '0'\n\t\t\t\t\t\t\t\tAND c.customers_newsletter = '1'\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tUNION ALL\n\n\t\t\t\t\t\t\t\tSELECT DISTINCT s.subscribers_email_address,\n\t\t\t\t\t\t\t\t\t\t\t\t s.subscribers_firstname,\n\t\t\t\t\t\t\t\t\t\t\t\t s.subscribers_lastname,\n\t\t\t\t\t\t\t\t\t\t\t\t s.customers_newsletter\n\t\t\t\t\t\t\t\tFROM subscribers s\n\t\t\t\t\t\t\t\tLEFT JOIN " . TABLE_CUSTOMERS . " c ON c.customers_email_address = s.subscribers_email_address\n\t\t  \t\t\t\t\t\tWHERE c.customers_email_address IS NULL\n\t\t  \t\t\t\t\t\tAND s.customers_newsletter = '1') AS table1\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t");
        $mail = tep_db_fetch_array($mail_query);
        $confirm_string = '
		<table border="0" cellspacing="0" cellpadding="5" width="100%" align="center">
			<tr>
				<td class="main"><font color="#ff0000"><b>' . TEXT_TITRE_INFO . '</b></font></td>
			</tr>
			<tr>
				<td class="main">' . sprintf(TEXT_COUNT_CUSTOMERS, $mail['count']) . '</td>
			</tr>
			<tr>
				<td class="main">' . TEXT_BULLETIN_NUMB . "&nbsp;" . '<font color="#0000ff">' . $this->newsletters_id . '</font></td>
			</tr>
			<tr>
				<td class="main">' . TEXT_MODULE . "&nbsp;" . '<font color="#0000ff">' . $this->module_subscribers . '</font></td>
			</tr>
			<tr>
				<td class="main">' . TEXT_NEWSLETTER_TITLE . "&nbsp;" . '<font color="#0000ff">' . $this->title . '</font></td>
			</tr>
			<tr>
				<td class="main">' . TEXT_NEWSLETTER_FROM . "&nbsp;" . '<font color="#0000ff">' . $this->fromMail . '</font></td>
			</tr>
			<tr>
				<td class="main">' . TEXT_SUBJECT_MAIL . '&nbsp;' . '<font color="#0000ff">' . $this->subject . '</font></td>
			</tr>
			<tr>
				<td class="main"><font color="#ff0000"><b>' . TEXT_TITRE_VIEW . '</b></font></td>
			</tr>
			<tr>
				<td class="main" align="center"><div id="thenews">' . $this->header . $this->content . $this->foot . '</div></td>
			</tr>
			<tr>
				<td align="right" style="padding:5px 15px 0 0"><a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm_send') . '">' . tep_image_button('button_send.gif', IMAGE_SEND) . '</a> <a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a></td>
			</tr>
		</table>';
        tep_db_query("UPDATE " . TABLE_NEWSLETTERS . " SET send_count = '" . $mail['count'] . "' WHERE newsletters_id = '" . $this->newsletters_id . "'");
        return $confirm_string;
    }
コード例 #5
0
    function confirm()
    {
        global $HTTP_GET_VARS;
        $mail_query = tep_db_query("SELECT * FROM " . TABLE_CUSTOMERS . " WHERE customers_newsletter = 1 AND customers_group_id > 1");
        $mail = tep_db_fetch_array($mail_query);
        $confirm_string = '
		<table border="0" cellspacing="0" cellpadding="5" width="100%" align="center">
			<tr>
				<td class="main"><font color="#ff0000"><b>' . TEXT_TITRE_INFO . '</b></font></td>
			</tr>
			<tr>
				<td class="main">' . sprintf(TEXT_COUNT_CUSTOMERS, $mail['count']) . '</td>
			</tr>
			<tr>
				<td class="main">' . TEXT_BULLETIN_NUMB . "&nbsp;" . '<font color="#0000ff">' . $this->newsletters_id . '</font></td>
			</tr>
			<tr>
				<td class="main">' . TEXT_MODULE . "&nbsp;" . '<font color="#0000ff">' . $this->module_subscribers . '</font></td>
			</tr>
			<tr>
				<td class="main">' . TEXT_TITLE_MAIL . "&nbsp;" . '<font color="#0000ff">' . $this->title . '</font></td>
			</tr>
			<tr>
				<td class="main">' . TEXT_FROM_MAIL . "&nbsp;" . '<font color="#0000ff">' . $this->fromMail . '</font></td>
			</tr>
			<tr>
				<td class="main">' . TEXT_SUBJECT_MAIL . '&nbsp;' . '<font color="#0000ff">' . $this->subject . '</font></td>
			</tr>
			<tr>
				<td class="main"><font color="#ff0000"><b>' . TEXT_TITRE_VIEW . '</b></font></td>
			</tr>
			<tr>
				<td class="main"><tt>' . $this->header . $this->content . $this->foot . '</tt></td>
			</tr>
			<tr>
				<td align="right" style="padding:5px 15px 0 0"><a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm_send') . '">' . tep_image_button('button_send.gif', IMAGE_SEND) . '</a> <a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a></td>
			</tr>
		</table>';
        tep_db_query("UPDATE " . TABLE_NEWSLETTERS . " SET send_count = '" . $mail['count'] . "' WHERE newsletters_id = '" . $this->newsletters_id . "'");
        return $confirm_string;
    }
コード例 #6
0
&nbsp;</td>
            <td align="right" class="smallText">&nbsp;<?php 
        echo $attributes_values["options_values_price"];
        ?>
&nbsp;</td>
            <td align="center" class="smallText">&nbsp;<?php 
        echo $attributes_values["price_prefix"];
        ?>
&nbsp;</td>
            <td align="center" class="smallText">&nbsp;<?php 
        echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'action=update_attribute&attribute_id=' . $attributes_values['products_attributes_id'] . '&' . $page_info, 'NONSSL') . '">';
        echo tep_image_button('button_edit.gif', IMAGE_UPDATE);
        ?>
</a>&nbsp;&nbsp;<?php 
        echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'action=delete_product_attribute&attribute_id=' . $attributes_values['products_attributes_id'] . '&' . $page_info, 'NONSSL'), '">';
        echo tep_image_button('button_delete.gif', IMAGE_DELETE);
        ?>
</a>&nbsp;</td>
<?php 
    }
    $max_attributes_id_query = tep_db_query("select max(products_attributes_id) + 1 as next_id from " . TABLE_PRODUCTS_ATTRIBUTES);
    $max_attributes_id_values = tep_db_fetch_array($max_attributes_id_query);
    $next_id = $max_attributes_id_values['next_id'];
    ?>
          </tr>
<?php 
}
if ($action != 'update_attribute') {
    ?>
          <tr>
            <td colspan="7"><?php 
コード例 #7
0
ファイル: modules.php プロジェクト: laiello/myopensources
                        $keys .= tep_call_function($use_function, $value['value']);
                    }
                } else {
                    $keys .= $value['value'];
                }
                $keys .= '<br><br>';
            }
            $keys = substr($keys, 0, strrpos($keys, '<br><br>'));
            $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $mInfo->code . '&action=remove') . '">' . tep_image_button('button_module_remove.gif', IMAGE_MODULE_REMOVE) . '</a> <a href="' . tep_href_link(FILENAME_MODULES, 'set=' . $set . (isset($HTTP_GET_VARS['module']) ? '&module=' . $HTTP_GET_VARS['module'] : '') . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a>');
            if (isset($mInfo->signature) && (list($scode, $smodule, $sversion, $soscversion) = explode('|', $mInfo->signature))) {
                $contents[] = array('text' => '<br>' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '&nbsp;<b>' . TEXT_INFO_VERSION . '</b> ' . $sversion . ' (<a href="http://sig.oscommerce.com/' . $mInfo->signature . '" target="_blank">' . TEXT_INFO_ONLINE_STATUS . '</a>)');
            }
            $contents[] = array('text' => '<br>' . $mInfo->description);
            $contents[] = array('text' => '<br>' . $keys);
        } else {
            $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $mInfo->code . '&action=install') . '">' . tep_image_button('button_module_install.gif', IMAGE_MODULE_INSTALL) . '</a>');
            if (isset($mInfo->signature) && (list($scode, $smodule, $sversion, $soscversion) = explode('|', $mInfo->signature))) {
                $contents[] = array('text' => '<br>' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '&nbsp;<b>' . TEXT_INFO_VERSION . '</b> ' . $sversion . ' (<a href="http://sig.oscommerce.com/' . $mInfo->signature . '" target="_blank">' . TEXT_INFO_ONLINE_STATUS . '</a>)');
            }
            $contents[] = array('text' => '<br>' . $mInfo->description);
        }
        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>
コード例 #8
0
ファイル: gv_faq.tpl.php プロジェクト: digideskio/oscmax2
              <tr> 
                <td class="main"><?php 
echo TEXT_INFORMATION;
?>
</td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td class="main"><b><?php 
echo SUB_HEADING_TITLE;
?>
</b></td>
        </tr>
        <tr> 
          <td class="main"><?php 
echo SUB_HEADING_TEXT;
?>
</td>
        </tr>
        <tr> 
          <td align="right" class="main"><?php 
echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>';
?>
</td>
        </tr>
      </table></td>
  </tr>
</table>

コード例 #9
0
if (tep_not_null($product_info['products_image'])) {
    ?>
<script language="javascript"><!--
document.write('<?php 
    echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>';
    ?>
');
//--></script>
<noscript>
<?php 
    echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>';
    ?>
</noscript>
<?php 
}
echo '<p><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now') . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a></p>';
?>
                </td>
              </tr>
            </table>
          </td>
        </table></td>
      </tr>
    </table></td>
<!-- body_text_eof //-->
    <td width="<?php 
echo BOX_WIDTH;
?>
" valign="top"><table border="0" width="<?php 
echo BOX_WIDTH;
?>
コード例 #10
0
ファイル: gv_queue.php プロジェクト: digideskio/oscmax2
switch ($action) {
    case 'release':
        $heading[] = array('text' => 'Coupon: ' . $gInfo->unique_id . ' | ' . tep_datetime_short($gInfo->date_created) . ' | ' . $currencies->format($gInfo->amount));
        $gv_check_raw = "select c.customers_firstname, c.customers_lastname, gv.unique_id, gv.date_created, gv.amount, gv.order_id, gv.release_flag, gv.release_date from " . TABLE_CUSTOMERS . " c, " . TABLE_COUPON_GV_QUEUE . " gv where (gv.customer_id = c.customers_id and gv.unique_id = '" . $_GET['gid'] . "')";
        if ($gInfo->release_flag == 'Y') {
            $contents[] = array('align' => 'left', 'text' => TEXT_RELEASED_ALREADY . tep_datetime_short($gInfo->release_date));
        } else {
            $contents[] = array('align' => 'left', 'text' => TEXT_PAYMENT_CHECK_CONFIRM . '<br><br><center><a href="' . tep_href_link('gv_queue.php', 'action=confirmrelease&gid=' . $gInfo->unique_id, 'NONSSL') . '">' . tep_image_button('button_confirm_red.gif', IMAGE_CONFIRM) . '</a> <a href="' . tep_href_link('gv_queue.php', 'action=cancel&gid=' . $gInfo->unique_id, 'NONSSL') . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a></center>');
        }
        break;
    default:
        $heading[] = array('text' => 'Coupon: ' . $gInfo->unique_id . ' | ' . tep_datetime_short($gInfo->date_created) . ' | ' . $currencies->format($gInfo->amount));
        if ($gInfo->release_flag == 'Y') {
            $contents[] = array('align' => 'left', 'text' => TEXT_RELEASED_ALREADY . tep_datetime_short($gInfo->release_date));
        } else {
            $contents[] = array('align' => 'left', 'text' => TEXT_PAYMENT_CHECK . '<br><br><center><a href="' . tep_href_link('gv_queue.php', 'action=release&gid=' . $gInfo->unique_id, 'NONSSL') . '">' . tep_image_button('button_release.gif', IMAGE_RELEASE) . '</a></center>');
        }
        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>
<!-- body_text_eof //-->
コード例 #11
0
        $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('allow_auto_update', '1', $cInfo->allow_auto_update == '1') . TEXT_INFO_CURRENCY_ALLOW_AUTO_UPDATE);
        if (DEFAULT_CURRENCY != $cInfo->code) {
            $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('default') . ' ' . TEXT_INFO_SET_AS_DEFAULT);
        }
        $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . tep_href_link(FILENAME_CURRENCIES, 'cID=' . $cInfo->currencies_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    case 'delete':
        $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_DELETE_CURRENCY . '</strong>');
        $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
        $contents[] = array('text' => '<br><strong>' . $cInfo->title . '</strong>');
        $contents[] = array('align' => 'center', 'text' => '<br>' . ($remove_currency ? '<a href="' . tep_href_link(FILENAME_CURRENCIES, 'cID=' . $cInfo->currencies_id . '&action=deleteconfirm') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>' : '') . ' <a href="' . tep_href_link(FILENAME_CURRENCIES, 'cID=' . $cInfo->currencies_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    default:
        if (is_object($cInfo)) {
            $heading[] = array('text' => '<strong>' . $cInfo->title . '</strong>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CURRENCIES, 'cID=' . $cInfo->currencies_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_CURRENCIES, 'cID=' . $cInfo->currencies_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>' . ($cInfo->allow_auto_update == '1' ? ' <a href="' . tep_href_link(FILENAME_CURRENCIES, 'cID=' . $cInfo->currencies_id . '&currencyID=' . $cInfo->currencies_id . '&action=update') . '">' . tep_image_button('button_update.gif', IMAGE_UPDATE) . '</a>' : ''));
            $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_TITLE . ' ' . $cInfo->title);
            $contents[] = array('text' => TEXT_INFO_CURRENCY_CODE . ' ' . $cInfo->code);
            $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_SYMBOL_LEFT . ' ' . $cInfo->symbol_left);
            $contents[] = array('text' => TEXT_INFO_CURRENCY_SYMBOL_RIGHT . ' ' . $cInfo->symbol_right);
            $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_DECIMAL_POINT . ' ' . $cInfo->decimal_point);
            $contents[] = array('text' => TEXT_INFO_CURRENCY_THOUSANDS_POINT . ' ' . $cInfo->thousands_point);
            $contents[] = array('text' => TEXT_INFO_CURRENCY_DECIMAL_PLACES . ' ' . $cInfo->decimal_places);
            $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_LAST_UPDATED . ' ' . tep_date_short($cInfo->last_updated));
            $contents[] = array('text' => TEXT_INFO_CURRENCY_VALUE . ' ' . number_format($cInfo->value, 8));
            $contents[] = array('text' => TEXT_INFO_CURRENCY_ALLOW_AUTO_UPDATE . ' ' . ($cInfo->allow_auto_update == '1' ? TEXT_YES : TEXT_NO));
            $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_EXAMPLE . '<br>' . $currencies->format('30', false, DEFAULT_CURRENCY) . ' = ' . $currencies->format('30', true, $cInfo->code));
        }
        break;
}
if (tep_not_null($heading) && tep_not_null($contents)) {
コード例 #12
0
            echo tep_banner_graph_daily($HTTP_GET_VARS['bID']);
            break;
    }
}
?>
        </td>
      </tr>
      <tr>
        <td><?php 
echo tep_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
      </tr>
      <tr>
        <td class="main" align="right"><?php 
echo '<a href="' . tep_href_link(FILENAME_BANNER_MANAGER, 'page=' . $HTTP_GET_VARS['page'] . '&bID=' . $HTTP_GET_VARS['bID']) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>';
?>
</td>
      </tr>
    </table></td>
<!-- body_text_eof //-->
  </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php 
require DIR_WS_INCLUDES . 'footer.php';
?>
<!-- footer_eof //-->
</body>
コード例 #13
0
ファイル: meta_gtext.php プロジェクト: enigma1/i-metrics-cms
 function display_delete_multizone()
 {
     extract(tep_load('defs', 'database'));
     if (!isset($_POST['pc_id']) || !is_array($_POST['pc_id'])) {
         return '';
     }
     $html_string = '';
     $zones_query = $db->query("select meta_types_name from " . TABLE_META_TYPES . " where meta_types_id = '" . (int) $this->m_zID . "'");
     $zones_array = $db->fetch_array($zones_query);
     $html_string .= '          <div class="comboHeading">' . "\n" . '            <div>' . sprintf(TEXT_DELETE_MULTIZONE_CONFIRM, $zones_array['meta_types_name']) . '</div>' . "\n" . '          </div>' . "\n" . '          <div class="formArea">' . tep_draw_form('rl_confirm', $cDefs->script, tep_get_all_get_params('action') . 'action=deleteconfirm_multizone', 'post') . '<table class="tabledata">' . "\n" . '            <tr class="dataTableHeadingRow">' . "\n" . '              <th>' . TEXT_DELETE_MULTIZONE_CONFIRM . '</th>' . "\n" . '            </tr>' . "\n";
     $rows = 0;
     foreach ($_POST['pc_id'] as $key => $value) {
         $gtext_id = $key;
         $delete_query = $db->query("select gtext_id, meta_title from " . TABLE_META_GTEXT . " where gtext_id = '" . (int) $key . "' order by meta_title, gtext_id");
         if ($delete_array = $db->fetch_array($delete_query)) {
             $rows++;
             $row_class = $rows % 2 ? 'dataTableRow' : 'dataTableRowAlt';
             $html_string .= '          <tr class="' . $row_class . '">' . "\n" . '            <td>' . tep_draw_hidden_field('pc_id[]', $delete_array['gtext_id']) . $delete_array['meta_title'] . '</td>' . "\n" . '          </tr>' . "\n";
         }
     }
     if (count($_POST['pc_id'])) {
         $html_string .= '            <tr>' . "\n" . '              <td class="formButtons"><a href="' . tep_href_link($cDefs->script, tep_get_all_get_params('action') . 'action=list') . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a> ' . tep_image_submit('button_confirm.gif', IMAGE_CONFIRM) . '</td>' . "\n" . '            </tr>' . "\n";
     }
     $html_string .= '            </table></form></div>' . "\n";
     return $html_string;
 }
コード例 #14
0
<script type="text/javascript">
jQuery.noConflict()
	jQuery(document).ready(function() {
		jQuery(window).keypress(function(event) {
		    if (!(event.which == 115 && event.ctrlKey) && !(event.which == 19)) return true;
		    document.forms["updateinfo"].submit();
		    event.preventDefault();
		    return false;
		});
	});
</script>

<?php 
echo tep_image_submit('button_save.gif', IMAGE_INSERT);
echo '&nbsp; <a href="' . tep_href_link(FILENAME_INFORMATION_MANAGER, '', 'NONSSL') . '">' . tep_image_button('button_back.gif', IMAGE_CANCEL) . '</a>';
?>
 


				</td>
			</tr>
		</table>
</form>
        </td></tr>

<?php 
if (0 || HTML_AREA_WYSIWYG_DISABLE_IPU == 'Enable') {
    ?>
      <script language="JavaScript1.2" defer>
          // MaxiDVD Added WYSIWYG HTML Area Box + Admin Function v1.7 Products Description HTML - Body
コード例 #15
0
ファイル: categories.php プロジェクト: severnaya99/Sg-2010
 default:
     if ($rows > 0) {
         if (isset($cInfo) && is_object($cInfo)) {
             // category info box contents
             $heading[] = array('text' => '<b>' . $cInfo->categories_name . '</b>');
             $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id . '&action=edit_category') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id . '&action=delete_category') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&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('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);
コード例 #16
0
ファイル: ship2geo.php プロジェクト: rabbit-source/setbook.ru
        $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
        $contents[] = array('text' => '<br>' . TEXT_INFO_SHIPPING . '<br>' . $sInfo->shipping_name);
        $contents[] = array('text' => '<br>' . TEXT_INFO_GEO_ZONES . '<br>' . tep_draw_pull_down_menu('geo[]', $geo_zones, $sInfo->geo_zones_available, 'size="10" multiple style="width: 270px;"'));
        $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_update.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . tep_href_link(FILENAME_SHIP2GEO, 'page=' . $HTTP_GET_VARS['page'] . '&sID=' . $sInfo->shipping) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    case 'delete':
        $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_DELETE_SHIPPING . '</strong>');
        $contents = array('form' => tep_draw_form('shipping', FILENAME_SHIP2GEO, 'page=' . $HTTP_GET_VARS['page'] . '&action=deleteconfirm') . tep_draw_hidden_field('shipping', $sInfo->shipping));
        $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
        $contents[] = array('text' => '<br><strong>' . $sInfo->shipping_name . '</strong> &raquo; ' . $sInfo->geo_zone_names);
        $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . '&nbsp;<a href="' . tep_href_link(FILENAME_SHIP2GEO, 'page=' . $HTTP_GET_VARS['page'] . '&sID=' . $sInfo->shipping) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    default:
        if (is_object($sInfo)) {
            $heading[] = array('text' => '<strong>' . $sInfo->shipping_name . '</strong>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_SHIP2GEO, 'page=' . $HTTP_GET_VARS['page'] . '&sID=' . $sInfo->shipping . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_SHIP2GEO, 'page=' . $HTTP_GET_VARS['page'] . '&sID=' . $sInfo->shipping . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
            $contents[] = array('text' => '<br>' . TEXT_INFO_GEO_ZONES_ALLOWED . '<br>' . $sInfo->geo_zone_names);
        }
        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>
コード例 #17
0
ファイル: countries.php プロジェクト: rrecurse/IntenseCart
        $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_image_submit('button_update.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . tep_href_link(FILENAME_COUNTRIES, 'page=' . $HTTP_GET_VARS['page'] . '&cID=' . $cInfo->countries_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    case 'delete':
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_COUNTRY . '</b>');
        $contents = array('form' => tep_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $HTTP_GET_VARS['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>' . tep_image_submit('button_delete.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . tep_href_link(FILENAME_COUNTRIES, 'page=' . $HTTP_GET_VARS['page'] . '&cID=' . $cInfo->countries_id) . '">' . tep_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="' . tep_href_link(FILENAME_COUNTRIES, 'page=' . $HTTP_GET_VARS['page'] . '&cID=' . $cInfo->countries_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_COUNTRIES, 'page=' . $HTTP_GET_VARS['page'] . '&cID=' . $cInfo->countries_id . '&action=delete') . '">' . tep_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 (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>
コード例 #18
0
                         } else {
                             $status = ' [' . TEXT_CURRENT_CUSTOMER . ']';
                         }
                     }
                 }
             }
             if ($skip) {
                 continue;
             }
             // got a matched cart, skip to next one
         }
         $sentInfo = TEXT_NOT_CONTACTED;
         if ($sentdate != '') {
             $sentInfo = cart_date_short($sentdate);
         }
         $cline = "\n\t\t\t\t<tr bgcolor=" . $fcolor . ">\n\t\t\t\t  <td class='dataTableContent' align='center' width='1%'>" . tep_draw_checkbox_field('custid[]', $curcus, RCS_AUTO_CHECK == 'true' ? $checked : 0) . "</td>\n\t\t\t\t  <td class='dataTableContent' align='left' width='9%' nowrap><b>" . $sentInfo . "</b></td>\n\t\t\t\t  <td class='dataTableContent' align='left' width='15%' nowrap> " . cart_date_short($inrec['bdate']) . "</td>\n\t\t\t\t  <td class='dataTableContent' align='left' width='30%' nowrap><a href='" . tep_href_link(FILENAME_CUSTOMERS, 'search=' . $inrec['lname'], 'NONSSL') . "'>" . $customer . "</a>" . $status . "</td>\n\t\t\t\t  <td class='dataTableContent' align='left' colspan='2' width='30%' nowrap><a href='" . tep_href_link('mail.php', 'selected_box=tools&amp;customer=' . $inrec['email']) . "'>" . $inrec['email'] . "</a></td>\n\t\t\t\t  <td class='dataTableContent' align='left' colspan='1' width='15%' nowrap>" . $inrec['phone'] . "</td>\n\t\t\t\t  <td><a href=" . tep_href_link(FILENAME_RECOVER_CART_SALES, "action=delete&amp;customer_id=" . $curcus . "&amp;tdate=" . $tdate . "&amp;sdate=" . $sdate) . ">" . tep_image_button('button_delete.gif', IMAGE_DELETE) . "</a></td>\n\t\t\t\t</tr>";
     }
 }
 // We only have something to do for the product if the quantity selected was not zero!
 if ($inrec['qty'] != 0) {
     // Get the product information (name, price, etc)
     $query2 = tep_db_query("select  p.products_price price,\n\t\t\t\t\t\t\t\t\t\t\t\t\tp.products_tax_class_id taxclass,\n\t\t\t\t\t\t\t\t\t\t\t\t\tp.products_model model,\n\t\t\t\t\t\t\t\t\t\t\t\t\tpd.products_name name\n\t\t\t\t\t\t\t\t\t\t from    " . TABLE_PRODUCTS . " p,\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . TABLE_PRODUCTS_DESCRIPTION . " pd,\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . TABLE_LANGUAGES . " l\n\t\t\t\t\t\t\t\t\t\t where   p.products_id = '" . (int) $inrec['pid'] . "' and\n\t\t\t\t\t\t\t\t\t\t\t\t\tpd.products_id = p.products_id and\n\t\t\t\t\t\t\t\t\t\t\t\t\tpd.language_id = " . (int) $languages_id);
     $inrec2 = tep_db_fetch_array($query2);
     // Check to see if the product is on special, and if so use that pricing
     $sprice = tep_get_products_special_price($inrec['pid']);
     if ($sprice < 1) {
         $sprice = $inrec2['price'];
     }
     // Some users may want to include taxes in the pricing, allow that. NOTE HOWEVER that we don't have a good way to get individual tax rates based on customer location yet!
     if (RCS_INCLUDE_TAX_IN_PRICES == 'true') {
         $sprice += $sprice * tep_get_tax_rate($inrec2['taxclass']) / 100;
コード例 #19
0
        <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><?php 
echo '<a href="' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>';
?>
</td>
                <td align="right"><?php 
echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE);
?>
</td>
                <td width="10"><?php 
echo tep_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
コード例 #20
0
ファイル: tax_classes.php プロジェクト: severnaya99/Sg-2010
        $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
        $contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_TITLE . '<br>' . tep_draw_input_field('tax_class_title', $tcInfo->tax_class_title));
        $contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_DESCRIPTION . '<br>' . tep_draw_input_field('tax_class_description', $tcInfo->tax_class_description));
        $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_update.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . tep_href_link(FILENAME_TAX_CLASSES, 'page=' . $HTTP_GET_VARS['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . tep_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' => tep_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $HTTP_GET_VARS['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>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . '&nbsp;<a href="' . tep_href_link(FILENAME_TAX_CLASSES, 'page=' . $HTTP_GET_VARS['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . tep_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="' . tep_href_link(FILENAME_TAX_CLASSES, 'page=' . $HTTP_GET_VARS['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_TAX_CLASSES, 'page=' . $HTTP_GET_VARS['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
            $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . tep_date_short($tcInfo->date_added));
            $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . ' ' . tep_date_short($tcInfo->last_modified));
            $contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_DESCRIPTION . '<br>' . $tcInfo->tax_class_description);
        }
        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>
コード例 #21
0
?>

	                </td>
			  </tr>
<?php 
if ($process == true) {
    ?>
	  		<tr>
				<td><?php 
    echo tep_draw_separator('pixel_trans.gif', '100%', '10');
    ?>
</td>
			  </tr>
			  <tr>
				<td><?php 
    echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>';
    ?>
</td>
			  </tr>
<?php 
}
?>
			  <tr>
				<td><?php 
echo tep_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
			  </tr>
			  <tr>
				<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
				  <tr>
コード例 #22
0
ファイル: tell_a_friend.php プロジェクト: laiello/hotel-os
				<td><?php 
echo tep_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
			  </tr>
			  <tr>
				<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><?php 
echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id']) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>';
?>
</td>
						<td align="right"><?php 
echo tep_image_submit('button_continue1.gif', IMAGE_BUTTON_CONTINUE);
?>
</td>
						<td width="10"><?php 
echo tep_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
					  </tr>
					</table>
					
				</td>
			  </tr>
コード例 #23
0
ファイル: manufacturers.php プロジェクト: JanZ/oscommerce2
    case 'delete':
        $heading[] = array('text' => '<b>' . TEXT_HEADING_DELETE_MANUFACTURER . '</b>');
        $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><b>' . $mInfo->manufacturers_name . '</b>');
        $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";
}
コード例 #24
0
?>
</td>
                    <td class="smallText" align="right"><?php 
echo $products_split->display_links($products_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page']);
?>
</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
<?php 
$heading = array();
$contents = array();
if (isset($pInfo) && is_object($pInfo)) {
    $heading[] = array('text' => '<b>' . $pInfo->products_name . '</b>');
    $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'pID=' . $pInfo->products_id . '&amp;action=new_product') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a>');
    $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_EXPECTED . ' ' . tep_date_short($pInfo->products_date_available));
}
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";
} else {
    $heading[] = array('text' => HEADING_NO_PRODUCTS_EXPECTED);
    $contents[] = array('text' => TEXT_NO_PRODUCTS_EXPECTED);
    echo '            <td width="25%" valign="top">';
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>';
}
コード例 #25
0
ファイル: packaging.php プロジェクト: digideskio/oscmax2
function showConfirmDeletePackageForm()
{
    $packages = getPackages();
    $package_name = "";
    for ($i = 0; $i < count($packages); $i++) {
        if ($packages[$i]['id'] == $_GET['id']) {
            $package_name = $packages[$i]['name'];
        }
    }
    echo "<table cellspacing='0' width='100%' cellpadding='0'> <tr><td colspan='2' class='infoBoxHeading'>" . DELETE_PACKAGE . "</td></tr></table>";
    echo tep_draw_form("confirmDeletePackage", FILENAME_PACKAGING);
    echo tep_draw_hidden_field("Action", "deletepackage");
    echo tep_draw_hidden_field("id", $_GET['id']);
    echo '<table cellpadding="5"><tr><td class="infoBoxContent">' . CONFIRM_DELETE . '</td></tr>';
    echo "<tr><td>" . $package_name . "</td></td>";
    echo "<tr><td>";
    //echo tep_image_submit('button_confirm.gif', 'ok') ;
    //    echo '<a href="' . tep_href_link( FILENAME_PACKAGING ) . '">'.tep_image_button('button_confirm.gif', IMAGE_CONFIRM) .'</a>' ;
    echo tep_image_submit('button_confirm.gif', IMAGE_CONFIRM);
    echo '&nbsp;&nbsp;<a href="' . tep_href_link(FILENAME_PACKAGING) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>';
    echo '</td></tr></table>' . "\n";
    echo '</form>' . "\n";
}
コード例 #26
0
     $contents[] = array('text' => '<br>' . TEXT_FIELD_REQUIRED_STATUS . '<br>' . tep_draw_radio_field('fields_required_status', 0, $fInfo->fields_required_status == 0 ? true : false) . 'false<br>' . tep_draw_radio_field('fields_required_status', 1, $fInfo->fields_required_status == 1 ? true : false) . 'true');
     $contents[] = array('text' => TEXT_FIELD_SIZE . '<br>' . tep_draw_input_field('fields_size', $fInfo->fields_size));
     $contents[] = array('text' => '<br>' . TEXT_CEF_CG_HIDE . '<br>' . tep_draw_input_field('fields_cef_cg_hide', $fInfo->fields_cef_cg_hide));
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . tep_href_link(FILENAME_CUSTOMERS_EXTRA_FIELDS, 'page=' . $_GET['page'] . '&fID=' . $fInfo->fields_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<b>' . TEXT_HEADING_DELETE_FIELD . '</b>');
     $contents = array('form' => tep_draw_form('manufacturers', FILENAME_CUSTOMERS_EXTRA_FIELDS, 'page=' . $_GET['page'] . '&fID=' . $fInfo->fields_id . '&action=deleteconfirm'));
     $contents[] = array('text' => TEXT_DELETE_INTRO);
     $contents[] = array('text' => '<br><b>' . $fInfo->fields_name . '</b>');
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_CUSTOMERS_EXTRA_FIELDS, 'page=' . $_GET['page'] . '&fID=' . $fInfo->fields_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 default:
     if (isset($fInfo) && is_object($fInfo)) {
         $heading[] = array('text' => '<b>' . $fInfo->fields_name . '</b>');
         $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CUSTOMERS_EXTRA_FIELDS, 'page=' . $_GET['page'] . '&fID=' . $fInfo->fields_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_CUSTOMERS_EXTRA_FIELDS, 'page=' . $_GET['page'] . '&fID=' . $fInfo->fields_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
         $contents[] = array('text' => '<br>' . TEXT_FIELD_NAME . $fInfo->fields_name);
         switch ($fInfo->fields_input_type) {
             case 0:
                 $contents[] = array('text' => '<br>' . TEXT_FIELD_INPUT_TYPE . TEXT_INPUT_FIELD);
                 break;
             case 1:
                 $contents[] = array('text' => '<br>' . TEXT_FIELD_INPUT_TYPE . TEXT_TEXTAREA_FIELD);
                 break;
             case 2:
                 $contents[] = array('text' => '<br>' . TEXT_FIELD_INPUT_TYPE . TEXT_RADIO_FIELD);
                 break;
             case 3:
                 $contents[] = array('text' => '<br>' . TEXT_FIELD_INPUT_TYPE . TEXT_CHECK_FIELD);
                 break;
             case 4:
コード例 #27
0
ファイル: product_listing2.php プロジェクト: laiello/hotel-os
                            $p_price = $lc_text = '<span class="productSpecialPrice">' . $currencies->display_price($listing['room_type_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span>';
                        }
                        break;
                    case 'PRODUCT_LIST_IMAGE':
                        $lc_align = 'center';
                        if (isset($HTTP_GET_VARS['room_type_categories'])) {
                            $p_pic = $lc_text = '<a href="' . tep_href_link("chitietphong.php", 'room_type_id=' . $listing['room_type_id']) . '">' . tep_image(DIR_WS_IMAGES . "phongkhachsan/" . $listing['room_type_image'], $listing['room_type_image'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
                            // $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['room_image'], $listing['room_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
                        } else {
                            $p_pic = $lc_text = '<a href="' . tep_href_link("chitietphong.php", 'room_type_id=' . $listing['room_type_id']) . '">' . tep_image(DIR_WS_IMAGES . "phongkhachsan/" . $listing['room_type_image'], $listing['room_type_image'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
                        }
                        break;
                    case 'PRODUCT_LIST_BUY_NOW':
                        $lc_align = 'center';
                        //$lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a>&nbsp;';
                        $lc_text = '<a class="product_list" href="' . tep_href_link("addcartnew.php", 'room_type_id=' . $listing['room_type_id'] . '&count_room=' . $room_number . '&dayto=' . $dayto . '&daygo=' . $daygo) . '">' . tep_image_button('book_room.gif', IMAGE_BUTTON_BUY_NOW) . '</a>&nbsp;';
                        // $lc_text='<input type="text" class="mintext" style="width:10px;"/>';
                        break;
                }
                $list_box_contents[$cur_row][] = array('align' => $lc_align, 'params' => 'class="productListing-data"', 'text' => $lc_text);
            }
        }
    }
    new productListingBox($list_box_contents);
}
if ($flag1 == 0) {
    echo "Không có phòng thỏa điều kiện tìm kiếm!";
}
if ($listing_split->number_of_rows > 0 && (PREV_NEXT_BAR_LOCATION == '2' || PREV_NEXT_BAR_LOCATION == '3') && $flag1 == 1) {
    ?>
コード例 #28
0
        }
        $dir->close();
    }
    ?>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><?php 
    echo tep_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
          </tr>
          <tr>
            <td align="right"><?php 
    echo '<a href="' . tep_href_link(FILENAME_FILE_MANAGER, 'current_path=' . DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['lngdir']) . '">' . tep_image_button('button_file_manager.gif', IMAGE_FILE_MANAGER) . '</a>';
    ?>
</td>
          </tr>
<?php 
}
?>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>

</body>
</html>
<?php 
コード例 #29
0
 $contents = array();
 switch ($action) {
     case 'delete':
         $heading[] = array('text' => '<b>' . $nInfo->title . '</b>');
         $contents = array('form' => tep_draw_form('newsletters', FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=deleteconfirm'));
         $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
         $contents[] = array('text' => '<br><b>' . $nInfo->title . '</b>');
         $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $_GET['nID']) . '">' . tep_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="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=new') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=preview') . '">' . tep_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=send') . '">' . tep_image_button('button_send.gif', IMAGE_SEND) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=unlock') . '">' . tep_image_button('button_unlock.gif', IMAGE_UNLOCK) . '</a>');
             } else {
                 $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=preview') . '">' . tep_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=lock') . '">' . tep_image_button('button_lock.gif', IMAGE_LOCK) . '</a>');
             }
             $contents[] = array('text' => '<br>' . TEXT_NEWSLETTER_DATE_ADDED . ' ' . tep_date_short($nInfo->date_added));
             if ($nInfo->status == '1') {
                 $contents[] = array('text' => TEXT_NEWSLETTER_DATE_SENT . ' ' . tep_date_short($nInfo->date_sent));
             }
         }
         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";
 }
 ?>
コード例 #30
0
ファイル: geo_zones.php プロジェクト: digideskio/oscmax2
            $contents[] = array('text' => TEXT_INFO_EDIT_ZONE_INTRO);
            $contents[] = array('text' => '<br>' . TEXT_INFO_ZONE_NAME . '<br>' . tep_draw_input_field('geo_zone_name', $zInfo->geo_zone_name));
            $contents[] = array('text' => '<br>' . TEXT_INFO_ZONE_DESCRIPTION . '<br>' . tep_draw_input_field('geo_zone_description', $zInfo->geo_zone_description));
            $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . tep_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&amp;zID=' . $zInfo->geo_zone_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        case 'delete_zone':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_ZONE . '</b>');
            $contents = array('form' => tep_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&amp;zID=' . $zInfo->geo_zone_id . '&amp;action=deleteconfirm_zone'));
            $contents[] = array('text' => TEXT_INFO_DELETE_ZONE_INTRO);
            $contents[] = array('text' => '<br><b>' . $zInfo->geo_zone_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&amp;zID=' . $zInfo->geo_zone_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (isset($zInfo) && is_object($zInfo)) {
                $heading[] = array('text' => '<b>' . $zInfo->geo_zone_name . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&amp;zID=' . $zInfo->geo_zone_id . '&amp;action=edit_zone') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&amp;zID=' . $zInfo->geo_zone_id . '&amp;action=delete_zone') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>' . ' <a href="' . tep_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&amp;zID=' . $zInfo->geo_zone_id . '&amp;action=list') . '">' . tep_image_button('button_details.gif', IMAGE_DETAILS) . '</a>');
                $contents[] = array('text' => '<br>' . TEXT_INFO_NUMBER_ZONES . ' ' . $zInfo->num_zones);
                $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . tep_date_short($zInfo->date_added));
                if (tep_not_null($zInfo->last_modified)) {
                    $contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . tep_date_short($zInfo->last_modified));
                }
                $contents[] = array('text' => '<br>' . TEXT_INFO_ZONE_DESCRIPTION . '<br>' . $zInfo->geo_zone_description);
            }
            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";