Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!

modemlooper's buddypress-group-fields.php

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