echo tpl_input_default(array('class' => "inputstyle", 'name' => "uname", 'required' => "true", 'id' => "reg_user", 'maxlength' => "50", 'onchange' => "nameCheck(this)"), $this);
?>
<span></span></td> </tr> <tr> <th><i>*</i>密码:</th> <td><?php 
echo tpl_input_default(array('class' => "inputstyle", 'name' => "passwd", 'type' => "password", 'required' => "true", 'id' => "reg_passwd"), $this);
?>
</td> </tr> <tr> <th><i>*</i>确认密码:</th> <td><?php 
echo tpl_input_default(array('class' => "inputstyle", 'name' => "passwd_r", 'type' => "password", 'required' => "true", 'id' => "reg_passwd_r"), $this);
?>
</td> </tr> <tr> <th><i>*</i>电子邮箱:</th> <td><?php 
echo tpl_input_default(array('class' => "inputstyle", 'name' => "email", 'type' => "email", 'required' => "true", 'id' => "reg_email", 'maxlength' => "200"), $this);
?>
</td> </tr> <?php 
if ($this->_vars['valideCode']) {
    ?>
 <tr> <th><i>*</i>验证码:</th> <td><?php 
    echo tpl_input_default(array('size' => "8", 'class' => "inputstyle", 'type' => "digits", 'required' => "true", 'name' => "signupverifycode", 'id' => "iptsingup"), $this);
    ?>
 <span class='verifyCode' style='display:none;'><img src="#" border="1" codesrc='<?php 
    echo tpl_function_link(array('ctl' => "passport", 'act' => "verifyCode", 'arg0' => "s"), $this);
    ?>
'/><a href="javascript:void(0)">&nbsp;看不清楚?换个图片</a> </span> </td> </tr> <?php 
}
?>
 <tr> <th></th> <td><label for="license" class="nof" style="width:auto; text-align:left; font-weight:normal;"> <input type="checkbox" id="license" name="license" value="agree" checked="checked"/> 我已阅读并同意 <a href="<?php 
