echo form_open(false, false, array(), array(), '', false); ?> <div class="well"> <h4><?php echo term('album_image', 'form.operation_all'); ?> </h4> <?php echo Form::hidden('clicked_btn', '', array('id' => 'clicked_btn')); ?> <?php echo form_input($val, 'name', ''); if (!$is_disabled_to_update_public_flag) { ?> <?php echo form_public_flag($val, 99); } ?> <?php echo form_input_datetime($val, 'shot_at', '', null, 5); if (is_enabled_map('edit_images', 'album')) { ?> <?php echo form_map($val); } ?> <?php echo form_button('form.edit_all', 'button', 'post', array('id' => 'submit_post')); ?> <?php echo form_button('form.delete_all', 'button', 'delete', array('id' => 'submit_delete', 'class' => 'btn btn-default btn-danger'));
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>
<div class="well"> <?php $label_size = 4; echo form_open(); $fields = $val->fieldset()->field(); foreach ($fields as $name => $field_obj) { $type = $field_obj->get_attribute('type'); if (strpos($name, 'default_public_flag')) { ?> <?php echo form_public_flag($val, Input::post($name), false, $label_size, $name); } elseif ($type == 'select') { ?> <?php echo form_select($val, $name, Input::post($name), 6, $label_size); } elseif ($type == 'radio') { ?> <?php echo form_radio($val, $name, Input::post($name), $label_size, 'inline'); } elseif ($type == 'checkbox') { ?> <?php echo form_checkbox($val, $name, Input::post($name), $label_size, 'inline'); } } ?> <?php echo form_button('form.do_edit', 'submit', 'submit', array(), $label_size); echo form_close(); ?> </div><!-- well -->
echo form_input($val, 'name', isset($profile) ? $profile->name : '', 6, $label_size, 'アンダースコアと半角英数字のみが使えます。識別名にはアルファベットが含まれていなければなりません。'); ?> <?php echo form_select($val, 'display_type', isset($profile) ? $profile->display_type : 0, 6, $label_size); ?> <?php echo form_textarea($val, 'information', isset($profile) ? $profile->information : '', $label_size); ?> <?php echo form_checkbox($val, 'is_required', isset($profile) ? $profile->is_required : array(), $label_size); ?> <?php echo form_radio($val, 'is_edit_public_flag', isset($profile) ? $profile->is_edit_public_flag : 0, $label_size, 'inline'); ?> <?php echo form_public_flag($val, isset($profile) ? $profile->default_public_flag : null, false, $label_size, 'default_public_flag'); ?> <?php echo form_radio($val, 'is_disp_regist', isset($profile) ? $profile->is_disp_regist : 1, $label_size, 'inline'); ?> <?php echo form_radio($val, 'is_disp_config', isset($profile) ? $profile->is_disp_config : 1, $label_size, 'inline'); ?> <?php echo form_radio($val, 'is_disp_search', isset($profile) ? $profile->is_disp_search : 1, $label_size, 'inline'); ?> <?php echo form_select($val, 'form_type', isset($profile) ? $profile->form_type : 'input', 6, $label_size); ?> <?php echo form_select($val, 'value_type', isset($profile) ? $profile->value_type : 'input', 6, $label_size);
<?php $label_col_size = 3; ?> <div class="well"> <?php echo form_open(true); ?> <?php echo form_input($val, 'name', isset($album_image) ? $album_image->name : '', 12, $label_col_size); if (!\Album\Site_Util::check_album_disabled_to_update($album_image->album->foreign_table, true)) { ?> <?php echo form_public_flag($val, isset($album_image) ? $album_image->public_flag : null, false, $label_col_size); ?> <?php echo Form::hidden('original_public_flag', isset($album_image) ? $album_image->public_flag : null); } ?> <?php echo form_input_datetime($val, 'shot_at_time', isset($album_image) ? check_and_get_datatime($album_image->shot_at, 'datetime_minutes') : '', null, 6, $label_col_size); if (is_enabled_map('image/edit', 'album')) { ?> <?php echo form_map($val, null, $location, $label_col_size); } ?> <?php echo form_button('form.do_edit', 'submit', null, null, $label_col_size); ?> </div><!-- well -->
<?php echo form_open(false, true, isset($form_attrs) ? $form_attrs : array()); echo form_file('image'); if (!empty($with_public_flag)) { echo form_public_flag($val); } echo form_button('form.upload'); echo form_close();
} ?> <?php echo form_input($val, 'title', isset($note) ? $note->title : ''); ?> <?php echo form_textarea($val, 'body', isset($note) ? $note->body : ''); ?> <?php echo form_upload_files($files); ?> <?php echo form_input_datetime($val, 'published_at_time', isset($note) ? check_and_get_datatime($note->published_at, 'datetime_minutes') : ''); ?> <?php echo form_public_flag($val, isset($note) ? $note->public_flag : null); if (empty($note->is_published)) { ?> <?php echo form_button('form.draft', 'submit', 'is_draft', array('value' => 1, 'class' => 'btn btn-default btn-inverse submit_btn')); } if (!empty($is_edit)) { ?> <?php echo form_button(empty($note->is_published) ? 'form.do_publish' : 'form.do_edit'); } else { ?> <?php echo form_button('form.do_publish'); } if (!empty($is_edit)) {
<?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 -->