вопрос
Друзья добрый день помогите разобраться, имею шаблоны для добавления новости и редактирования (addnews.tpl, editnews.tpl) в editnews.tpl -редактирует дату сохраняет, но в addnews.tpl -не сохраняе дату,
Помогите исправить очень прошу.
код addnews.tpl
Помогите исправить очень прошу.
код addnews.tpl
<!-- css-js -->
<script type="text/javascript" src="engine/skins/chosen/chosen.js"></script>
<script type="text/javascript" src="engine/skins/calendar.js"></script>
<link rel="stylesheet" type="text/css" href="engine/skins/calendar-blue.css">
<link rel="stylesheet" type="text/css" href="engine/skins/chosen/chosen.css">
<!-- language for the calendar -->
<script type="text/javascript" src="engine/skins/calendar-en.js"></script>
<!-- the following script defines the Calendar.setup helper function, which makes
adding a calendar a matter of 1 or 2 lines of code. -->
<script type="text/javascript" src="engine/skins/calendar-setup.js"></script>
<script type="text/javascript" src="engine/skins/default.js"></script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<td align="left" valign="top" class="abl02"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="abl121">
</table></td>
<!-- main -->
<td align="center" valign="top" class="stext">
<table width="30%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10" height="25" nowrap="nowrap">Введите заголовок:</td>
<td><input type="text" name="title" value="{title}" maxlength="210" class="f_input" /></td>
</tr>
<!-- calendar -->
<tr>
<td height="29" style="padding-left:5px;">{$lang['addnews_date']}</td>
<td>
<input type="text" name="newdate" id="f_date_c" size="20" class="edit bk" >
<img src="engine/skins/images/img.gif" align="absmiddle" id="f_trigger_c" style="cursor: pointer; border: 0" title="{$lang['edit_ecal']}"/>
<input type="checkbox" name="allow_date" value="no" checked>
{$lang['edit_jdate']}
<a href="#" class="hintanchor" onmouseover="showhint('{$lang[hint_calendar]}', this, event, '320px')">[?]</a>
<script type="text/javascript">
Calendar.setup({
inputField : "f_date_c", // id of the input field
ifFormat : "%Y-%m-%d %H:%M", // format of the input field
button : "f_trigger_c", // trigger for the calendar (button ID)
align : "Br", // alignment
timeFormat : "24",
showsTime : true,
singleClick : true
});
</script></td>
</tr>
<!-- categ -->
<tr>
<td height="25">Категория:</td>
<td style="padding-bottom:5px;">{category}</td>
</tr>
<table width="100%">
{xfields}
</table>
{admintag}
</div>
</div>
<input class="vbutton" type="submit" name="add" value="Добавить">
<input class="vbutton" type="button" name="nview" onclick="preview()" value="Просмотр">
<br>
<br>
</div>