qa-ifish7/web/Application/Admin/View/FlowCraft/index.html

88 lines
4.3 KiB
HTML

<include file="Inc:header"/>
<div class="container-fluid">
<div class="main_head">
<div class="main_tab" style="width:40%; margin-top:10px;">
<h1>{$pagetitle}({$flow_name})</h1>
</div>
<div class="main_add" style="width:60%;display: flex;justify-content: flex-end">
</div>
</div>
<div style="text-align:right; float:right"></div>
<form action="{:U('sort')}" method="post" onsubmit="return save_form(this)">
<div class="row-fluid">
<div class="span12">
<div class="widget-box">
<div class="widget-content nopadding">
<table class="table table-striped">
<thead>
<tr>
<th width="3%">排序</th>
<th >工序名称</th>
<th >工序代号</th>
<th >工艺备注</th>
<th >工种</th>
<th >工艺参数</th>
<th >价格参数</th>
<th> 操作</th>
</tr>
</thead>
<tbody>
<foreach name="data" item="v">
<tr>
<input type="hidden" name="flow_craft_id[]" value="{$v['flow_craft_id']}">
<td style="text-align: center;"><input type="text" name="order_id[]" value="{$v.order_id}" style="width: 30px"></td>
<td style="text-align: center;">{$v['craft']['craft_name']}</td>
<td style="text-align: center;">{$v['craft']['craft_code']}</td>
<td style="text-align: center;">{$v['craft']['craft_remark']}</td>
<td style="text-align: center;">{$v['craft']['craft_type']['type_name']}</td>
<td style="text-align: center;">
<a href="{:U('CraftParam/index',array('flow_craft_id'=>$v['flow_craft_id']))}" class="btn btn-inverse btn-mini ">参数详情</a>
</td>
<td style="text-align: center;">
<if condition="$v['price']">
<a href="{:U('CraftPrice/editor',array('flow_craft_id'=>$v['flow_craft_id']))}" class="btn btn-primary btn-mini iframe center" width="80%">查看 | 修改</a>
<else/>
<a href="{:U('CraftPrice/add',array('flow_craft_id'=>$v['flow_craft_id']))}" class="btn btn-danger btn-mini iframe center" width="80%">添加</a>
</if>
</td>
<if condition="$used">
<td class="center">
不可修改和删除
</td>
<else/>
<td class="center">
<a href="{:U('editor',array('flow_craft_id'=>$v[flow_craft_id]))}"
class="btn btn-primary btn-mini iframe" height="400px">修改</a>
<a href="{:U('delete',array('flow_craft_id'=>$v[flow_craft_id]))}"
class="btn btn-danger btn-mini ajax_del">删除</a>
</td>
</if>
</tr>
</foreach>
</tbody>
</table>
</div>
</div>
<button class=" btn btn-success">修改排序</button>
<if condition="!$used">
<a class="btn btn-inverse iframe" href="{:U('add',array('flow_id'=>$_GET['flow_id']))}" style="margin-left:10px;" width="80%" height="100%">+增加工序</a>
</if>
<div class="pagination alternate">
<ul>{$listpage}</ul>
</div>
</div>
</div>
</form>
</div>
<include file="Inc/footer"/>