tpl_4ef0a6fb_form__LbpEoVfd32HRJ48pHXf4HQ.php 2.98 KB
<?php 
function tpl_4ef0a6fb_form__LbpEoVfd32HRJ48pHXf4HQ($tpl, $ctx) {
$_thistpl = $tpl ;
$_translator = $tpl->getTranslator() ;
?>
<div style="width:500px;" id="conteiner">
		<form id="edit_page" name="edit_page" class="form" method="post" enctype="multipart/form-data" act="save" action="/?p_name=admin_control_pages">
		<input type="hidden" name="f_id" value="<?php echo phptal_escape($ctx->path($ctx->page, 'f_id')) ?>"/>
		<?php 
if (NULL !== ($_tmp_1 = ($ctx->lang))):  ;
$_tmp_1 = ' value="'.phptal_escape($_tmp_1).'"' ;
else:  ;
$_tmp_1 = '' ;
endif ;
?>
<input type="hidden" name="form[lang]"<?php echo $_tmp_1 ?>/>
		<?php 
if (NULL !== ($_tmp_1 = ($ctx->link_id))):  ;
$_tmp_1 = ' value="'.phptal_escape($_tmp_1).'"' ;
else:  ;
$_tmp_1 = '' ;
endif ;
?>
<input type="hidden" name="form[link_id]"<?php echo $_tmp_1 ?>/>
		<input type="hidden" name="act" value="save"/>
		<table align="center">
			<tr>
				<td colspan="2" id="error_page" style="text-align:center;color:red;"></td>
			</tr>
			

			<?php if (!($ctx->lang_edit)): ; ?>
<tr>
				<td width="30%" class="info">Название</td>
				<td valign="top"><input type="text" name="form[f_name]" value="<?php echo phptal_escape($ctx->path($ctx->page, 'f_name')) ?>"/></td>
			</tr><?php endif; ?>

			
			<tr>
				<td class="info">Шаблон для вывода</td>
				<td valign="top">
					<select style="width:200px;" name="form[t_id]"><?php echo phptal_tostring($ctx->path($ctx->page, 'tmpl_list')); ?>
</select>
				</td>
			</tr>
			<tr>
				<td class="info">Права доступа</td>
				<td valign="top">
					<select Multiple="true" size="3" name="groups[]"><?php echo phptal_tostring($ctx->path($ctx->page, 'group_list')); ?>
</select> 
				</td>
			</tr>
			<tr>
				<td class="info">Свободный доступ</td>
				<td valign="top">
					<?php 
if (($ctx->noThrow(true)||1?(!phptal_isempty($_tmp5=$ctx->path($ctx->page, 'f_access', true)) && ($ctx->noThrow(false)||1)?$_tmp5:($ctx->noThrow(false)||1?($ctx->NULL):"")):"")):  ;
$_tmp_1 = ' checked="checked"' ;
else:  ;
$_tmp_1 = '' ;
endif ;
?>
<input type="checkbox" name="form[f_access]"<?php echo $_tmp_1 ?>/>
				</td>
			</tr>
			
			<tr>
				<td class="info">Включить</td>
				<td valign="top">
					<?php 
if (($ctx->noThrow(true)||1?(!phptal_isempty($_tmp5=$ctx->path($ctx->page, 'f_active', true)) && ($ctx->noThrow(false)||1)?$_tmp5:($ctx->noThrow(false)||1?($ctx->NULL):"")):"")):  ;
$_tmp_1 = ' checked="checked"' ;
else:  ;
$_tmp_1 = '' ;
endif ;
?>
<input type="checkbox" name="form[f_active]"<?php echo $_tmp_1 ?>/>
				</td>
			</tr>
			
			<tr>
				<td colspan="2" style="text-align:right">
					<input type="submit" value="Сохранить"/>
					<input type="button" onclick="wnd.close()" value="Закрыть"/>
				</td>
				
			</tr>
		</table>

		</form>
</div><?php 
/* end */ ;

}

?><?php /* 
*** DO NOT EDIT THIS FILE ***

Generated by PHPTAL from /home/shasha/www/pr25_autocatalog/source/modules/admin/tmpl/control_pages/form.html (edit that file instead) */; ?>