echo tpl_function_link(array('ctl' => page, 'act' => license), $this);
?>
" id="terms_error" class="lnk" target='_blank'><span class="FormText" id="terms_error_sym">会员注册协议</span></a>和<a href="<?php 
echo tpl_function_link(array('ctl' => page, 'act' => privacy), $this);
?>
" id="privacy_error" class="lnk" target='_blank'><span class="FormText" id="privacy_error_sym">隐私保护政策</span></a>。 </label></td> </tr> <tr> <th></th> <td> <input class="actbtn btn-register" type="submit" value="注册新用户" /> </td> </tr> </table> </div> </div> <?php 
if ($this->_vars['to_buy']) {
echo tpl_input_default(array('name' => "login", 'class' => "inputstyle", 'required' => "true", 'id' => "in_login", 'tabindex' => "1", 'value' => $this->_vars['loginName']), $this);
?>
<a style="margin-left:6px; " href="<?php 
echo "passport", is_numeric('passport') && 'index' == 'signup' || !'signup' ? '' : '-' . 'signup', '.html';
?>
">立即注册</a></td> </tr> <tr> <th><i>*</i>密码:</th> <td><?php 
echo tpl_input_default(array('name' => "passwd", 'class' => "inputstyle", 'type' => "password", 'required' => "true", 'id' => "in_passwd", 'tabindex' => "2"), $this);
?>
<a style="margin-left:6px;" href="<?php 
echo "passport", is_numeric('passport') && 'index' == 'lost' || !'lost' ? '' : '-' . 'lost', '.html';
?>
">忘记密码?</a></td> </tr> <?php 
if ($this->_vars['LogInvalideCode']) {
    ?>
 <tr> <th><i>*</i>验证码:</th> <td><?php 
    echo tpl_input_default(array('size' => "8", 'class' => "inputstyle", 'type' => "digits", 'required' => "true", 'name' => "loginverifycode", 'id' => "iptlogin", 'tabindex' => "3"), $this);
    ?>
 <span class='verifyCode' style='display:none;'><img src="#" codesrc='<?php 
    echo "passport-l", is_numeric("l") && 'index' == "verifyCode" || !"verifyCode" ? '' : '-' . "verifyCode", '.html';
    ?>
' border="1" /><a href="javascript:void(0)">&nbsp;看不清楚?换个图片</a> </span> </td> </tr> <?php 
}
?>
 <tr> <th></th> <td><input class="actbtn btn-login" type="submit" value="登录" tabindex="4" /> <input type="hidden" name="forward" value="<?php 
echo $this->_vars['forward'];
?>
"> </td> </tr> </table> <?php 
echo $this->_vars['redirectInfo'];
?>
 </div> <input type='hidden' name='ref_url' value='<?php 
echo $this->_vars['ref_url'];
Пример #3
0
function tpl_function_setting($params, &$smarty)
{
    if (!$GLOBALS['_settingList']) {
        $system =& $GLOBALS['system'];
        $GLOBALS['_settingList'] =& $system->__setting->source();
    }
    $system =& $GLOBALS['system'];
    $params = array_merge($params, $GLOBALS['_settingList'][$params['key']]);
    $params['value'] = $system->getConf($params['key']);
    if ($params['key'] == 'site.tax_ratio') {
        $params['value'] *= 100;
    }
    //ever add 20080327
    if ($params['type'] == SET_T_INT) {
        $params['type'] = 'number';
    } elseif ($params['type'] == SET_T_ENUM) {
        $params['type'] = 'select';
        $params['required'] = true;
    } elseif ($params['type'] == SET_T_BOOL) {
        $params['type'] = 'bool';
    } elseif ($params['type'] == SET_T_TXT) {
        $params['type'] = 'textarea';
    } elseif ($params['type'] == SET_T_FILE) {
        $params['type'] = 'file';
    } elseif ($params['type'] == SET_T_DIGITS) {
        $params['type'] = 'digits';
    } else {
        $params['type'] = 'text';
    }
    if (!$params['id']) {
        $params['id'] = $smarty->new_dom_id();
    }
    $params['name'] = ($params['namespace'] ? $params['namespace'] : 'setting') . '[' . $params['key'] . ']';
    $key = $params['key'];
    unset($params['desc']);
    unset($params['key']);
    if ($params['backend'] == 'public') {
        if (!$GLOBALS['storager']) {
            $system =& $GLOBALS['system'];
            $GLOBALS['storager'] = $system->loadModel('system/storager');
        }
        $storager =& $GLOBALS['storager'];
        $url = $storager->getUrl($params['value']);
        $html = '<img src="' . $url . '?' . time() . '" style="float:none" />';
    } else {
        $html = '';
    }
    $func = 'tpl_input_' . $params['type'];
    if (function_exists($func)) {
        echo $func($params, $smarty);
    } elseif (file_exists(CORE_INCLUDE_DIR . '/smartyplugins/input.' . $params['type'] . '.php')) {
        require CORE_INCLUDE_DIR . '/smartyplugins/input.' . $params['type'] . '.php';
        $smarty->_plugins['input'][$params['type']] = $func;
        echo $func($params, $smarty);
    } else {
        if (!function_exists('tpl_input_default')) {
            require CORE_INCLUDE_DIR . '/smartyplugins/input.default.php';
        }
        echo $html . tpl_input_default($params, $smarty);
    }
    unset($func, $params);
}
ob_start();
?>
<form action="<?php 
echo $this->_env_vars['base_url'], "search", is_numeric(search) && 'index' == result || !result ? '' : '-' . result, '.html';
?>
" method="post" class="SearchBar"> <table cellpadding="0" cellspacing="0"> <tr> <td class="search_label"> <span>关键字:</span> <input name="name[]" size="10" class="inputstyle keywords" value="<?php 
echo $this->_vars['setting']['search'];
?>
" /> </td> <?php 
if ($this->_vars['setting']['searchopen']) {
    ?>
 <td class="search_price1">价格从 <?php 
    echo tpl_input_default(array('name' => "price[0]", 'type' => "number", 'size' => "4", 'class' => "inputstyle gprice_from"), $this);
    ?>
</td> <td class="search_price2">到<?php 
    echo tpl_input_default(array('name' => "price[1]", 'type' => "number", 'size' => "4", 'class' => "inputstyle gprice_to"), $this);
    ?>
</td> <?php 
}
?>
 <td><input type="submit" value="搜索" class="btn_search" onfocus='this.blur();'/> </td> <td><a href="<?php 
echo $this->_env_vars['base_url'], "search", is_numeric("search") && 'index' == "index" || !"index" ? '' : '-' . "index", '.html';
?>
" class="btn_advsearch">高级搜索</a> </td> </tr> </table> </form> <?php 
$body = str_replace('%THEME%', '{ENV_theme_dir}', ob_get_contents());
ob_end_clean();
echo '<div id="13">', $body, '</div>';
unset($body);
$setting = null;
$this->_vars =& $this->pagedata;
?>
                } else {
                    $func = 'tpl_input_object';
                    $params['type'] = 'object';
                }
            }
        } else {
            $func = 'tpl_input_' . $params['type'];
        }
        if (function_exists($func)) {
            echo $func($params, $this);
        } elseif (isset($this->input_func_map[$params['type']])) {
            require CORE_DIR . $this->input_func_map[$params['type']];
            $this->_plugins['input'][$params['type']] = $func;
            echo $func($params, $this);
        } else {
            echo tpl_input_default($params, $this);
        }
        unset($func, $params);
        ?>
 </div> <?php 
    }
    ?>
 </div> <div class="textcenter"> <input type="submit" type="submit" value="显示符合条件的商品" /> </div> </div> <?php 
}
?>
 </form> <script type='text/javascript'>
      var fixEmpeyPanel = (function(el){
         el.setStyle('display',el.get('text').clean().trim()?'block':'none');
         return arguments.callee; 
      })($('selector-form'));
         
