Changeset 850 for trunk/bp-xprofile/bp-xprofile-classes.php
- Timestamp:
- 01/15/2009 11:18:29 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-classes.php
r825 r850 630 630 631 631 <select name="sort_order_<?php echo $type ?>" id="sort_order_<?php echo $type ?>" > 632 <option value="default" <?php if ( $this->order_by == 'default' ) {?> selected="selected"<?php } ?> > Order Entered</option>633 <option value="asc" <?php if ( $this->order_by == 'asc' ) {?> selected="selected"<?php } ?>> Name - Ascending</option>634 <option value="desc" <?php if ( $this->order_by == 'desc' ) {?> selected="selected"<?php } ?>> Name - Descending</option>632 <option value="default" <?php if ( $this->order_by == 'default' ) {?> selected="selected"<?php } ?> ><?php _e( 'Order Entered', 'buddypress' ) ?></option> 633 <option value="asc" <?php if ( $this->order_by == 'asc' ) {?> selected="selected"<?php } ?>><?php _e( 'Name - Ascending', 'buddypress' ) ?></option> 634 <option value="desc" <?php if ( $this->order_by == 'desc' ) {?> selected="selected"<?php } ?>><?php _e( 'Name - Descending', 'buddypress' ) ?></option> 635 635 </select> 636 636 … … 647 647 <p><?php _e('Option', 'buddypress') ?> <?php echo $j ?>: 648 648 <input type="text" name="<?php echo $type ?>_option[<?php echo $j ?>]" id="<?php echo $type ?>_option<?php echo $j ?>" value="<?php echo $options[$i]->name ?>" /> 649 <input type="<?php echo $default_input ?>" name="isDefault_<?php echo $type ?>_option<?php echo $default_name; ?>" <?php if ( $options[$i]->sort_order == 'CHECKED' ) {?> checked="checked"<?php } ?> " /> Default Value649 <input type="<?php echo $default_input ?>" name="isDefault_<?php echo $type ?>_option<?php echo $default_name; ?>" <?php if ( $options[$i]->sort_order == 'CHECKED' ) {?> checked="checked"<?php } ?> " /> <?php _e( 'Default Value', 'buddypress' ) ?> 650 650 <a href="admin.php?page=xprofile_settings&mode=delete_option&option_id=<?php echo $options[$i]->id ?>" class="ajax-option-delete" id="delete-<?php echo $options[$i]->id ?>">[x]</a></p> 651 651 </p> … … 660 660 661 661 <p><?php _e('Option', 'buddypress') ?> 1: <input type="text" name="<?php echo $type ?>_option[1]" id="<?php echo $type ?>_option1" /> 662 <input type="<?php echo $default_input ?>" name="isDefault_<?php echo $type ?>_option<?php echo $default_name; ?>" id="isDefault_<?php echo $type ?>_option" <?php if ( $options[$i]->sort_order == 'CHECKED' ) {?> checked="checked"<?php } ?>" value="1" /> Default Value662 <input type="<?php echo $default_input ?>" name="isDefault_<?php echo $type ?>_option<?php echo $default_name; ?>" id="isDefault_<?php echo $type ?>_option" <?php if ( $options[$i]->sort_order == 'CHECKED' ) {?> checked="checked"<?php } ?>" value="1" /> <?php _e( 'Default Value', 'buddypress' ) ?> 663 663 <input type="hidden" name="<?php echo $type ?>_option_number" id="<?php echo $type ?>_option_number" value="2" /> 664 664 … … 716 716 <h3><label for="required"><?php _e("Is This Field Required?", 'buddypress') ?> *</label></h3> 717 717 <select name="required" id="required" style="width: 30%"> 718 <option value="0"<?php if ( $this->is_required == '0' ) { ?> selected="selected"<?php } ?>> Not Required</option>719 <option value="1"<?php if ( $this->is_required == '1' ) { ?> selected="selected"<?php } ?>> Required</option>718 <option value="0"<?php if ( $this->is_required == '0' ) { ?> selected="selected"<?php } ?>><?php _e( 'Not Required', 'buddypress' ) ?></option> 719 <option value="1"<?php if ( $this->is_required == '1' ) { ?> selected="selected"<?php } ?>><?php _e( 'Required', 'buddypress' ) ?></option> 720 720 </select> 721 721 </div> … … 724 724 <h3><label for="fieldtype"><?php _e("Field Type", 'buddypress') ?> *</label></h3> 725 725 <select name="fieldtype" id="fieldtype" onchange="show_options(this.value)" style="width: 30%"> 726 <option value="textbox"<?php if ( $this->type == 'textbox' ) {?> selected="selected"<?php } ?>> Text Box</option>727 <option value="textarea"<?php if ( $this->type == 'textarea' ) {?> selected="selected"<?php } ?>> Multi-line Text Box</option>728 <option value="datebox"<?php if ( $this->type == 'datebox' ) {?> selected="selected"<?php } ?>> Date Selector</option>729 <option value="radio"<?php if ( $this->type == 'radio' ) {?> selected="selected"<?php } ?>> Radio Buttons</option>730 <option value="selectbox"<?php if ( $this->type == 'selectbox' ) {?> selected="selected"<?php } ?>> Drop-down Select Box</option>731 <option value="multiselectbox"<?php if ( $this->type == 'multiselectbox' ) {?> selected="selected"<?php } ?>> Multi Select Box</option>732 <option value="checkbox"<?php if ( $this->type == 'checkbox' ) {?> selected="selected"<?php } ?>> Checkboxes</option>726 <option value="textbox"<?php if ( $this->type == 'textbox' ) {?> selected="selected"<?php } ?>><?php _e( 'Text Box', 'buddypress' ) ?></option> 727 <option value="textarea"<?php if ( $this->type == 'textarea' ) {?> selected="selected"<?php } ?>><?php _e( 'Multi-line Text Box', 'buddypress' ) ?></option> 728 <option value="datebox"<?php if ( $this->type == 'datebox' ) {?> selected="selected"<?php } ?>><?php _e( 'Date Selector', 'buddypress' ) ?></option> 729 <option value="radio"<?php if ( $this->type == 'radio' ) {?> selected="selected"<?php } ?>><?php _e( 'Radio Buttons', 'buddypress' ) ?></option> 730 <option value="selectbox"<?php if ( $this->type == 'selectbox' ) {?> selected="selected"<?php } ?>><?php _e( 'Drop Down Select Box', 'buddypress' ) ?></option> 731 <option value="multiselectbox"<?php if ( $this->type == 'multiselectbox' ) {?> selected="selected"<?php } ?>><?php _e( 'Multi Select Box', 'buddypress' ) ?></option> 732 <option value="checkbox"<?php if ( $this->type == 'checkbox' ) {?> selected="selected"<?php } ?>><?php _e( 'Checkboxes', 'buddypress' ) ?></option> 733 733 </select> 734 734 </div> … … 802 802 <div> 803 803 <select name="required" id="required"> 804 <option value="0"<?php if ( $this->is_required == '0' ) { ?> selected="selected"<?php } ?>> Not Required</option>805 <option value="1"<?php if ( $this->is_required == '1' ) { ?> selected="selected"<?php } ?>> Required</option>804 <option value="0"<?php if ( $this->is_required == '0' ) { ?> selected="selected"<?php } ?>><?php _e( 'Not Required', 'buddypress' ) ?></option> 805 <option value="1"<?php if ( $this->is_required == '1' ) { ?> selected="selected"<?php } ?>><?php _e( 'Required', 'buddypress' ) ?></option> 806 806 </select> 807 807 </div> … … 811 811 <select name="fieldtype" id="fieldtype" onchange="show_options(this.value)"> 812 812 <?php if (in_array('textbox', $field_data['Types'])) { ?> 813 <option value="textbox"<?php if ( $this->type == 'textbox' ) {?> selected="selected"<?php } ?>> Text Box</option>813 <option value="textbox"<?php if ( $this->type == 'textbox' ) {?> selected="selected"<?php } ?>><?php _e( 'Text Box', 'buddypress' ) ?></option> 814 814 <?php } if (in_array('textarea', $field_data['Types'])) { ?> 815 <option value="textarea"<?php if ( $this->type == 'textarea' ) {?> selected="selected"<?php } ?>> Multi-line Text Box</option>815 <option value="textarea"<?php if ( $this->type == 'textarea' ) {?> selected="selected"<?php } ?>><?php _e( 'Multi-line Text Box', 'buddypress' ) ?></option> 816 816 <?php } if (in_array('datebox', $field_data['Types'])) { ?> 817 <option value="datebox"<?php if ( $this->type == 'datebox' ) {?> selected="selected"<?php } ?>> Date Selector</option>817 <option value="datebox"<?php if ( $this->type == 'datebox' ) {?> selected="selected"<?php } ?>><?php _e( 'Date Selector', 'buddypress' ) ?></option> 818 818 <?php } if (in_array('radio', $field_data['Types'])) { ?> 819 <option value="radio"<?php if ( $this->type == 'radio' ) {?> selected="selected"<?php } ?>> Radio Buttons</option>819 <option value="radio"<?php if ( $this->type == 'radio' ) {?> selected="selected"<?php } ?>><?php _e( 'Radio Buttons', 'buddypress' ) ?></option> 820 820 <?php } if (in_array('selectbox', $field_data['Types'])) { ?> 821 <option value="selectbox"<?php if ( $this->type == 'selectbox' ) {?> selected="selected"<?php } ?>> Drop-down Select Box</option>821 <option value="selectbox"<?php if ( $this->type == 'selectbox' ) {?> selected="selected"<?php } ?>><?php _e( 'Drop Down Select Box', 'buddypress' ) ?></option> 822 822 <?php } if (in_array('multiselectbox', $field_data['Types'])) { ?> 823 <option value="multiselectbox"<?php if ( $this->type == 'multiselectbox' ) {?> selected="selected"<?php } ?>> Multi Select Box</option>823 <option value="multiselectbox"<?php if ( $this->type == 'multiselectbox' ) {?> selected="selected"<?php } ?>><?php _e( 'Multi Select Box', 'buddypress' ) ?></option> 824 824 <?php } ?> 825 825 </select>
Note: See TracChangeset
for help on using the changeset viewer.