home/abhiramc/public_html/acts.service/dashboard.employee.qrview.php 0000644 00000031617 15021152630 0021732 0 ustar 00 getConnection(); // Check admin permission $usr = new user($db); $adminpermission = $usr->check_admin_permission($_SESSION["user"]); // initialize object $off = new office($db); // read office will be here // query office $stmtoff = $off->off_read(); $numoff = $stmtoff->rowCount(); $num = 0; if(isset($_POST['submit'])){ $emp = new employee($db); // read employee attendance will be here // query employee attendance $emp->ts_brid = $_POST['offbranch']; $stmt = $emp->emp_read(); //$num = $stmt->rowCount(); $brcname = trim($_POST['brchname_text']); //$folder_brname = preg_replace("/\s+/", "", $brcname); // initialize object $stmt = $emp->qr_read(); $num = $stmt->rowCount(); } //$total_pages = ceil($num / $no_of_records_per_page); ?>