Advertisement
danfolt

Fully working modemlooper's buddypress-group-fields.php

Aug 23rd, 2011
695
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 54.45 KB | None | 0 0
  1. <?php
  2. add_filter( 'groups_custom_group_fields_editable', 'group_details_markup' );
  3. add_action( 'groups_group_details_edited', 'group_details_save' );
  4. add_action( 'groups_created_group',  'group_details_save' );
  5.  
  6. function group_details_markup() {
  7. global $bp, $wpdb;
  8.    
  9.     $group_text = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_text' );
  10.    
  11.     ?>
  12.    
  13.     <hr />
  14.     <h2 for="group-text">Job(s) description</h2>
  15.     <p>(Describe as much as possible the job(s) you offer, pls. provide us with detailed description of the work you offer)</p>
  16.     <textarea name="group-text" id="group-text"><?php echo $group_text ?></textarea>
  17.     <hr />
  18.     <h2>Location</h2>
  19.     <label for="group-country">Country</label>
  20.     <?php $country = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_country' ); ?>
  21.     <select name="group-country">
  22.         <option value="null" <?php if ( $country == '' ) : ?>selected="selected"<?php endif ?>>----------</option>
  23. <option value="Afghanistan" <?php if ( $country == 'Afghanistan' ) : ?>selected="selected"<?php endif ?>>Afghanistan</option>
  24. <option value="Albania" <?php if ( $country == 'Albania' ) : ?>selected="selected"<?php endif ?>>Albania</option>  
  25. <option value="Algeria" <?php if ( $country == 'Algeria' ) : ?>selected="selected"<?php endif ?>>Algeria</option>  
  26. <option value="American Samoa" <?php if ( $country == 'American Samoa' ) : ?>selected="selected"<?php endif ?>>American Samoa</option>
  27. <option value="Andorra" <?php if ( $country == 'Andorra' ) : ?>selected="selected"<?php endif ?>>Andorra</option>  
  28. <option value="Angola" <?php if ( $country == 'Angola' ) : ?>selected="selected"<?php endif ?>>Angola</option>
  29. <option value="Anguilla" <?php if ( $country == 'Anguilla' ) : ?>selected="selected"<?php endif ?>>Anguilla</option>
  30. <option value="Antigua &amp; Barbuda" <?php if ( $country == 'Antigua &amp; Barbuda' ) : ?>selected="selected"<?php endif ?>>Antigua &amp; Barbuda</option>
  31. <option value="Argentina" <?php if ( $country == 'Argentina' ) : ?>selected="selected"<?php endif ?>>Argentina</option>
  32. <option value="Armenia" <?php if ( $country == 'Armenia' ) : ?>selected="selected"<?php endif ?>>Armenia</option>  
  33. <option value="Aruba" <?php if ( $country == 'Aruba' ) : ?>selected="selected"<?php endif ?>>Aruba</option>
  34. <option value="Australia" <?php if ( $country == 'Australia' ) : ?>selected="selected"<?php endif ?>>Australia</option>
  35. <option value="Austria" <?php if ( $country == 'Austria' ) : ?>selected="selected"<?php endif ?>>Austria</option>  
  36. <option value="Azerbaijan" <?php if ( $country == 'Azerbaijan' ) : ?>selected="selected"<?php endif ?>>Azerbaijan</option>
  37. <option value="Bahamas" <?php if ( $country == 'Bahamas' ) : ?>selected="selected"<?php endif ?>>Bahamas</option>  
  38. <option value="Bahrain" <?php if ( $country == 'Bahrain' ) : ?>selected="selected"<?php endif ?>>Bahrain</option>  
  39. <option value="Bangladesh" <?php if ( $country == 'Bangladesh' ) : ?>selected="selected"<?php endif ?>>Bangladesh</option>
  40. <option value="Barbados" <?php if ( $country == 'Barbados' ) : ?>selected="selected"<?php endif ?>>Barbados</option>
  41. <option value="Belarus" <?php if ( $country == 'Belarus' ) : ?>selected="selected"<?php endif ?>>Belarus</option>  
  42. <option value="Belgium" <?php if ( $country == 'Belgium' ) : ?>selected="selected"<?php endif ?>>Belgium</option>  
  43. <option value="Belize" <?php if ( $country == 'Belize' ) : ?>selected="selected"<?php endif ?>>Belize</option>
  44. <option value="Benin" <?php if ( $country == 'Benin' ) : ?>selected="selected"<?php endif ?>>Benin</option>
  45. <option value="Bermuda" <?php if ( $country == 'Bermuda' ) : ?>selected="selected"<?php endif ?>>Bermuda</option>  
  46. <option value="Bhutan" <?php if ( $country == 'Bhutan' ) : ?>selected="selected"<?php endif ?>>Bhutan</option>
  47. <option value="Bolivia" <?php if ( $country == 'Bolivia' ) : ?>selected="selected"<?php endif ?>>Bolivia</option>  
  48. <option value="Bonaire" <?php if ( $country == 'Bonaire' ) : ?>selected="selected"<?php endif ?>>Bonaire</option>  
  49. <option value="Bosnia &amp; Herzegovina" <?php if ( $country == 'Bosnia &amp; Herzegovina' ) : ?>selected="selected"<?php endif ?>>Bosnia &amp; Herzegovina</option>
  50. <option value="Botswana" <?php if ( $country == 'Botswana' ) : ?>selected="selected"<?php endif ?>>Botswana</option>
  51. <option value="Brazil" <?php if ( $country == 'Brazil' ) : ?>selected="selected"<?php endif ?>>Brazil</option>
  52. <option value="British Indian Ocean Ter" <?php if ( $country == 'British Indian Ocean Ter' ) : ?>selected="selected"<?php endif ?>>British Indian Ocean Ter</option>
  53. <option value="Brunei" <?php if ( $country == 'Brunei' ) : ?>selected="selected"<?php endif ?>>Brunei</option>
  54. <option value="Bulgaria" <?php if ( $country == 'Bulgaria' ) : ?>selected="selected"<?php endif ?>>Bulgaria</option>
  55. <option value="Burkina Faso" <?php if ( $country == 'Burkina Faso' ) : ?>selected="selected"<?php endif ?>>Burkina Faso</option>  
  56. <option value="Burundi" <?php if ( $country == 'Burundi' ) : ?>selected="selected"<?php endif ?>>Burundi</option>  
  57. <option value="Cambodia" <?php if ( $country == 'Cambodia' ) : ?>selected="selected"<?php endif ?>>Cambodia</option>
  58. <option value="Cameroon" <?php if ( $country == 'Cameroon' ) : ?>selected="selected"<?php endif ?>>Cameroon</option>
  59. <option value="Canada" <?php if ( $country == 'Canada' ) : ?>selected="selected"<?php endif ?>>Canada</option>
  60. <option value="Canary Islands" <?php if ( $country == 'Canary Islands' ) : ?>selected="selected"<?php endif ?>>Canary Islands</option>
  61. <option value="Cape Verde" <?php if ( $country == 'Cape Verde' ) : ?>selected="selected"<?php endif ?>>Cape Verde</option>
  62. <option value="Cayman Islands" <?php if ( $country == 'Cayman Islands' ) : ?>selected="selected"<?php endif ?>>Cayman Islands</option>
  63. <option value="Central African Republic" <?php if ( $country == 'Central African Republic' ) : ?>selected="selected"<?php endif ?>>Central African Republic</option>
  64. <option value="Chad" <?php if ( $country == 'Chad' ) : ?>selected="selected"<?php endif ?>>Chad</option>
  65. <option value="Channel Islands" <?php if ( $country == 'Channel Islands' ) : ?>selected="selected"<?php endif ?>>Channel Islands</option>
  66. <option value="Chile" <?php if ( $country == 'Chile' ) : ?>selected="selected"<?php endif ?>>Chile</option>
  67. <option value="China" <?php if ( $country == 'China' ) : ?>selected="selected"<?php endif ?>>China</option>
  68. <option value="Christmas Island" <?php if ( $country == 'Christmas Island' ) : ?>selected="selected"<?php endif ?>>Christmas Island</option>
  69. <option value="Cocos Island" <?php if ( $country == 'Cocos Island' ) : ?>selected="selected"<?php endif ?>>Cocos Island</option>  
  70. <option value="Colombia" <?php if ( $country == 'Colombia' ) : ?>selected="selected"<?php endif ?>>Colombia</option>
  71. <option value="Comoros" <?php if ( $country == 'Comoros' ) : ?>selected="selected"<?php endif ?>>Comoros</option>  
  72. <option value="Congo" <?php if ( $country == 'Congo' ) : ?>selected="selected"<?php endif ?>>Congo</option>
  73. <option value="Cook Islands" <?php if ( $country == 'Cook Islands' ) : ?>selected="selected"<?php endif ?>>Cook Islands</option>  
  74. <option value="Costa Rica" <?php if ( $country == 'Costa Rica' ) : ?>selected="selected"<?php endif ?>>Costa Rica</option>
  75. <option value="Cote de Ivoire" <?php if ( $country == 'Cote de Ivoire' ) : ?>selected="selected"<?php endif ?>>Cote D'Ivoire</option>
  76. <option value="Croatia" <?php if ( $country == 'Croatia' ) : ?>selected="selected"<?php endif ?>>Croatia</option>  
  77. <option value="Cuba" <?php if ( $country == 'Cuba' ) : ?>selected="selected"<?php endif ?>>Cuba</option>
  78. <option value="Curaco" <?php if ( $country == 'Curacao' ) : ?>selected="selected"<?php endif ?>>Curacao</option>  
  79. <option value="Cyprus" <?php if ( $country == 'Cyprus' ) : ?>selected="selected"<?php endif ?>>Cyprus</option>
  80. <option value="Czech Republic" <?php if ( $country == 'Czech Republic' ) : ?>selected="selected"<?php endif ?>>Czech Republic</option>
  81. <option value="Denmark" <?php if ( $country == 'Denmark' ) : ?>selected="selected"<?php endif ?>>Denmark</option>  
  82. <option value="Djibouti" <?php if ( $country == 'Djibouti' ) : ?>selected="selected"<?php endif ?>>Djibouti</option>
  83. <option value="Dominica" <?php if ( $country == 'Dominica' ) : ?>selected="selected"<?php endif ?>>Dominica</option>
  84. <option value="Dominican Republic" <?php if ( $country == 'Dominican Republic' ) : ?>selected="selected"<?php endif ?>>Dominican Republic</option>
  85. <option value="East Timor" <?php if ( $country == 'East Timor' ) : ?>selected="selected"<?php endif ?>>East Timor</option>
  86. <option value="Ecuador" <?php if ( $country == 'Ecuador' ) : ?>selected="selected"<?php endif ?>>Ecuador</option>  
  87. <option value="Egypt" <?php if ( $country == 'Egypt' ) : ?>selected="selected"<?php endif ?>>Egypt</option>
  88. <option value="El Salvador" <?php if ( $country == 'El Salvador' ) : ?>selected="selected"<?php endif ?>>El Salvador</option>
  89. <option value="Equatorial Guinea" <?php if ( $country == 'Equatorial Guinea' ) : ?>selected="selected"<?php endif ?>>Equatorial Guinea</option>  
  90. <option value="Eritrea" <?php if ( $country == 'Eritrea' ) : ?>selected="selected"<?php endif ?>>Eritrea</option>  
  91. <option value="Estonia" <?php if ( $country == 'Estonia' ) : ?>selected="selected"<?php endif ?>>Estonia</option>  
  92. <option value="Ethiopia" <?php if ( $country == 'Ethiopia' ) : ?>selected="selected"<?php endif ?>>Ethiopia</option>
  93. <option value="Falkland Islands" <?php if ( $country == 'Falkland Islands' ) : ?>selected="selected"<?php endif ?>>Falkland Islands</option>
  94. <option value="Faroe Islands" <?php if ( $country == 'Faroe Islands' ) : ?>selected="selected"<?php endif ?>>Faroe Islands</option>
  95. <option value="Fiji" <?php if ( $country == 'Fiji' ) : ?>selected="selected"<?php endif ?>>Fiji</option>
  96. <option value="Finland" <?php if ( $country == 'Finland' ) : ?>selected="selected"<?php endif ?>>Finland</option>  
  97. <option value="France" <?php if ( $country == 'France' ) : ?>selected="selected"<?php endif ?>>France</option>
  98. <option value="French Guiana" <?php if ( $country == 'French Guiana' ) : ?>selected="selected"<?php endif ?>>French Guiana</option>
  99. <option value="French Polynesia" <?php if ( $country == 'French Polynesia' ) : ?>selected="selected"<?php endif ?>>French Polynesia</option>
  100. <option value="French Southern Ter" <?php if ( $country == 'French Southern Ter' ) : ?>selected="selected"<?php endif ?>>French Southern Ter</option>
  101. <option value="Gabon" <?php if ( $country == 'Gabon' ) : ?>selected="selected"<?php endif ?>>Gabon</option>
  102. <option value="Gambia" <?php if ( $country == 'Gambia' ) : ?>selected="selected"<?php endif ?>>Gambia</option>
  103. <option value="Georgia" <?php if ( $country == 'Georgia' ) : ?>selected="selected"<?php endif ?>>Georgia</option>  
  104. <option value="Germany" <?php if ( $country == 'Germany' ) : ?>selected="selected"<?php endif ?>>Germany</option>  
  105. <option value="Ghana" <?php if ( $country == 'Ghana' ) : ?>selected="selected"<?php endif ?>>Ghana</option>
  106. <option value="Gibraltar" <?php if ( $country == 'Gibraltar' ) : ?>selected="selected"<?php endif ?>>Gibraltar</option>
  107. <option value="Great Britain" <?php if ( $country == 'Great Britain' ) : ?>selected="selected"<?php endif ?>>Great Britain</option>
  108. <option value="Greece" <?php if ( $country == 'Greece' ) : ?>selected="selected"<?php endif ?>>Greece</option>
  109. <option value="Greenland" <?php if ( $country == 'Greenland' ) : ?>selected="selected"<?php endif ?>>Greenland</option>
  110. <option value="Grenada" <?php if ( $country == 'Grenada' ) : ?>selected="selected"<?php endif ?>>Grenada</option>  
  111. <option value="Guadeloupe" <?php if ( $country == 'Guadeloupe' ) : ?>selected="selected"<?php endif ?>>Guadeloupe</option>
  112. <option value="Guam" <?php if ( $country == 'Guam' ) : ?>selected="selected"<?php endif ?>>Guam</option>
  113. <option value="Guatemala" <?php if ( $country == 'Guatemala' ) : ?>selected="selected"<?php endif ?>>Guatemala</option>
  114. <option value="Guinea" <?php if ( $country == 'Guinea' ) : ?>selected="selected"<?php endif ?>>Guinea</option>
  115. <option value="Guyana" <?php if ( $country == 'Guyana' ) : ?>selected="selected"<?php endif ?>>Guyana</option>
  116. <option value="Haiti" <?php if ( $country == 'Haiti' ) : ?>selected="selected"<?php endif ?>>Haiti</option>
  117. <option value="Hawaii" <?php if ( $country == 'Hawaii' ) : ?>selected="selected"<?php endif ?>>Hawaii</option>
  118. <option value="Honduras" <?php if ( $country == 'Honduras' ) : ?>selected="selected"<?php endif ?>>Honduras</option>
  119. <option value="Hong Kong" <?php if ( $country == 'Hong Kong' ) : ?>selected="selected"<?php endif ?>>Hong Kong</option>
  120. <option value="Hungary" <?php if ( $country == 'Hungary' ) : ?>selected="selected"<?php endif ?>>Hungary</option>  
  121. <option value="Iceland" <?php if ( $country == 'Iceland' ) : ?>selected="selected"<?php endif ?>>Iceland</option>  
  122. <option value="India" <?php if ( $country == 'India' ) : ?>selected="selected"<?php endif ?>>India</option>
  123. <option value="Indonesia" <?php if ( $country == 'Indonesia' ) : ?>selected="selected"<?php endif ?>>Indonesia</option>
  124. <option value="Iran" <?php if ( $country == 'Iran' ) : ?>selected="selected"<?php endif ?>>Iran</option>
  125. <option value="Iraq" <?php if ( $country == 'Iraq' ) : ?>selected="selected"<?php endif ?>>Iraq</option>
  126. <option value="Ireland" <?php if ( $country == 'Ireland' ) : ?>selected="selected"<?php endif ?>>Ireland</option>  
  127. <option value="Isle of Man" <?php if ( $country == 'Isle of Man' ) : ?>selected="selected"<?php endif ?>>Isle of Man</option>
  128. <option value="Israel" <?php if ( $country == 'Israel' ) : ?>selected="selected"<?php endif ?>>Israel</option>
  129. <option value="Italy" <?php if ( $country == 'Italy' ) : ?>selected="selected"<?php endif ?>>Italy</option>
  130. <option value="Jamaica" <?php if ( $country == 'Jamaica' ) : ?>selected="selected"<?php endif ?>>Jamaica</option>  
  131. <option value="Japan" <?php if ( $country == 'Japan' ) : ?>selected="selected"<?php endif ?>>Japan</option>
  132. <option value="Jordan" <?php if ( $country == 'Jordan' ) : ?>selected="selected"<?php endif ?>>Jordan</option>
  133. <option value="Kazakhstan" <?php if ( $country == 'Kazakhstan' ) : ?>selected="selected"<?php endif ?>>Kazakhstan</option>
  134. <option value="Kenya" <?php if ( $country == 'Kenya' ) : ?>selected="selected"<?php endif ?>>Kenya</option>
  135. <option value="Kiribati" <?php if ( $country == 'Kiribati' ) : ?>selected="selected"<?php endif ?>>Kiribati</option>
  136. <option value="Korea North" <?php if ( $country == 'Korea North' ) : ?>selected="selected"<?php endif ?>>Korea North</option>
  137. <option value="Korea Sout" <?php if ( $country == 'Korea South' ) : ?>selected="selected"<?php endif ?>>Korea South</option>
  138. <option value="Kuwait" <?php if ( $country == 'Kuwait' ) : ?>selected="selected"<?php endif ?>>Kuwait</option>
  139. <option value="Kyrgyzstan" <?php if ( $country == 'Kyrgyzstan' ) : ?>selected="selected"<?php endif ?>>Kyrgyzstan</option>
  140. <option value="Laos" <?php if ( $country == 'Laos' ) : ?>selected="selected"<?php endif ?>>Laos</option>
  141. <option value="Latvia" <?php if ( $country == 'Latvia' ) : ?>selected="selected"<?php endif ?>>Latvia</option>
  142. <option value="Lebanon" <?php if ( $country == 'Lebanon' ) : ?>selected="selected"<?php endif ?>>Lebanon</option>  
  143. <option value="Lesotho" <?php if ( $country == 'Lesotho' ) : ?>selected="selected"<?php endif ?>>Lesotho</option>  
  144. <option value="Liberia" <?php if ( $country == 'Liberia' ) : ?>selected="selected"<?php endif ?>>Liberia</option>  
  145. <option value="Libya" <?php if ( $country == 'Libya' ) : ?>selected="selected"<?php endif ?>>Libya</option>
  146. <option value="Liechtenstein" <?php if ( $country == 'Liechtenstein' ) : ?>selected="selected"<?php endif ?>>Liechtenstein</option>
  147. <option value="Lithuania" <?php if ( $country == 'Lithuania' ) : ?>selected="selected"<?php endif ?>>Lithuania</option>
  148. <option value="Luxembourg" <?php if ( $country == 'Luxembourg' ) : ?>selected="selected"<?php endif ?>>Luxembourg</option>
  149. <option value="Macau" <?php if ( $country == 'Macau' ) : ?>selected="selected"<?php endif ?>>Macau</option>
  150. <option value="Macedonia" <?php if ( $country == 'Macedonia' ) : ?>selected="selected"<?php endif ?>>Macedonia</option>
  151. <option value="Madagascar" <?php if ( $country == 'Madagascar' ) : ?>selected="selected"<?php endif ?>>Madagascar</option>
  152. <option value="Malaysia" <?php if ( $country == 'Malaysia' ) : ?>selected="selected"<?php endif ?>>Malaysia</option>
  153. <option value="Malawi" <?php if ( $country == 'Malawi' ) : ?>selected="selected"<?php endif ?>>Malawi</option>
  154. <option value="Maldives" <?php if ( $country == 'Maldives' ) : ?>selected="selected"<?php endif ?>>Maldives</option>
  155. <option value="Mali" <?php if ( $country == 'Mali' ) : ?>selected="selected"<?php endif ?>>Mali</option>
  156. <option value="Malta" <?php if ( $country == 'Malta' ) : ?>selected="selected"<?php endif ?>>Malta</option>
  157. <option value="Marshall Islands" <?php if ( $country == 'Marshall Islands' ) : ?>selected="selected"<?php endif ?>>Marshall Islands</option>
  158. <option value="Martinique" <?php if ( $country == 'Martinique' ) : ?>selected="selected"<?php endif ?>>Martinique</option>
  159. <option value="Mauritania" <?php if ( $country == 'Mauritania' ) : ?>selected="selected"<?php endif ?>>Mauritania</option>
  160. <option value="Mauritius" <?php if ( $country == 'Mauritius' ) : ?>selected="selected"<?php endif ?>>Mauritius</option>
  161. <option value="Mayotte" <?php if ( $country == 'Mayotte' ) : ?>selected="selected"<?php endif ?>>Mayotte</option>  
  162. <option value="Mexico" <?php if ( $country == 'Mexico' ) : ?>selected="selected"<?php endif ?>>Mexico</option>
  163. <option value="Midway Islands" <?php if ( $country == 'Midway Islands' ) : ?>selected="selected"<?php endif ?>>Midway Islands</option>
  164. <option value="Moldova" <?php if ( $country == 'Moldova' ) : ?>selected="selected"<?php endif ?>>Moldova</option>  
  165. <option value="Monaco" <?php if ( $country == 'Monaco' ) : ?>selected="selected"<?php endif ?>>Monaco</option>
  166. <option value="Mongolia" <?php if ( $country == 'Mongolia' ) : ?>selected="selected"<?php endif ?>>Mongolia</option>
  167. <option value="Montserrat" <?php if ( $country == 'Montserrat' ) : ?>selected="selected"<?php endif ?>>Montserrat</option>
  168. <option value="Morocco" <?php if ( $country == 'Morocco' ) : ?>selected="selected"<?php endif ?>>Morocco</option>  
  169. <option value="Mozambique" <?php if ( $country == 'Mozambique' ) : ?>selected="selected"<?php endif ?>>Mozambique</option>
  170. <option value="Myanmar" <?php if ( $country == 'Myanmar' ) : ?>selected="selected"<?php endif ?>>Myanmar</option>  
  171. <option value="Nambia" <?php if ( $country == 'Nambia' ) : ?>selected="selected"<?php endif ?>>Nambia</option>
  172. <option value="Nauru" <?php if ( $country == 'Nauru' ) : ?>selected="selected"<?php endif ?>>Nauru</option>
  173. <option value="Nepal" <?php if ( $country == 'Nepal' ) : ?>selected="selected"<?php endif ?>>Nepal</option>
  174. <option value="Netherland Antilles" <?php if ( $country == 'Netherland Antilles' ) : ?>selected="selected"<?php endif ?>>Netherland Antilles</option>
  175. <option value="Netherlands" <?php if ( $country == 'Netherlands (Holland, Europe)' ) : ?>selected="selected"<?php endif ?>>Netherlands (Holland, Europe)</option>
  176. <option value="Nevis" <?php if ( $country == 'Nevis' ) : ?>selected="selected"<?php endif ?>>Nevis</option>
  177. <option value="New Caledonia" <?php if ( $country == 'New Caledonia' ) : ?>selected="selected"<?php endif ?>>New Caledonia</option>
  178. <option value="New Zealand" <?php if ( $country == 'New Zealand' ) : ?>selected="selected"<?php endif ?>>New Zealand</option>
  179. <option value="Nicaragua" <?php if ( $country == 'Nicaragua' ) : ?>selected="selected"<?php endif ?>>Nicaragua</option>
  180. <option value="Niger" <?php if ( $country == 'Niger' ) : ?>selected="selected"<?php endif ?>>Niger</option>
  181. <option value="Nigeria" <?php if ( $country == 'Nigeria' ) : ?>selected="selected"<?php endif ?>>Nigeria</option>  
  182. <option value="Niue" <?php if ( $country == 'Niue' ) : ?>selected="selected"<?php endif ?>>Niue</option>
  183. <option value="Norfolk Island" <?php if ( $country == 'Norfolk Island' ) : ?>selected="selected"<?php endif ?>>Norfolk Island</option>
  184. <option value="Norway" <?php if ( $country == 'Norway' ) : ?>selected="selected"<?php endif ?>>Norway</option>
  185. <option value="Oman" <?php if ( $country == 'Oman' ) : ?>selected="selected"<?php endif ?>>Oman</option>
  186. <option value="Pakistan" <?php if ( $country == 'Pakistan' ) : ?>selected="selected"<?php endif ?>>Pakistan</option>
  187. <option value="Palau Island" <?php if ( $country == 'Palau Island' ) : ?>selected="selected"<?php endif ?>>Palau Island</option>  
  188. <option value="Palestine" <?php if ( $country == 'Palestine' ) : ?>selected="selected"<?php endif ?>>Palestine</option>
  189. <option value="Panama" <?php if ( $country == 'Panama' ) : ?>selected="selected"<?php endif ?>>Panama</option>
  190. <option value="Papua New Guinea" <?php if ( $country == 'Papua New Guinea' ) : ?>selected="selected"<?php endif ?>>Papua New Guinea</option>
  191. <option value="Paraguay" <?php if ( $country == 'Paraguay' ) : ?>selected="selected"<?php endif ?>>Paraguay</option>
  192. <option value="Peru" <?php if ( $country == 'Peru' ) : ?>selected="selected"<?php endif ?>>Peru</option>
  193. <option value="Phillipines" <?php if ( $country == 'Philippines' ) : ?>selected="selected"<?php endif ?>>Philippines</option>
  194. <option value="Pitcairn Island" <?php if ( $country == 'Pitcairn Island' ) : ?>selected="selected"<?php endif ?>>Pitcairn Island</option>
  195. <option value="Poland" <?php if ( $country == 'Poland' ) : ?>selected="selected"<?php endif ?>>Poland</option>
  196. <option value="Portugal" <?php if ( $country == 'Portugal' ) : ?>selected="selected"<?php endif ?>>Portugal</option>
  197. <option value="Puerto Rico" <?php if ( $country == 'Puerto Rico' ) : ?>selected="selected"<?php endif ?>>Puerto Rico</option>
  198. <option value="Qatar" <?php if ( $country == 'Qatar' ) : ?>selected="selected"<?php endif ?>>Qatar</option>
  199. <option value="Republic of Montenegro" <?php if ( $country == 'Republic of Montenegro' ) : ?>selected="selected"<?php endif ?>>Republic of Montenegro</option>  
  200. <option value="Republic of Serbia" <?php if ( $country == 'Republic of Serbia' ) : ?>selected="selected"<?php endif ?>>Republic of Serbia</option>
  201. <option value="Reunion" <?php if ( $country == 'Reunion' ) : ?>selected="selected"<?php endif ?>>Reunion</option>  
  202. <option value="Romania" <?php if ( $country == 'Romania' ) : ?>selected="selected"<?php endif ?>>Romania</option>  
  203. <option value="Russia" <?php if ( $country == 'Russia' ) : ?>selected="selected"<?php endif ?>>Russia</option>
  204. <option value="Rwanda" <?php if ( $country == 'Rwanda' ) : ?>selected="selected"<?php endif ?>>Rwanda</option>
  205. <option value="St Barthelemy" <?php if ( $country == 'St Barthelemy' ) : ?>selected="selected"<?php endif ?>>St. Barthelemy</option>
  206. <option value="St Eustatius" <?php if ( $country == 'St Eustatius' ) : ?>selected="selected"<?php endif ?>>St. Eustatius</option>  
  207. <option value="St Helena" <?php if ( $country == 'St Helena' ) : ?>selected="selected"<?php endif ?>>St. Helena</option>
  208. <option value="St Kitts-Nevis" <?php if ( $country == 'St Kitts-Nevis' ) : ?>selected="selected"<?php endif ?>>St. Kitts-Nevis</option>
  209. <option value="St Lucia" <?php if ( $country == 'St Lucia' ) : ?>selected="selected"<?php endif ?>>St. Lucia</option>
  210. <option value="St Maarten" <?php if ( $country == 'St Maarten' ) : ?>selected="selected"<?php endif ?>>St. Maarten</option>
  211. <option value="St Pierre &amp; Miquelon" <?php if ( $country == 'St Pierre &amp; Miquelon' ) : ?>selected="selected"<?php endif ?>>St. Pierre &amp; Miquelon</option>
  212. <option value="St Vincent &amp; Grenadines" <?php if ( $country == 'St Vincent &amp; Grenadines' ) : ?>selected="selected"<?php endif ?>>St. Vincent &amp; Grenadines</option>  
  213. <option value="Saipan" <?php if ( $country == 'Saipan' ) : ?>selected="selected"<?php endif ?>>Saipan</option>
  214. <option value="Samoa" <?php if ( $country == 'Samoa' ) : ?>selected="selected"<?php endif ?>>Samoa</option>
  215. <option value="Samoa American" <?php if ( $country == 'Samoa American' ) : ?>selected="selected"<?php endif ?>>Samoa American</option>
  216. <option value="San Marino" <?php if ( $country == 'San Marino' ) : ?>selected="selected"<?php endif ?>>San Marino</option>
  217. <option value="Sao Tome & Principe" <?php if ( $country == 'Sao Tome &amp; Principe' ) : ?>selected="selected"<?php endif ?>>Sao Tome &amp; Principe</option>
  218. <option value="Saudi Arabia" <?php if ( $country == 'Saudi Arabia' ) : ?>selected="selected"<?php endif ?>>Saudi Arabia</option>  
  219. <option value="Senegal" <?php if ( $country == 'Senegal' ) : ?>selected="selected"<?php endif ?>>Senegal</option>  
  220. <option value="Seychelles" <?php if ( $country == 'Seychelles' ) : ?>selected="selected"<?php endif ?>>Seychelles</option>
  221. <option value="Sierra Leone" <?php if ( $country == 'Sierra Leone' ) : ?>selected="selected"<?php endif ?>>Sierra Leone</option>  
  222. <option value="Singapore" <?php if ( $country == 'Singapore' ) : ?>selected="selected"<?php endif ?>>Singapore</option>
  223. <option value="Slovakia" <?php if ( $country == 'Slovakia' ) : ?>selected="selected"<?php endif ?>>Slovakia</option>
  224. <option value="Slovenia" <?php if ( $country == 'Slovenia' ) : ?>selected="selected"<?php endif ?>>Slovenia</option>
  225. <option value="Solomon Islands" <?php if ( $country == 'Solomon Islands' ) : ?>selected="selected"<?php endif ?>>Solomon Islands</option>
  226. <option value="Somalia" <?php if ( $country == 'Somalia' ) : ?>selected="selected"<?php endif ?>>Somalia</option>  
  227. <option value="South Africa" <?php if ( $country == 'South Africa' ) : ?>selected="selected"<?php endif ?>>South Africa</option>  
  228. <option value="Spain" <?php if ( $country == 'Spain' ) : ?>selected="selected"<?php endif ?>>Spain</option>
  229. <option value="Sri Lanka" <?php if ( $country == 'Sri Lanka' ) : ?>selected="selected"<?php endif ?>>Sri Lanka</option>
  230. <option value="Sudan" <?php if ( $country == 'Sudan' ) : ?>selected="selected"<?php endif ?>>Sudan</option>
  231. <option value="Suriname" <?php if ( $country == 'Suriname' ) : ?>selected="selected"<?php endif ?>>Suriname</option>
  232. <option value="Swaziland" <?php if ( $country == 'Swaziland' ) : ?>selected="selected"<?php endif ?>>Swaziland</option>
  233. <option value="Sweden" <?php if ( $country == 'Sweden' ) : ?>selected="selected"<?php endif ?>>Sweden</option>
  234. <option value="Switzerland" <?php if ( $country == 'Switzerland' ) : ?>selected="selected"<?php endif ?>>Switzerland</option>
  235. <option value="Syria" <?php if ( $country == 'Syria' ) : ?>selected="selected"<?php endif ?>>Syria</option>
  236. <option value="Tahiti" <?php if ( $country == 'Tahiti' ) : ?>selected="selected"<?php endif ?>>Tahiti</option>
  237. <option value="Taiwan" <?php if ( $country == 'Taiwan' ) : ?>selected="selected"<?php endif ?>>Taiwan</option>
  238. <option value="Tajikistan" <?php if ( $country == 'Tajikistan' ) : ?>selected="selected"<?php endif ?>>Tajikistan</option>
  239. <option value="Tanzania" <?php if ( $country == 'Tanzania' ) : ?>selected="selected"<?php endif ?>>Tanzania</option>
  240. <option value="Thailand" <?php if ( $country == 'Thailand' ) : ?>selected="selected"<?php endif ?>>Thailand</option>
  241. <option value="Togo" <?php if ( $country == 'Togo' ) : ?>selected="selected"<?php endif ?>>Togo</option>
  242. <option value="Tokelau" <?php if ( $country == 'Tokelau' ) : ?>selected="selected"<?php endif ?>>Tokelau</option>  
  243. <option value="Tonga" <?php if ( $country == 'Tonga' ) : ?>selected="selected"<?php endif ?>>Tonga</option>
  244. <option value="Trinidad &amp; Tobago" <?php if ( $country == 'Trinidad &amp; Tobago' ) : ?>selected="selected"<?php endif ?>>Trinidad &amp; Tobago</option>
  245. <option value="Tunisia" <?php if ( $country == 'Tunisia' ) : ?>selected="selected"<?php endif ?>>Tunisia</option>  
  246. <option value="Turkey" <?php if ( $country == 'Turkey' ) : ?>selected="selected"<?php endif ?>>Turkey</option>
  247. <option value="Turkmenistan" <?php if ( $country == 'Turkmenistan' ) : ?>selected="selected"<?php endif ?>>Turkmenistan</option>  
  248. <option value="Turks &amp; Caicos Is" <?php if ( $country == 'Turks &amp; Caicos Is' ) : ?>selected="selected"<?php endif ?>>Turks &amp; Caicos Is</option>
  249. <option value="Tuvalu" <?php if ( $country == 'Tuvalu' ) : ?>selected="selected"<?php endif ?>>Tuvalu</option>
  250. <option value="Uganda" <?php if ( $country == 'Uganda' ) : ?>selected="selected"<?php endif ?>>Uganda</option>
  251. <option value="Ukraine" <?php if ( $country == 'Ukraine' ) : ?>selected="selected"<?php endif ?>>Ukraine</option>  
  252. <option value="United Arab Erimates" <?php if ( $country == 'United Arab Emirates' ) : ?>selected="selected"<?php endif ?>>United Arab Emirates</option>
  253. <option value="United Kingdom" <?php if ( $country == 'United Kingdom' ) : ?>selected="selected"<?php endif ?>>United Kingdom</option>
  254. <option value="Uraguay" <?php if ( $country == 'Uruguay' ) : ?>selected="selected"<?php endif ?>>Uruguay</option>  
  255. <option value="Uzbekistan" <?php if ( $country == 'Uzbekistan' ) : ?>selected="selected"<?php endif ?>>Uzbekistan</option>
  256. <option value="Vanuatu" <?php if ( $country == 'Vanuatu' ) : ?>selected="selected"<?php endif ?>>Vanuatu</option>  
  257. <option value="Vatican City State" <?php if ( $country == 'Vatican City State' ) : ?>selected="selected"<?php endif ?>>Vatican City State</option>
  258. <option value="Venezuela" <?php if ( $country == 'Venezuela' ) : ?>selected="selected"<?php endif ?>>Venezuela</option>
  259. <option value="Vietnam" <?php if ( $country == 'Vietnam' ) : ?>selected="selected"<?php endif ?>>Vietnam</option>  
  260. <option value="Virgin Islands (Brit)" <?php if ( $country == 'Virgin Islands (Brit)' ) : ?>selected="selected"<?php endif ?>>Virgin Islands (Brit)</option>
  261. <option value="Virgin Islands (USA)" <?php if ( $country == 'Virgin Islands (USA)' ) : ?>selected="selected"<?php endif ?>>Virgin Islands (USA)</option>
  262. <option value="Wake Island" <?php if ( $country == 'Wake Island' ) : ?>selected="selected"<?php endif ?>>Wake Island</option>
  263. <option value="Wallis &amp; Futana Is" <?php if ( $country == 'Wallis &amp; Futana Is' ) : ?>selected="selected"<?php endif ?>>Wallis &amp; Futana Is</option>  
  264. <option value="Yemen" <?php if ( $country == 'Yemen' ) : ?>selected="selected"<?php endif ?>>Yemen</option>
  265. <option value="Zaire" <?php if ( $country == 'Zaire' ) : ?>selected="selected"<?php endif ?>>Zaire</option>
  266. <option value="Zambia" <?php if ( $country == 'Zambia' ) : ?>selected="selected"<?php endif ?>>Zambia</option>
  267. <option value="Zimbabwe" <?php if ( $country == 'Zimbabwe' ) : ?>selected="selected"<?php endif ?>>Zimbabwe</option>
  268.     </select>
  269.    
  270.         <?php $province = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_province' ); ?>
  271.     <label for="group-province">Province</label>
  272.     <input type="text" name="group-province" id="group-province" value="<?php echo $province ?>" />
  273.    
  274.         <?php $city = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_city' ); ?>
  275.     <label for="group-city">City</label>
  276.     <input type="text" name="group-city" id="group-city" value="<?php echo $city ?>" />
  277.    
  278.     <?php $street = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_street' ); ?>
  279.     <label for="group-city">Street</label>
  280.     <input type="text" name="group-street" id="group-street" value="<?php echo $street ?>" />
  281.  
  282. <hr />
  283. <h2>Club & Agency</h2>
  284. <label for="group-status">Status</label>
  285. <?php $status = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_status' ); ?>
  286.     <select name="group-status">
  287.         <option value="null" <?php if ( $status == '' ) : ?>selected="selected"<?php endif ?>>----------</option>
  288.         <option value="open" <?php if ( $status == 'open' ) : ?>selected="selected"<?php endif ?>>open</option>
  289.         <option value="closed" <?php if ( $status == 'closed' ) : ?>selected="selected"<?php endif ?>>closed</option>
  290.         <option value="blacklisted" <?php if ( $status == 'blacklisted' ) : ?>selected="selected"<?php endif ?>>blacklisted</option>
  291. </select>
  292.  
  293. <label for="group-wanted">Employee wanted</label>
  294. <?php $wanted = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_wanted' ); ?>
  295.     <select name="group-wanted">
  296.         <option value="null" <?php if ( $wanted == '' ) : ?>selected="selected"<?php endif ?>>----------</option>
  297.         <option value="hostess" <?php if ( $wanted == 'hostess' ) : ?>selected="selected"<?php endif ?>>Hostess</option>
  298.         <option value="dancer" <?php if ( $wanted == 'dancer' ) : ?>selected="selected"<?php endif ?>>Dancer</option>
  299.         <option value="hostess & dancer" <?php if ( $wanted == 'hostess & dancer' ) : ?>selected="selected"<?php endif ?>>Hostess & Dancer</option>
  300.         <option value="gogo" <?php if ( $wanted == 'gogo' ) : ?>selected="selected"<?php endif ?>>Gogo</option>
  301.         <option value="model" <?php if ( $wanted == 'model' ) : ?>selected="selected"<?php endif ?>>Model</option>
  302.         <option value="bartender & waiter" <?php if ( $wanted == 'bartender & waiter' ) : ?>selected="selected"<?php endif ?>>Bartender & Waiter</option>
  303. </select>
  304.  
  305. <label for="group-type">Agency & Club type</label>
  306.     <?php $type = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_type' ); ?>
  307.     <select name="group-type">
  308.         <option value="null" <?php if ( $type == '' ) : ?>selected="selected"<?php endif ?>>----------</option>
  309.         <option value="agency" <?php if ( $type == 'agency' ) : ?>selected="selected"<?php endif ?>>Agency</option>
  310.         <option value="nightclub" <?php if ( $type == 'nightclub' ) : ?>selected="selected"<?php endif ?>>Nightclub</option>
  311.         <option value="stripclub" <?php if ( $type == 'stripclub' ) : ?>selected="selected"<?php endif ?>>Stripclub</option>
  312.         <option value="lapdance" <?php if ( $type == 'lapdance' ) : ?>selected="selected"<?php endif ?>>Lap dance club</option>
  313.         <option value="tabledance" <?php if ( $type == 'tabledance' ) : ?>selected="selected"<?php endif ?>>Table dance club</option>
  314.         <option value="cabaret" <?php if ( $type == 'cabaret' ) : ?>selected="selected"<?php endif ?>>Cabaret</option>
  315.         <option value="disco" <?php if ( $type == 'disco' ) : ?>selected="selected"<?php endif ?>>Disco</option>
  316.         <option value="restaurant" <?php if ( $type == 'restaurant' ) : ?>selected="selected"<?php endif ?>>Restaurant</option>
  317. </select>
  318.  
  319.     <label for="group-capacity">Girls Capacity</label>
  320.     <?php $capacity = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_capacity' ); ?>
  321.     <select name="group-capacity">
  322.         <option value="null" <?php if ( $capacity == '' ) : ?>selected="selected"<?php endif ?>>----------</option>
  323.         <option value="10" <?php if ( $capacity == '10' ) : ?>selected="selected"<?php endif ?>>5-10</option>
  324.         <option value="20" <?php if ( $capacity == '20' ) : ?>selected="selected"<?php endif ?>>10-20</option>
  325.         <option value="30" <?php if ( $capacity == '30' ) : ?>selected="selected"<?php endif ?>>20-30</option>
  326.         <option value="40" <?php if ( $capacity == '40' ) : ?>selected="selected"<?php endif ?>>30-40</option>
  327.         <option value="50" <?php if ( $capacity == '50' ) : ?>selected="selected"<?php endif ?>>40-50</option>
  328.         <option value="60" <?php if ( $capacity == '60' ) : ?>selected="selected"<?php endif ?>>50+</option>
  329.     </select>
  330.    
  331.     <label for="group-opened">Opened from</label>
  332.     <?php $opened = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_opened' ); ?>
  333.     <select name="group-opened">
  334.         <option value="null" <?php if ( $opened == '' ) : ?>selected="selected"<?php endif ?>>----------</option>
  335.         <option value="0:00" <?php if ( $opened == '0:00' ) : ?>selected="selected"<?php endif ?>>0:00</option>
  336.         <option value="0:30" <?php if ( $opened == '0:30' ) : ?>selected="selected"<?php endif ?>>0:30</option>
  337.         <option value="1:00" <?php if ( $opened == '1:00' ) : ?>selected="selected"<?php endif ?>>1:00</option>
  338.         <option value="1:30" <?php if ( $opened == '1:30' ) : ?>selected="selected"<?php endif ?>>1:30</option>
  339.         <option value="2:00" <?php if ( $opened == '2:00' ) : ?>selected="selected"<?php endif ?>>2:00</option>
  340.         <option value="2:30" <?php if ( $opened == '2:30' ) : ?>selected="selected"<?php endif ?>>2:30</option>
  341.         <option value="3:00" <?php if ( $opened == '3:00' ) : ?>selected="selected"<?php endif ?>>3:00</option>
  342.         <option value="3:30" <?php if ( $opened == '3:30' ) : ?>selected="selected"<?php endif ?>>3:30</option>
  343.         <option value="4:00" <?php if ( $opened == '4:00' ) : ?>selected="selected"<?php endif ?>>4:00</option>
  344.         <option value="4:30" <?php if ( $opened == '4:30' ) : ?>selected="selected"<?php endif ?>>4:30</option>
  345.         <option value="5:00" <?php if ( $opened == '5:00' ) : ?>selected="selected"<?php endif ?>>5:00</option>
  346.         <option value="5:30" <?php if ( $opened == '5:30' ) : ?>selected="selected"<?php endif ?>>5:30</option>
  347.         <option value="6:00" <?php if ( $opened == '6:00' ) : ?>selected="selected"<?php endif ?>>6:00</option>
  348.         <option value="6:30" <?php if ( $opened == '6:30' ) : ?>selected="selected"<?php endif ?>>6:30</option>
  349.         <option value="7:00" <?php if ( $opened == '7:00' ) : ?>selected="selected"<?php endif ?>>7:00</option>
  350.         <option value="7:30" <?php if ( $opened == '7:30' ) : ?>selected="selected"<?php endif ?>>7:30</option>
  351.         <option value="8:00" <?php if ( $opened == '8:00' ) : ?>selected="selected"<?php endif ?>>8:00</option>
  352.         <option value="8:30" <?php if ( $opened == '8:30' ) : ?>selected="selected"<?php endif ?>>8:30</option>
  353.         <option value="9:00" <?php if ( $opened == '9:00' ) : ?>selected="selected"<?php endif ?>>9:00</option>
  354.         <option value="9:30" <?php if ( $opened == '9:30' ) : ?>selected="selected"<?php endif ?>>9:30</option>
  355.         <option value="10:00" <?php if ( $opened == '10:00' ) : ?>selected="selected"<?php endif ?>>10:00</option>
  356.         <option value="10:30" <?php if ( $opened == '10:30' ) : ?>selected="selected"<?php endif ?>>10:30</option>
  357.         <option value="11:00" <?php if ( $opened == '11:00' ) : ?>selected="selected"<?php endif ?>>11:00</option>
  358.         <option value="11:30" <?php if ( $opened == '11:30' ) : ?>selected="selected"<?php endif ?>>11:30</option>
  359.         <option value="12:00" <?php if ( $opened == '12:00' ) : ?>selected="selected"<?php endif ?>>12:00</option>
  360.         <option value="12:30" <?php if ( $opened == '12:30' ) : ?>selected="selected"<?php endif ?>>12:30</option>
  361.         <option value="13:00" <?php if ( $opened == '13:00' ) : ?>selected="selected"<?php endif ?>>13:00</option>
  362.         <option value="13:30" <?php if ( $opened == '13:30' ) : ?>selected="selected"<?php endif ?>>13:30</option>
  363.         <option value="14:00" <?php if ( $opened == '14:00' ) : ?>selected="selected"<?php endif ?>>14:00</option>
  364.         <option value="14:30" <?php if ( $opened == '14:30' ) : ?>selected="selected"<?php endif ?>>14:30</option>
  365.         <option value="15:00" <?php if ( $opened == '15:00' ) : ?>selected="selected"<?php endif ?>>15:00</option>
  366.         <option value="15:30" <?php if ( $opened == '15:30' ) : ?>selected="selected"<?php endif ?>>15:30</option>
  367.         <option value="16:00" <?php if ( $opened == '16:00' ) : ?>selected="selected"<?php endif ?>>16:00</option>
  368.         <option value="16:30" <?php if ( $opened == '16:30' ) : ?>selected="selected"<?php endif ?>>16:30</option>
  369.         <option value="17:00" <?php if ( $opened == '17:00' ) : ?>selected="selected"<?php endif ?>>17:00</option>
  370.         <option value="17:30" <?php if ( $opened == '17:30' ) : ?>selected="selected"<?php endif ?>>17:30</option>
  371.         <option value="18:00" <?php if ( $opened == '18:00' ) : ?>selected="selected"<?php endif ?>>18:00</option>
  372.         <option value="18:30" <?php if ( $opened == '18:30' ) : ?>selected="selected"<?php endif ?>>18:30</option>
  373.         <option value="19:00" <?php if ( $opened == '19:00' ) : ?>selected="selected"<?php endif ?>>19:00</option>
  374.       <option value="19:30" <?php if ( $opened == '19:30' ) : ?>selected="selected"<?php endif ?>>19:30</option>
  375.       <option value="20:00" <?php if ( $opened == '20:00' ) : ?>selected="selected"<?php endif ?>>20:00</option>
  376.         <option value="20:30" <?php if ( $opened == '20:30' ) : ?>selected="selected"<?php endif ?>>20:30</option>
  377.         <option value="21:00" <?php if ( $opened == '21:00' ) : ?>selected="selected"<?php endif ?>>21:00</option>
  378.         <option value="21:30" <?php if ( $opened == '21:30' ) : ?>selected="selected"<?php endif ?>>21:30</option>
  379.         <option value="22:00" <?php if ( $opened == '22:00' ) : ?>selected="selected"<?php endif ?>>22:00</option>
  380.         <option value="22:30" <?php if ( $opened == '22:30' ) : ?>selected="selected"<?php endif ?>>22:30</option>
  381.         <option value="23:00" <?php if ( $opened == '23:00' ) : ?>selected="selected"<?php endif ?>>23:00</option>
  382.         <option value="23:30" <?php if ( $opened == '23:30' ) : ?>selected="selected"<?php endif ?>>23:30</option>
  383.     </select>
  384.    
  385.         <label for="group-closed">Opened till</label>
  386.     <?php $closed = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_closed' ); ?>
  387.     <select name="group-closed">
  388.         <option value="null" <?php if ( $closed == '' ) : ?>selected="selected"<?php endif ?>>----------</option>
  389.         <option value="0:00" <?php if ( $closed == '0:00' ) : ?>selected="selected"<?php endif ?>>0:00</option>
  390.         <option value="0:30" <?php if ( $closed == '0:30' ) : ?>selected="selected"<?php endif ?>>0:30</option>
  391.         <option value="1:00" <?php if ( $closed == '1:00' ) : ?>selected="selected"<?php endif ?>>1:00</option>
  392.         <option value="1:30" <?php if ( $closed == '1:30' ) : ?>selected="selected"<?php endif ?>>1:30</option>
  393.         <option value="2:00" <?php if ( $closed == '2:00' ) : ?>selected="selected"<?php endif ?>>2:00</option>
  394.         <option value="2:30" <?php if ( $closed == '2:30' ) : ?>selected="selected"<?php endif ?>>2:30</option>
  395.         <option value="3:00" <?php if ( $closed == '3:00' ) : ?>selected="selected"<?php endif ?>>3:00</option>
  396.         <option value="3:30" <?php if ( $closed == '3:30' ) : ?>selected="selected"<?php endif ?>>3:30</option>
  397.         <option value="4:00" <?php if ( $closed == '4:00' ) : ?>selected="selected"<?php endif ?>>4:00</option>
  398.         <option value="4:30" <?php if ( $closed == '4:30' ) : ?>selected="selected"<?php endif ?>>4:30</option>
  399.         <option value="5:00" <?php if ( $closed == '5:00' ) : ?>selected="selected"<?php endif ?>>5:00</option>
  400.         <option value="5:30" <?php if ( $closed == '5:30' ) : ?>selected="selected"<?php endif ?>>5:30</option>
  401.         <option value="6:00" <?php if ( $closed == '6:00' ) : ?>selected="selected"<?php endif ?>>6:00</option>
  402.         <option value="6:30" <?php if ( $closed == '6:30' ) : ?>selected="selected"<?php endif ?>>6:30</option>
  403.         <option value="7:00" <?php if ( $closed == '7:00' ) : ?>selected="selected"<?php endif ?>>7:00</option>
  404.         <option value="7:30" <?php if ( $closed == '7:30' ) : ?>selected="selected"<?php endif ?>>7:30</option>
  405.         <option value="8:00" <?php if ( $closed == '8:00' ) : ?>selected="selected"<?php endif ?>>8:00</option>
  406.         <option value="8:30" <?php if ( $closed == '8:30' ) : ?>selected="selected"<?php endif ?>>8:30</option>
  407.         <option value="9:00" <?php if ( $closed == '9:00' ) : ?>selected="selected"<?php endif ?>>9:00</option>
  408.         <option value="9:30" <?php if ( $closed == '9:30' ) : ?>selected="selected"<?php endif ?>>9:30</option>
  409.         <option value="10:00" <?php if ( $closed == '10:00' ) : ?>selected="selected"<?php endif ?>>10:00</option>
  410.         <option value="10:30" <?php if ( $closed == '10:30' ) : ?>selected="selected"<?php endif ?>>10:30</option>
  411.         <option value="11:00" <?php if ( $closed == '11:00' ) : ?>selected="selected"<?php endif ?>>11:00</option>
  412.         <option value="11:30" <?php if ( $closed == '11:30' ) : ?>selected="selected"<?php endif ?>>11:30</option>
  413.         <option value="12:00" <?php if ( $closed == '12:00' ) : ?>selected="selected"<?php endif ?>>12:00</option>
  414.         <option value="12:30" <?php if ( $closed == '12:30' ) : ?>selected="selected"<?php endif ?>>12:30</option>
  415.         <option value="13:00" <?php if ( $closed == '13:00' ) : ?>selected="selected"<?php endif ?>>13:00</option>
  416.         <option value="13:30" <?php if ( $closed == '13:30' ) : ?>selected="selected"<?php endif ?>>13:30</option>
  417.         <option value="14:00" <?php if ( $closed == '14:00' ) : ?>selected="selected"<?php endif ?>>14:00</option>
  418.         <option value="14:30" <?php if ( $closed == '14:30' ) : ?>selected="selected"<?php endif ?>>14:30</option>
  419.         <option value="15:00" <?php if ( $closed == '15:00' ) : ?>selected="selected"<?php endif ?>>15:00</option>
  420.         <option value="15:30" <?php if ( $closed == '15:30' ) : ?>selected="selected"<?php endif ?>>15:30</option>
  421.         <option value="16:00" <?php if ( $closed == '16:00' ) : ?>selected="selected"<?php endif ?>>16:00</option>
  422.         <option value="16:30" <?php if ( $closed == '16:30' ) : ?>selected="selected"<?php endif ?>>16:30</option>
  423.         <option value="17:00" <?php if ( $closed == '17:00' ) : ?>selected="selected"<?php endif ?>>17:00</option>
  424.         <option value="17:30" <?php if ( $closed == '17:30' ) : ?>selected="selected"<?php endif ?>>17:30</option>
  425.         <option value="18:00" <?php if ( $closed == '18:00' ) : ?>selected="selected"<?php endif ?>>18:00</option>
  426.         <option value="18:30" <?php if ( $closed == '18:30' ) : ?>selected="selected"<?php endif ?>>18:30</option>
  427.         <option value="19:00" <?php if ( $closed == '19:00' ) : ?>selected="selected"<?php endif ?>>19:00</option>
  428.       <option value="19:30" <?php if ( $closed == '19:30' ) : ?>selected="selected"<?php endif ?>>19:30</option>
  429.       <option value="20:00" <?php if ( $closed == '20:00' ) : ?>selected="selected"<?php endif ?>>20:00</option>
  430.         <option value="20:30" <?php if ( $closed == '20:30' ) : ?>selected="selected"<?php endif ?>>20:30</option>
  431.         <option value="21:00" <?php if ( $closed == '21:00' ) : ?>selected="selected"<?php endif ?>>21:00</option>
  432.         <option value="21:30" <?php if ( $closed == '21:30' ) : ?>selected="selected"<?php endif ?>>21:30</option>
  433.         <option value="22:00" <?php if ( $closed == '22:00' ) : ?>selected="selected"<?php endif ?>>22:00</option>
  434.         <option value="22:30" <?php if ( $closed == '22:30' ) : ?>selected="selected"<?php endif ?>>22:30</option>
  435.         <option value="23:00" <?php if ( $closed == '23:00' ) : ?>selected="selected"<?php endif ?>>23:00</option>
  436.         <option value="23:30" <?php if ( $closed == '23:30' ) : ?>selected="selected"<?php endif ?>>23:30</option>
  437.     </select>
  438.    
  439.     <label for="group-days">Opening Days</label>
  440.     <?php $days = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_days' ); ?>
  441.     <select name="group-days">
  442.         <option value="null" <?php if ( $days == '' ) : ?>selected="selected"<?php endif ?>>----------</option>
  443.         <option value="3x THU-FRI-SAT" <?php if ( $days == '3x THU-FRI-SAT' ) : ?>selected="selected"<?php endif ?>>3x THU-FRI-SAT</option>
  444.         <option value="4x WED-THU-FRI-SAT" <?php if ( $days == '4x WED-THU-FRI-SAT' ) : ?>selected="selected"<?php endif ?>>4x WED-THU-FRI-SAT</option>
  445.         <option value="4x THU-FRI-SAT-SUN" <?php if ( $days == '4x THU-FRI-SAT-SUN' ) : ?>selected="selected"<?php endif ?>>4x THU-FRI-SAT-SUN</option>
  446.         <option value="5x TUE-WED-THU-FRI-SAT" <?php if ( $days == '5x TUE-WED-THU-FRI-SAT' ) : ?>selected="selected"<?php endif ?>>5x TUE-WED-THU-FRI-SAT</option>
  447.         <option value="5x WED-THU-FRI-SAT-SUN" <?php if ( $days == '5x WED-THU-FRI-SAT-SUN' ) : ?>selected="selected"<?php endif ?>>5x WED-THU-FRI-SAT-SUN</option>
  448.         <option value="5x THU-FRI-SAT-SUN-MON" <?php if ( $days == '5x THU-FRI-SAT-SUN-MON' ) : ?>selected="selected"<?php endif ?>>5x THU-FRI-SAT-SUN-MON</option>
  449.         <option value="6x MON-TUE-WED-THU-FRI-SAT" <?php if ( $days == '6x MON-TUE-WED-THU-FRI-SAT' ) : ?>selected="selected"<?php endif ?>>6x MON-TUE-WED-THU-FRI-SAT</option>
  450.       <option value="6x TUE-WED-THU-FRI-SAT-SUN" <?php if ( $days == '6x TUE-WED-THU-FRI-SAT-SUN' ) : ?>selected="selected"<?php endif ?>>6x TUE-WED-THU-FRI-SAT-SUN</option>
  451.         <option value="6x WED-THU-FRI-SAT-SUN-MON" <?php if ( $days == '6x WED-THU-FRI-SAT-SUN-MON' ) : ?>selected="selected"<?php endif ?>>6x WED-THU-FRI-SAT-SUN-MON</option>
  452.         <option value="6x MON-TUE-WED-THU-FRI-SAT" <?php if ( $days == '6x MON-TUE-WED-THU-FRI-SAT' ) : ?>selected="selected"<?php endif ?>>6x MON-TUE-WED-THU-FRI-SAT</option>
  453.         <option value="6x THU-FRI-SAT-SUN-MON-TUE" <?php if ( $days == '6x THU-FRI-SAT-SUN-MON-TUE' ) : ?>selected="selected"<?php endif ?>>6x THU-FRI-SAT-SUN-MON-TUE</option>
  454.         <option value="7x WED-THU-FRI-SAT-SUN-MON-TUE" <?php if ( $days == '7x WED-THU-FRI-SAT-SUN-MON-TUE' ) : ?>selected="selected"<?php endif ?>>7x WED-THU-FRI-SAT-SUN-MON-TUE</option>
  455. </select>
  456. <hr />
  457. <h2>Contact details</h2>
  458.     <?php $url = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_url' ); ?>
  459.     <label for="group-url">Website</label>
  460.     <input type="text" name="group-url" id="group-url" value="<?php echo $url ?>" />
  461.    
  462.     <?php $phone = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_phone' ); ?>
  463.     <label for="group-phone">Phone</label>
  464.     <input type="text" name="group-phone" id="group-phone" value="<?php echo $phone ?>" />
  465.  
  466.     <?php $email = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_email' ); ?>
  467.     <label for="group-email">Email</label>
  468.     <input type="text" name="group-email" id="group-email" value="<?php echo $email ?>" />
  469.    
  470.     <?php $facebook = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_facebook' ); ?>
  471.     <label for="group-facebook">Facebook</label>
  472.     <input type="text" name="group-facebook" id="group-facebook" value="<?php echo $facebook ?>" />
  473.    
  474.     <?php $myspace = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_myspace' ); ?>
  475.     <label for="group-myspace">MySpace</label>
  476.     <input type="text" name="group-myspace" id="group-myspace" value="<?php echo $myspace ?>" />
  477.  
  478.     <?php $twitter = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_twitter' ); ?>
  479.     <label for="group-twitter">Twitter</label>
  480.     <input type="text" name="group-twitter" id="group-twitter" value="<?php echo $twitter ?>" />
  481.  
  482.     <?php $skype = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_skype' ); ?>
  483.     <label for="group-skype">Skype</label>
  484.     <input type="text" name="group-skype" id="group-skype" value="<?php echo $skype ?>" />
  485.  
  486.     <?php
  487.  
  488.     return;
  489. }
  490.  
  491. function group_details_save( $group_id ) {
  492.     global $bp, $wpdb;
  493.  
  494.     $plain_fields = array(
  495.         'text',
  496.         'country',
  497.         'province',
  498.         'city',
  499.         'street',
  500.         'status',
  501.         'wanted',
  502.         'type',
  503.         'capacity',
  504.         'opened',
  505.         'closed',
  506.         'days',
  507.         'url',
  508.         'phone',
  509.         'email',
  510.         'facebook',
  511.         'myspace',
  512.         'twitter',
  513.         'skype'
  514.     );
  515.  
  516.  
  517.     foreach( $plain_fields as $field ) {
  518.         $key = 'group-' . $field;
  519.         if ( isset( $_POST[$key] ) ) {
  520.             $value = $_POST[$key];
  521.             groups_update_groupmeta( $group_id, 'e2e_' . $field, $value );
  522.         }
  523.     }
  524.  
  525.    
  526. }
  527. function extra_fields_output(){
  528.   global $bp, $wpdb;
  529.   echo '<div class="extras">';
  530.   echo '<h1 style="color:#5F6CB1">CLUB DETAILS</h1>';
  531.   echo '<h3 style="color:#999">Job Type</h3>';
  532.   echo "<li>";
  533.   echo '<strong style="color:#777;text-decoration:underline;">Artist Wanted: </strong>';
  534.   $group_wanted = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_wanted' );
  535.   echo $group_wanted;
  536.   echo "</li>";
  537.   echo "<li>";
  538.   echo '<strong style="color:#777;text-decoration:underline;">Job Description: </strong>';
  539.   $group_text = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_text' );
  540.   echo $group_text;
  541.   echo "</li>";  
  542.   echo "<hr>";
  543.   echo '<h3 style="color:#999">Address</h3>';
  544.   echo "<li>";
  545.   echo '<strong style="color:#777;text-decoration:underline;">Country: </strong>';
  546.   $group_country = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_country' );
  547.   echo $group_country;
  548.   echo "</li>";  
  549.   echo "<li>";
  550.   echo '<strong style="color:#777;text-decoration:underline;">Province: </strong>';
  551.   $group_province = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_province' );
  552.   echo $group_province;
  553.   echo "</li>";
  554.   echo "<li>";
  555.   echo '<strong style="color:#777;text-decoration:underline;">City: </strong>';
  556.   $group_city = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_city' );
  557.   echo $group_city;
  558.   echo "</li>";  
  559.   echo "<li>";
  560.   echo '<strong style="color:#777;text-decoration:underline;">Street: </strong>';
  561.   $group_street = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_street' );
  562.   echo $group_street;
  563.   echo "</li>";
  564.   echo "<hr>";
  565.   echo '<h3 style="color:#999">Club Features</h3>';
  566.   echo "<li>";
  567.   echo '<strong style="color:#777;text-decoration:underline;">Club Status: </strong>';
  568.   $group_status = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_status' );
  569.   echo $group_status;
  570.   echo "</li>";  
  571.   echo "<li>";
  572.   echo '<strong style="color:#777;text-decoration:underline;">Club Type: </strong>';
  573.   $group_type = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_type' );
  574.   echo $group_type;
  575.   echo "</li>";
  576.   echo "<li>";
  577.   echo '<strong style="color:#777;text-decoration:underline;">Club Capacity: </strong>';
  578.   $group_capacity = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_capacity' );
  579.   echo $group_capacity;
  580.   echo "</li>";
  581.   echo "<li>";
  582.   echo '<strong style="color:#777;text-decoration:underline;">Opening Hours: </strong>';
  583.   $group_opened = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_opened' );
  584.   echo $group_opened;
  585.   echo ' - ';
  586.   $group_closed = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_closed' );
  587.   echo $group_closed;
  588.   echo "</li>";
  589.   echo "<li>";
  590.   echo '<strong style="color:#777;text-decoration:underline;">Opening Days: </strong>';
  591.   $group_days = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_days' );
  592.   echo $group_days;
  593.   echo "</li>";
  594.   echo "<hr>";
  595.   echo '<h3 style="color:#999">Contact</h3>';
  596.   echo "<li>";
  597.   echo '<strong style="color:#777;text-decoration:underline;">Website: </strong>';
  598.   $group_url = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_url' );
  599.   echo $group_url;
  600.   echo "</li>";
  601.   echo "<li>";
  602.   echo '<strong style="color:#777;text-decoration:underline;">Phone: </strong>';
  603.   $group_phone = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_phone' );
  604.   echo $group_phone;
  605.   echo "</li>";
  606.   echo "<li>";
  607.   echo '<strong style="color:#777;text-decoration:underline;">Email: </strong>';
  608.   $group_email = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_email' );
  609.   echo $group_email;
  610.   echo "</li>";
  611.   echo "<li>";
  612.   echo '<strong style="color:#777;text-decoration:underline;">Facebook: </strong>';
  613.   $group_facebook = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_facebook' );
  614.   echo $group_facebook;
  615.   echo "</li>";
  616.   echo "<li>";
  617.   echo '<strong style="color:#777;text-decoration:underline;">MySpace: </strong>';
  618.   $group_myspace = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_myspace' );
  619.   echo $group_myspace;
  620.   echo "</li>";
  621.   echo "<li>";
  622.   echo '<strong style="color:#777;text-decoration:underline;">Twitter: </strong>';
  623.   $group_twitter = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_twitter' );
  624.   echo $group_twitter;
  625.   echo "</li>";
  626.   echo "<li>";
  627.   echo '<strong style="color:#777;text-decoration:underline;">Skype: </strong>';
  628.   $group_skype = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_skype' );
  629.   echo $group_skype;
  630.   echo "</li>";
  631.   echo '</div>';
  632.   }
  633. add_action( 'bp_group_header_meta', 'extra_fields_output'  );
  634. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement