$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']); if ($_table == 'fs_members' or $_table == 'fs_member_profile_pic') { echo " <td> "; // $mc-> modals_memeber( $ano , 'init' ); $mc->modal_version1_member($ano, 'init'); echo " </td><tr>"; } else { if ($_table == 'postedlooks') { echo " <td>"; // $mc->modals_look_init( $ano ); $mc->modal_version1_look($ano); echo "</td><tr>"; } else { if ($_table == 'fs_postedarticles') { echo " <td>"; $mc->modal_version1_article($ano); echo "</td><tr>"; } } }
//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']; $_table_id = intval($r[$i]['_table_id']); $_date = intval($r[$i]['_date']); $active = intval($r[$i]['active']); // echo " tres = $tres ano = $ano mno= $mno action = $action _table = $_table _table_id = $_table_id _date = $_date active = $active <br>"; if ($_table == 'fs_members') { // $mc->modals_memeber( $ano ); $mc->modal_version1_member($ano, null, '../../../'); } else { if ($_table == 'postedlooks') { // $mc->modals_look( $_table_id , null , 'home' ); // $mc->modals_look( $ano , null , 'home' ); $mc->modal_version1_look($ano, '../../../', '../../../'); } else { if ($_table == 'fs_postedarticles') { $mc->modal_version1_article($ano, '../../../', '../../../'); } else { if ($_table == 'postedmedia') { } else { if ($_table == 'postedads') { } } }