[AppDB 2/2] More html cleanups

André Hentschel nerv at dawncrow.de
Tue Apr 8 15:07:57 CDT 2014


---
 include/html.php | 108 -------------------------------------------------------
 1 file changed, 108 deletions(-)

diff --git a/include/html.php b/include/html.php
index 82c524d..09e2c30 100644
--- a/include/html.php
+++ b/include/html.php
@@ -81,43 +81,6 @@ function html_table_end()
 }
 
 
-// HTML HTML
-function html_begin()
-{
-    return do_indent("<html>", 1);
-}
-
-function html_end()
-{
-    return do_indent("</html>", -1);
-}
-
-
-// HTML HEAD
-function html_head($title, $stylesheet = 0)
-{
-    $str  = do_indent("<head>", 1);
-    $str .= do_indent("<title> $title </title>", 0);
-    if($stylesheet)
-        $str .= do_indent("<link rel=\"stylesheet\" ".
-                  "href=\"$stylesheet\" type=\"text/css\">", 0);
-    $str .= do_indent("</head>", -1);
-
-    return $str;
-}
-
-
-// HTML BODY
-function html_body_begin()
-{
-    return do_indent("<body>", 1);
-}
-
-function html_body_end()
-{
-    return do_indent("</body>", -1);
-}
-
 // HTML A HREF
 function html_ahref($label, $url, $extra = "")
 {
@@ -220,45 +183,6 @@ function p()
     return "\n<p> </p>\n";
 }
 
-function add_br($text = "")
-{
-    $text = str_replace("\n","<br>\n",$text);
-    return $text;
-}
-
-function make_dll_option_list($varname, $dllid = -1)
-{
-    $db = new ApiDB();
-
-    echo "<select name='$varname'>\n";
-    //echo "<option value='ALL'>ALL\n";
-    $list = $db->get_dll_names();
-    while(list($name, $id) = each($list))
-    {
-        if($dllid == $id)
-        echo "<option value=$id selected>$name  ($id)\n";
-        else
-        echo "<option value=$id>$name  ($id)\n";
-    }
-    echo "</select>\n";
-}
-
-
-function make_inx_option_list($varname, $inx = null)
-{
-    $list = array("yes", "no", "stub", "unknown");
-    echo "<select name='$varname'>\n";
-    while(list($idx, $value) = each($list))
-        {
-            if($value == $inx)
-                echo "<option value=$value selected>$value\n";
-            else
-                echo "<option value=$value>$value\n";
-        }
-    echo "</select>\n";
-
-}
-
 /* Displays a note box */
 function html_note($shTitle, $shBody)
 {
@@ -293,36 +217,4 @@ function html_radiobuttons($aIds, $aOptions, $sName, $sDefault = '', $bLineBreak
     return $shRet;
 }
 
-function html_checkbox($sName, $sValue, $shText, $bChecked)
-{
-    if($bChecked)
-        $sSelected = ' checked="checked"';
-    else
-        $sSelected = '';
-
-    return "<input type=\"checkbox\" name=\"$sName\" value=\"$sValue\"$sSelected /> $shText\n";
-}
-
-function html_checkboxes($sName, $aValues, $aTexts, $aSelected)
-{
-    $shRet = '';
-
-    for($i = 0; $i < sizeof($aValues); $i++)
-        $shRet .= html_checkbox($sName.$i, $aValues[$i], $aTexts[$i], $aSelected[$i]).'<br />';
-
-    return $shRet;
-}
-
-function html_read_input_series($sName, $aInput, $iCount)
-{
-    $aRet = array();
-
-    for($i = 0; $i < $iCount; $i++)
-    {
-        $aRet[] = getInput($sName.$i, $aInput);
-    }
-
-    return $aRet;
-}
-
 ?>
-- 
1.8.1.2




More information about the wine-patches mailing list