Note that there are some explanatory texts on larger screens.

plurals
  1. POPagination using ul tag not work in phone
    primarykey
    data
    text
    <p>I have created pagination on my page using ul tag. It is work well when i access by computer, but when i access by phone, it is not work. I can't even click on it. Do you know what is the problem?</p> <p><strong>Here is the code*</strong></p> <pre><code>$query_pag_num = "SELECT COUNT(*) AS count FROM request WHERE Req_Status = 'Active' and Req_ID NOT IN(SELECT Req_ID from tweets where U_ID='$userId') "; if($intcount&gt;0){ $query_pag_num.=" and Re_Type IN(SELECT interest from user_interest where userid='$userId')"; } $result_pag_num = mysql_query($query_pag_num); $row = mysql_fetch_array($result_pag_num); $count = $row['count']; $no_of_paginations = ceil($count / $per_page); /* ---------------Calculating the starting and endign values for the loop----------------------------------- */ if ($cur_page &gt;= 7) { $start_loop = $cur_page - 3; if ($no_of_paginations &gt; $cur_page + 3) $end_loop = $cur_page + 3; else if ($cur_page &lt;= $no_of_paginations &amp;&amp; $cur_page &gt; $no_of_paginations - 6) { $start_loop = $no_of_paginations - 6; $end_loop = $no_of_paginations; } else { $end_loop = $no_of_paginations; } } else { $start_loop = 1; if ($no_of_paginations &gt; 7) $end_loop = 7; else $end_loop = $no_of_paginations; } /* ----------------------------------------------------------------------------------------------------------- */ $table.="&lt;div id=\"tab_area\"&gt;"; $table .= "&lt;div id='page_tab'&gt;&lt;ul&gt;"; // FOR ENABLING THE FIRST BUTTON if ($first_btn &amp;&amp; $cur_page &gt; 1) { $table .= "&lt;li p='1' class='active'&gt;First&lt;/li&gt;"; } else if ($first_btn) { $table .= "&lt;li p='1' class='inactive'&gt;First&lt;/li&gt;"; } // FOR ENABLING THE PREVIOUS BUTTON if ($previous_btn &amp;&amp; $cur_page &gt; 1) { $pre = $cur_page - 1; $table .= "&lt;li p='$pre' class='active'&gt;Previous&lt;/li&gt;"; } else if ($previous_btn) { $table .= "&lt;li class='inactive'&gt;Previous&lt;/li&gt;"; } for ($i = $start_loop; $i &lt;= $end_loop; $i++) { if ($cur_page == $i) $table .= "&lt;li p='$i' style='color:#fff;background-color:#006699;' class='active'&gt;{$i}&lt;/li&gt;"; else $table .= "&lt;li p='$i' class='active'&gt;{$i}&lt;/li&gt;"; } // TO ENABLE THE NEXT BUTTON if ($next_btn &amp;&amp; $cur_page &lt; $no_of_paginations) { $nex = $cur_page + 1; $table .= "&lt;li p='$nex' class='active'&gt;Next&lt;/li&gt;"; } else if ($next_btn) { $table .= "&lt;li class='inactive'&gt;Next&lt;/li&gt;"; } // TO ENABLE THE END BUTTON if ($last_btn &amp;&amp; $cur_page &lt; $no_of_paginations) { $table.= "&lt;li p='$no_of_paginations' class='active'&gt;Last&lt;/li&gt;"; } else if ($last_btn) { $table .= "&lt;li p='$no_of_paginations' class='inactive'&gt;Last&lt;/li&gt;"; } $table = $table . "&lt;/ul&gt;&lt;/div&gt; &lt;p class=\"alignC mt10 fontS\"&gt;(全3000件中1500件表示)&lt;/p&gt; &lt;/div&gt;"; // Content for pagination echo $table; </code></pre> <p><strong>Here is CSS code</strong></p> <pre><code>#page_tab ul li.inactive, #page_tab ul li.inactive:hover{ display:none; } .data ul li{ list-style: none; font-family: verdana; margin: 5px 0 5px 0; color: #000; font-size: 13px; } #page_tab{ width: 500px; margin: 20px auto 0 auto; text-align: center; font-size: 0.8em; font-style: normal; height: 25px; } #page_tab ul li{ list-style: none; display:inline; border: 1px solid #006699; padding: 2px 6px 2px 6px; margin: 0 3px 0 3px; font-family: arial; font-size: 14px; color: #006699; font-weight: bold; background-color: #f2f2f2; } #page_tab ul li:hover{ color: #fff; background-color: #006699; cursor: pointer; } </code></pre> <p>Thank in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload