cvs: phpweb / bugs.php
| From: | Sterling Hughes | Date: | Wed, 06 Sep 2000 20:09:12 +0000 |
| Subject: | cvs: phpweb / bugs.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-1995@lists.php.net to get a copy of this message | ||
sterling Wed Sep 6 13:09:12 2000 EDT
Modified files:
/phpweb bugs.php
Log:
Start new design for the bug types box.
Index: phpweb/bugs.php
diff -u phpweb/bugs.php:1.39 phpweb/bugs.php:1.40
--- phpweb/bugs.php:1.39 Wed Sep 6 00:05:03 2000
+++ phpweb/bugs.php Wed Sep 6 13:09:12 2000
@@ -128,166 +128,154 @@
echo "<i>Feature/Change requests must be explicitly selected to be
shown</i></form>\n";
}
-### show_types significantly modified by j.a.greant 00/09/05
-
-function show_types($first_item,$show_any,$var_name) {
- $items = array ("Any" => "Any",
- "*General Issues" => "General Issues",
- "Feature/Change Request" =>
" Feature/Change Request",
- "Documentation problem" =>
" Documentation problem",
- "Reproduceable crash" =>
" Reproduceable crash",
- "Scripting Engine problem" =>
" Scripting Engine problem",
- "Performance problem" =>
" Performance problem",
- "*Install and Config" => "Install and Config",
- "Compile Problem" =>
" Compile Problem",
- "Compile Failure" =>
" Compile
Failure",
- "Compile Warning" =>
" Compile
Warning",
-
- "*Web Server problem" =>
" Web Server problem",
- "Apache related" =>
" Apache
related",
- "IIS related" =>
" IIS
related",
- "PWS related" =>
" PWS
related",
- "Other web server" =>
" Other web
server",
-
- "*Configuration Issues" =>
" Configuration Issues",
- "Dynamic loading" =>
" Dynamic
loading",
- "PHP options/info functions" =>
" PHP
options/info functions",
-
- "*Function Specific" => "Function Specific",
- "Calendar problems" =>
" Calendar problems",
- "Calendar related" =>
" Calendar
related",
- "ICAP related" =>
" ICAP
related",
- "MCAL related" =>
" MCAL
related",
-
- "Date/time related" =>
" Date/time related",
-
- "*Directory/Filesystem functions" =>
" Directory/Filesystem functions",
- "Directory function related" =>
" Directory
function related",
- "Filesystem function related" =>
" Filesystem
function related",
-
- "*Directory Services problems" =>
" Directory Services problems",
- "YP/NIS related" =>
" YP/NIS
related",
- "LDAP related" =>
" LDAP
related",
-
- "*Database Functions" =>
" Database Functions",
- "Adabas-D related" =>
" Adabas-D
related",
- "dBase related" =>
" dBase
related",
- "DBM/DBA related" =>
" DBM/DBA
related",
- "filePro related" =>
" filePro
related",
- "Hyperwave related" =>
" Hyperwave
related",
- "Informix related" =>
" Informix
related",
- "InterBase related" =>
" InterBase
related",
- "Sybase-ct (ctlib) related" =>
" Sybase-ct
(ctlib) related",
- "Sybase (dblib) related" =>
" Sybase
(dblib) related",
- "mSQL related" =>
" mSQL
related",
- "MSSQL related" =>
" MSSQL
related",
- "MySQL related" =>
" MySQL
related",
- "OCI8 related" =>
" OCI8
related",
- "ODBC related" =>
" ODBC
related",
- "Oracle related" =>
" Oracle
related",
- "PostgreSQL related" =>
" PostgreSQL
related",
- "Solid related" =>
" Solid
related",
-
- "*Data Exchange functions" =>
" Data Exchange functions",
- "WDDX related" =>
" WDDX
related",
- "YAZ related" =>
" YAZ
related",
-
- "*Extensibility Functions" =>
" Extensibility Functions",
- "COM related" =>
" COM
related",
- "Program Execution" =>
" Program
Execution",
- "Semaphore related" =>
" Semaphore
related",
- "Readline related" =>
" Readline
related",
-
- "*E-commerce functions" =>
" E-commerce functions",
- "Cybercash related" =>
" Cybercash
related",
- "Verisign Payflow Pro related" =>
" Verisign
Payflow Pro related",
- "CCVS related" =>
" CCVS
related",
-
- "FrontPage related" =>
" FrontPage related",
-
- "*Graphics related" =>
" Graphics related",
- "GD related" =>
" GD
related",
- "GetImageSize related" =>
" GetImageSize
related",
-
- "*Languages/Translation" =>
" Languages/Translation",
- "Gettext related" =>
" Gettext
related",
- "Recode related" =>
" Recode
related",
-
- "*Mail Related" =>
" Mail Related",
- "IMAP related" =>
" IMAP
related",
- "Mail related" =>
" Mail
related",
- "Vmailmgr related" =>
" Vmailmgr
related",
-
- "*Math Functions" =>
" Math Functions",
- "BC math related" =>
" BC math
related",
- "Math related" =>
" Math
related",
-
- "mcrypt related" =>
" mcrypt related",
-
- "mhash related" =>
" mhash related",
-
- "*Network Functions" =>
" Network Functions",
- "Network related" =>
" Network
related",
- "SNMP related" =>
" SNMP
related",
- "FTP related" =>
" FTP
related",
- "HTTP related" =>
" HTTP
related",
- "Sockets related" =>
" Sockets
related",
-
- "Output Control" =>
" Output Control",
-
- "*PDF functions" =>
" PDF functions",
- "ClibPDF related" =>
" ClibPDF
related",
- "FDF related" =>
" FDF
related",
- "PDF related" =>
" PDF
related",
-
- "POSIX related" =>
" POSIX related",
-
- "*Programming Data Structures" =>
" Programming Data Structures",
- "Class/Object related" =>
" Class/Object
related",
- "Arrays related" =>
" Arrays
related",
- "Strings related" =>
" Strings
related",
- "Variables related" =>
" Variables
related",
-
- "*Regular Expressions" =>
" Regular Expressions",
- "PCRE related" =>
" PCRE
related",
- "Regexps related" =>
" Regexps
related",
-
- "Satellite CORBA related" => "Satellite CORBA related",
-
- "*Session related" =>
" Session related",
-
- "*Spelling functions" =>
" Spelling functions",
- "Aspell related" =>
" Aspell
related",
- "Pspell related" =>
" Pspell
related",
-
- "SWF related" => " SWF
related",
-
- "*XML functions" =>
" XML functions",
- "DOM XML related" =>
" DOM XML
related",
- "XML related" =>
" XML
related",
- "Sablotron XSL" =>
" Sablotron
XSL",
-
- "*URL Functions" =>
" URL Functions",
- "cURL related" =>
" cURL
related",
- "URL related" =>
" URL
related",
-
- "*Zlib related" =>
" Zlib related",
-
- "Unknown/Other Function" => "Unknown/Other Function"
- );
-
- $selected[$first_item] = ' SELECTED';
+### show_types signifigantly modified by j.a.greant 00/09/05
+### show_types signifigantly modified by sterling hughes 00/09/06
+function show_types($first_item, $show_any, $var_name) {
+ $items = array('Any',
+ 'General Issues' =>
+ array('Feature/Change Request',
+ 'Documentation Problem',
+ 'Reproducible Crash',
+ 'Scripting Engine Problem',
+ 'Performance Problem'),
+ 'Installation and Configuration' =>
+ array('Compile Problem' =>
+ array('Compile Failure',
+ 'Compile Warning'),
+ 'Web Server Problem' =>
+ array('Apache Related',
+ 'IIS Related',
+ 'PWS Related',
+ 'Other web server'),
+ 'Configuration Issues' =>
+ array('Dynamic Loading Related',
+ 'PHP options and information functions'),
+ 'Function Specific' =>
+ array (
+ array('Calendar Functions' =>
+ array('Calendar Extension Related',
+ 'ICAP Related',
+ 'MCAL Related'),
+ array('Directory/Filesystem Functions' =>
+ array('Directory Related',
+ 'Filesystem Related'),
+ array('Directory Services Functions' =>
+ array('YP/NIS Related',
+ 'LDAP Related'),
+ array('Database Functions' =>
+ array('Adabas-D Related',
+ 'dBase Related',
+ 'DBM/DBA Related',
+ 'filePro Related',
+ 'Hyperwave Related',
+ 'Informix Related',
+ 'Interbase Related',
+ 'Sybase-ct (ctlib) functions',
+ 'Sybase (dblib) functions',
+ 'mSQL Related',
+ 'MSSQL Related',
+ 'MySQL Related',
+ 'ODBC Related',
+ 'Oracle Related',
+ 'PostgreSQL Related',
+ 'Solid Related'),
+ array('Data Exchange Functions' =>
+ array('WDDX Related',
+ 'YAZ Related'),
+ array('Extensibility Functions' =>
+ array('COM Related',
+ 'POSIX Related',
+ 'Program Execution Related',
+ 'Sephamore Related',
+ 'Sattelite CORBA Related',
+ 'Readline Related'),
+ array('E-commerce Functions' =>
+ array('Cybercash Related',
+ 'CCVS Related',
+ 'Versign Payflow Pro Related'),
+ array('Graphics Functions' =>
+ array('GD Related',
+ 'SWF Related'),
+ array('Languages/Translation Functions' =>
+ array('Aspell Related',
+ 'Gettext Related',
+ 'Pspell Related',
+ 'Recode Related'),
+ array('Mail Functions' =>
+ array('IMAP Related',
+ 'Mail Function Related',
+ 'Vmailmgr Related'),
+ array('Math Functions' =>
+ array('BC Math Related'),
+ array('Encryption Functions' =>
+ array('Crypt Related',
+ 'Mcrypt Related',
+ 'Mhash Related'),
+ array('Network Functions' =>
+ array('FTP Related',
+ 'HTTP Related',
+ 'SNMP Related',
+ 'Sockets Related'),
+ 'Ouput Control Functions',
+ array('PDF Functions' =>
+ array('ClibPDF Related',
+ 'FDF Related',
+ 'PDFLib Related'),
+ array('Data Structure Functions' =>
+ array('Array Related',
+ 'Class/Object Related',
+ 'String Related',
+ 'Variable Related'),
+ array('Regular Expression Functions' =>
+ array('PCRE Related',
+ 'Regexps Related'),
+ 'Session Functions',
+ array('XML Functions' =>
+ array('DOM XML Related',
+ 'Sablotron XSL Related',
+ 'XML Related'),
+ array('URL Functions' =>
+ array('CURL Related',
+ 'URL Related'),
+ 'Zlib Related',
+ 'Unknown/Other Function'
+ )
+ );
+
+ $selected[$first_item] = ' SELECTED';
+
+ echo "<select name=\"$var_name\">\n";
+ foreach ($items as $topic => $subtopics) {
+ if (!$show_any && $topic == 'Any') {
+ continue;
+ }
+ _types_show_subtopics ($subtopics, $selected);
+ }
+ echo "</select>";
+}
- print "<select name=\"$var_name\">\n";
+function _types_display_entry ($text, $selected, $level)
+{
+ $indent = " ";
+
+ echo "<option value=\"$text\" $selected[$text]>";
+ for ($i = 0; $i < $level; $i++) {
+ print $indent;
+ }
+ echo "$text</option>";
+}
- foreach ($items as $key => $value)
- {
- if ($show_any || $value != 'Any') {
- print "<option value=\"$key\"$selected[$key]>$value</option>\n";
+function _types_show_subtopics ($subtopics, $selected, $level = 0)
+{
+ foreach ($subtopics as $heading => $subheadings) {
+ if (!is_array ($subheadings)) {
+ _types_display_entry ($subheadings, $selected, $level);
+ continue;
}
+
+ _types_display_entry ($heading, $selected, $level);
+ _types_show_subtopics ($subheadings, $selected, $level+1);
}
-
- print "</select>\n";
}
function find_password($user) {