Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Bootostrap Toggle button seems to refuse working with php
- <div class="article_02 dept-list" style=" max-height:600px; overflow:auto">
- <div style="width:92%; height:auto; padding:10px 4%; color:#FFF" align="left" class="font_palatino_bold department_header">
- DEPARTMENTS
- </div>
- <?php
- while($row = $run->fetch(PDO::FETCH_OBJ))
- {
- $dept = $row->departments;
- $count = $project->projectCount(array('dbh' => $dbh , 'department' => $dept));
- if(strlen($dept) >30)
- {
- $dept_display = substr($dept , 0,30) . ' ...' ;
- }
- else
- {
- $dept_display = $dept;
- }
- ?>
- <a href="department.php?department=<?php print urlencode( $dept ) ?>">
- <div class="departments font_palatino_bold dept-menu" style="font-size:13px; text-transform:capitalize;">
- <?php print strtolower($dept_display) ?> <span class="badge"> <?php print $count ?> </span>
- </div>
- </a>
- <?php
- }
- }
- catch(PDOException $e)
- {
- print $e->getMessage() . "*0";
- } ?>
- </div>
- <div class="dept-list-mobile">
- <div style="width:100%; height:auto; padding:10px 0; background:#0F71BA; font-family:Verdana; color:#fff;" onclick="toggleDept()">
- <span style="margin-left:10px;"> Select Department </span>
- <i class="fa-chevron-down fa" style="float:right; margin-right:10px; cursor:pointer"></i>
- </div>
- <div style="width:100%; background:#fff; height:400px; overflow:auto; display:none" id="dept-sub-list-mobile">
- <?php
- while($row = $run2->fetch(PDO::FETCH_OBJ))
- {
- $dept = $row->departments;
- $count = $project->projectCount(array('dbh' => $dbh , 'department' => $dept));
- if(strlen($dept) >30)
- {
- $dept_display = substr($dept , 0,30) . ' ...' ;
- }
- else
- {
- $dept_display = $dept;
- }
- ?>
- <a href="department.php?department=<?php print urlencode( $dept ) ?>">
- <div class="departments font_palatino_bold dept-menu" style="font-size:13px; text-transform:capitalize;">
- <?php print strtolower($dept_display) ?> <span class="badge"> <?php print $count ?> </span>
- </div>
- </a>
- <?php
- }
- ?>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement