?>
][value]"> <?php 
            foreach ((array) $this->_vars['info']['options'] as $this->_vars['opt']) {
                ?>
 <option value="<?php 
                echo $this->_vars['opt'];
                ?>
"><?php 
                echo $this->_vars['opt'];
                ?>
</option> <?php 
            }
            ?>
 </select> <?php 
        } elseif ($this->_vars['info']['type'] == 'text') {
            echo tpl_input_textarea(array('class' => "inputstyle x-input", 'rows' => "3", 'cols' => "40", 'id' => "misc_{$this->_vars['key']}", 'name' => "minfo[{$this->_vars['product_id']}][{$this->_vars['infokey']}][value]", 'vtype' => "required"), $this);
        } else {
            echo tpl_input_default(array('class' => "inputstyle", 'id' => "misc_{$this->_vars['key']}", 'size' => "30", 'name' => "minfo[{$this->_vars['product_id']}][{$this->_vars['infokey']}][value]", 'type' => 'required'), $this);
        }
        ?>
 </td> </tr> <?php 
    }
    ?>
 </tbody> </table> </div> </div> </div> <?php 
}
?>
 <div class="FormWrap checkoutbase" > <table width="100%" cellpadding="0" cellspacing="0"> <tbody> <tr> <td width='100' style='vertical-align:middle;white-space:nowrap;'><h3>收货信息确认</h3></td> <td><?php 
$_tpl_tpl_vars = $this->_vars;
echo $this->_fetch_compile_include("shop:common/receiver.html", array());
$this->_vars = $_tpl_tpl_vars;
unset($_tpl_tpl_vars);
#'+$time());
    }
 <?php 
}
?>
</script> <?php 
echo tpl_function_pager(array('data' => $this->_vars['pager']), $this);
?>
 <form class="addcomment division" method="post" action='<?php 
echo tpl_function_link(array('ctl' => "message", 'act' => "sendMsgToOpt"), $this);
?>
' onsubmit='checkFormReqs(event);'> <h4><a name='dosubmit'>发布留言</a></h4> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="forform"> <tr> <th><em style='color:red'>*</em>标题:</th> <td><?php 
echo tpl_input_default(array('type' => "text", 'required' => "true", 'size' => 50, 'name' => "subject"), $this);
?>
</td> </tr> <tr> <th><em style='color:red'>*</em>留言内容:</th> <td><?php 
echo tpl_input_textarea(array('required' => "true", 'rows' => "5", 'name' => "message", 'class' => 'inputstyle', 'style' => 'width:80%'), $this);
?>
</td> </tr> <?php 
if ($this->_vars['nomember'] == 'on') {
    ?>
 <tr> <th>联系方式:</th> <td><?php 
    echo tpl_input_default(array('type' => "text", 'size' => 24, 'name' => "email", 'maxlength' => 255, 'class' => 'inputstyle'), $this);
    ?>
(QQ、MSN、Email、电话等,此信息不会被公开)</td> </tr> <?php 
}
if ($this->_vars['msgshow'] == "on") {
    ?>
 <tr> <th><em style='color:red'>*</em>验证码:</th> <td><?php 
    echo tpl_input_default(array('type' => "text", 'required' => "true", 'size' => "4", 'maxlength' => "4", 'name' => "verifyCode", 'class' => 'inputstyle'), $this);
    ?>
&nbsp;<img src="<?php 
            unset($this->_env_vars['foreach'][discusslist]);
            ?>
 </div> <div class="textright"><a href="<?php 
            echo tpl_function_link(array('ctl' => "comment", 'act' => "commentlist", 'arg0' => $this->_vars['goods']['goods_id'], 'arg1' => "discuss"), $this);
            ?>
">查看所有评论&gt;&gt;</a></div> <?php 
        }
        ?>
 <form class="addcomment" method="post" action='<?php 
        echo tpl_function_link(array('ctl' => "comment", 'act' => "toComment", 'arg0' => $this->_vars['goods']['goods_id'], 'arg1' => "discuss"), $this);
        ?>
