| |
// Sort News v1.0 - Start addblock
if (isset($sortby)) {
if (!function_exists('sortcmp')) {
function sortcmp($a, $b) {
global $all_array, $sortby;
$news_a = explode('|', $all_array[$a]);
$news_b = explode('|', $all_array[$b]);
return strnatcasecmp($news_a[$sortby], $news_b[$sortby]);
}
}
uksort($all_array, 'sortcmp');
unset($sortby);
}
// To specify sorting, put the following in your include code:
// $sortby = X;
//
// Where X is a number from 0-6, which mean the following:
// 0 = sort by time
// 1 = sort by author
// 2 = sort by title
// 3 = sort by short story
// 4 = sort by long story
// 5 = sort by avatar
// 6 = sort by category
// Sort News v1.0 - End addblock
if (isset($sortby_reverse)) {
if ( $sortby_reverse==1)
arsort($all_array);
}
?>> Encuesta Credencial Universitaria
> IIIer Concurso Literario UTFSM
> ABIERTA POSTULACIONES A PRÁCTICAS PAÍS 2009
> Ciclo Artecámara
|
|
|
|
|
|
|
|
| |
>> Premio al Mérito Académico
>> Factor Actividad ExtraCurricular
// Sort News v1.0 - Start addblock
if (isset($sortby)) {
if (!function_exists('sortcmp')) {
function sortcmp($a, $b) {
global $all_array, $sortby;
$news_a = explode('|', $all_array[$a]);
$news_b = explode('|', $all_array[$b]);
return strnatcasecmp($news_a[$sortby], $news_b[$sortby]);
}
}
uksort($all_array, 'sortcmp');
unset($sortby);
}
// To specify sorting, put the following in your include code:
// $sortby = X;
//
// Where X is a number from 0-6, which mean the following:
// 0 = sort by time
// 1 = sort by author
// 2 = sort by title
// 3 = sort by short story
// 4 = sort by long story
// 5 = sort by avatar
// 6 = sort by category
// Sort News v1.0 - End addblock
if (isset($sortby_reverse)) {
if ( $sortby_reverse==1)
arsort($all_array);
}
?> |
|
|