99 lines
2.3 KiB
PHP
99 lines
2.3 KiB
PHP
<?
|
|
if(!$isphone) {
|
|
include(ADMIN_INC_ROOT."/tpl/info.tpl.php");
|
|
} else {
|
|
|
|
|
|
foreach($edit_grps as $item) {
|
|
|
|
$editable1 = $item[1];
|
|
|
|
|
|
?>
|
|
|
|
|
|
<table cellpadding="0" cellspacing="1" border="0" class="tb" width="100%">
|
|
<tr>
|
|
<?
|
|
$n = 0;
|
|
foreach($editable1 as $zd => $item) {
|
|
if($item['type'] == 'hidden') continue;
|
|
if($item['col'] == 2) {
|
|
if($n % 2 != 0) echo '<td height="30" width="50%"> </td>';
|
|
if($n != 0) echo '</tr><tr>';
|
|
$n = 1;
|
|
} else {
|
|
if($n != 0 && $n%2== 0) echo '</tr><tr>';
|
|
}
|
|
?>
|
|
<td<? if($item['col'] == 2) {?> colspan="2"<? } ?> style="padding-bottom:5px;font-size:1.4rem"><? if($item['title']) { ?><div style="margin-top:5px;font-weight:bold;font-size:1.6rem"><span id="edit_title_<?=$zd?>" style=";font-size:1.6rem"><? echo $item['title']; ?></span><span style="color:red;<?if($item['must'] != 1) echo 'display:none;';?>" id="edit_title_star_<?=$zd?>"> *</span>:</div><? } else { ?> <span id="edit_title_<?=$zd?>"></span><span style="color:red;<?if($item['must'] != 1) echo 'display:none;';?>" id="edit_title_star_<?=$zd?>"> *</span> <? }
|
|
$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);
|
|
|
|
?><? if($item['tip']) echo ' <span id="edit_tip_'.$zd.'" style="font-size:1.4rem">'.$item['tip'].'</span>';?></td>
|
|
<?
|
|
$n++;
|
|
}
|
|
if($n % 2 != 0) echo '<td> </td>';
|
|
?>
|
|
</tr>
|
|
</table>
|
|
|
|
<?
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$canedit = false;
|
|
foreach($editable as $zd => $item) {
|
|
if(!$item['notedit']) $canedit = true;
|
|
if($item['type'] != 'hidden') continue;
|
|
writeEdit($zd, $data, '', $edit_id);
|
|
}
|
|
|
|
?>
|
|
<? if($canedit) {
|
|
$savebt_title = $config['savebt_title'];
|
|
if(!$savebt_title) $savebt_title = '保存';
|
|
?>
|
|
<div style="text-align:center;margin-top:10px">
|
|
|
|
<?
|
|
|
|
$edit_m = $config['edit_m'];
|
|
if(!$edit_m) $edit_m = 'save';
|
|
?>
|
|
|
|
<input id="savebt" class="button" type="button" value="<?=$savebt_title?>" style="cursor:pointer;height:2.5rem;font-size:1.5rem" onclick="setDeal('<?=$showtype?>', '<?=$edit_id?>', '<?=$edit_m?>', null, null)" />
|
|
|
|
|
|
</div>
|
|
<? } ?>
|
|
|
|
<? if($config['editExtraHtml']) { ?>
|
|
<div style="margin-top:10px">
|
|
<?=$config['editExtraHtml']?>
|
|
</div>
|
|
<? } ?>
|
|
|
|
<div style="margin-top:10px">
|
|
|
|
</div>
|
|
|
|
<?
|
|
}
|
|
?>
|