main.js 1.42 KB
/**
 * 
 */

function checkAll(obj){
	$("input[type='checkbox']").attr("checked",$(obj).attr("checked"));
}

function showExhibitBox(product_name,skn,order_id,product_id,goods_id,erp_sku_id,bid)
{
	//Dialog		
	$('#exhibitDialog').dialog({
		autoOpen: false,
		width:510,
	    height:400,
		modal: true,
		resizable: false
	});
	//Dialog		
	$('#exhibitDialog1').dialog({
		autoOpen: false,
		width:510,
	    height:400,
		modal: true,
		resizable: false
	});
	if(product_name == '' || parseInt(skn) <= 0 || parseInt(order_id) <= 0 || parseInt(product_id) <= 0 || parseInt(goods_id) <= 0 || parseInt(erp_sku_id) <= 0)
	{
		alert('参数错误');
		return false;
	}
	bid = bid || '';
	var iframe = '<iframe height="380" width="510" onload="showExhibitDialog();" src="http://new.yoho.cn/partner/iframe/buycomment?skn=' + skn + '&product_name=' + product_name + '&order_id=' + order_id + '&product_id=' + product_id + '&goods_id=' + goods_id + '&erp_sku_id=' + erp_sku_id + '&bid=' + bid + '&t='+Math.random()+'" scrolling="no" frameborder="0"></iframe>';
	$('#exhibitDialog').html(iframe);
	$('#exhibitDialog1').dialog('open');
}
function showExhibitDialog()
{
	$('#exhibitDialog1').dialog('close');
	$('#exhibitDialog').dialog('open');
	$('#exhibitDialog').removeClass('ui-dialog');
	$('#exhibitDialog').removeClass('ui-dialog-content');
	$('#exhibitDialog').attr('style', 'background: none repeat scroll 0 0 transparent;border: 0 none;padding: 0;');
}