echo tpl_input_default(array('class' => "inputstyle", 'name' => "delivery[ship_name]", 'id' => "name", 'size' => "30", 'required' => "true", 'type' => "text", 'value' => $this->_vars['trading']['receiver']['name']), $this);
?>
</td> </tr> <?php 
if (!$this->_vars['trading']['member_id']) {
    ?>
 <tr> <td><em style="color:red">*</em>Email:</td> <td colspan=2><?php 
    echo tpl_input_default(array('name' => "delivery[ship_email]", 'class' => "inputstyle", 'id' => "ship_email", 'size' => "30", 'required' => "true", 'type' => "text", 'vtype' => "email", 'value' => $this->_vars['trading']['receiver']['email']), $this);
    ?>
</td> </tr> <?php 
}
?>
 <tr> <td> <em style="color:red">*</em>手机: </td> <td colspan=2> <?php 
echo tpl_input_default(array('class' => "inputstyle", 'name' => "delivery[ship_mobile]", 'size' => "30", 'type' => "text", 'id' => "mobile", 'value' => $this->_vars['trading']['receiver']['mobile']), $this);
?>
 </td> </tr> <tr> <td> <em style="color:#ccc">*</em>固定电话: </td> <td colspan=2> <?php 
echo tpl_input_default(array('class' => "inputstyle", 'name' => "delivery[ship_tel]", 'size' => "30", 'type' => "text", 'id' => "tel", 'value' => $this->_vars['trading']['receiver']['tel']), $this);
?>
 </td> </tr> <?php 
if ($this->_vars['trading']['member_id']) {
    ?>
 <tr class="recsave"> <td>是否保存地址:</td> <td colspan=2><label><input name="delivery[is_save]" type="checkbox" checked="checked" value=1>保存本次收货地址</label></td> </tr> <?php 
}
?>
 </tbody> </table> <?php 
echo $this->_vars['selectArea'];
?>
 <script>
