qc.ifish7.com/Application/Admin/View/CraftParam/index.html

75 lines
3.5 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}(<a style="background-color: white;color: #0e90d2" href="{:U('FlowCraft/index',array('flow_id'=>$craft['flow']['flow_id']))}">{$craft['flow']['flow_name']}</a> -- {$craft['craft']['craft_name']})</h1>
</div>
<div class="main_add" style="width:60%;display: flex;justify-content: flex-end">
<if condition="!$used">
<a class="btn btn-inverse iframe" href="{:U('add',array('flow_craft_id'=>$_GET['flow_craft_id']))}" style="margin-left:10px;">+增加参数</a>
<a class="btn btn-inverse iframe" href="{:U('import',array('flow_craft_id'=>$_GET['flow_craft_id']))}" style="margin-left:10px;">+从参数模板增加参数</a>
</if>
</div>
</div>
<div style="text-align:right; float:right"></div>
<div class="row-fluid">
<div class="span12">
<div class="widget-box">
<div class="widget-content nopadding">
<table class="table table-striped">
<thead>
<tr>
<th >参数名称</th>
<th >基准尺寸</th>
<th >上公差</th>
<th >下公差</th>
<th >单位</th>
<th> 操作</th>
</tr>
</thead>
<tbody>
<foreach name="data" item="v">
<tr>
<?php
$base = floatval($v['param_base']);
if(!$base){
$base = $v['param_base'];
}
?>
<td style="text-align: center;">{$v['param_name']}</td>
<td style="text-align: center;">{$base}</td>
<td style="text-align: center;">{:floatval($v['param_diff_up'])}</td>
<td style="text-align: center;">{:floatval($v['param_diff_down'])}</td>
<td style="text-align: center;">{$v['param_unit']}</td>
<if condition="$used">
<td class="center">
不可修改和删除
</td>
<else/>
<td class="center">
<a href="{:U('editor',array('param_id'=>$v[param_id]))}"
class="btn btn-primary btn-mini iframe" height="400px">修改</a>
<a href="{:U('delete',array('param_id'=>$v[param_id]))}"
class="btn btn-danger btn-mini ajax_del">删除</a>
</td>
</if>
</tr>
</foreach>
</tbody>
</table>
</div>
</div>
<div class="pagination alternate">
<ul>{$listpage}</ul>
</div>
</div>
</div>
</div>
<include file="Inc/footer"/>