Remove unused file
authorHugo Villeneuve <hugo@hugovil.com>
Sat, 27 Feb 2021 19:42:58 +0000 (14:42 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Sat, 27 Feb 2021 19:58:58 +0000 (14:58 -0500)
view.php.bak [deleted file]

diff --git a/view.php.bak b/view.php.bak
deleted file mode 100644 (file)
index 7652e2a..0000000
+++ /dev/null
@@ -1,115 +0,0 @@
-<?php\r
-       include ("include/dbconnect.php");\r
-       include ("include/format.inc.php");\r
-\r
-$resultsnumber = 0;\r
-if ($id) {\r
-\r
-   $sql = "SELECT * FROM $base_from_where AND $table.id='$id'";\r
-   $result = mysqli_query($db, $sql);\r
-   $r = mysqli_fetch_array($result);\r
-\r
-   $resultsnumber = mysqli_num_rows($result);\r
-}\r
-\r
-if( ($resultsnumber == 0 && !isset($all)) || (!$id && !isset($all))) {\r
-   ?><title>Address book <?php echo ($group_name != "" ? "($group_name)":""); ?></title><?php\r
-   include ("include/header.inc.php");\r
-} else {\r
-   if(!$id) {\r
-     ?><title>Address book <?php echo ($group_name != "" ? "($group_name)":""); ?></title><?php\r
-   } else {\r
-     ?><title><?php echo $r["firstname"].(isset($r["middlename"]) ? " ".$r["middlename"] : "")." ".$r["lastname"]." ".($group_name != "" ? "($group_name)":"")."\n"; ?></title><?php\r
-   }\r
-   if( !isset($_GET["print"]))\r
-   {\r
-     include ("include/header.inc.php");\r
-   } else {\r
-     echo '    <style type="text/css"> <!-- body{background:none;}#container{margin:0 2px 0;width:700px;} @media only screen and (max-device-width: 480px) {#container {margin:0 2px 0;width:99%;}} --> </style></head><body><div id="container"><div>';\r
-     // echo '</head><body onload="javascript:window.setTimeout(window.print(self), 1000)";>';\r
-   }\r
-}\r
-\r
-\r
-if ($id) {\r
-if($resultsnumber == 0) {\r
-\r
-   echo "<div class'msgbox'>Please select a valid entry.</div>";\r
-\r
-} else {\r
-\r
-include "include/view.w.php";\r
-showOneEntry($r);\r
-\r
-?>     \r
-<br />\r
-<br />\r
-<?php if( !isset($_GET["print"])) \r
-{ ?>\r
-<form method="get" action="edit<?php echo $page_ext; ?>">\r
-    <input type="hidden" name="id" value="<?php echo $id; ?>" />\r
-<?php if(! $read_only) { ?>\r
-    <input type="submit" name="modifiy" value="<?php echo ucfmsg('MODIFY'); ?>" />\r
-<?php } ?>\r
-</form>\r
-\r
-<form method="get" action="view<?php echo $page_ext; ?>">\r
-    <input type="hidden" name="id" value="<?php echo $id; ?>" />\r
-    <input type="submit" name="print" value="<?php echo ucfmsg('PRINT'); ?>" />\r
-</form>\r
-\r
-<?php\r
-}\r
-}\r
-} else if(isset($_REQUEST['all'])) {\r
-\r
-   include "include/view.w.php";\r
-\r
-   $sql = "SELECT * FROM $base_from_where order by lastname, firstname";\r
-   $result = mysqli_query($db,$sql);\r
-\r
-        $cnt = 0;\r
-        echo "<h1>".ucfmsg('ADDRESS_BOOK').($group ? " ".msg('FOR')." <i>$group</i></h1>" : "</h1>");\r
-        ?>\r
-   <table id="view">\r
-\r
-   <?php\r
-   \r
-   $only_phones = isset($_REQUEST['phones']);\r
-\r
-   $addr_per_line  = ($only_phones ? 4 : 3);\r
-   \r
-   while($r = mysqli_fetch_array($result)) {\r
-        $r = trimAll($r);      \r
-        $address = new Address($r);\r
-        if($address->hasPhone() || !$only_phones) {\r
-       if( ($cnt % (2*$addr_per_line)) == 0)\r
-                       echo "<tr class='odd'>";\r
-       if( ($cnt % (2*$addr_per_line)) == $addr_per_line)\r
-                       echo "<tr class='even'>";\r
-                       \r
-       echo "<td valign='top'>";\r
-          showOneEntry($r, $only_phones);\r
-       echo "</td>";\r
-\r
-       $cnt++;\r
-       if( ($cnt % $addr_per_line) == 0)\r
-                       echo "</tr>";           \r
-     } \r
-   }\r
-   while(($cnt % $addr_per_line) != 0)\r
-   {\r
-      echo "<td>.</td>";       \r
-      $cnt++;\r
-   }\r
-   ?>\r
-\r
-   </tr></table>\r
-<?php\r
-} else {\r
-\r
-       echo "<div class'msgbox'>Please select a valid entry.</div>";\r
-\r
-}\r
-include ("include/footer.inc.php");\r
-?>
\ No newline at end of file