</form> <div id="txtHint"> <table class="table table-bordered"> <tr><th>Serial</th><th>Date</th> <th>Time</th> <th>Donor ID</th><th>Donor Name</th> <th>Blood Group</th><th>Mobile</th><th>Volunteers</th><th>Collector</th><th>Form No.</th><th>Remarks</th></tr> <?php $serial = 1; while ($row = mysql_fetch_array($result)) { if ($serial % 2 == 0) { ?> <tr class="info"> <?php } $q = "SELECT * FROM `donor` WHERE `donor_id`='{$row['donor_id']}'"; $re = mysql_query($q); $r = mysql_fetch_array($re); echo "<td>" . $serial . "</td><td>" . date("d/m/Y", strtotime($row['date'])) . "</td><td>" . date("h:i A", strtotime($row['time'])) . "</td><td>" . $row['donor_id'] . "</td><td>" . $r['nickname'] . "</td><td>" . $r['blood_group'] . "</td><td>" . $r['mobile'] . "</td><td><b>" . volname($row['volunteer1_tk_collector']) . "</b>," . volname($row['volunteer2']) . "," . volname($row['volunteer3']) . "," . volname($row['volunteer4']) . "," . volname($row['volunteer5']) . "</td><td>" . $row['medical_officer'] . "</td><td>" . $row['form_no'] . "</td><td>" . "Remarkss" . "</td></tr>"; $serial++; } ?> </table> </div> </body> </html> <?php mysql_close();
?> " readonly="readonly"> </div> <div class="form-group col-md-4"> <label class="label label-default">Adder</label> <input class="form-control" name="adder" type="text" size="11" value="<?php echo volname($row['added_by']); ?> " readonly="readonly"> </div> <div class="form-group col-md-4"> <label class="label label-default">Last Updater</label> <input class="form-control" name="lastupdateby" type="text" size="11" value="<?php echo volname($row['last_updated_by']); ?> " readonly="readonly"> </div> <?php if (isset($_SESSION['login_admin'])) { if ($row['role'] != 'donor') { ?> <div class="form-group col-md-6"> <label class="label label-default">Password</label> <input class="form-control" name="password" type="text" size="11" value="<?php echo $row['password']; ?> ">