Example #1
0
	<?php 
    echo Form::hidden('original_public_flag', isset($album) ? $album->public_flag : null);
    ?>
	<?php 
    echo Form::hidden('is_update_children_public_flag', 0, array('id' => 'is_update_children_public_flag'));
}
?>
	<?php 
echo form_input($val, 'name', isset($album) ? $album->name : '');
?>
	<?php 
echo form_textarea($val, 'body', isset($album) ? $album->body : '');
if (empty($is_edit)) {
    ?>
	<?php 
    echo form_upload_files($files);
}
?>
	<?php 
echo form_public_flag($val, isset($album) ? $album->public_flag : null);
?>
	<?php 
echo form_button('form.do_submit', 'button', '', array('class' => 'btn btn-default btn-primary submit_btn'));
if (isset($is_edit) && $is_edit) {
    ?>
	<?php 
    echo form_anchor(sprintf('album/delete/%d%s', $album->id, get_csrf_query_str()), term('form.do_delete'), array('class' => 'btn btn-default btn-danger'));
}
echo form_close();
?>
</div>
Example #2
0
echo member_name($u, true);
?>
</b>
				<div class="input"><?php 
echo Form::textarea('body', null, $textarea_attrs);
?>
</div>
<?php 
if (!empty($with_uploader)) {
    if (!isset($files)) {
        $files = array();
    }
    ?>
				<div class="upload hidden">
					<?php 
    echo form_upload_files($files, true, false, 'S', $uploader_selects, 'album', null, null, null, null, 'img', 'success', 'sm');
    ?>
				</div>
<?php 
}
?>
				<div class="clearfix">
<?php 
if (!empty($with_uploader)) {
    ?>
					<?php 
    echo btn('form.add_picture', null, 'display_upload_form', true, 'ms', null, array('class' => 'pull-left'), null, 'button', 'display_fileinput-button');
}
?>
					<?php 
echo btn('form.submit', '#', 'btn_comment', true, null, null, $button_attrs, null, 'button', 'btn_comment');
Example #3
0
<div class="well">
<?php 
echo form_open(false);
?>
	<?php 
echo form_upload_files($images, false, true, 'M', array(), 'news', null, sprintf('admin/news/image/api/upload/%d.html', $news->id), '.note-editable', 0);
echo form_close();
?>
</div><!-- well -->
<?php 
echo render('filetmp/_parts/upload_footer');
Example #4
0
    if (conf('image.isModalUpload', 'news')) {
        ?>
	<?php 
        echo form_modal(icon_label('form.add_picture'), sprintf('admin/news/image/api/list/%d.html', $news->id), 'modal_images', term('form.add_picture'), null, term('site.picture'));
    } else {
        $insert_target = null;
        if (conf('image.isInsertBody', 'news')) {
            $insert_target = isset($news) && $news->format == 1 ? '.note-editable' : '#form_body';
        }
        echo form_upload_files($images, false, true, 'M', array(), 'news', term('site.picture'), !empty($news) ? sprintf('admin/news/image/api/upload/%d.json', $news->id) : null, $insert_target);
    }
}
if (conf('file.isEnabled', 'news')) {
    ?>
	<?php 
    echo form_upload_files($files, false, true, 'M', array(), 'news', term('site.file'), null, null, 2, 'file');
}
if (Config::get('news.link.isEnabled')) {
    ?>
	<div class="form-group">
		<?php 
    echo Form::label(term('site.link'), null, array('class' => 'control-label col-sm-2'));
    ?>
		<div class="col-sm-10">
			<div id="link_list">
<?php 
    if (!empty($saved_links)) {
        ?>
			<?php 
        echo render('news/_parts/form/link_uri', array('val' => $val, 'links' => $saved_links, 'is_saved' => true));
    }
Example #5
0
<?php 
echo form_open(true);
if (isset($is_edit) && $is_edit) {
    ?>
	<?php 
    echo Form::hidden('original_public_flag', isset($thread) ? $thread->public_flag : null);
}
?>
	<?php 
echo form_input($val, 'title', isset($thread) ? $thread->title : '');
?>
	<?php 
echo form_textarea($val, 'body', isset($thread) ? $thread->body : '');
?>
	<?php 
echo form_upload_files($images, false, true, 'M', array(), 'thread', term('site.picture'));
?>
	<?php 
echo form_public_flag($val, isset($thread) ? $thread->public_flag : null);
?>
	<?php 
echo form_button(!empty($is_edit) ? 'form.do_edit' : 'form.do_create');
if (!empty($is_edit)) {
    ?>
	<?php 
    echo form_anchor_delete('thread/delete/' . $thread->id);
}
echo form_close();
?>
</div><!-- well -->