-=[ Mr. Bumblebee ]=-
_Indonesia_
function check_teamopt(f) {
var str , strlen , price ;
// team check
if ( opt_use == 'Y' ) {
if ( f.elements['s_pos'][0].checked ) return 0 ;
str = f.elements['s_tn'].value ;
str = str.replace(/\s/g,'') ;
if ( str == '' ) return 0 ;
strlen = str.length ;
price = tn_type == 'O' ? strlen * tn_o_price : tn_f_price ;
price += f.elements['s_arch'].checked ? tn_arch : 0 ;
return price ;
}
return 0 ;
}
function get__sumpriceAll() {
get__sumprice1();
}
function get__sumprice1() {
var f = document.getElementsByName('frmGorder')[0] ;
var tnprice = check_teamopt(f) ;
//var obj = f.elements['s_qry[]'] ;
var obj = document.getElementsByName('s_qry[]') ;
var objlen = obj.length ;
var totalqry = 0 , totalsum = 0 ;
for ( var i = 0 ; i< objlen ; i++ ) {
if ( obj[i].value == '' ) continue ;
if ( isNaN( obj[i].value)) {
obj[i].value = '' ;
continue ;
}
if ( parseInt( obj[i].value , 10 ) < 0 ) {
obj[i].value = '' ;
continue ;
}
totalqry += parseInt( obj[i].value , 10 ) ;
}
totalsum = totalqry * goods_price ;
totalsum += tnprice > 0 ? totalqry * tnprice : 0 ;
goods_userQry = totalqry ;
f.elements['order_sumcount'].value = str_money(totalqry) ;
f.elements['order_sumprice'].value = str_money(totalsum) ;
}
function get__optsumprice() {
//
}
Copyright © 2017 || Recoded By Mr.Bumblebee