window.addEvent('domready',function(e){
	$E('#checkout-select-area input[name^=delivery[]').store('onselect',function(sel){

        if($E('option[has_c]',sel)){
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 
    echo tpl_function_link(array('ctl' => "passport", 'act' => "verifyCode"), $this);
    ?>
" border="1" id="imgVerifyCode"/><a href="javascript:changeimg()">&nbsp;看不清楚?换个图片</a></td> </tr> <?php 
}
?>
 <tr> <th></th> <td><input type="submit" value="提交" class='btn' ></td> </tr> </table> </form> 
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);
$_block_content = '';
?>
</td></tr> <tr> <th>&nbsp;</th><td> <div style="text-align:left;" class="table-action"> <button type="submit" class="btn"><span><span>保存设置</span></span></button> </div> </td> </tr> </table> </div></div> </form> </div> <script language="javascript">
?>
 </div> <?php 
if ($this->_vars['prototype']['setting']['use_props']) {
    ?>
 <h4>扩展属性:</h4> <table border="0" cellpadding="0" cellspacing="0"> <?php 
    if ($this->_vars['prototype']['setting']['use_props']) {
        ?>
 <tbody id='goods_type_props'> <?php 
        foreach ((array) $this->_vars['prototype']['props'] as $this->_vars['key'] => $this->_vars['aProp']) {
            ?>
 <tr class="prop"> <th><?php 
            echo $this->_vars['aProp']['name'];
            ?>
:</th> <td><?php 
            $this->_vars["p_col"] = "p_{$this->_vars['key']}";
            if ($this->_vars['aProp']['type'] == 'select') {
                echo tpl_input_select(array('name' => "goods[p_{$this->_vars['key']}]", 'nulloption' => "1", 'options' => $this->_vars['aProp']['options'], 'value' => $this->_vars['goods'][$this->_vars['p_col']]), $this);
            } else {
                echo tpl_input_default(array('type' => "text", 'name' => "goods[p_{$this->_vars['key']}]", 'maxlength' => "25", 'value' => $this->_vars['goods'][$this->_vars['p_col']]), $this);
            }
            ?>
</td> </tr> <?php 
        }
        ?>
 </tbody> <?php 
    }
    ?>
 </table> <?php 
}
?>
 </div> </div> 
    echo tpl_input_default(array('name' => "goods[db_big_pic]", 'type' => "hidden", 'value' => $this->_vars['goods']['big_pic']), $this);
    ?>
 <div id="imageuparea" style="display:<?php 
    if ($this->_vars['goods']['udfimg'] == 'true') {
        ?>
block<?php 
    } else {
        ?>
none<?php 
    }
    ?>
" class="notice"> 注:<strong>列表页商品图片</strong>默认由系统自动生成.您也可以上传一张商品图片来覆盖默认的.<br /> <strong>单独上传:</strong> <?php 
    echo tpl_input_default(array('name' => "goods_thumbnail_pic", 'type' => "file", 'size' => '9', 'onmouseover' => "this.title=this.value"), $this);
    ?>
<br/><hr/> 当前缩略图浏览:<?php 
    echo tpl_input_default(array('type' => 'viewIMG', 'value' => tpl_modifier_storager(isset($this->_vars['goods']['thumbnail_pic']) && '' !== $this->_vars['goods']['thumbnail_pic'] ? $this->_vars['goods']['thumbnail_pic'] : $this->system->getConf('site.default_thumbnail_pic'))), $this);
    ?>
 </div> <div id="x-main-pic" class='textcenter'> <?php 
    if ($this->_vars['goods']['image_default']) {
        ?>
 <script>
              (function(){
                try{
                <?php 
        if ($this->_vars['goods']['small_pic']) {
            ?>
                  goodsEditor.pic.setDefault('<?php 
            echo $this->_vars['goods']['image_default'];
            ?>
','<?php 
            echo tpl_modifier_storager($this->_vars['goods']['small_pic']);
"/></td> <?php 
        }
    }
    foreach ((array) $this->_vars['spec']['idata'] as $this->_vars['ikey'] => $this->_vars['item']) {
        ?>
 <td><input type="text" name="idata[<?php 
        echo $this->_vars['ikey'];
        ?>
][]" value="<?php 
        echo $this->_vars['spec']['idata'][$this->_vars['ikey']][$this->_vars['id']];
        ?>
" /></td> <?php 
    }
    ?>
 <td><?php 
    echo tpl_input_default(array('type' => "text", 'value' => $this->_vars['pro']['store'], 'name' => "store[]", 'size' => 4, 'vtype' => "number"), $this);
    ?>
</td> <td><input type="text" size=8 name="price[]" value="<?php 
    echo $this->_vars['pro']['price'];
    ?>
"/><br> <span class='sysiconBtn edit' onclick="goodsEditor.mprice.bind(goodsEditor)(this)">会员价</span> <?php 
    if ($this->_vars['fromType'] == 'create') {
        foreach ((array) $this->_vars['mLevels'] as $this->_vars['memlvid'] => $this->_vars['rows']) {
            ?>
 <input name="mprice[<?php 
            echo $this->_vars['rows']['member_lv_id'];
            ?>
][]" level="<?php 
            echo $this->_vars['rows']['member_lv_id'];
            ?>
" type="hidden" value="<?php 
} else {
    ?>
 <div id='checkout-recaddr'> <?php 
    $_tpl_tpl_vars = $this->_vars;
    echo $this->_fetch_compile_include("shop:common/rec_addr.html", array());
    $this->_vars = $_tpl_tpl_vars;
    unset($_tpl_tpl_vars);
    ?>
 </div> <?php 
}
?>
 <div class='receivermore' style='padding:5px;margin-top:4px;'> 订单附言:<?php 
echo tpl_input_default(array('class' => "inputstyle", 'name' => "delivery[memo]", 'type' => "text", 'value' => "", 'style' => 'width:400px'), $this);
?>
 指定送货时间:<input type='checkbox' onclick='$(this).getNext("div")[this.checked?"show":"hide"]();'/> <div style='display:none;margin-top:4px'> 送货时间:<select class="inputstyle" name="delivery[day]" onchange="$('specal_day').style.display=(this.value=='specal')?function(){$('specal_day').getFirst().makeCalable(); return '';}():'none'"> <option selected="selected" value="任意日期">任意日期</option> <option value="仅工作日">仅工作日</option> <option value="仅休息日">仅休息日</option> <option value="specal">指定日期</option> </select>&nbsp; <span id="specal_day" style="display:none"> <?php 
echo tpl_input_default(array('type' => "text", 'name' => "delivery[specal_day]", 'class' => "cal inputstyle", 'value' => $this->_vars['dlytime'], 'real' => true, 'style' => "width:80px", 'readonly' => true), $this);
?>
 </span> <select class="inputstyle" name="delivery[time]"> <option value="任意时间段">任意时间段</option> <option value="上午">上午</option> <option value="下午">下午</option> <option value="晚上">晚上</option> </select> </div> </div> </div> <?php 
if ($this->_vars['trading']['receiver']['addrlist']) {
    ?>
 <script>
window.addEvent('domready',function(){

<?php 
    if ($this->_vars['trading']['admindo']) {
        ?>
    var url_area = 'index.php?ctl=order/order&act=getAddr';
<?php 
    } else {
        ?>
    var url_area = '<?php 
            foreach ((array) $this->_vars['trading']['coupon_u'] as $this->_vars['key'] => $this->_vars['item']) {
                ?>
<strong><?php 
                echo $this->_vars['key'];
                ?>
</strong><?php 
            }
            ?>
<a href="<?php 
            echo tpl_function_link(array('ctl' => cart, 'act' => 'removeCoupon'), $this);
            ?>
" class="lnk" style="margin:0 0 0 20px;">取消优惠券</a></div> <?php 
        } else {
            ?>
 对以上商品使用优惠券:</{t}><?php 
            echo tpl_input_default(array('type' => "text", 'name' => "coupon", 'id' => "-s-ipt-coupon", 'size' => "30", 'value' => "请输入优惠券号码", 'onclick' => "this.value=(this.value=='请输入优惠券号码')?'':this.value"), $this);
            ?>
 <input id='cart-coupon-submitBtn' type="button" value="确定" /> <script>
                      $('cart-coupon-submitBtn').addEvent('click',function(e){
                          e.stop();
                          new Element('form',{method:'post',action:'<?php 
            echo tpl_function_link(array('ctl' => "cart", 'act' => "applycoupon"), $this);
            ?>
'}).adopt($('cart-coupon').clone()).inject(document.body).submit();
                      });
                  </script> <?php 
        }
        ?>
 </div> </div> <div class="floatRight" style='width:45%'> <div id="cartTotal"> <?php 
        echo $this->_fetch_compile_include($this->_get_resource('user:'******'/' . "cart/cart_total.html") ? 'user:'******'/' . "cart/cart_total.html" : 'shop:' . "cart/cart_total.html", array());
        ?>
if (!function_exists('tpl_function_javascript')) {
    require CORE_DIR . '/include_v5/smartyplugins/function.javascript.php';
}
$CURRENCY =& $this->system->loadModel('system/cur');
?>
<div class="CartWrap" id="log"> <div class="CartNav clearfix"> <div class="floatLeft"> <img src="statics/cartnav-step3.gif" alt="购物流程--确认订单填写购物信息" /> </div> <div class="floatRight"><img src="statics/cartnav-cart.gif" /></div> </div> <form method="post" action='<?php 
echo tpl_function_link(array('ctl' => "order", 'act' => "create"), $this);
?>
' id="order-create" extra="subOrder" > <?php 
if ($_POST['isfastbuy']) {
    ?>
 <input type='hidden' name='isfastbuy' value=1 /> <?php 
}
?>
 <div style="display:none"><?php 
echo tpl_input_default(array('type' => "checkForm"), $this);
?>
</div> <?php 
echo $this->_fetch_compile_include($this->_get_resource('user:'******'/' . "cart/checkout_base.html") ? 'user:'******'/' . "cart/checkout_base.html" : 'shop:' . "cart/checkout_base.html", array());
?>
 <div class="FormWrap"> <?php 
if ($this->_vars['trading']['products']) {
    ?>
 <h3>购买的商品</h3> <div class="division"> <table width="100%" cellpadding="0" cellspacing="0" class="liststyle"> <col class="span-auto"></col> <col class="span-auto textleft"></col> <col class="span-2"></col> <col class="span-2"></col> <col class="span-2"></col> <col class="span-1"></col> <col class="span-2 ColColorOrange"></col> <thead> <tr> <th>图片</th> <th class="product">商品名称</th> <th class="price">积分</th> <th class="price">销售价格</th> <th class="number">优惠价格</th> <th class="number">数量</th> <th class="price">小计</th> </tr> </thead> <tbody> <?php 
    foreach ((array) $this->_vars['trading']['products'] as $this->_vars['key'] => $this->_vars['item']) {
        ?>
 <tr> <td> <div class='product-list-img' isrc="<?php 
        echo tpl_modifier_storager(isset($this->_vars['item']['thumbnail_pic']) && '' !== $this->_vars['item']['thumbnail_pic'] ? $this->_vars['item']['thumbnail_pic'] : $this->system->getConf('site.default_thumbnail_pic'));
        ?>
" ghref='<?php 
        echo tpl_function_link(array('ctl' => product, 'act' => "index", 'arg0' => $this->_vars['item']['goods_id']), $this);
            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);
?>
</td> </tr> </tbody> </table> <table width="100%" cellpadding="0" cellspacing="0"> <tbody> <tr> <td width='100' style='vertical-align:middle;white-space:nowrap;'><h3>配送方式确认<em style="color: red;">*</em></h3></td> <td><div class='division' id='shipping'><div class="notice" >请先“在收货人信息”中选择“收货地区”</div></div></td> </tr> </tbody> </table> <table width="100%" cellpadding="0" cellspacing="0"> <tbody> <tr> <td width='100' style='vertical-align:middle;white-space:nowrap;'><h3>支付方式确认<em style="color: red;">*</em></h3></td> <td> <div class='division'> <div id="_payment_currency" style='padding:5px;'> 货币类型:<?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> <td></td> <td><input type="submit" value="提交评论"></td> </tr> </table> </div> </form> </div> </div> <?php 
    }
}
if (count($this->_vars['gift']) > 0) {
    ?>
 <div class="section pdtdetail" tab="赠品"> <h2>赠品</h2> <div class="body" id="goods-gift"> <div class="GoodsSearchWrap"> <?php 
    foreach ((array) $this->_vars['gift'] as $this->_vars['key'] => $this->_vars['gift']) {
        ?>
    if ($this->_vars['item']['node_id'] == $this->_vars['node']['p_node_id']) {
        ?>
selected="selected"<?php 
    }
    ?>
 value="<?php 
    echo $this->_vars['item']['node_id'];
    ?>
" ><?php 
    echo tpl_modifier_paddingleft($this->_vars['item']['title'], $this->_vars['item']['depth'] * 4 + 4, '&nbsp;');
    ?>
</option> <?php 
}
?>
 </select> </td> </tr> <tr> <th>名称</th> <td><?php 
echo tpl_input_default(array('type' => "text", 'value' => $this->_vars['node']['title'], 'name' => "title"), $this);
?>
</td> </tr> <tr> <th>显示在菜单上</th> <td><input type="checkbox" name="display" value="1" <?php 
if ($this->_vars['node']['hidden'] != "true") {
    ?>
checked="checked"<?php 
}
?>
></td> </tr> <?php 
if ($this->_vars['node']['node_type'] == 'custompage') {
    ?>
 <tr> <th>是否新开窗口打开</th> <td><input type="checkbox" name="item_id" value="1" <?php 
    if ($this->_vars['node']['item_id'] == 1) {
        ?>
checked="checked"<?php 
    }
<?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>