% include_once( "../php_scripts/auto_prepend.php" ); %> <% // the general functions include_once ( "../inc/ac_helpers.php"); $var_array = explode("/",$PATH_INFO); if ( $var_array[1] ) $pid = $var_array[1]; if ( $pid ) { // get the author's id $p_info = get_person_info( $pid ); } // draw the header! include_once( "../inc/header.php" ); %> <% @start_left_column(); start_section( "RECENT ADDITIONS", $ACGLOBALS[LEFT_COL_WIDTH], $ACGLOBALS[LEFT_COL] ); display_latest_people( 10, 1 ); echo "
| Click for more>> |
<% @display_left_column_contents( "articles" ); %> <% echo " "; if ( $author_id ) { @start_section( "About the Author", 210 ); display_author_profile( $author_id ); @end_section( ); } echo "
"; %>
<% @start_main_column(); %>
<% @start_mid_section( "STARS DATABASE", "", ""); %>
<% if ( !$pid) { %>
<% @display_latest_people( 1000, 0 ); %>
<% } else { // display specific article
%>
<% @display_person_bar( $p_info ); %>
<%
// the all-important FILMOGRAPHY!
display_filmography( $pid, '' );
if ( $p_info[birthdate] != "0000-00-00" ) {
display_person_divider( "Birthdate:" );
echo long_date( $p_info[birthdate] );
if ( strlen( $p_info[birthname] ) ) echo " as ".$p_info[birthname]."";
}
if ( strlen( $p_info[birth_location] ) ) {
display_person_divider( "Birthplace:" );
echo $p_info[birth_location];
}
if ( strlen( $p_info[official_url] ) ) {
display_person_divider( "Official Website:" );
echo "Click here to visit the official website";
}
if ( strlen( $p_info[links] ) ) {
display_person_divider( "Links to AC and Online Articles:" );
$links = split( "\n", $p_info[links] );
foreach( $links as $blah => $url ) {
$wording = '';
if ( strlen( $url ) ) {
if ( eregi( "asianconnections.com", $url ) ) { $wording = "AC Article: ";}
}
if ( strlen( $url ) > 40 ) $url= substr( $url, 0, 40 )."...";
$wording .= $url;
echo "• $wording
";
}
}
if ( strlen( $p_info[bio] ) ) {
display_person_divider( "Biography:" );
echo nl2br( stripslashes( $p_info[bio] ) );
}
if ( strlen( $p_info[education] ) ) {
display_person_divider( "Education:" );
echo nl2br( stripslashes( $p_info[education] ) );
}
if ( strlen( $p_info[hobbies] ) ) {
display_person_divider( "Hobbies:" );
echo nl2br( stripslashes( $p_info[hobbies] ) );
}
if ( strlen( $p_info[trivia] ) ) {
display_person_divider( "Trivia:" );
echo nl2br( stripslashes( $p_info[trivia] ) );
}
%>
<% } %>
<% end_mid_section(); %>
<% @start_right_column(); %>
<% @display_right_column_contents(); %>
<% end_content_area(); %>
<%
include_once( "../inc/footer.php" );
%>