home *** CD-ROM | disk | FTP | other *** search
/ ftp.ee.pdx.edu / 2014.02.ftp.ee.pdx.edu.tar / ftp.ee.pdx.edu / oss / cvs-2004 / bahasa / web / misses.php,v < prev    next >
Text File  |  2003-10-20  |  16KB  |  845 lines

  1. head    1.12;
  2. access;
  3. symbols
  4.     Initial:1.1.1.1 bule:1.1.1;
  5. locks; strict;
  6. comment    @# @;
  7.  
  8.  
  9. 1.12
  10. date    2003.10.20.00.21.45;    author bule;    state Exp;
  11. branches;
  12. next    1.11;
  13.  
  14. 1.11
  15. date    2003.10.18.00.33.42;    author bule;    state Exp;
  16. branches;
  17. next    1.10;
  18.  
  19. 1.10
  20. date    2003.10.06.00.39.27;    author bule;    state Exp;
  21. branches;
  22. next    1.9;
  23.  
  24. 1.9
  25. date    2003.10.01.06.51.29;    author bule;    state Exp;
  26. branches;
  27. next    1.8;
  28.  
  29. 1.8
  30. date    2003.09.04.07.27.00;    author bule;    state Exp;
  31. branches;
  32. next    1.7;
  33.  
  34. 1.7
  35. date    2003.09.02.07.07.24;    author bule;    state Exp;
  36. branches;
  37. next    1.6;
  38.  
  39. 1.6
  40. date    2003.08.31.00.02.48;    author bule;    state Exp;
  41. branches;
  42. next    1.5;
  43.  
  44. 1.5
  45. date    2003.08.30.00.33.38;    author bule;    state Exp;
  46. branches;
  47. next    1.4;
  48.  
  49. 1.4
  50. date    2003.08.30.00.31.53;    author bule;    state Exp;
  51. branches;
  52. next    1.3;
  53.  
  54. 1.3
  55. date    2003.08.28.20.04.48;    author bule;    state Exp;
  56. branches;
  57. next    1.2;
  58.  
  59. 1.2
  60. date    2003.08.19.19.05.16;    author bule;    state Exp;
  61. branches;
  62. next    1.1;
  63.  
  64. 1.1
  65. date    2003.08.12.19.18.23;    author bule;    state Exp;
  66. branches
  67.     1.1.1.1;
  68. next    ;
  69.  
  70. 1.1.1.1
  71. date    2003.08.12.19.18.23;    author bule;    state Exp;
  72. branches;
  73. next    ;
  74.  
  75.  
  76. desc
  77. @@
  78.  
  79.  
  80. 1.12
  81. log
  82. @*** empty log message ***
  83. @
  84. text
  85. @<?
  86. session_start();
  87. require_once("../php/Indonesia.php");
  88. require_once("../php/Web.php");
  89. //////////////////////////////////////////////////////////////////////////////
  90. //////////////////////////////////////////////////////////////////////////////
  91. // Project Name: Bahasa Indonesia Dictionary
  92. // Directory:    bahasa/web
  93. // File Name:    misses.php
  94. // Author(s):    John L. Whiteman
  95. // Created:      June 23, 2003  
  96. // Modified:     October 19, 2003
  97. // Description:  The purpose of this restricted access PHP web 
  98. //               client page is allow an administrator to view 
  99. //               words that were missed (not found in dictionary) 
  100. //               during client searches.  It then allows them to 
  101. //               insert these words as new entries or delete them 
  102. //               if they look like bogus entries. 
  103. // 
  104. // Copyright (c) 2003 John L. Whiteman
  105. //
  106. // Permission is herby granted, free of charge, to any person obtaining a 
  107. // copy of this software, data, and associated documentation files 
  108. // (the "Software"), to deal in the Software without restriction, 
  109. // including without limitation the rights to use, copy, modify, merge, 
  110. // publish, distribute, sublicense, and/or sell copies of Software, and to
  111. // permit persons to whom the Software is furnished to do so, subject to 
  112. // the following conditions:
  113. //
  114. // The above copyright notice and this permission notice shall be 
  115. // included in all copies or substantial portions of the Software.
  116. //
  117. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
  118. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
  119. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  120. // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 
  121. // ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHERE IN AN ACTION OF CONTRACT,
  122. // TORT OR OTHERWISE, ARISING IN THE SOFTWARE.  
  123. //////////////////////////////////////////////////////////////////////////////
  124. //////////////////////////////////////////////////////////////////////////////
  125.  
  126.  
  127. $web = new Web(); 
  128.  
  129. if (!$_SESSION['ADMIN']) {
  130.  
  131.     $web->redirect("login.php");
  132.  
  133.     exit;
  134. }
  135.  
  136. $indonesia = new Indonesia();
  137.  
  138. $status = $indonesia->get_dictionary_status();
  139.  
  140. if ($status["status"] == 1 || $status["status"] == 2) {
  141.  
  142.     $web->redirect("admin.php");
  143.  
  144.     exit;
  145. }
  146.  
  147. if (
  148. (isset($_POST['missed_entries'])) &&
  149. (isset($_POST['id']))) {
  150.  
  151.     foreach($_POST as $name => $value) {
  152.     
  153.         if ($value == "Insert!") {
  154.  
  155.             $pkey = $name;
  156.  
  157.             $web->redirect(
  158.             "insert.php?insert_missed_entry=${pkey}");
  159.  
  160.             exit;
  161.         }
  162.     }
  163. }
  164. ?>
  165. <html>
  166. <head>
  167. <title>Bahasa Indonesia Dictionary: Missed Search Entries</title>
  168.  
  169. <link href="bahasa.css" rel="stylesheet" type="text/css">
  170.  
  171. <script type="text/javascript" src="bahasa.js"></script>
  172.  
  173. <script language="Javascript" type="text/javascript">
  174. <!--
  175.  
  176. var no_send_flag = 0;
  177.  
  178. //////////////////////////////////////////////////////////////////////////////
  179. function verify() {
  180.  
  181.     if (no_send_flag) {
  182.  
  183.         no_send_flag = 0;
  184.  
  185.         return(false);
  186.     }
  187.  
  188.     return(true);
  189. }
  190. //////////////////////////////////////////////////////////////////////////////
  191. function verify_delete_all() {
  192.  
  193.     password = document.delete_all.password.value;
  194.  
  195.     if (is_white_space(password)) {
  196.  
  197.         alert(
  198.         "You must enter a password value!");
  199.  
  200.         document.delete_all.password.focus();
  201.  
  202.         return(false);
  203.     }
  204.  
  205.     return(true);
  206. }
  207. //////////////////////////////////////////////////////////////////////////////
  208. function verify_delete_selected() {
  209.  
  210.     password = document.missed_entries.password.value;
  211.  
  212.     if (is_white_space(password)) {
  213.  
  214.         alert(
  215.         "You must enter a password value!");
  216.  
  217.         document.missed_entries.password.focus();
  218.  
  219.         no_send_flag = 1;
  220.  
  221.         return(false);
  222.     }
  223.  
  224.     return(true);
  225. }
  226. //////////////////////////////////////////////////////////////////////////////
  227. // -->
  228. </script>
  229. </head>
  230. <body>
  231. <?
  232. $web->show_logo("Missed Search Entries");
  233. ?>
  234. <a href="admin.php">Administration</a>
  235. <?
  236. if (
  237. ($_SESSION['NODUP_MISSES']) &&
  238. (isset($_POST['id'])) &&
  239. (isset($_POST['missed_entries'])) &&
  240. ($_SESSION['NODUP_MISSES'] == $_POST['id'])) {
  241.  
  242.     //Do nothing...prevents refresh duplication of last action 
  243.  
  244. } else if ( 
  245. (isset($_POST['missed_entries'])) &&
  246. (isset($_POST['id'])) &&
  247. (isset($_POST['password']))) {
  248.  
  249.     if ($_SESSION['NODUP_MISSES']) {
  250.  
  251.         unset($_SESSION['NODUP_MISSES']);
  252.     }
  253.  
  254.     $errstr = 
  255.     $indonesia->login($_SESSION['ADMIN'], $_POST['password']);
  256.  
  257.     if ($errstr != "") {
  258.  
  259.         print "<br><hr><b>Permission denied!</b><hr>\n";
  260.  
  261.     } else {
  262.  
  263.         $delete_count = 0;
  264.  
  265.         $error_flag = 0;
  266.  
  267.         $selected = 0;
  268.  
  269.         foreach($_POST as $name => $pkey) {
  270.  
  271.             if (
  272.             ($name != "id") && ($name != "missed_entries") && 
  273.             ($name != "password")) {
  274.  
  275.                 $pkey = trim($pkey); 
  276.  
  277.                 $pkey = $web->tohtml($pkey);
  278.  
  279.                 $selected++;
  280.  
  281.                 $errstr =
  282.                 $indonesia->delete_miss($pkey);
  283.  
  284.                 if ($errstr != "") {
  285.  
  286.                     print "<br><hr><b>${errstr}</b><hr>\n";
  287.  
  288.                     $error_flag = 1;
  289.  
  290.                     break;
  291.  
  292.                 } else {
  293.  
  294.                     $delete_count++;
  295.                 }
  296.             }
  297.         }
  298.  
  299.         if (!$selected) {
  300.  
  301.             print 
  302.             "<hr><b>You must select at least one " .
  303.             "missed entries to delete!</b><hr>\n";
  304.  
  305.         } else {
  306.  
  307.             $_SESSION['NODUP_MISSES'] = $_POST['id'];
  308.  
  309.             if (!$error_flag) {
  310.  
  311.                 if ($delete_count > 1) {
  312.  
  313.                     print 
  314.                     "<hr><b>Successfully deleted " .
  315.                     "${delete_count} " .
  316.                     "missed search entries!</b><hr>\n"; 
  317.  
  318.                 } else if ($delete_count == 1) {
  319.  
  320.                     print 
  321.                     "<hr><b>Successfully deleted " .
  322.                     "${delete_count} " .
  323.                     "missed search entry!</b><hr>\n"; 
  324.  
  325.                 } else {
  326.  
  327.                     print 
  328.                     "<hr><b>No missed search " .
  329.                     "entries deleted!" .
  330.                     "</b><hr>\n"; 
  331.                 }
  332.             }
  333.         }
  334.     }
  335.  
  336. } else if (
  337. (isset($_POST['delete_all'])) &&
  338. (isset($_POST['id'])) &&
  339. (isset($_POST['password']))) { 
  340.  
  341.     if (
  342.     (!$_SESSION['NODUP_MISSES'] || 
  343.     (($_SESSION['NODUP_MISSES']) && 
  344.     ($_SESSION['NODUP_MISSES'] != $_POST['id'])))) {
  345.  
  346.         if ($_SESSION['NODUP_MISSES']) {
  347.  
  348.             unset($_SESSION['NODUP_MISSES']);
  349.         }
  350.  
  351.         $errstr = 
  352.         $indonesia->login($_SESSION['ADMIN'], $_POST['password']);
  353.  
  354.         if ($errstr != "") {
  355.  
  356.             print "<br><hr><b>Permission denied!</b><hr>\n";
  357.  
  358.         } else {
  359.  
  360.             $errstr = $indonesia->delete_misses();
  361.  
  362.             if ($errstr != "") {
  363.  
  364.                 print "<hr><b>${errstr}</b><hr>\n";
  365.  
  366.             } else {
  367.  
  368.                 print 
  369.                 "<hr><b>All missed search entries " .
  370.                 "successfully " .
  371.                 "deleted!</b><hr>\n";
  372.  
  373.                 $_SESSION['NODUP_MISSES'] = $_POST['id'];
  374.             }
  375.         }
  376.     }
  377. }
  378.  
  379. show_misses($web, $indonesia);
  380.  
  381. ?>
  382. </body>
  383. </html>
  384. <?
  385. //////////////////////////////////////////////////////////////////////////////
  386. function show_misses($web, $indonesia) {
  387.  
  388.     $misses = array();
  389.  
  390.     $id = uniqid(rand(), true);
  391.  
  392.     $errstr = $indonesia->get_misses($misses);
  393.  
  394.     if ($errstr != "") {
  395.  
  396.         print "<br><hr><b>${errstr}</b><hr><br>\n";
  397.  
  398.     } else {
  399.  
  400.         $total_misses = count($misses);
  401.  
  402.         print 
  403.         "<hr><b>Found ${total_misses} missed search " .
  404.         "entries</b>\n" .
  405.         "<hr><br>\n"; 
  406.  
  407.         if ($total_misses == 0) {
  408.  
  409.             return;
  410.         }
  411.  
  412.         if ($total_misses > 1) {
  413.  
  414.             print 
  415.             "<form name=\"delete_all\" method=\"post\" " .
  416.             "onSubmit='return verify_delete_all()'>\n" .
  417.             "<table cellpadding=\"3\" cellspacing=\"3\" " .
  418.             "border=\"0\">\n" .
  419.             "<tr>\n" .
  420.             "<td>Password:</td>\n" .
  421.             "<td><input type=\"password\" " .
  422.             "name=\"password\"></td>\n" .
  423.             "<td>\n " .
  424.             "<input type=\"submit\" " . 
  425.             "value=\"Delete All Entries!\">\n" .
  426.             "</td></tr></table>\n" .
  427.             "<input type=\"hidden\" name=\"delete_all\" " .
  428.             "value=\"1\">\n" .
  429.             "<input type=\"hidden\" name=\"id\" " .
  430.             "value=\"${id}\">\n" .
  431.             "</form><hr>\n"; 
  432.         }
  433.  
  434.         print 
  435.         "<form name=\"missed_entries\" method=\"post\" " .
  436.         "onSubmit='return verify()'>\n" .
  437.         "<table cellpadding=\"3\" cellspacing=\"3\" " .
  438.         "border=\"1\">\n"; 
  439.  
  440.         for($i = 0; $i < $total_misses; $i++) {
  441.  
  442.             if ($i == 0) {
  443.  
  444.                 print 
  445.                 "<tr>\n" .
  446.                 "<th>PKEY</th>\n" .
  447.                 "<th>Entry</th>\n" .
  448.                 "<th>Language</th>\n" .
  449.                 "<th>Count</th>\n" .
  450.                 "<th>Created</th>\n" .
  451.                 "<th>Modified</th>\n" .
  452.                 "<th>Insert</th>\n" .
  453.                 "<th>\n" .
  454.                 "<input type=\"submit\" " .
  455.                 "value=\"Delete Selected Entries!\" " .
  456.                 "onClick='return verify_delete_selected()'>" .
  457.                 "<br>\n" .
  458.                 "Password:<br>\n" .
  459.                 "<input type=\"password\" " .
  460.                 "name=\"password\">\n" .
  461.                 "</th>\n" .    
  462.                 "</tr>\n";
  463.             }
  464.  
  465.             $pkey = $web->tohtml($misses[$i]["pkey"]);
  466.             $entry = $web->tohtml($misses[$i]["entry"]);
  467.             $language = $web->tohtml($misses[$i]["language"]);
  468.             $count = $web->tohtml($misses[$i]["count"]);
  469.             $created = $web->tohtml($misses[$i]["created"]);
  470.             $modified = $web->tohtml($misses[$i]["modified"]);
  471.  
  472.             print 
  473.             "<tr>\n" .
  474.             "<td>${pkey} </td>\n" .
  475.             "<td>${entry} </td>\n" .
  476.             "<td>${language} </td>\n" .
  477.             "<td>${count} </td>\n" .
  478.             "<td>${created} </td>\n" .
  479.             "<td>${modified} </td>\n" .
  480.             "<td>\n" .
  481.             "<input type=\"submit\" value=\"Insert!\" " .
  482.             "name=\"${pkey}\">\n" . 
  483.             "</td>\n" .
  484.             "<td>Delete:  \n" .
  485.             "<input type=\"checkbox\" name=\"${pkey}\" " .
  486.             "value=\"${pkey}\"></td>\n" .
  487.             "</tr>\n";
  488.         }
  489.  
  490.         print 
  491.         "</table>\n" .
  492.         "<input type=\"hidden\" name=\"id\" value=\"${id}\">\n" .
  493.         "<input type=\"hidden\" name=\"missed_entries\" " .
  494.         "value=\"1\">\n" .
  495.         "</form>\n";
  496.     }
  497.  
  498.     return;
  499. }
  500. ?>
  501. @
  502.  
  503.  
  504. 1.11
  505. log
  506. @*** empty log message ***
  507. @
  508. text
  509. @d12 1
  510. a12 1
  511. // Modified:     October 17, 2003
  512. d84 2
  513. @
  514.  
  515.  
  516. 1.10
  517. log
  518. @*** empty log message ***
  519. @
  520. text
  521. @d12 1
  522. a12 1
  523. // Modified:     October 05, 2003
  524. d83 3
  525. a85 3
  526. <title>
  527. Bahasa Indonesia Dictionary: Missed Search Entries
  528. </title>
  529. d88 1
  530. d92 1
  531. a92 26
  532. ///////////////////////////////////////////////////////////////////////////////
  533. function is_white_space(stoken) {
  534.  
  535.     if (stoken == null) return(true);
  536.  
  537.     if (stoken == '') return(true);
  538.  
  539.     if (stoken == "") return(true);
  540.  
  541.     return(false);
  542. }
  543. ///////////////////////////////////////////////////////////////////////////////
  544. function trim(stoken) {
  545.  
  546.     if (is_white_space(stoken)) {
  547.  
  548.         return(stoken);
  549.     }
  550.  
  551.     stoken = stoken.replace(/^\s*/, "");
  552.  
  553.     stoken = stoken.replace(/\s*$/, "");
  554.  
  555.     return(stoken);
  556. }
  557. ///////////////////////////////////////////////////////////////////////////////
  558. d104 1
  559. a104 1
  560. ///////////////////////////////////////////////////////////////////////////////
  561. d121 1
  562. a121 1
  563. ///////////////////////////////////////////////////////////////////////////////
  564. d140 2
  565. a141 2
  566. ///////////////////////////////////////////////////////////////////////////////
  567. ///////////////////////////////////////////////////////////////////////////////
  568. @
  569.  
  570.  
  571. 1.9
  572. log
  573. @*** empty log message ***
  574. @
  575. text
  576. @d12 1
  577. a12 1
  578. // Modified:     September 30, 2003
  579. d169 3
  580. a171 1
  581. <h2>Bahasa Indonesia Dictionary: Missed Search Entries</h2>
  582. @
  583.  
  584.  
  585. 1.8
  586. log
  587. @*** empty log message ***
  588. @
  589. text
  590. @d12 1
  591. a12 1
  592. // Modified:     September 03, 2003
  593. d45 1
  594. a45 1
  595. if (!session_is_registered("ADMIN")) {
  596. d173 1
  597. a173 1
  598. (session_is_registered("NODUP_MISSES")) &&
  599. d185 1
  600. a185 1
  601.     if (session_is_registered("NODUP_MISSES")) {
  602. d187 1
  603. a187 1
  604.         session_unregister("NODUP_MISSES");
  605. d243 1
  606. a243 3
  607.             $NODUP_MISSES = $_POST['id'];
  608.  
  609.             session_register("NODUP_MISSES");
  610. d278 2
  611. a279 2
  612.     (!session_is_registered("NODUP_MISSES") || 
  613.     ((session_is_registered("NODUP_MISSES")) && 
  614. d282 1
  615. a282 1
  616.         if (session_is_registered("NODUP_MISSES")) {
  617. d284 1
  618. a284 1
  619.             session_unregister("NODUP_MISSES");
  620. d309 1
  621. a309 3
  622.                 $NODUP_MISSES = $_POST['id'];
  623.  
  624.                 session_register("NODUP_MISSES");
  625. @
  626.  
  627.  
  628. 1.7
  629. log
  630. @*** empty log message ***
  631. @
  632. text
  633. @d12 1
  634. a12 1
  635. // Modified:     September 01, 2003
  636. a51 9
  637. if (session_is_registered("NODUP_DELETE_MISS")) {
  638.  
  639.     session_unregister("NODUP_DELETE_MISS");
  640.  
  641.     $web->redirect("admin.php");    
  642.  
  643.     exit;
  644.  
  645. d185 5
  646. d238 2
  647. a239 2
  648.             "<br><hr><b>You must select at least one " .
  649.             "missed entries to delete!<br><hr><b>\n";
  650. d252 1
  651. a252 1
  652.                     "<br><hr><b>Successfully deleted " .
  653. d259 1
  654. a259 1
  655.                     "<br><hr><b>Successfully deleted " .
  656. d266 1
  657. a266 1
  658.                     "<br><hr><b>No missed search " .
  659. d284 5
  660. d302 1
  661. a302 1
  662.                 print "<br><hr><b>${errstr}</b><hr><br>\n";
  663. d307 2
  664. a308 2
  665.                 "<br><hr><b>All missed search entries " .
  666.                 " successfully " .
  667. d330 2
  668. a333 2
  669.     $id = uniqid(rand(), true);
  670.  
  671. d352 21
  672. a372 13
  673.         print 
  674.         "<form name=\"delete_all\" method=\"post\" " .
  675.         "onSubmit='return verify_delete_all()'>\n" .
  676.         "<table cellpadding=\"3\" cellspacing=\"3\" border=\"0\">\n" .
  677.         "<tr>\n" .
  678.         "<td>Password:</td>\n" .
  679.         "<td><input type=\"password\" name=\"password\"></td>\n" .
  680.         "<td>\n " .
  681.         "<input type=\"submit\" value=\"Delete All Entries!\">\n" .
  682.         "</td></tr></table>\n" .
  683.         "<input type=\"hidden\" name=\"delete_all\" value=\"1\">\n" .
  684.         "<input type=\"hidden\" name=\"id\" value=\"${id}\">\n" .
  685.         "</form><hr>\n"; 
  686. @
  687.  
  688.  
  689. 1.6
  690. log
  691. @*** empty log message ***
  692. @
  693. text
  694. @d12 1
  695. a12 1
  696. // Modified:     August 30, 2003
  697. d97 1
  698. d164 1
  699. a164 1
  700.         document.missed_entires.password.focus();
  701. d287 1
  702. d363 1
  703. a363 1
  704.         "</form>\n"; 
  705. d387 2
  706. a388 2
  707.                 "onClick='return verify_delete_selected()'" .
  708.                 "><br>\n" .
  709. d415 1
  710. a415 1
  711.             "<td>\n" .
  712. d417 1
  713. a417 1
  714.             "value=\"${pkey}\">Delete!</td>\n" .
  715. @
  716.  
  717.  
  718. 1.5
  719. log
  720. @*** empty log message ***
  721. @
  722. text
  723. @d12 1
  724. a12 1
  725. // Modified:     August 29, 2003
  726. @
  727.  
  728.  
  729. 1.4
  730. log
  731. @*** empty log message ***
  732. @
  733. text
  734. @d12 1
  735. a12 1
  736. // Modified:     August 28, 2003
  737. @
  738.  
  739.  
  740. 1.3
  741. log
  742. @*** empty log message ***
  743. @
  744. text
  745. @d186 1
  746. a186 1
  747.     //Do nothing...prevents refresh duplication of delete selected
  748. @
  749.  
  750.  
  751. 1.2
  752. log
  753. @*** empty log message ***
  754. @
  755. text
  756. @d12 1
  757. a12 1
  758. // Modified:     August 19, 2003
  759. d72 17
  760. d95 80
  761. d180 12
  762. a191 1
  763. if (isset($_POST['delete_entry'])) {
  764. d194 1
  765. a194 1
  766.     $indonesia->delete_miss($_POST['delete_entry']);
  767. d198 1
  768. a198 1
  769.         print "<br><hr><b>${errstr}</b><hr><br>\n";
  770. d202 7
  771. d210 3
  772. a212 1
  773.         print "<br><hr><b>Successful deletion!</b><hr><br>\n";
  774. d214 1
  775. a214 1
  776.         $NODUP_DELETE_MISS = 1;
  777. d216 59
  778. a274 1
  779.         session_register("NODUP_DELETE_MISS");
  780. d277 32
  781. a308 1
  782. } else {
  783. d310 4
  784. a313 1
  785.     show_misses($web, $indonesia);
  786. d315 3
  787. d329 2
  788. d333 1
  789. a333 1
  790.         print "<hr><br><b>${errstr}</b><hr><br>\n";
  791. d339 4
  792. a342 1
  793.         print "<h3>Found ${total_misses} misses</h3>\n";
  794. d350 16
  795. d367 1
  796. a367 1
  797.         "border=\"1\" width=\"50%\">\n"; 
  798. d382 9
  799. a390 1
  800.                 "<th>Delete</th>\n" .
  801. d394 6
  802. a399 6
  803.             $pkey = $web->tohtml($misses[$i]->pkey);
  804.             $entry = $web->tohtml($misses[$i]->entry);
  805.             $language = $web->tohtml($misses[$i]->language);
  806.             $count = $web->tohtml($misses[$i]->count);
  807.             $created = $web->tohtml($misses[$i]->created);
  808.             $modified = $web->tohtml($misses[$i]->modified);
  809. d410 2
  810. a411 6
  811.             "<form name=\"insert\" action=\"insert.php\" " . 
  812.             "method=\"post\">\n" .
  813.             "<input type=\"submit\" value=\"Insert!\">\n" .
  814.             "<input type=\"hidden\" " .
  815.             "name=\"insert_missed_entry\" " .
  816.             "value=\"${pkey}\"></form>\n" .
  817. d414 2
  818. a415 4
  819.             "<form name=\"delete\" method=\"post\">\n" .
  820.             "<input type=\"submit\" value=\"Delete!\">\n" .
  821.             "<input type=\"hidden\" name=\"delete_entry\" " .
  822.             "value=\"${pkey}\"></form>\n" .
  823. d419 6
  824. a424 1
  825.         print "</table>\n";
  826. @
  827.  
  828.  
  829. 1.1
  830. log
  831. @Initial revision
  832. @
  833. text
  834. @d5 37
  835. @
  836.  
  837.  
  838. 1.1.1.1
  839. log
  840. @Bahasa Indonesia Dictionary
  841. @
  842. text
  843. @@
  844.