@
nevin47 1 、控制格式相关的好像只有这一段:
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:3px;">
<tr>
<td width="90" class="bline" height='24'> ~name~:</td>
<td class="bline">~form~</td>
</tr>
</table>
2 、根页面表格相关的 css 好像也不行,我直接查看该页面源码, class 名称都是一样的。
请忽略像“ xingbie ”这样的东西。-_-!!
<tr>
<td><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='name' id='name' style='width:250px' class='intxt' value='' />
</td>
</tr>
</table><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"><select name='xingbie' style='width:150px'><option value='男'>男</option>
<option value='女'>女</option>
</select>
</td>
</tr>
</table><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 name="chushengriqi" value="2015-08-23 16:52:29" type="text" id="chushengriqi" style="width:250px" class="intxt" /> <script language="javascript" type="text/javascript">
Calendar.setup ({
inputField : "chushengriqi",
ifFormat : "%Y-%m-%d %H:%M",
showsTime : true,
timeFormat : "24"
});
</script></td>
</tr>
</table><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"><select name='hunyinzhuangkuang' style='width:150px'><option value='已婚'>已婚</option>
<option value='未婚'>未婚</option>
</select>
</td>
</tr>
3 、 PrintAutoFieldsAdd 函数内容是这样的:
/**
* 载入自定义表单(用于发布)
*
* @
access public
* @
param string $fieldset 字段列表
* @
param string $loadtype 载入类型
* @
return string
*/
function PrintAutoFieldsAdd (&$fieldset, $loadtype='all')
{
$dtp = new DedeTagParse ();
$dtp->SetNameSpace ('field','<','>');
$dtp->LoadSource ($fieldset );
$dede_addonfields = '';
if (is_array ($dtp->CTags ))
{
foreach ($dtp->CTags as $tid=>$ctag )
{
if ($loadtype!='autofield'
|| ($loadtype=='autofield' && $ctag->GetAtt ('autofield')==1 ) )
{
$dede_addonfields .= ( $dede_addonfields=="" ? $ctag->GetName ().",".$ctag->GetAtt ('type') : ";".$ctag->GetName ().",".$ctag->GetAtt ('type') );
echo GetFormItemA ($ctag );
}
}
}
echo "<input type='hidden' name='dede_addonfields' value=\"".$dede_addonfields."\">\r\n";
}
/**
* 载入自定义表单(用于编辑)
*
* @
access public
* @
param string $fieldset 字段列表
* @
param string $fieldValues 字段值
* @
param string $loadtype 载入类型
* @
return string
*/
function PrintAutoFieldsEdit (&$fieldset, &$fieldValues, $loadtype='all')
{
$dtp = new DedeTagParse ();
$dtp->SetNameSpace ("field", "<", ">");
$dtp->LoadSource ($fieldset );
$dede_addonfields = "";
if (is_array ($dtp->CTags ))
{
foreach ($dtp->CTags as $tid=>$ctag )
{
if ($loadtype != 'autofield'
|| ($loadtype == 'autofield' && $ctag->GetAtt ('autofield') == 1 ) )
{
$dede_addonfields .= ( $dede_addonfields=='' ? $ctag->GetName ().",".$ctag->GetAtt ('type') : ";".$ctag->GetName ().",".$ctag->GetAtt ('type') );
echo GetFormItemValueA ($ctag, $fieldValues[$ctag->GetName ()]);
}
}
}
echo "<input type='hidden' name='dede_addonfields' value=\"".$dede_addonfields."\">\r\n";
}
按照这样的情况来看,是不是需要新写函数了?
我是 PHP 文盲啊,怎么办