' onsubmit='checkFormReqs(event);'> <h4>发表评论</h4> <div class='title'>标题:<?php 
        echo tpl_input_default(array('type' => "text", 'class' => "inputstyle blur", 'required' => "true", 'size' => 50, 'name' => "title", 'value' => "[评论]" . $this->_vars['goods']['name']), $this);
        ?>
</div> <div class="division"> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="forform"> <tr> <th><em>*</em>评论内容:</th> <td><?php 
        echo tpl_input_textarea(array('class' => "x-input inputstyle", 'vtype' => "required", 'rows' => "5", 'name' => "comment", 'style' => "width:80%;"), $this);
        ?>
</td> </tr> <tr> <th>联系方式:</th> <td><?php 
        echo tpl_input_default(array('type' => "text", 'class' => "inputstyle", 'size' => 20, 'name' => "contact"), $this);
        ?>
<span class="infotips">(可以是电话、email、qq等).</span></td> </tr> <?php 
        if ($this->_vars['discussshow'] == "on") {
            ?>
 <tr> <th><em>*</em>验证码:</th> <td><?php 
            echo tpl_input_default(array('type' => "text", 'required' => "true", 'size' => "4", 'maxlength' => "4", 'name' => "discussverifyCode"), $this);
            ?>
&nbsp;<img src="<?php 
            echo tpl_function_link(array('ctl' => "passport", 'act' => "verifyCode", 'arg0' => "discuss"), $this);
            ?>
" border="1" id="discussimgVerifyCode"/><a href="javascript:changeimg('discussimgVerifyCode','discuss')">&nbsp;看不清楚?换个图片</a> </td> </tr> <?php 
        }
    ?>
 <tr> <th>品牌:</th> <td><?php 
    echo tpl_input_select(array('name' => "goods[brand_id]", 'nulloption' => "1", 'rows' => $this->_vars['brandList'], 'valueColumn' => "brand_id", 'labelColumn' => "brand_name", 'value' => $this->_vars['goods']['brand_id']), $this);
    ?>
</td> </tr> <?php 
}
if ($this->_vars['prototype']['is_physical']) {
    ?>
 <tr> <th>计量单位:</th> <td><?php 
    echo tpl_input_default(array('type' => "text", 'value' => $this->_vars['goods']['unit'], 'name' => "goods[unit]", 'maxlength' => "25"), $this);
    ?>
</td> </tr> <?php 
}
?>
 <tr> <th>简介:</th> <td><?php 
echo tpl_input_textarea(array('value' => $this->_vars['goods']['brief'], 'name' => "goods[brief]", 'cols' => "50", 'rows' => "2", 'maxth' => "255"), $this);
?>
<br /> <span class="info">简短的商品介绍,请不要超过255字节</span></td> </tr> <tr> <th>是否上架销售:</th> <td> <table><tr><td width="80px" style="border:none"> <input type="radio" name="goods[marketable]"<?php 
if ($this->_vars['goods']['marketable'] == 'true' or !$this->_vars['goods']['marketable']) {
    ?>
 checked="checked"<?php 
}
?>
 value="true" >是 <input type="radio" name="goods[marketable]"<?php 
if ($this->_vars['goods']['marketable'] == "false") {
    ?>
 checked="checked"<?php 
}
?>
 value="false" >否 </td> <td style="border:none"> <?php 
