29 lines
949 B
PHP
29 lines
949 B
PHP
|
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
||
|
<?
|
||
|
foreach($edit_grps[0][1] as $zd => $item) {
|
||
|
?>
|
||
|
<tr srtle="border-bottom:1px solid #CCCCCC">
|
||
|
<td width="90" style="padding:10px 5px; font-size:18px; color:#3D4145; border-bottom:1px solid #CCCCCC"><?if($item['must']) { ?><span style="color:red">*</span> <? }?><?=$item['title']?></td>
|
||
|
<td style="padding:10px 5px; border-bottom:1px solid #CCCCCC">
|
||
|
<?
|
||
|
ob_start();
|
||
|
$iswriteedit = true;
|
||
|
if($item['func']) {
|
||
|
$func = $item['func'];
|
||
|
$param = $item['funcParam'];
|
||
|
$r = $func($data, $edit_id, $param, $item);
|
||
|
if($r !== true) $iswriteedit = false;
|
||
|
|
||
|
}
|
||
|
if($iswriteedit) writeEdit($zd, $data, $item['style'], $edit_id);
|
||
|
$html = ob_get_clean();
|
||
|
$html = str_replace(' style="', ' placeholder="请填写" style="font-size:20px; height:35px; border: 0px;width:100px;', $html);
|
||
|
echo $html;
|
||
|
?>
|
||
|
<span id="edit_tip_<?=$zd?>"><?=$item['tip']?></span>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<?
|
||
|
}
|
||
|
?>
|
||
|
</table>
|