中国人为什么创新差?
中国人为什么创新差?或懒于创新?
此话题:
讨论:
中国的广大科技工作者,不是没有能力,不是没有激情,不是没有创新的想法。。
原因:迫于生计,得先活着,有吃有穿有住。现实情况不允许长期的搞研究。得快速快速再快速的出产品,出成绩,出成果。。(话题待续……)
阅读完整的文章... admin on 01月 26th, 2008 | File Under 企业经营 | No Comments -
中国人为什么创新差?或懒于创新?
此话题:
讨论:
中国的广大科技工作者,不是没有能力,不是没有激情,不是没有创新的想法。。
原因:迫于生计,得先活着,有吃有穿有住。现实情况不允许长期的搞研究。得快速快速再快速的出产品,出成绩,出成果。。(话题待续……)
category.php列表栏显示属性参数,如图:
方法:在category.php的 function category_get_goods 函数的
while ($row = $GLOBALS['db']->fetchRow($res))
{
下面加入:
/*—————-Jet加的取得商品属性——————-*/
$properties = get_goods_properties($row['goods_id']);
$arr[$row['goods_id']]['propertie'] = $properties['pro'];
属性调用和数组赋值,取pro属性;
前台显示:
在category.dwt和goods_list.lbi的{$goods.goods_name}下面加入:
<!– {foreach from=$goods.propertie item=propertys key=key} –>
<!– {foreach from=$propertys item=property} –>
{$property.name|escape:html}{$property.value|escape:html}
[...]
点击人气排行榜。。。。hacks by xoao.com
hacks by xoao.com
两部分。index.php和lib_goods.php
关于涉及到index.dwt的,请将按销量排行的改为from = top_hots_all
index.php增加
$smarty->assign(’top_hots_all’, get_top10_hot(0)); // 全部人气排行
/**
lib_goods.php lib库增加函数(children取得子类产品id)
* 调用当前人气排行榜
*按点击排列 i<10 显示10个
* @access public
* @param string $cats 查询的分类
* @return array
*/
function get_top10_hot($cats)
{
if (empty($cats))
{
$children = ”;
}
else
{
$children = "WHERE ".get_children($cats);
}
$sql = ‘SELECT * ‘ .
’ FROM ‘ . $GLOBALS['ecs']->table(’goods’) .’ [...]
利用ecshop的flash,在产品页下面(或当前产品页),轮番显示产品库的图片代码分享
* Hacks by xoao.com
<?php
/**
* ECSHOP 轮播显示当前产品图片程序
*修改自ecshop 原幻灯片轮番程序
*/
define(’IN_ECS’, true);
define(’INIT_NO_USERS’, true);
define(’INIT_NO_SMARTY’, true);
require(’./includes/init.php’);
header(’Content-Type: application/xml; charset=utf-8′);
header(’Cache-Control: no-cache, must-revalidate’);
header(’Expires: Thu, 27 Mar 1975 07:38:00 GMT’);
header(’Last-Modified: ‘ . date(’r'));
header(’Pragma: no-cache’);
$goods_id = isset($_REQUEST['id']) ? intval($_REQUEST['id']) : 0;
$sql = ‘SELECT img_id, img_desc, thumb_url, img_url’.
‘ FROM ‘ .$ecs->table(’goods_gallery’).
" WHERE goods_id = ‘$goods_id’ ORDER BY img_id";
$img_list = $db->getAll($sql);
$img_count = [...]