# propertyhive/1.4.48/includes/admin/views/html-bulk-edit-property.php

Property Hive, version 1.4.48. 129 lines.

- Page: https://pluginprobe.com/plugins/propertyhive/1.4.48/code/includes/admin/views/html-bulk-edit-property.php
- Raw: https://pluginprobe.com/plugins/propertyhive/1.4.48/raw/includes/admin/views/html-bulk-edit-property.php
- Modified: 2018-02-16T09:41:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/propertyhive/1.4.48/code/includes/admin/views/html-bulk-edit-property.php#L10-L20`.

```php
<?php
/**
 * Admin View: Bulk Edit Properties
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

?>

<fieldset class="inline-edit-col-right">
	<div id="propertyhive-fields-bulk" class="inline-edit-col">

		<?php do_action( 'propertyhive_property_bulk_edit_start' ); ?>

		<div class="inline-edit-group">
			<label class="alignleft">
				<span class="title"><?php _e( 'On Market', 'propertyhive' ); ?></span>
				<span class="input-text-wrap">
					<select class="on_market" name="_on_market">
					<?php
						$options = array(
							'' 	=> __( '— No Change —', 'propertyhive' ),
							'yes' => __( 'Yes', 'propertyhive' ),
							'no' => __( 'No', 'propertyhive' ),
						);
						foreach ($options as $key => $value) {
							echo '<option value="' . esc_attr( $key ) . '">' . $value . '</option>';
						}
					?>
					</select>
				</span>
			</label>
		</div>

		<div class="inline-edit-group">
			<label class="alignleft">
				<span class="title"><?php _e( 'Availability', 'propertyhive' ); ?></span>
				<span class="input-text-wrap">
					<select class="availability" name="_availability">
					<?php

						$options = array( '' => __( '— No Change —', 'propertyhive' ) );
		                $args = array(
		                    'hide_empty' => false,
		                    'parent' => 0
		                );
		                $terms = get_terms( 'availability', $args );

		                $selected_value = '';
		                if ( !empty( $terms ) && !is_wp_error( $terms ) )
		                {
		                    foreach ($terms as $term)
		                    {
		                        $options[$term->term_id] = $term->name;
		                    }
		                }

						foreach ($options as $key => $value) {
							echo '<option value="' . esc_attr( $key ) . '">' . $value . '</option>';
						}
					?>
					</select>
				</span>
			</label>
		</div>

		<div class="inline-edit-group">
			<label class="alignleft">
				<span class="title"><?php _e( 'Negotiator', 'propertyhive' ); ?></span>
				<span class="input-text-wrap">
				<?php
					$args = array(
	                'name' => '_negotiator_id', 
	                'id' => '_negotiator_id', 
	                'show_option_none' => '— No Change —',
	                'role__not_in' => array('property_hive_contact') 
	            );
	            wp_dropdown_users($args);
				?>
				</span>
			</label>
		</div>

		<div class="inline-edit-group">
			<label class="alignleft">
				<span class="title"><?php _e( 'Office', 'propertyhive' ); ?></span>
				<span class="input-text-wrap">
					<select class="office_id" name="_office_id">
					<?php

						$options = array( '' => __( '— No Change —', 'propertyhive' ) );
		                $args = array(
				            'post_type' => 'office',
				            'nopaging' => true,
				            'orderby' => 'title',
				            'order' => 'ASC'
				        );
				        $office_query = new WP_Query($args);
				        
				        if ($office_query->have_posts())
				        {
				            while ($office_query->have_posts())
				            {
				                $office_query->the_post();
				                
				                $options[get_the_ID()] = get_the_title();
				            }
				        }
				        
				        $office_query->reset_postdata();

						foreach ($options as $key => $value) {
							echo '<option value="' . esc_attr( $key ) . '">' . $value . '</option>';
						}
					?>
					</select>
				</span>
			</label>
		</div>

		<?php do_action( 'propertyhive_property_bulk_edit_end' ); ?>

		<input type="hidden" name="propertyhive_bulk_edit" value="1" />
		<input type="hidden" name="propertyhive_bulk_edit_nonce" value="<?php echo wp_create_nonce( 'propertyhive_bulk_edit_nonce' ); ?>" />
	</div>
</fieldset>

```