if ($this->_vars['goods']['scheduled']) {
</td> </tr> <tr> <th>来源ID:</th><td><?php 
echo tpl_input_default(array('name' => "usercode", 'id' => "usercode", 'style' => "width:120px"), $this);
$this->_tag_stack[] = array('tpl_block_help', array());
tpl_block_help(array(), null, $this);
ob_start();
?>
来源就是指您需要将站外推广链接投放的目的地,譬如您需要将站外推广链接放在新浪网进行推广,则可以在来源ID栏输入“sina”,用来标识这个投放目的地<br><br>这样当顾客从新浪点击站外推广链接到您商店进行购物后,所生成的订单里面就会用sina这个ID来标识这些订单,您也就可以很清楚的掌握订单的来源,从而判断哪些投放目的地的效果更好<?php 
$_block_content = ob_get_contents();
ob_end_clean();
$_block_content = tpl_block_help($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this);
echo $_block_content;
array_pop($this->_tag_stack);
$_block_content = '';
?>
</td> </tr> <tr> <th>&nbsp;</th><td><b class="submitBtn"><input type="button" value="生成站外推广链接" onclick="$('generatecode').value=$('targetURL').value+'#r-p'+$('usercode').value"></b></td> </tr> <tr> <th>&nbsp;</th> <td> <?php 
echo tpl_input_textarea(array('id' => "generatecode", 'name' => "generatecode", 'style' => "width:360px", 'onclick' => '$(this).focus();$(this).select()'), $this);
?>
 <br /><br /><span class="fontcolorGray">复制此站外推广链接到投放位置即可</span> </td> </tr> </table> </div> </div> <br><form method="post" action="index.php?ctl=sale/tools&act=editValidtime" target="{update:'messagebox'}"> <h4>推广链接有效期设置</h4> <div class="division"> <div class="current"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th>链接有效期:</th><td><?php 
echo tpl_input_default(array('name' => "validtime", 'value' => $this->_vars['validtime'], 'style' => "width:50px", 'type' => "positive"), $this);
?>
天 <?php 
$this->_tag_stack[] = array('tpl_block_help', array());
tpl_block_help(array(), null, $this);
ob_start();
?>
此处设置对来源ID进行统计的有效期,默认为15天,指某顾客通过站外推广链接访问了您的商店,如果他在15天内购买了商品或注册会员,则系统会记录该订单或会员的有效来源为该来源ID<br><br>注意:来源ID的保存是以优先访问为原则。譬如一位顾客先是通过标识码为sina的推广链接进入了您的商店,但是并没有购物。如果这位顾客在15天内又再次通过标识码为msn的推广链接进入了您的商店,并且购物下单了。那么此次顾客的购买行为会算做sina推广链接的效果,系统订单来源里面也会显示为sina<?php 
$_block_content = ob_get_contents();
ob_end_clean();
$_block_content = tpl_block_help($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this);
echo $_block_content;
array_pop($this->_tag_stack);
<?php

if (!function_exists('tpl_input_default')) {
    require CORE_DIR . '/include_v5/smartyplugins/input.default.php';
}
if (!function_exists('tpl_input_textarea')) {
    require CORE_DIR . '/include_v5/smartyplugins/input.textarea.php';
}
?>
<h3>搜索引擎优化</h3> <div class="division"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <th>商品页面标题:</th> <td><?php 
echo tpl_input_default(array('type' => "text", 'size' => "45", 'name' => "goods[seo][seo_title]", 'value' => $this->_vars['goods']['seo']['seo_title']), $this);
?>
<span class="info">(留空则默认显示商品名称)</span></td> </tr> <tr> <th>META_KEYWORDS:<br>(页面关键词)</th> <td><?php 
echo tpl_input_textarea(array('cols' => "27", 'rows' => "3", 'name' => "goods[seo][meta_keywords]", 'value' => $this->_vars['goods']['seo']['meta_keywords']), $this);
?>
<span class="info">(留空则默认继承分类或全局设置的KEYWORDS内容)</span></td> </tr> <tr> <th>META_DESCRIPTION:<br>(页面描述)</th> <td><?php 
echo tpl_input_textarea(array('name' => "goods[seo][meta_description]", 'cols' => "27", 'rows' => "3", 'value' => $this->_vars['goods']['seo']['meta_description']), $this);
?>
<span class="info">(留空则默认继承分类或全局设置的DESCRIPTION内容)</span></td> </tr> <!--tr> <th>上架日期:</th> <td><input type="text" name="goods[uptime]" value="<?php 
echo $this->_vars['goods']['uptime'];
?>
"></td> <td class="note">介绍</td> </tr> <tr> <th>下架日期:</th> <td><input type="text" name="goods[downtime]" value="<?php 
echo $this->_vars['goods']['downtime'];
?>
"></td> <td class="note">介绍</td> </tr--> </table> </div>