TONGJIE1

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="../Public/css/common.css" type="text/css" />

<script type="text/javascript" src="../Public/js/lhgcalendar/jquery-1.7.1.min.js"></script>

<script type="text/javascript" src="../Public/js/menu.js"></script>

<script type="text/javascript" src="http://pscript1.4008000000.com/app_js/paui/1.0.1/build/pa.ui.min.js"></script>


<script type="text/javascript">

$(function(){

$("#exp_batch").click(function()

{

var type_id = $("#type_id").val();

$.post("{:U('order_exp_post')}",{type_id:type_id},function(data,status)

{

if(status=='success')

{

if(data.status==1)

{

alert('批量導出成功!');

window.location.reload();

}

else

{

alert(data.info);

}

}

else

{

alert('批量導出失敗!');

}

},'json');      

});

});

</script>

<title>訂單批量導出</title>

</head>

<body>

<div class="wrapper">

<div class="wide">

<div class="lw">    

<include file="Menu:menu-kb" />

</div>

<!--lw end -->

<div class="rw">

<div class="con">

<div class="bodytitle">

<div class="bodytitleleft"></div>

<div class="bodytitletxt">訂單批量導出</div>

</div>

<div class="tab_bk1">

<div class="p5 vrh">

<div class="fr">上次導出操作時間:<font color="red"><strong>{$last_time}</strong></font></div>

<div class="fl">

<select name="type_id" id="type_id" class="p-select">

<option value="">請選擇空包類型</option>

<foreach name="type_list" item="type">

<option value="{$type['id']}"  <if condition="I('type_id')==$type['id']">selected</if> >{$type['name']} 未導出({$type['count']})</option>

</foreach>

</select>

<input type="button" id="exp_batch" value="批量導出" class="p-btn m-btn">

</div>

</div>

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_list">

<thead>

<tr>

<th width="5%"><div align="center">選擇</div></th>

<th width="10%"><div align="center">導出時間</div></th>

<th width="10%"><div align="center">空包類型</div></th>

<th width="23%"><div align="center">導出文件名</div></th>

<th width="8%"><div align="center">訂單條數</div></th>

<th width="8%"><div align="center">單價</div></th>

<th width="8%"><div align="center">金額</div></th>

<th width="8%"><div align="center">利潤</div></th>

<th width="10%"><div align="center">上次導出時間</div></th>

<th width="10%"><div align="center">操作</div></th>

</tr>

</thead>

<tbody>

<foreach name="log_list" item='log'>

<tr class="exp-tr">

<td><div align="center"><input type="checkbox" name="exp-checkbox" class="exp-checkbox"></div></td>

<td><div align="center">{$log['exp_time']}</div></td>

<td><div align="center">{$log['type_name']}</div></td>

<td><div align="left">{$log['exp_filename']}</div></td>

<td><div align="center">{$log['exp_counts']} </div> </td>

<td><div align="center">1.2</div> </td>

<td><div align="center" class="amount">51.8</div> </td>

<td><div align="center" class="profits">7.8</div> </td>

<td><div align="center">{$log['last_time']}</div></td>

<td><div align="center"><a href="{:U('downfile',array('id'=>$log['id']))}">下載文件</a></div></td>

</tr>

</foreach>

</tbody>

<tfoot>

<tr>

<td colspan="10"><div class="ptb10 tc pagenavi">{$show}</div></td>

</tr>

<tr>

<td colspan="10">

<div class="ptb10 tc">

共計金額:<span id="actualAmount">0.00</span>  共計利潤:<span id="actualProfits">0.00</span>

</div>

</td>

</tr>

</tfoot>

</table>

</div>


</div>

<!--con end -->

</div>

<!--rw end -->  

</div>

<!--wide end -->  

</div>

<!--wrapper end -->

<script type="text/javascript">

actualAmount = 0;

actualProfits = 0;

$(".exp-checkbox").on("click", function(){

amount = Number($(this).parents(".exp-tr").find(".amount").text());

profits = Number($(this).parents(".exp-tr").find(".profits").text());

if($(this).is(":checked")){

actualAmount = actualAmount + amount;

actualProfits = actualProfits + profits;

}else{

actualAmount = actualAmount - amount;

actualProfits = actualProfits - profits;

}

$("#actualAmount").html((actualAmount).toFixed(2));

$("#actualProfits").html((actualProfits).toFixed(2));

});

</script>

<!--

public function type_edit()

    {

        $id = I('id', NULL);


        if (empty($id)) {

            $this->message2('無效請求!', 'type');

        }


        $model_level = D('user_level');

        $level = $model_level->select();

        $level_arr = array();


        foreach ($level as $k => $v) {

            $level_arr['a' . $v['id']] = $v;

        }


        $this->assign('level_list', $level_arr);

        $config = M('config')->where('id=1')->find();

        $refer_mode = $config['refer_mode'];

        $mode = array();


        for ($i = 1; $i <= $refer_mode; $i += 1) {

            $mode[$i] = 'a' . $i;

        }


        $this->assign('refer_mode', $mode);

        $type = D('kongbao_type')->where('id=' . $id)->find();

        $config = json_decode($type['config'], true);

        $moban_list = M('exp_rule')->select();

        $this->assign('moban_list', $moban_list);

        $this->assign('config', $config);

        $this->assign('type', $type);

        $this->display();

   }

   

   2132


-->

</body>

</html>


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章