tell_a_friend.php
来自「this the oscommerce 3.0 aplha 4」· PHP 代码 · 共 39 行
PHP
39 行
<?php/* $Id: tell_a_friend.php 1498 2007-03-29 14:04:50Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2006 osCommerce This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 (1991) as published by the Free Software Foundation.*/ class osC_Boxes_tell_a_friend extends osC_Modules { var $_title, $_code = 'tell_a_friend', $_author_name = 'osCommerce', $_author_www = 'http://www.oscommerce.com', $_group = 'boxes'; function osC_Boxes_tell_a_friend() { global $osC_Language; $this->_title = $osC_Language->get('box_tell_a_friend_heading'); } function initialize() { global $osC_Language, $osC_Template, $osC_Product; if (isset($osC_Product) && is_a($osC_Product, 'osC_Product') && ($osC_Template->getModule() != 'tell_a_friend')) { $this->_content = '<form name="tell_a_friend" action="' . osc_href_link(FILENAME_PRODUCTS, 'tell_a_friend&' . $osC_Product->getKeyword()) . '" method="post">' . "\n" . osc_draw_input_field('to_email_address', null, 'style="width: 80%;"') . ' ' . osc_draw_image_submit_button('button_tell_a_friend.gif', $osC_Language->get('box_tell_a_friend_text')) . '<br />' . $osC_Language->get('box_tell_a_friend_text') . "\n" . '</form>' . "\n"; } } }?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?