"
+ ""
+ " | "
+ " | "
+ " | "
+ " | "
+ "
"
+ ""
+ "| | "
+ " "
+ ""
+ artistName
+ "'s Calendar of Art Events | "
+ "
";
if (opsIds.size() > 0)
{
htmlContent += ""
+ " Open Studios"
+ " | "
+ " Day & Time | "
+ " Studio Address | "
+ "Map | "
+ "
";
for (int i=0; i < opsIds.size(); i++)
{
if (i>0)
{
htmlContent += ""
+ "| | "
+ " | "
+ "
";
}
htmlContent += ""
+ "| | "
+ "
"
+ ""
+ ""
+ ""
+ ""
+ ""
+ "";
if ("East Bay Open Studios (Pro Arts)".equals((String)opsNames.elementAt(i)))
{
htmlContent += "Pro Arts East Bay OPS";
}
else
{
if ("San Francisco OPS".equals((String)opsNames.elementAt(i)))
{
htmlContent += "San Francisco OPS";
}
else
{
htmlContent += (String)opsNames.elementAt(i);
}
}
htmlContent += " | "
+ " | "
+ " | "
+ " ";
if (!"01/01/1970".equals(opsEnddates.elementAt(i)))
{
String dateString = "";
String stday = ((String)opsStartdates.elementAt(i)).substring(3,5);
if ("0".equals(stday.substring(0,1)))
stday = stday.substring(1,2);
String enday = ((String)opsEnddates.elementAt(i)).substring(3,5);
if ("0".equals(enday.substring(0,1)))
enday = enday.substring(1,2);
String stmonth = ((String)opsStartdates.elementAt(i)).substring(0,2);
if ("0".equals(stmonth.substring(0,1)))
stmonth = stmonth.substring(1,2);
if ("1".equals(stmonth)) stmonth = "January";
if ("2".equals(stmonth)) stmonth = "February";
if ("3".equals(stmonth)) stmonth = "March";
if ("4".equals(stmonth)) stmonth = "April";
if ("5".equals(stmonth)) stmonth = "May";
if ("6".equals(stmonth)) stmonth = "June";
if ("7".equals(stmonth)) stmonth = "July";
if ("8".equals(stmonth)) stmonth = "August";
if ("9".equals(stmonth)) stmonth = "September";
if ("10".equals(stmonth)) stmonth = "October";
if ("11".equals(stmonth)) stmonth = "November";
if ("12".equals(stmonth)) stmonth = "December";
String enmonth = ((String)opsEnddates.elementAt(i)).substring(0,2);
if ("0".equals(enmonth.substring(0,1)))
enmonth = enmonth.substring(1,2);
if ("1".equals(enmonth)) enmonth = "January";
if ("2".equals(enmonth)) enmonth = "February";
if ("3".equals(enmonth)) enmonth = "March";
if ("4".equals(enmonth)) enmonth = "April";
if ("5".equals(enmonth)) enmonth = "May";
if ("6".equals(enmonth)) enmonth = "June";
if ("7".equals(enmonth)) enmonth = "July";
if ("8".equals(enmonth)) enmonth = "August";
if ("9".equals(enmonth)) enmonth = "September";
if ("10".equals(enmonth)) enmonth = "October";
if ("11".equals(enmonth)) enmonth = "November";
if ("12".equals(enmonth)) enmonth = "December";
String styear = ((String)opsStartdates.elementAt(i)).substring(6,10);
String enyear = ((String)opsEnddates.elementAt(i)).substring(6,10);
if (enyear.equals(styear))
{
if (enmonth.equals(stmonth))
{
dateString = stmonth+" "+stday+" - "+enday+", "+styear;
}
else
{
dateString = stmonth+" "+stday+" - "+enmonth+" "+enday+", "+styear;
}
}
else
{
dateString = stmonth + " " + stday+", " + styear + " - "
+ enmonth + " " + enday + ", " + enyear;
}
htmlContent += dateString;
}
htmlContent += " | "
+ ""
+ ""
+ ""
+ " | "
+ "";
if (opsAddresses.elementAt(i)!=null)
{
url = "http://maps.yahoo.com/py/maps.py?Pyt=Tmap&";
if (!"".equals(opsAddresses.elementAt(i)))
{
url += "desc="+ substituteTokens(artistName+"-"+(String)opsNames.elementAt(i), " ", "+");
String tempo = substituteTokens((String)opsAddresses.elementAt(i), " ", "+") ;
tempo = substituteTokens(tempo, "\"", "\'");
tempo = substituteTokens(tempo, " ", "");
url += "&addr="+tempo;
htmlContent += opsAddresses.elementAt(i) + " ";
}
if (!"".equals(opsDistricts.elementAt(i)))
{
htmlContent += opsDistricts.elementAt(i)+" ";
}
if (!"".equals(opsCities.elementAt(i)))
{
url += "&city="+substituteTokens((String)opsCities.elementAt(i), " ", "+");
htmlContent += opsCities.elementAt(i);
}
if (!"".equals(opsStates.elementAt(i)))
{
url += "&state="+substituteTokens((String)opsStates.elementAt(i), " ", "+");
htmlContent += ", "+opsStates.elementAt(i);
}
if (!"".equals(opsZips.elementAt(i)))
{
url += "&zip="+substituteTokens((String)opsZips.elementAt(i), " ", "+");
htmlContent += " "+opsZips.elementAt(i);
}
if (!"".equals(opsCountries.elementAt(i)) && !"US".equals(opsCountries.elementAt(i)) )
{
if ( "Canada".equals(opsCountries.elementAt(i)))
{
url += "&country=ca";
}
htmlContent += " "+opsCountries.elementAt(i);
}
else
{
if ( "US".equals(opsCountries.elementAt(i)))
{
url += "&country=us";
}
else
{
url = null;
}
}
}
htmlContent += " | "
+ " | "
+ "";
if ("US".equals(opsCountries.elementAt(i))
|| "Canada".equals(opsCountries.elementAt(i)))
{
if (opsAddresses.elementAt(i)!=null && url != null)
{
htmlContent += "["
+ " "
+ " Map]";
}
}
htmlContent += " | "
+ "
";
if ((String)opsComments.elementAt(i)!=null && !"".equals((String)opsComments.elementAt(i)))
{
htmlContent += ""
+ "| | "
+ "
"
+ ""
+ "| | "
+ ""
+ ""
+ ""
+ "| | "
+ ""
+ convertHTMLSymbolsToPlainNew((String)opsComments.elementAt(i))
+ " | | "
+ "
"
+ ""
+ "| | "
+ "
";
}
htmlContent += ""
+ "| |
";
}
}
if (exIds.size() > 0)
{
htmlContent += "| |
"
+ ""
+ ""
+ " Exhibitions | "
+ " | "
+ " | "
+ " | "
+ "
";
for (int i=0; i < exIds.size(); i++)
{
if (i>0)
{
htmlContent += ""
+ "| | "
+ " | "
+ "
";
}
htmlContent += "| |
"
+ ""
+ ""
+ ""
+ "| "
+ ""
+ (String)exNames.elementAt(i)
+ " | "
+ " | | "
+ " "
+ (String)exStartdates.elementAt(i)+" ";
if (!"01/01/1970".equals(exEnddates.elementAt(i)))
{
String dateString = "";
String stday = ((String)exStartdates.elementAt(i)).substring(3,5);
if ("0".equals(stday.substring(0,1)))
stday = stday.substring(1,2);
String enday = ((String)exEnddates.elementAt(i)).substring(3,5);
if ("0".equals(enday.substring(0,1)))
enday = enday.substring(1,2);
String stmonth = ((String)exStartdates.elementAt(i)).substring(0,2);
if ("0".equals(stmonth.substring(0,1)))
stmonth = stmonth.substring(1,2);
if ("1".equals(stmonth)) stmonth = "January";
if ("2".equals(stmonth)) stmonth = "February";
if ("3".equals(stmonth)) stmonth = "March";
if ("4".equals(stmonth)) stmonth = "April";
if ("5".equals(stmonth)) stmonth = "May";
if ("6".equals(stmonth)) stmonth = "June";
if ("7".equals(stmonth)) stmonth = "July";
if ("8".equals(stmonth)) stmonth = "August";
if ("9".equals(stmonth)) stmonth = "September";
if ("10".equals(stmonth)) stmonth = "October";
if ("11".equals(stmonth)) stmonth = "November";
if ("12".equals(stmonth)) stmonth = "December";
String enmonth = ((String)exEnddates.elementAt(i)).substring(0,2);
if ("0".equals(enmonth.substring(0,1)))
enmonth = enmonth.substring(1,2);
if ("1".equals(enmonth)) enmonth = "January";
if ("2".equals(enmonth)) enmonth = "February";
if ("3".equals(enmonth)) enmonth = "March";
if ("4".equals(enmonth)) enmonth = "April";
if ("5".equals(enmonth)) enmonth = "May";
if ("6".equals(enmonth)) enmonth = "June";
if ("7".equals(enmonth)) enmonth = "July";
if ("8".equals(enmonth)) enmonth = "August";
if ("9".equals(enmonth)) enmonth = "September";
if ("10".equals(enmonth)) enmonth = "October";
if ("11".equals(enmonth)) enmonth = "November";
if ("12".equals(enmonth)) enmonth = "December";
String styear = ((String)exStartdates.elementAt(i)).substring(6,10);
String enyear = ((String)exEnddates.elementAt(i)).substring(6,10);
if (enyear.equals(styear))
{
//2004=2004
if (enmonth.equals(stmonth))
{
//january=january
dateString = stmonth+" "+stday+" - "+enday+", "+styear;
}
else
{
//january!=june
dateString = stmonth+" "+stday+" - "+enmonth+" "+enday+", "+styear;
}
}
else
{
//2004!=2005
dateString = stmonth+" "+stday+", "
+ styear+" - "+enmonth+" "+enday+", "+enyear;
}
htmlContent += dateString;
}
htmlContent += " | "
+ ""
+ ""
+ " | "
+ "";
if (exAddresses.elementAt(i)!=null && !"".equals((String)exAddresses.elementAt(i)))
{
url = "http://maps.yahoo.com/py/maps.py?Pyt=Tmap&";
if (!"".equals(exAddresses.elementAt(i)))
{
url += "desc="+ substituteTokens(artistName+"-"+(String)exNames.elementAt(i), " ", "+");
String tempo = substituteTokens((String)exAddresses.elementAt(i), " ", "+") ;
tempo = substituteTokens(tempo, "\"", "\'");
url += "&addr="+tempo;
htmlContent += exAddresses.elementAt(i)+" ";
}
if (!"".equals(exCities.elementAt(i)))
{
htmlContent += exCities.elementAt(i);
url += "&city="+substituteTokens((String)exCities.elementAt(i), " ", "+");
}
if (!"".equals(exStates.elementAt(i)))
{
htmlContent += ", "+exStates.elementAt(i);
url += "&state="+substituteTokens((String)exStates.elementAt(i), " ", "+");
}
if (!"".equals(exZips.elementAt(i)))
{
url += "&zip="+substituteTokens((String)exZips.elementAt(i), " ", "+");
htmlContent += " "+exZips.elementAt(i);
}
if (!"".equals(exCountries.elementAt(i)) && !"US".equals(exCountries.elementAt(i)) )
{
if ( "Canada".equals(exCountries.elementAt(i)))
{
url += "&country=ca";
}
htmlContent += " "+exCountries.elementAt(i);
}
else
{
if ( "US".equals(exCountries.elementAt(i)))
{
url += "&country=us";
}
else
{
url = null;
}
}
}
htmlContent += " | | "
+ "";
if ("US".equals(exCountries.elementAt(i))
|| "Canada".equals(exCountries.elementAt(i)))
{
if (exAddresses.elementAt(i)!=null && !"".equals((String)exAddresses.elementAt(i)))
{
htmlContent += "["
+ " Map]";
}
}
htmlContent += " |
";
if ((String)exComments.elementAt(i)!=null && !"".equals((String)exComments.elementAt(i)))
{
htmlContent += "| |
"
+ "| | "
+ ""
+ ""
+ ""
+ "| | "
+ ""
+ convertHTMLSymbolsToPlainNew((String)exComments.elementAt(i))
+ " | | "
+ "
"
+ ""
+ "| | "
+ "
";
}
}
}
if (woIds.size() > 0)
{
htmlContent += "| | "
+ "
"
+ ""
+ ""
+ " Workshops | "
+ " | "
+ " | "
+ " | "
+ "
";
for (int i=0; i < woIds.size(); i++)
{
if (i>0)
{
htmlContent += "| | "
+ ""
+ " |
";
}
htmlContent += "| |
"
+ ""
+ ""
+ ""
+ "| "
+ ""
+ (String)woNames.elementAt(i)
+ " | | | "
+ " ";
if (!"01/01/1970".equals(woEnddates.elementAt(i)))
{
String dateString = "";
String stday = ((String)woStartdates.elementAt(i)).substring(3,5);
if ("0".equals(stday.substring(0,1)))
stday = stday.substring(1,2);
String enday = ((String)woEnddates.elementAt(i)).substring(3,5);
if ("0".equals(enday.substring(0,1)))
enday = enday.substring(1,2);
String stmonth = ((String)woStartdates.elementAt(i)).substring(0,2);
if ("0".equals(stmonth.substring(0,1)))
stmonth = stmonth.substring(1,2);
if ("1".equals(stmonth)) stmonth = "January";
if ("2".equals(stmonth)) stmonth = "February";
if ("3".equals(stmonth)) stmonth = "March";
if ("4".equals(stmonth)) stmonth = "April";
if ("5".equals(stmonth)) stmonth = "May";
if ("6".equals(stmonth)) stmonth = "June";
if ("7".equals(stmonth)) stmonth = "July";
if ("8".equals(stmonth)) stmonth = "August";
if ("9".equals(stmonth)) stmonth = "September";
if ("10".equals(stmonth)) stmonth = "October";
if ("11".equals(stmonth)) stmonth = "November";
if ("12".equals(stmonth)) stmonth = "December";
String enmonth = ((String)woEnddates.elementAt(i)).substring(0,2);
if ("0".equals(enmonth.substring(0,1)))
enmonth = enmonth.substring(1,2);
if ("1".equals(enmonth)) enmonth = "January";
if ("2".equals(enmonth)) enmonth = "February";
if ("3".equals(enmonth)) enmonth = "March";
if ("4".equals(enmonth)) enmonth = "April";
if ("5".equals(enmonth)) enmonth = "May";
if ("6".equals(enmonth)) enmonth = "June";
if ("7".equals(enmonth)) enmonth = "July";
if ("8".equals(enmonth)) enmonth = "August";
if ("9".equals(enmonth)) enmonth = "September";
if ("10".equals(enmonth)) enmonth = "October";
if ("11".equals(enmonth)) enmonth = "November";
if ("12".equals(enmonth)) enmonth = "December";
String styear = ((String)woStartdates.elementAt(i)).substring(6,10);
String enyear = ((String)woEnddates.elementAt(i)).substring(6,10);
if (enyear.equals(styear))
{
//2004=2004
if (enmonth.equals(stmonth))
{
//january=january
dateString = stmonth+" "+stday+" - "+enday+", "+styear;
}
else
{
//january!=june
dateString = stmonth+" "+stday+" - "+enmonth+" "+enday+", "+styear;
}
}
else
{
//2004!=2005
dateString = stmonth+" "+stday+", "+styear+" - "+enmonth+" "+enday+", "+enyear;
}
htmlContent += dateString;
}
htmlContent += " | "
+ ""
+ ""
+ ""
+ " | "
+ "";
if (woAddresses.elementAt(i)!=null && !"".equals((String)woAddresses.elementAt(i)))
{
url = "http://maps.yahoo.com/py/maps.py?Pyt=Tmap&";
if (!"".equals(woAddresses.elementAt(i)))
{
url += "desc="+ substituteTokens(artistName+"-"+(String)woNames.elementAt(i), " ", "+");
String tempo = substituteTokens((String)woAddresses.elementAt(i), " ", "+") ;
tempo = substituteTokens(tempo, "\"", "\'");
url += "&addr="+tempo;
htmlContent += woAddresses.elementAt(i)+" ";
}
if (!"".equals(woCities.elementAt(i)))
{
htmlContent += woCities.elementAt(i);
url += "&city="+substituteTokens((String)woCities.elementAt(i), " ", "+");
}
if (!"".equals(woStates.elementAt(i)))
{
htmlContent += ", "+woStates.elementAt(i);
url += "&state="+substituteTokens((String)woStates.elementAt(i), " ", "+");
}
if (!"".equals(woZips.elementAt(i)))
{
url += "&zip="+substituteTokens((String)woZips.elementAt(i), " ", "+");
htmlContent += " "+woZips.elementAt(i);
}
if (!"".equals(woCountries.elementAt(i)) && !"US".equals(woCountries.elementAt(i)) )
{
if ( "Canada".equals(woCountries.elementAt(i)))
{
url += "&country=ca";
}
htmlContent += " "+woCountries.elementAt(i);
}
else
{
if ( "US".equals(woCountries.elementAt(i)))
{
url += "&country=us";
}
else
{
url = null;
}
}
}
htmlContent += " | | "
+ "";
if ("US".equals(woCountries.elementAt(i))
|| "Canada".equals(woCountries.elementAt(i)))
{
if (woAddresses.elementAt(i)!=null && !"".equals((String)woAddresses.elementAt(i)))
{
htmlContent += "["
+ " "
+ " Map]";
}
}
htmlContent += " |
";
if ((String)woComments.elementAt(i)!=null && !"".equals((String)woComments.elementAt(i)))
{
htmlContent += ""
+ "| | "
+ "
"
+ ""
+ "| | "
+ ""
+ "| "
+ " | "
+ ""
+ convertHTMLSymbolsToPlainNew((String)woComments.elementAt(i))
+ " |
| "
+ "
"
+ "| |
";
}
htmlContent += "| |
";
}
}
htmlContent += "| |
";
}
htmlContent += "