Find a dance
You can click anywhere on an entry to expand it and see more information. Click on the colored links to see the original web posting for the dance. Click on the addresses to see a map to the dance.
1) $icon = "squares"; else if ($ndms) $icon = "nd-ms"; else if ($plus) $icon = "plus"; else if ($adv) $icon = "advanced"; else if ($chal) $icon = "challenge"; else if ($rnd) $icon = "round"; } return ($icon); } function get_calendar () { // $src = file ("http://www.mixed-up.com/calendar/search.html?ALL&Dataonly=2"); $src = file ("../../../beta/data/listings2.src"); $n = count ($src); /* the data is in this format: % LA12c3mDd 2013 Jun 7-9 PACE NorCal, A2-C3, Sandie Bryant, Pleasant Hill, CA http://www.pacenorcal.org/ Diablo Theatre Company, Mapquest: 1948 Oak Park Blvd., Pleasant Hill, CA Latlong: 37.933523,-122.076603,1948 Oak Park Blvd,Pleasant Hill,CA,94523 Friday: Palo Alto Saturday: Martinez Sunday: Pleasant Hill special: pace // we want the data printed in this format:
Program: Plus, Rounds
 
  Newark Pavillion,   6430 Thornton, Newark, CA
  
%s
\n", $year);; echo "\n", $link, $linktext, $remainder); // 5. get the program $program = get_program ($src[$i+1]); printf ("Program: %s\n", $program); // 6. print the extra information if (!trim ($src[$i+5])) // there is no extra information continue; echo "\n"; echo "
 \n";
      for ($j=5; $j<100; $j++) {
        if (!trim ($src[$i+$j])) // there is no more information
          break;
        else if (substr ($src[$i+$j], 0, 7) == "special") // skip this line
	  continue;
        else if (strpos ($src[$i+$j], "Mapquest:") > 0) {
	  $mapquest = strpos ($src[$i+$j], "Mapquest:");
	  $parts = split (",", $src[$i+$j]);
	  // $venue = substr ($src[$i+$j], 0, $mapquest);
	  $address = substr ($src[$i+$j], $mapquest+10);
	  printf ("%s, %s
\n", 
	    $parts[0], substr (trim ($parts[1]), 10), trim ($parts[2]), trim ($parts[3]),
	    $address);
	}
        else if (strpos ($src[$i+$j], "Latlong:") > -1)  // skip this line
	  continue;
	else
	  echo trim ($src[$i+$j]) . "
\n";
      }
      echo "