一些天才的帮助!!!!!!1) 接口
2) 点击按钮---->mysql查询将在框中显示---->点击按钮“生成csv”3)查询“获取产品库”始终工作,“价格库”在ie上工作几次,然后停止工作。
<li>
<input type=button style="width:800px;height:30px;text-align:left;padding-left:20px;"
value="Price base"
sql="select p.model, pd.name, p.ws_price, p.rt_price, p.pc
from product p, product_description pd
where p.product_id = pd.product_id
order by substr(p.model,3,4)"
/>
</li>
<li>
<input type=button style="width:800px;height:30px;text-align:left;padding-left:20px;"
value="Get product base"
sql="select p.model, p.sku, pd.name_for_sales, p.quantity, p.ws_price, p.rt_price
from product p, product_description pd
where p.product_id = pd.product_id
"
/>
</li>
<script type="text/javascript"><!--
$(document).ready(function(){
$('input').bind('click',function(e){
$tgt = $(e.target);
$sql = $tgt.attr('sql');
$('textarea')[0].value = $sql;
});
$('.excel').bind('click',function(e){
//$sql = $('textarea').html().trim();
var ta = $('textarea');
$sql = $('textarea')[0].value;
//alert($sql);
$url = '<?php echo $lnk_export; ?>' + '&sql=' + $sql;
//alert($url);
location.href = $url;
});
});
//-->
</script>
暂无答案!
目前还没有任何答案,快来回答吧!