This commit is contained in:
wangyidong
2017-11-30 14:13:25 +08:00
parent 76ea4b62e5
commit 5aae8732dd
+7 -4
View File
@@ -6,7 +6,7 @@
<div class='alert alert-info'><?php echo $suhosinInfo?></div>
<?php else:?>
<form target='hiddenwin' method='post' class='form-condensed'>
<table class='table table-fixed active-disabled table-custom'>
<table class='table table-fixed active-disabled table-custom' id='showData'>
<thead>
<tr>
<th class='w-70px'><?php echo $lang->testcase->id?></th>
@@ -32,7 +32,10 @@
</tr>
</thead>
<tbody>
<?php $insert = true;?>
<?php
$insert = true;
$addID = 1;
?>
<?php foreach($caseData as $key => $case):?>
<?php if(empty($case->title)) continue;?>
<tr valign='top' align='center'>
@@ -45,7 +48,7 @@
}
else
{
echo $key . " <sub class='gray' style='vertical-align:sub;'>{$lang->testcase->new}</sub>";
echo $addID++ . " <sub class='gray' style='vertical-align:sub;'>{$lang->testcase->new}</sub>";
}
echo html::hidden("product[$key]", $productID);
?>
@@ -100,7 +103,7 @@
</form>
<?php endif;?>
<script>
$(function(){affix('thead')})
$(function(){affix('#showData thead')})
function affix(obj)
{
var fixH = $(obj).offset().top;