<?php

include "db.php";
include "functions.php";
?>

<?php 
deleteRows();
?>
   
<?php 
include "header.php";
?>
    
<div class="container">
    <div class="col-sm-6">
       <h1 class="text-center">Delete</h1>
    <form action="login_delete.php" method="post">
            <div class="form-group">
               <label for="username">Username</label>
                <input type="text" name="username" class="form-control">
            </div>
            <div class="form-group">
               <label for="password">Password</label>
                <input type="password" name="password" class="form-control">
            </div>
        <div class="form-group">
            <select name="id" id ="">
<?php 
showAllData();
?>
Пример #2
0
             }
         }
     }
     closedir($dh);
     echo "<br />" . xlt('Deleting') . " {$sencdir}";
     if ($PRODUCTION) {
         if (!rmdir($sencdir)) {
             echo "<br />" . xlt('Directory delete failed; continuing.');
         }
     }
 }
 $tres = sqlStatement("SHOW TABLES");
 while ($trow = sqlFetchArray($tres)) {
     $tblname = array_shift($trow);
     if ($tblname == 'patient_data' || $tblname == 'history_data' || $tblname == 'insurance_data') {
         deleteRows($tblname, 'pid', $source_pid);
     } else {
         if ($tblname == 'chart_tracker') {
             updateRows($tblname, 'ct_pid', $source_pid, $target_pid);
         } else {
             if ($tblname == 'documents') {
                 // Documents already handled.
             } else {
                 if ($tblname == 'openemr_postcalendar_events') {
                     updateRows($tblname, 'pc_pid', $source_pid, $target_pid);
                 } else {
                     if ($tblname == 'log') {
                         // Don't mess with log data.
                     } else {
                         $crow = sqlQuery("SHOW COLUMNS FROM `{$tblname}` WHERE " . "`Field` LIKE 'pid' OR `Field` LIKE 'patient_id'");
                         if (!empty($crow['Field'])) {