示例#1
0
echo html_csrf_token();
?>
	
	<div id="file_upload">	
		<?php 
if (!empty($error)) {
    ?>
			<div class="error"><?php 
    echo $error;
    ?>
</div>
		<?php 
}
?>
		<?php 
echo html_file_input($id);
?>
		<?php 
if ($allowed_extensions) {
    ?>
			<div class="hint"><?php 
    printf(LANG_PARSER_FILE_EXTS_FIELD_HINT, implode(', ', array_map(function ($val) {
        return trim($val);
    }, explode(',', mb_strtoupper($allowed_extensions)))));
    ?>
</div>
		<?php 
}
?>
		<?php 
if ($max_size_mb) {
示例#2
0
文件: file.tpl.php 项目: asphix/icms2
<?php 
}
?>

<div id="file_<?php 
echo $field->element_name;
?>
_upload" <?php 
if ($value) {
    ?>
style="display:none"<?php 
}
?>
>
    <?php 
echo html_file_input($field->element_name);
?>
    <?php 
echo html_input('hidden', $field->element_name, '');
?>
    <?php 
if ($field->data['allowed_extensions']) {
    ?>
        <div class="hint"><?php 
    printf(LANG_PARSER_FILE_EXTS_FIELD_HINT, implode(', ', array_map(function ($val) {
        return trim($val);
    }, explode(',', mb_strtoupper($field->data['allowed_extensions'])))));
    ?>
</div>
    <?php 
}
示例#3
0
?>

    <?php 
if (!$errors) {
    ?>

        <fieldset>

            <legend><?php 
    echo LANG_CP_INSTALL_PACKAGE_FILE;
    ?>
</legend>

            <div class="field">
                <?php 
    echo html_file_input('package');
    ?>
                <div class="hint">
                    <?php 
    echo LANG_CP_INSTALL_PACKAGE_FILE_HINT;
    ?>
                </div>
            </div>

        </fieldset>

    <?php 
}
?>

    <?php