<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:3px;">
<tr>
<td width="90" class="bline" height='24'> 副 标 题:</td>
<td class="bline"><input type='text' name='subheading' id='subheading' style='width:388px' class='intxt' value='' /></td>
</tr>
</table><input type='hidden' name='dede_addonfields' value="subheading,text">
</td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:3px;">
<tr>
<td width="90" class="bline" height='24'> 副 标 题:</td>
<td class="bline"><input type='text' name='subheading' id='subheading' style='width:388px' class='intxt' value='<?php echo $addRow['subheading']; ?>' /></td>
</tr>
</table><input type='hidden' name='dede_addonfields' value="subheading,text">
</td>
</tr>
$useip = GetIP();
$templet = empty($templet) ? '' : $templet;
$query = "INSERT INTO `{$addtable}`(aid,typeid,redirecturl,templet,userip,subheading,body{$inadd_f}) Values('$arcID','$typeid','$redirecturl','$templet','$useip','$subheading','$body'{$inadd_v})";
if(!$dsql->ExecuteNoneQuery($query))
if($addtable!='')
{
$useip = GetIP();
$templet = empty($templet) ? '' : $templet;
$iquery = "UPDATE `$addtable` SET typeid='$typeid',body='$body'{$inadd_f},subheading='$subheading',redirecturl='$redirecturl',templet='$templet',userip='$useip' WHERE aid='$id'";
if(!$dsql->ExecuteNoneQuery($iquery))
{
ShowMsg("更新附加表 `$addtable` 时出错,请检查原因!","javascript:;");
exit();
}
}
{dede:field.subheading/}
else
{
$dfvalue = ($ctag->GetAtt('default')!='' ? $ctag->GetAtt('default') : '');
$innertext = "<input type='text' name='$fieldname' id='$fieldname' style='width:388px' class='intxt' value='$dfvalue' />\r\n";
}
$formitem = str_replace("~name~",$ctag->GetAtt('itemname'),$formitem);
$formitem = str_replace("~form~",$innertext,$formitem);
return $formitem;
联系客服