Ejemplo n.º 1
0
</head>
    <body>

    <div id='body_content'>
        <div id="res" style="display:none" > home_res </div>
        <div id='imgres' style='visibility: visible;display:none'  >  res </div>
        <?php 
// $res = $mc->get_activity( 100 );
// print_r($res);
// for ($i=0; $i < count($res) ; $i++) {
// 	$action = $res[$i]['action'];
// 	$ano = $res[$i]['ano'];
// 	 echo " action = $action  table id = $ano <br>";
// }
$r = $mc->get_activity(25);
$r = $mc->init_latest_modals_separation($r);
$modals_left = $r['init_latest_separated_modals_left'];
$modals_center = $r['init_latest_separated_modals_center'];
$modals_right = $r['init_latest_separated_modals_right'];
// echo " <span style='color:black' > ";
// $mc->print_r1($r);
// echo "</span> ";
echo "\n\t\t\t\t\t\t\t\t\t \t\t\t<div id='res_container'>\n\t\t\t\t\t\t\t\t\t \t\t\t\t<li id='li_res1'>";
echo " <table border='0' cellspacing='0'cellpadding='0' > ";
$modalc = 0;
for ($i = 0; $i < count($modals_left); $i++) {
    // for ($i=0; $i < 0 ; $i++) {
    $modalc++;
    $_table = $modals_left[$i]['_table'];
    $ano = intval($modals_left[$i]['ano']);
Ejemplo n.º 2
0
require "../../../fs_folders/php_functions/function.php";
require "../../../fs_folders/php_functions/library.php";
require "../../../fs_folders/php_functions/source.php";
require "../../../fs_folders/php_functions/myclass.php";
require '../../../fs_folders/php_functions/Database/post.php';
$mc = new myclass();
$mc->post = new Post();
// $profile_tab = $_GET["profile_tab"];
// $mno = $_GET['mno'];
// $pagenum = $_GET["pagenum"];
// $_GET['tres'] = 1;
#  pass the current assign modal who will show next
$counter_tres = intval($_GET['tres']);
//this is next value passed from javascript counter
echo "<Br>  <div  onclick=\"\$('#fs-general-ajax-response').text('')\" >(x)</div>";
$r = $mc->get_activity(200);
$act_len = $mc->get_res_len($r);
$start = $mc->get_loop_start($counter_tres, 25);
$end = $mc->get_loop_end($counter_tres, 25);
$counter = $mc->set_loop_counter(1);
echo " start {$start} end {$end} <br>";
$counter_tres++;
//increment the counter
# add 1 so that when click view more another different modals will show
// $_SESSION['counter']++;
for ($i = $start; $i < $end; $i++) {
    if ($i < $act_len) {
        $ano = intval($r[$i]['ano']);
        $mno = intval($r[$i]['mno']);
        $action = $r[$i]['action'];
        $_table = $r[$i]['_table'];