📄 sp_infoadd.php
字号:
<?php////////////////////////////////////////////////////////// Author by Shuweich// Date : 2007.07.27// 建站支持: http://www.shuweich.net// 作者: Shuweich// QQ: 1502384// ICQ: 190492112// MSN: shuweich@hotmail.com// E-mail: root@shuweich.net// E-mail: shuweich@163.com// CMS交流站点: http://www.shuweich.net////////////////////////////////////////////////////////// 模块管理 by market// For 系统管理员(站长及经理)////////////////////////////////////////////////////////include '../../../include/cp_header.php';xoops_cp_header();include 'admhead.php';echo "<span style='font-size:18px;color:#8dff8d;'>引入商品信息</span><br />\n";/*echo "旧数据清除中……<br />\n";$sinit = "truncate table ".$xoopsDB->prefix("market_spinfo");$sin0 = $xoopsDB->queryF($sinit);*/$sinit = "insert into ".$xoopsDB->prefix("market_spinfo");$sinit.= " (sp_date,sp_code,sp_level,sp_idcode,sp_barcode,sp_name,sp_desc,sp_readme,sp_sj,sp_bzdw,sp_mz,sp_jz) ";$sinit.= " select now(),concat('1001001',a.products_model),'QS','QS410117010004',a.products_ean,b.products_name,b.short_description,b.products_description,a.products_price,'代',a.products_weight,a.products_weight ";$sinit.= " from ".$xoopsDB->prefix("osc_products")." a,".$xoopsDB->prefix("osc_products_description")." b ";$sinit.= " where a.products_id=b.products_id and b.language_id=1 order by a.products_model";// echo "<hr />sinit is : ".$sinit;$sin0 = $xoopsDB->queryF($sinit);if ($sin0) echo "<hr />以追加方式从Xosc模块中引入商品信息,已完成!<br />\n";else echo "<hr />以追加方式从Xosc模块中引入商品信息,<font color='red' size='5'>失败</font>!<br />\n";xoops_cp_footer();?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -