1) { if($p_nu == $page) { $p_flag = 1; $img_ct = $img_tot-(($page-1)*18); $nu = $img_ct; } else { $p_flag = 1; $img_ct = 18; $nu = 18; } } if($p_nu > 1) { $pc = $p_nu - 1; } else { $pc = 0; } // ############# // ######### $tem = ($img_ct/3); $nu_row = floor($tem); $g2 = 3-floor($g1); $img_ct = 1; if($p_flag >= 1) { $img_nu = (18*$pc)+1; } else { $img_nu = $img_ct+$st; } /// ######## CAPTION FILE $cfile = "mongolia/caption/" . $dir . ".txt"; if (file_exists($cfile)) { $cflag = 1; $captions = file($cfile); } else { $cflag = 0; } ?> James Alexander Glazier - Homepage / Mongolia - <? echo $rq; ?>
Indiana University Department of Physics - James A. Glazier

< Back to main page | Personal: Mongolia:

Personal: Mongolia


1) { print "

\n"; if($cflag == 1) { print ""; echo $captions[0]; print "
\n"; } print "Navigation [page " . $p_nu . " of " . $page . "]   |  "; for($k = 1; $k <=$page; $k++) { // ### if($k == $p_nu) { print "" . $k . ""; print "  |  "; } else { print "" . $k . ""; print "  |  "; } // ### } print "

"; } else { // nothing } ?> \"Mongolia
\n"; } // ############################################################# // ############################################################# // ############################################################# if ($cflag == 1) { // ######################################### // IF there are captions for($i = 0; $i <= ($nu_row-1); $i++) { print "\n"; $img_ctb = $img_ct; for($k = $img_ct; $k <= ($img_ctb+2); $k++) { print "\n"; $img_ct++; $img_nu++; } print "\n"; } print "\n"; //### remaining cells last row $img_left = $nu - $img_ct; for($i = 0; $i <= $img_left; $i++) { print "\n"; $img_ct++; $img_nu++; } if($img_left >= 1) { $extra = 3 - ($img_left+1); } if($extra > 0) { for($k = 1; $k <= $extra; $k++) { print "\n"; } } print "\n"; } // ############################################### /// ############################################## /// ############################################## elseif ($cflag == 0) { // ############################################### for($i = 0; $i <= ($nu_row-1); $i++) { print "\n"; $img_ctb = $img_ct; for($k = $img_ct; $k <= ($img_ctb+2); $k++) { print "\n"; $img_ct++; $img_nu++; } print "\n"; } print "\n"; //### remaining cells last row $img_left = $nu - $img_ct; for($i = 0; $i <= $img_left; $i++) { print "\n"; $img_ct++; $img_nu++; } if($img_left >= 1) { $extra = 3 - ($img_left+1); } if($extra > 0) { for($k = 1; $k <= $extra; $k++) { print "\n"; } } print "\n"; } /// ################################################### /// ################################################### /// ################################################### ?>
"; irowp($nu_row,$img_nu,$img_ct,$ftype,$dir,$i); echo $captions[$img_nu]; print "
"; irowp($nu_row,$img_nu,$img_ct,$ftype,$dir,$i); echo $captions[$img_nu]; print " 
"; irowp($nu_row,$img_nu,$img_ct,$ftype,$dir,$i); print "
"; irowp($nu_row,$img_nu,$img_ct,$ftype,$dir,$i); print " 


Last updated 15 March 2003.