Hex Artifact Content
Not logged in

Artifact 745ff35aaa93eac4d4208cff38e11ea2a1bc80d1:

File src/tktconfig.c part of check-in [a5e4e1ba96] - More work on ticketing. This is a non-working incremental check-in. by drh on 2007-11-24 23:59:47.

0000: 2f 2a 0a 2a 2a 20 43 6f 70 79 72 69 67 68 74 20  /*.** Copyright 
0010: 28 63 29 20 32 30 30 37 20 44 2e 20 52 69 63 68  (c) 2007 D. Rich
0020: 61 72 64 20 48 69 70 70 0a 2a 2a 0a 2a 2a 20 54  ard Hipp.**.** T
0030: 68 69 73 20 70 72 6f 67 72 61 6d 20 69 73 20 66  his program is f
0040: 72 65 65 20 73 6f 66 74 77 61 72 65 3b 20 79 6f  ree software; yo
0050: 75 20 63 61 6e 20 72 65 64 69 73 74 72 69 62 75  u can redistribu
0060: 74 65 20 69 74 20 61 6e 64 2f 6f 72 0a 2a 2a 20  te it and/or.** 
0070: 6d 6f 64 69 66 79 20 69 74 20 75 6e 64 65 72 20  modify it under 
0080: 74 68 65 20 74 65 72 6d 73 20 6f 66 20 74 68 65  the terms of the
0090: 20 47 4e 55 20 47 65 6e 65 72 61 6c 20 50 75 62   GNU General Pub
00a0: 6c 69 63 0a 2a 2a 20 4c 69 63 65 6e 73 65 20 76  lic.** License v
00b0: 65 72 73 69 6f 6e 20 32 20 61 73 20 70 75 62 6c  ersion 2 as publ
00c0: 69 73 68 65 64 20 62 79 20 74 68 65 20 46 72 65  ished by the Fre
00d0: 65 20 53 6f 66 74 77 61 72 65 20 46 6f 75 6e 64  e Software Found
00e0: 61 74 69 6f 6e 2e 0a 2a 2a 0a 2a 2a 20 54 68 69  ation..**.** Thi
00f0: 73 20 70 72 6f 67 72 61 6d 20 69 73 20 64 69 73  s program is dis
0100: 74 72 69 62 75 74 65 64 20 69 6e 20 74 68 65 20  tributed in the 
0110: 68 6f 70 65 20 74 68 61 74 20 69 74 20 77 69 6c  hope that it wil
0120: 6c 20 62 65 20 75 73 65 66 75 6c 2c 0a 2a 2a 20  l be useful,.** 
0130: 62 75 74 20 57 49 54 48 4f 55 54 20 41 4e 59 20  but WITHOUT ANY 
0140: 57 41 52 52 41 4e 54 59 3b 20 77 69 74 68 6f 75  WARRANTY; withou
0150: 74 20 65 76 65 6e 20 74 68 65 20 69 6d 70 6c 69  t even the impli
0160: 65 64 20 77 61 72 72 61 6e 74 79 20 6f 66 0a 2a  ed warranty of.*
0170: 2a 20 4d 45 52 43 48 41 4e 54 41 42 49 4c 49 54  * MERCHANTABILIT
0180: 59 20 6f 72 20 46 49 54 4e 45 53 53 20 46 4f 52  Y or FITNESS FOR
0190: 20 41 20 50 41 52 54 49 43 55 4c 41 52 20 50 55   A PARTICULAR PU
01a0: 52 50 4f 53 45 2e 20 20 53 65 65 20 74 68 65 20  RPOSE.  See the 
01b0: 47 4e 55 0a 2a 2a 20 47 65 6e 65 72 61 6c 20 50  GNU.** General P
01c0: 75 62 6c 69 63 20 4c 69 63 65 6e 73 65 20 66 6f  ublic License fo
01d0: 72 20 6d 6f 72 65 20 64 65 74 61 69 6c 73 2e 0a  r more details..
01e0: 2a 2a 20 0a 2a 2a 20 59 6f 75 20 73 68 6f 75 6c  ** .** You shoul
01f0: 64 20 68 61 76 65 20 72 65 63 65 69 76 65 64 20  d have received 
0200: 61 20 63 6f 70 79 20 6f 66 20 74 68 65 20 47 4e  a copy of the GN
0210: 55 20 47 65 6e 65 72 61 6c 20 50 75 62 6c 69 63  U General Public
0220: 0a 2a 2a 20 4c 69 63 65 6e 73 65 20 61 6c 6f 6e  .** License alon
0230: 67 20 77 69 74 68 20 74 68 69 73 20 6c 69 62 72  g with this libr
0240: 61 72 79 3b 20 69 66 20 6e 6f 74 2c 20 77 72 69  ary; if not, wri
0250: 74 65 20 74 6f 20 74 68 65 0a 2a 2a 20 46 72 65  te to the.** Fre
0260: 65 20 53 6f 66 74 77 61 72 65 20 46 6f 75 6e 64  e Software Found
0270: 61 74 69 6f 6e 2c 20 49 6e 63 2e 2c 20 35 39 20  ation, Inc., 59 
0280: 54 65 6d 70 6c 65 20 50 6c 61 63 65 20 2d 20 53  Temple Place - S
0290: 75 69 74 65 20 33 33 30 2c 0a 2a 2a 20 42 6f 73  uite 330,.** Bos
02a0: 74 6f 6e 2c 20 4d 41 20 20 30 32 31 31 31 2d 31  ton, MA  02111-1
02b0: 33 30 37 2c 20 55 53 41 2e 0a 2a 2a 0a 2a 2a 20  307, USA..**.** 
02c0: 41 75 74 68 6f 72 20 63 6f 6e 74 61 63 74 20 69  Author contact i
02d0: 6e 66 6f 72 6d 61 74 69 6f 6e 3a 0a 2a 2a 20 20  nformation:.**  
02e0: 20 64 72 68 40 68 77 61 63 69 2e 63 6f 6d 0a 2a   drh@hwaci.com.*
02f0: 2a 20 20 20 68 74 74 70 3a 2f 2f 77 77 77 2e 68  *   http://www.h
0300: 77 61 63 69 2e 63 6f 6d 2f 64 72 68 2f 0a 2a 2a  waci.com/drh/.**
0310: 0a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  .***************
0320: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
0330: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
0340: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
0350: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
0360: 0a 2a 2a 20 0a 2a 2a 20 54 68 69 73 20 66 69 6c  .** .** This fil
0370: 65 20 63 6f 6e 74 61 69 6e 73 20 61 20 73 74 72  e contains a str
0380: 69 6e 67 20 63 6f 6e 73 74 61 6e 74 20 74 68 61  ing constant tha
0390: 74 20 69 73 20 74 68 65 20 64 65 66 61 75 6c 74  t is the default
03a0: 20 74 69 63 6b 65 74 0a 2a 2a 20 63 6f 6e 66 69   ticket.** confi
03b0: 67 75 72 61 74 69 6f 6e 2e 0a 2a 2f 0a 23 69 6e  guration..*/.#in
03c0: 63 6c 75 64 65 20 22 63 6f 6e 66 69 67 2e 68 22  clude "config.h"
03d0: 0a 23 69 6e 63 6c 75 64 65 20 22 74 6b 74 63 6f  .#include "tktco
03e0: 6e 66 69 67 2e 68 22 0a 0a 2f 2a 0a 2a 2a 20 54  nfig.h"../*.** T
03f0: 68 69 73 20 69 73 20 61 20 73 61 6d 70 6c 65 20  his is a sample 
0400: 22 74 69 63 6b 65 74 20 63 6f 6e 66 69 67 75 72  "ticket configur
0410: 61 74 69 6f 6e 22 20 66 69 6c 65 20 66 6f 72 20  ation" file for 
0420: 66 6f 73 73 69 6c 2e 0a 2a 2a 0a 2a 2a 20 54 68  fossil..**.** Th
0430: 65 72 65 20 69 73 20 63 6f 6e 73 69 64 65 72 61  ere is considera
0440: 62 6c 65 20 66 6c 65 78 69 62 69 6c 69 74 79 20  ble flexibility 
0450: 69 6e 20 68 6f 77 20 74 69 63 6b 65 74 73 20 61  in how tickets a
0460: 72 65 20 64 65 66 69 6e 65 64 0a 2a 2a 20 69 6e  re defined.** in
0470: 20 66 6f 73 73 69 6c 2e 20 20 45 61 63 68 20 72   fossil.  Each r
0480: 65 70 6f 73 69 74 6f 72 79 20 63 61 6e 20 64 65  epository can de
0490: 66 69 6e 65 20 69 74 73 20 6f 77 6e 20 74 69 63  fine its own tic
04a0: 6b 65 74 20 73 65 74 75 70 0a 2a 2a 20 64 69 66  ket setup.** dif
04b0: 66 65 72 65 6e 74 6c 79 2e 20 20 45 61 63 68 20  ferently.  Each 
04c0: 72 65 70 6f 73 69 74 6f 72 79 20 68 61 73 20 61  repository has a
04d0: 6e 20 69 6e 73 74 61 6e 63 65 20 6f 66 20 61 20  n instance of a 
04e0: 66 69 6c 65 2c 20 6c 69 6b 65 0a 2a 2a 20 74 68  file, like.** th
04f0: 69 73 20 6f 6e 65 20 74 68 61 74 20 64 65 66 69  is one that defi
0500: 6e 65 73 20 68 6f 77 20 74 68 61 74 20 72 65 70  nes how that rep
0510: 6f 73 69 74 6f 72 79 20 64 65 61 6c 73 20 77 69  ository deals wi
0520: 74 68 20 74 69 63 6b 65 74 73 2e 0a 2a 2a 0a 2a  th tickets..**.*
0530: 2a 20 54 68 69 73 20 66 69 6c 65 20 69 73 20 69  * This file is i
0540: 6e 20 74 68 65 20 66 6f 72 6d 20 6f 66 20 61 20  n the form of a 
0550: 73 63 72 69 70 74 20 69 6e 20 61 6e 20 65 78 63  script in an exc
0560: 65 65 64 69 6e 67 6c 79 20 0a 2a 2a 20 6d 69 6e  eedingly .** min
0570: 69 6d 61 6c 69 73 74 20 73 63 72 69 70 74 69 6e  imalist scriptin
0580: 67 20 6c 61 6e 67 75 61 67 65 20 63 61 6c 6c 65  g language calle
0590: 64 20 22 73 75 62 73 63 72 69 70 74 22 2e 20 20  d "subscript".  
05a0: 48 65 72 65 20 61 72 65 0a 2a 2a 20 74 68 65 20  Here are.** the 
05b0: 72 75 6c 65 73 3a 0a 2a 2a 0a 2a 2a 20 53 59 4e  rules:.**.** SYN
05c0: 54 41 58 0a 2a 2a 0a 2a 2a 20 20 20 20 20 2a 20  TAX.**.**     * 
05d0: 20 54 68 65 20 73 63 72 69 70 74 20 63 6f 6e 73   The script cons
05e0: 69 73 74 73 20 6f 66 20 61 20 73 65 71 75 65 6e  ists of a sequen
05f0: 63 65 20 6f 66 20 77 68 69 74 65 73 70 61 63 65  ce of whitespace
0600: 0a 2a 2a 20 20 20 20 20 20 20 20 73 65 70 61 72  .**        separ
0610: 61 74 65 64 20 74 6f 6b 65 6e 73 2e 20 20 57 68  ated tokens.  Wh
0620: 69 74 65 73 70 61 63 65 20 69 73 20 69 67 6e 6f  itespace is igno
0630: 72 65 64 2c 20 65 78 63 65 70 74 0a 2a 2a 20 20  red, except.**  
0640: 20 20 20 20 20 20 61 73 20 69 74 73 20 72 6f 6c        as its rol
0650: 65 20 61 73 20 61 20 74 6f 6b 65 6e 20 73 65 70  e as a token sep
0660: 61 72 61 74 6f 72 2e 0a 2a 2a 0a 2a 2a 20 20 20  arator..**.**   
0670: 20 20 2a 20 20 4c 69 6e 65 73 20 74 68 61 74 20    *  Lines that 
0680: 62 65 67 69 6e 20 77 69 74 68 20 27 23 27 20 61  begin with '#' a
0690: 72 65 20 63 6f 6e 73 69 64 65 72 65 64 20 74 6f  re considered to
06a0: 20 62 65 20 77 68 69 74 65 73 70 61 63 65 2e 0a   be whitespace..
06b0: 2a 2a 0a 2a 2a 20 20 20 20 20 2a 20 20 54 65 78  **.**     *  Tex
06c0: 74 20 77 69 74 68 69 6e 20 6d 61 74 63 68 69 6e  t within matchin
06d0: 67 20 7b 2e 2e 2e 7d 20 69 73 20 63 6f 6e 73 69  g {...} is consi
06e0: 64 65 72 20 74 6f 20 62 65 20 61 20 73 69 6e 67  der to be a sing
06f0: 6c 65 20 22 73 74 72 69 6e 67 22 0a 2a 2a 20 20  le "string".**  
0700: 20 20 20 20 20 20 74 6f 6b 65 6e 2c 20 65 76 65        token, eve
0710: 6e 20 69 66 20 74 68 65 20 74 65 78 74 20 73 70  n if the text sp
0720: 61 6e 73 20 6d 75 6c 74 69 70 6c 65 20 6c 69 6e  ans multiple lin
0730: 65 73 20 61 6e 64 20 69 6e 63 6c 75 64 65 73 0a  es and includes.
0740: 2a 2a 20 20 20 20 20 20 20 20 65 6d 62 65 64 64  **        embedd
0750: 65 64 20 77 68 69 74 65 73 70 61 63 65 2e 20 20  ed whitespace.  
0760: 54 68 65 20 6f 75 74 65 72 6d 6f 73 74 20 7b 2e  The outermost {.
0770: 2e 2e 7d 20 61 72 65 20 6e 6f 74 20 70 61 72 74  ..} are not part
0780: 20 6f 66 0a 2a 2a 20 20 20 20 20 20 20 20 74 68   of.**        th
0790: 65 20 74 65 78 74 20 6f 66 20 74 68 65 20 74 6f  e text of the to
07a0: 6b 65 6e 2e 0a 2a 2a 0a 2a 2a 20 20 20 20 20 2a  ken..**.**     *
07b0: 20 20 41 20 74 6f 6b 65 6e 20 74 68 61 74 20 62    A token that b
07c0: 65 67 69 6e 73 20 77 69 74 68 20 22 2f 22 20 69  egins with "/" i
07d0: 73 20 61 20 73 74 72 69 6e 67 20 74 6f 6b 65 6e  s a string token
07e0: 2e 0a 2a 2a 0a 2a 2a 20 20 20 20 20 2a 20 20 41  ..**.**     *  A
07f0: 20 74 6f 6b 65 6e 20 74 68 61 74 20 6c 6f 6f 6b   token that look
0800: 73 20 6c 69 6b 65 20 61 20 6e 75 6d 62 65 72 20  s like a number 
0810: 69 73 20 61 20 73 74 72 69 6e 67 20 74 6f 6b 65  is a string toke
0820: 6e 2e 0a 2a 2a 0a 2a 2a 20 20 20 20 20 2a 20 20  n..**.**     *  
0830: 54 6f 6b 65 6e 73 20 74 68 61 74 20 64 6f 20 6e  Tokens that do n
0840: 6f 74 20 66 61 6c 6c 20 75 6e 64 65 72 20 74 68  ot fall under th
0850: 65 20 70 72 65 76 69 6f 75 73 20 74 68 72 65 65  e previous three
0860: 20 72 75 6c 65 73 0a 2a 2a 20 20 20 20 20 20 20   rules.**       
0870: 20 61 72 65 20 22 76 65 72 62 22 20 74 6f 6b 65   are "verb" toke
0880: 6e 73 2e 0a 2a 2a 0a 2a 2a 20 20 50 52 4f 43 45  ns..**.**  PROCE
0890: 53 53 49 4e 47 3a 0a 2a 2a 0a 2a 2a 20 20 20 20  SSING:.**.**    
08a0: 20 2a 20 20 57 68 65 6e 20 61 20 73 63 72 69 70   *  When a scrip
08b0: 74 20 69 73 20 70 72 6f 63 65 73 73 65 64 2c 20  t is processed, 
08c0: 74 68 65 20 65 6e 67 69 6e 65 20 72 65 61 64 73  the engine reads
08d0: 20 74 6f 6b 65 6e 73 0a 2a 2a 20 20 20 20 20 20   tokens.**      
08e0: 20 20 6f 6e 65 20 62 79 20 6f 6e 65 2e 0a 2a 2a    one by one..**
08f0: 0a 2a 2a 20 20 20 20 20 2a 20 20 53 74 72 69 6e  .**     *  Strin
0900: 67 20 74 6f 6b 65 6e 73 20 61 72 65 20 70 75 73  g tokens are pus
0910: 68 65 64 20 6f 6e 74 6f 20 74 68 65 20 73 74 61  hed onto the sta
0920: 63 6b 2e 0a 2a 2a 0a 2a 2a 20 20 20 20 20 2a 20  ck..**.**     * 
0930: 20 56 65 72 62 20 74 6f 6b 65 6e 73 20 77 68 69   Verb tokens whi
0940: 63 68 20 63 6f 72 72 65 73 70 6f 6e 64 20 74 6f  ch correspond to
0950: 20 74 68 65 20 6e 61 6d 65 73 20 6f 66 20 76 61   the names of va
0960: 72 69 61 62 6c 65 73 0a 2a 2a 20 20 20 20 20 20  riables.**      
0970: 20 20 63 61 75 73 65 20 74 68 65 20 63 6f 72 72    cause the corr
0980: 65 73 70 6f 6e 64 69 6e 67 20 76 61 72 69 61 62  esponding variab
0990: 6c 65 20 74 6f 20 62 65 20 70 75 73 68 65 64 20  le to be pushed 
09a0: 6f 6e 74 6f 20 74 68 65 0a 2a 2a 20 20 20 20 20  onto the.**     
09b0: 20 20 20 73 74 61 63 6b 2e 0a 2a 2a 0a 2a 2a 20     stack..**.** 
09c0: 20 20 20 20 2a 20 20 56 65 72 62 20 74 6f 6b 65      *  Verb toke
09d0: 6e 73 20 77 68 69 63 68 20 63 6f 72 72 65 73 70  ns which corresp
09e0: 6f 6e 64 20 74 6f 20 70 72 6f 63 65 64 75 72 65  ond to procedure
09f0: 73 20 63 61 75 73 65 20 74 68 65 0a 2a 2a 20 20  s cause the.**  
0a00: 20 20 20 20 20 20 70 72 6f 63 65 64 75 72 65 73        procedures
0a10: 20 74 6f 20 72 75 6e 2e 20 20 54 68 65 20 70 72   to run.  The pr
0a20: 6f 63 65 64 75 72 65 73 20 6d 69 67 68 74 20 70  ocedures might p
0a30: 75 73 68 20 6f 72 20 70 75 6c 6c 20 0a 2a 2a 20  ush or pull .** 
0a40: 20 20 20 20 20 20 20 76 61 6c 75 65 73 20 66 72         values fr
0a50: 6f 6d 20 74 68 65 20 73 74 61 63 6b 2e 0a 2a 2a  om the stack..**
0a60: 0a 2a 2a 20 54 68 65 72 65 20 61 72 65 20 6a 75  .** There are ju
0a70: 73 74 20 61 20 68 61 6e 64 66 75 6c 20 6f 66 20  st a handful of 
0a80: 76 65 72 62 73 2e 20 20 46 6f 72 20 74 68 65 20  verbs.  For the 
0a90: 70 75 72 70 6f 73 65 73 20 6f 66 20 74 68 69 73  purposes of this
0aa0: 0a 2a 2a 20 63 6f 6e 66 69 67 75 72 61 74 69 6f  .** configuratio
0ab0: 6e 20 73 63 72 69 70 74 2c 20 74 68 65 72 65 20  n script, there 
0ac0: 69 73 20 6f 6e 6c 79 20 61 20 73 69 6e 67 6c 65  is only a single
0ad0: 20 76 65 72 62 3a 20 22 73 65 74 22 2e 20 20 54   verb: "set".  T
0ae0: 68 65 0a 2a 2a 20 22 73 65 74 22 20 76 65 72 62  he.** "set" verb
0af0: 20 70 6f 70 73 20 74 77 6f 20 61 72 67 75 6d 65   pops two argume
0b00: 6e 74 73 20 66 72 6f 6d 20 74 68 65 20 73 74 61  nts from the sta
0b10: 63 6b 2e 20 20 54 68 65 20 74 6f 70 6d 6f 73 74  ck.  The topmost
0b20: 20 69 73 0a 2a 2a 20 74 68 65 20 6e 61 6d 65 20   is.** the name 
0b30: 6f 66 20 61 20 76 61 72 69 61 62 6c 65 2e 20 20  of a variable.  
0b40: 54 68 65 20 73 65 63 6f 6e 64 20 65 6c 65 6d 65  The second eleme
0b50: 6e 74 20 69 73 20 74 68 65 20 76 61 6c 75 65 2e  nt is the value.
0b60: 20 20 54 68 65 0a 2a 2a 20 22 73 65 74 22 20 76    The.** "set" v
0b70: 65 72 62 20 73 65 74 73 20 74 68 65 20 76 61 6c  erb sets the val
0b80: 75 65 20 6f 66 20 74 68 65 20 6e 61 6d 65 64 20  ue of the named 
0b90: 76 61 72 69 61 62 6c 65 2e 0a 2a 2a 0a 2a 2a 20  variable..**.** 
0ba0: 20 20 20 20 20 56 41 4c 55 45 20 4e 41 4d 45 20       VALUE NAME 
0bb0: 73 65 74 0a 2a 2a 0a 2a 2a 20 54 68 69 73 20 63  set.**.** This c
0bc0: 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20 66 69 6c  onfiguration fil
0bd0: 65 20 6a 75 73 74 20 73 65 74 73 20 74 68 65 20  e just sets the 
0be0: 76 61 6c 75 65 73 20 6f 66 20 76 61 72 69 6f 75  values of variou
0bf0: 73 20 76 61 72 69 61 62 6c 65 73 2e 0a 2a 2a 20  s variables..** 
0c00: 53 6f 6d 65 20 6f 66 20 74 68 65 20 76 61 72 69  Some of the vari
0c10: 61 62 6c 65 73 20 68 61 76 65 20 73 70 65 63 69  ables have speci
0c20: 61 6c 20 6d 65 61 6e 69 6e 67 73 2e 20 20 54 68  al meanings.  Th
0c30: 65 20 63 6f 6e 74 65 6e 74 20 6f 66 20 73 6f 6d  e content of som
0c40: 65 0a 2a 2a 20 6f 66 20 74 68 65 20 76 61 72 69  e.** of the vari
0c50: 61 62 6c 65 73 20 61 72 65 20 61 64 64 69 74 69  ables are additi
0c60: 6f 6e 61 6c 20 73 75 62 73 63 72 69 70 74 20 73  onal subscript s
0c70: 63 72 69 70 74 73 2e 0a 2a 2f 0a 0a 2f 2a 20 40  cripts..*/../* @
0c80: 2d 63 6f 6d 6d 65 6e 74 3a 20 23 20 2a 2f 0a 63  -comment: # */.c
0c90: 6f 6e 73 74 20 63 68 61 72 20 7a 44 65 66 61 75  onst char zDefau
0ca0: 6c 74 54 69 63 6b 65 74 43 6f 6e 66 69 67 5b 5d  ltTicketConfig[]
0cb0: 20 3d 20 0a 40 20 23 23 23 23 23 23 23 23 23 23   = .@ ##########
0cc0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
0cd0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
0ce0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
0cf0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
0d00: 0a 40 20 23 0a 40 20 23 20 45 76 65 72 79 20 74  .@ #.@ # Every t
0d10: 69 63 6b 65 74 20 63 6f 6e 66 69 67 75 72 61 74  icket configurat
0d20: 69 6f 6e 20 66 69 6c 65 20 73 68 6f 75 6c 64 20  ion file should 
0d30: 68 61 76 65 20 61 20 74 69 74 6c 65 2e 20 20 57  have a title.  W
0d40: 68 65 6e 20 79 6f 75 0a 40 20 23 20 63 6f 6d 65  hen you.@ # come
0d50: 20 75 70 20 77 69 74 68 20 61 20 6e 65 77 20 74   up with a new t
0d60: 69 63 6b 65 74 20 63 6f 6e 66 69 67 75 72 61 74  icket configurat
0d70: 69 6f 6e 2c 20 70 6c 65 61 73 65 20 63 68 61 6e  ion, please chan
0d80: 67 65 20 74 68 65 20 74 69 74 6c 65 0a 40 20 23  ge the title.@ #
0d90: 20 74 6f 20 73 6f 6d 65 74 68 69 6e 67 20 64 65   to something de
0da0: 73 63 72 69 70 74 69 76 65 2e 0a 40 20 23 0a 40  scriptive..@ #.@
0db0: 20 7b 44 65 66 61 75 6c 74 20 54 69 63 6b 65 74   {Default Ticket
0dc0: 20 43 6f 6e 66 69 67 75 72 61 74 69 6f 6e 7d 20   Configuration} 
0dd0: 2f 74 69 63 6b 65 74 5f 63 6f 6e 66 69 67 5f 74  /ticket_config_t
0de0: 69 74 6c 65 20 73 65 74 0a 40 20 0a 40 20 23 23  itle set.@ .@ ##
0df0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
0e00: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
0e10: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
0e20: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
0e30: 23 23 23 23 23 23 23 23 23 23 0a 40 20 23 20 45  ##########.@ # E
0e40: 76 65 72 79 20 74 69 63 6b 65 74 20 63 6f 6e 66  very ticket conf
0e50: 69 67 75 72 61 74 69 6f 6e 20 2a 6d 75 73 74 2a  iguration *must*
0e60: 20 64 65 66 69 6e 65 20 61 20 73 65 74 20 6f 66   define a set of
0e70: 20 63 6f 6c 75 6d 6e 73 20 66 6f 72 20 74 68 65   columns for the
0e80: 0a 40 20 23 20 22 74 69 63 6b 65 74 22 20 74 61  .@ # "ticket" ta
0e90: 62 6c 65 20 6f 66 20 74 68 65 20 64 61 74 61 62  ble of the datab
0ea0: 61 73 65 2e 20 20 54 68 65 73 65 20 63 6f 6c 75  ase.  These colu
0eb0: 6d 6e 20 6e 61 6d 65 73 20 77 69 6c 6c 20 61 6c  mn names will al
0ec0: 73 6f 20 62 65 0a 40 20 23 20 75 73 65 64 20 61  so be.@ # used a
0ed0: 73 20 43 47 49 20 70 61 72 61 6d 65 74 65 72 20  s CGI parameter 
0ee0: 6e 61 6d 65 73 2c 20 73 6f 20 74 6f 20 61 76 6f  names, so to avo
0ef0: 69 64 20 70 72 6f 62 6c 65 6d 73 20 69 74 20 69  id problems it i
0f00: 73 20 62 65 73 74 20 74 68 61 74 0a 40 20 23 20  s best that.@ # 
0f10: 74 68 65 20 6e 61 6d 65 73 20 62 65 20 61 6c 6c  the names be all
0f20: 20 6c 6f 77 65 72 2d 63 61 73 65 20 61 6c 70 68   lower-case alph
0f30: 61 62 65 74 69 63 20 63 68 61 72 61 63 74 65 72  abetic character
0f40: 73 2e 20 20 54 68 65 20 6e 61 6d 65 73 20 6d 75  s.  The names mu
0f50: 73 74 0a 40 20 23 20 62 65 20 75 6e 69 71 75 65  st.@ # be unique
0f60: 20 61 6e 64 20 6d 75 73 74 20 6e 6f 74 20 62 65   and must not be
0f70: 67 69 6e 20 77 69 74 68 20 22 74 6b 74 5f 22 2e  gin with "tkt_".
0f80: 0a 40 20 23 0a 40 20 7b 0a 40 20 20 20 20 43 52  .@ #.@ {.@    CR
0f90: 45 41 54 45 20 54 41 42 4c 45 20 74 69 63 6b 65  EATE TABLE ticke
0fa0: 74 28 0a 40 20 20 20 20 20 20 2d 2d 20 44 6f 20  t(.@      -- Do 
0fb0: 6e 6f 74 20 63 68 61 6e 67 65 20 61 6e 79 20 63  not change any c
0fc0: 6f 6c 75 6d 6e 20 74 68 61 74 20 62 65 67 69 6e  olumn that begin
0fd0: 73 20 77 69 74 68 20 74 6b 74 5f 0a 40 20 20 20  s with tkt_.@   
0fe0: 20 20 20 74 6b 74 5f 69 64 20 49 4e 54 45 47 45     tkt_id INTEGE
0ff0: 52 20 50 52 49 4d 41 52 59 20 4b 45 59 2c 0a 40  R PRIMARY KEY,.@
1000: 20 20 20 20 20 20 74 6b 74 5f 75 75 69 64 20 54        tkt_uuid T
1010: 45 58 54 2c 0a 40 20 20 20 20 20 20 74 6b 74 5f  EXT,.@      tkt_
1020: 6d 74 69 6d 65 20 44 41 54 45 2c 0a 40 20 20 20  mtime DATE,.@   
1030: 20 20 20 2d 2d 20 41 64 64 20 61 73 20 6d 61 6e     -- Add as man
1040: 79 20 66 69 65 6c 64 20 61 73 20 72 65 71 75 69  y field as requi
1050: 72 65 64 20 62 65 6c 6f 77 20 74 68 69 73 20 6c  red below this l
1060: 69 6e 65 0a 40 20 20 20 20 20 20 74 79 70 65 20  ine.@      type 
1070: 54 45 58 54 2c 0a 40 20 20 20 20 20 20 73 74 61  TEXT,.@      sta
1080: 74 75 73 20 54 45 58 54 2c 0a 40 20 20 20 20 20  tus TEXT,.@     
1090: 20 73 75 62 73 79 73 74 65 6d 20 54 45 58 54 2c   subsystem TEXT,
10a0: 0a 40 20 20 20 20 20 20 70 72 69 6f 72 69 74 79  .@      priority
10b0: 20 54 45 58 54 2c 0a 40 20 20 20 20 20 20 73 65   TEXT,.@      se
10c0: 76 65 72 69 74 79 20 54 45 58 54 2c 0a 40 20 20  verity TEXT,.@  
10d0: 20 20 20 20 66 6f 75 6e 64 69 6e 20 54 45 58 54      foundin TEXT
10e0: 2c 0a 40 20 20 20 20 20 20 63 6f 6e 74 61 63 74  ,.@      contact
10f0: 20 54 45 58 54 2c 0a 40 20 20 20 20 20 20 74 69   TEXT,.@      ti
1100: 74 6c 65 20 54 45 58 54 2c 0a 40 20 20 20 20 20  tle TEXT,.@     
1110: 20 63 6f 6d 6d 65 6e 74 20 54 45 58 54 2c 0a 40   comment TEXT,.@
1120: 20 20 20 20 20 20 2d 2d 20 44 6f 20 6e 6f 74 20        -- Do not 
1130: 61 6c 74 65 72 20 74 68 69 73 20 55 4e 49 51 55  alter this UNIQU
1140: 45 20 63 6c 61 75 73 65 3a 0a 40 20 20 20 20 20  E clause:.@     
1150: 20 55 4e 49 51 55 45 28 74 6b 74 5f 75 75 69 64   UNIQUE(tkt_uuid
1160: 2c 20 74 6b 74 5f 6d 74 69 6d 65 29 0a 40 20 20  , tkt_mtime).@  
1170: 20 20 29 3b 0a 40 20 20 20 20 2d 2d 20 41 64 64    );.@    -- Add
1180: 20 69 6e 64 69 63 65 73 20 61 73 20 64 65 73 69   indices as desi
1190: 72 65 64 0a 40 20 7d 20 2f 74 69 63 6b 65 74 5f  red.@ } /ticket_
11a0: 73 71 6c 20 73 65 74 0a 40 20 0a 40 20 23 23 23  sql set.@ .@ ###
11b0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
11c0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
11d0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
11e0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
11f0: 23 23 23 23 23 23 23 23 23 0a 40 20 23 20 59 6f  #########.@ # Yo
1200: 75 20 63 61 6e 20 64 65 66 69 6e 65 20 61 64 64  u can define add
1210: 69 74 69 6f 6e 61 6c 20 76 61 72 69 61 62 6c 65  itional variable
1220: 73 20 68 65 72 65 2e 20 20 54 68 65 73 65 20 76  s here.  These v
1230: 61 72 69 61 62 6c 65 73 20 77 69 6c 6c 20 62 65  ariables will be
1240: 0a 40 20 23 20 61 63 63 65 73 73 69 62 6c 65 20  .@ # accessible 
1250: 74 6f 20 74 68 65 20 70 61 67 65 20 74 65 6d 70  to the page temp
1260: 6c 61 74 65 73 20 77 68 65 6e 20 74 68 65 79 20  lates when they 
1270: 72 75 6e 2e 0a 40 20 23 0a 40 20 7b 0a 40 20 20  run..@ #.@ {.@  
1280: 20 20 43 6f 64 65 5f 44 65 66 65 63 74 0a 40 20    Code_Defect.@ 
1290: 20 20 20 42 75 69 6c 64 5f 50 72 6f 62 6c 65 6d     Build_Problem
12a0: 0a 40 20 20 20 20 44 6f 63 75 6d 65 6e 74 61 74  .@    Documentat
12b0: 69 6f 6e 0a 40 20 20 20 20 46 65 61 74 75 72 65  ion.@    Feature
12c0: 5f 52 65 71 75 65 73 74 0a 40 20 20 20 20 49 6e  _Request.@    In
12d0: 63 69 64 65 6e 74 0a 40 20 7d 20 2f 74 79 70 65  cident.@ } /type
12e0: 5f 63 68 6f 69 63 65 73 20 73 65 74 0a 40 20 7b  _choices set.@ {
12f0: 49 6d 6d 65 64 69 61 74 65 20 48 69 67 68 20 4d  Immediate High M
1300: 65 64 69 75 6d 20 4c 6f 77 20 5a 65 72 6f 7d 20  edium Low Zero} 
1310: 2f 70 72 69 6f 72 69 74 79 5f 63 68 6f 69 63 65  /priority_choice
1320: 73 20 73 65 74 0a 40 20 7b 43 72 69 74 69 63 61  s set.@ {Critica
1330: 6c 20 53 65 76 65 72 65 20 49 6d 70 6f 72 74 61  l Severe Importa
1340: 6e 74 20 4d 69 6e 6f 72 20 43 6f 73 6d 65 74 69  nt Minor Cosmeti
1350: 63 7d 20 2f 73 65 76 65 72 69 74 79 5f 63 68 6f  c} /severity_cho
1360: 69 63 65 73 20 73 65 74 0a 40 20 7b 0a 40 20 20  ices set.@ {.@  
1370: 20 4f 70 65 6e 0a 40 20 20 20 46 69 78 65 64 0a   Open.@   Fixed.
1380: 40 20 20 20 52 65 6a 65 63 74 65 64 0a 40 20 20  @   Rejected.@  
1390: 20 55 6e 61 62 6c 65 5f 54 6f 5f 52 65 70 72 6f   Unable_To_Repro
13a0: 64 75 63 65 0a 40 20 20 20 57 6f 72 6b 73 5f 41  duce.@   Works_A
13b0: 73 5f 44 65 73 69 67 6e 65 64 0a 40 20 20 20 45  s_Designed.@   E
13c0: 78 74 65 72 6e 61 6c 5f 42 75 67 0a 40 20 20 20  xternal_Bug.@   
13d0: 4e 6f 74 5f 41 5f 42 75 67 0a 40 20 20 20 44 75  Not_A_Bug.@   Du
13e0: 70 6c 69 63 61 74 65 0a 40 20 20 20 4f 76 65 72  plicate.@   Over
13f0: 63 6f 6d 65 5f 42 79 5f 45 76 65 6e 74 73 0a 40  come_By_Events.@
1400: 20 20 20 44 72 69 76 65 5f 42 79 5f 50 61 74 63     Drive_By_Patc
1410: 68 0a 40 20 7d 20 2f 72 65 73 6f 6c 75 74 69 6f  h.@ } /resolutio
1420: 6e 5f 63 68 6f 69 63 65 73 20 73 65 74 0a 40 20  n_choices set.@ 
1430: 7b 0a 40 20 20 20 4f 70 65 6e 0a 40 20 20 20 56  {.@   Open.@   V
1440: 65 72 69 66 69 65 64 0a 40 20 20 20 49 6e 5f 50  erified.@   In_P
1450: 72 6f 63 65 73 73 0a 40 20 20 20 44 65 66 65 72  rocess.@   Defer
1460: 72 65 64 0a 40 20 20 20 46 69 78 65 64 0a 40 20  red.@   Fixed.@ 
1470: 20 20 54 65 73 74 65 64 0a 40 20 20 20 43 6c 6f    Tested.@   Clo
1480: 73 65 64 0a 40 20 7d 20 2f 73 74 61 74 75 73 5f  sed.@ } /status_
1490: 63 68 6f 69 63 65 73 20 73 65 74 0a 40 20 7b 6f  choices set.@ {o
14a0: 6e 65 20 74 77 6f 20 74 68 72 65 65 7d 20 2f 73  ne two three} /s
14b0: 75 62 73 79 73 74 65 6d 5f 63 68 6f 69 63 65 73  ubsystem_choices
14c0: 20 73 65 74 0a 40 20 0a 40 20 23 23 23 23 23 23   set.@ .@ ######
14d0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
14e0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
14f0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
1500: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
1510: 23 23 23 23 0a 40 20 23 20 54 68 65 20 22 74 6b  ####.@ # The "tk
1520: 74 6e 65 77 5f 74 65 6d 70 6c 61 74 65 22 20 76  tnew_template" v
1530: 61 72 69 61 62 6c 65 20 69 73 20 73 65 74 20 74  ariable is set t
1540: 6f 20 74 65 78 74 20 77 68 69 63 68 20 69 73 20  o text which is 
1550: 61 20 74 65 6d 70 6c 61 74 65 20 66 6f 72 0a 40  a template for.@
1560: 20 23 20 74 68 65 20 48 54 4d 4c 20 6f 66 20 74   # the HTML of t
1570: 68 65 20 22 4e 65 77 20 54 69 63 6b 65 74 22 20  he "New Ticket" 
1580: 70 61 67 65 2e 20 20 57 69 74 68 69 6e 20 74 68  page.  Within th
1590: 69 73 20 74 65 6d 70 6c 61 74 65 2c 20 74 65 78  is template, tex
15a0: 74 20 63 6f 6e 74 61 69 6e 65 64 0a 40 20 23 20  t contained.@ # 
15b0: 77 69 74 68 69 6e 20 5b 2e 2e 2e 5d 20 69 73 20  within [...] is 
15c0: 73 75 62 73 63 72 69 70 74 2e 20 20 54 68 61 74  subscript.  That
15d0: 20 73 75 62 73 63 72 69 70 74 20 72 75 6e 73 20   subscript runs 
15e0: 77 68 65 6e 20 74 68 65 20 70 61 67 65 20 69 73  when the page is
15f0: 0a 40 20 23 20 72 65 6e 64 65 72 65 64 2e 0a 40  .@ # rendered..@
1600: 20 23 0a 40 20 7b 0a 40 20 20 20 3c 21 2d 2d 20   #.@ {.@   <!-- 
1610: 6c 6f 61 64 20 64 61 74 61 62 61 73 65 20 66 69  load database fi
1620: 65 6c 64 20 6e 61 6d 65 73 20 6e 6f 74 20 66 6f  eld names not fo
1630: 75 6e 64 20 69 6e 20 43 47 49 20 77 69 74 68 20  und in CGI with 
1640: 61 6e 20 65 6d 70 74 79 20 73 74 72 69 6e 67 20  an empty string 
1650: 2d 2d 3e 0a 40 20 20 20 3c 21 2d 2d 20 73 74 61  -->.@   <!-- sta
1660: 72 74 20 61 20 66 6f 72 6d 20 2d 2d 3e 0a 40 20  rt a form -->.@ 
1670: 20 20 5b 7b 0a 40 20 20 20 20 20 20 7b 4f 70 65    [{.@      {Ope
1680: 6e 7d 20 2f 73 74 61 74 75 73 20 73 65 74 0a 40  n} /status set.@
1690: 20 20 20 20 20 20 20 73 75 62 6d 69 74 5f 6e 65         submit_ne
16a0: 77 5f 74 69 63 6b 65 74 0a 40 20 20 20 7d 20 2f  w_ticket.@   } /
16b0: 73 75 62 6d 69 74 20 65 78 69 73 74 73 20 69 66  submit exists if
16c0: 5d 0a 40 20 20 20 3c 74 61 62 6c 65 20 63 65 6c  ].@   <table cel
16d0: 6c 70 61 64 64 69 6e 67 3d 22 35 22 3e 0a 40 20  lpadding="5">.@ 
16e0: 20 20 3c 74 72 3e 0a 40 20 20 20 3c 74 64 20 63    <tr>.@   <td c
16f0: 6f 6c 73 70 61 6e 3d 22 32 22 3e 0a 40 20 20 20  olspan="2">.@   
1700: 45 6e 74 65 72 20 61 20 6f 6e 65 2d 6c 69 6e 65  Enter a one-line
1710: 20 73 75 6d 6d 61 72 79 20 6f 66 20 74 68 65 20   summary of the 
1720: 70 72 6f 62 6c 65 6d 3a 3c 62 72 3e 0a 40 20 20  problem:<br>.@  
1730: 20 3c 69 6e 70 75 74 20 74 79 70 65 3d 22 74 65   <input type="te
1740: 78 74 22 20 6e 61 6d 65 3d 22 74 69 74 6c 65 22  xt" name="title"
1750: 20 73 69 7a 65 3d 22 36 30 22 20 76 61 6c 75 65   size="60" value
1760: 3d 22 5b 7b 7d 20 2f 74 69 74 6c 65 20 67 65 74  ="[{} /title get
1770: 20 68 74 6d 6c 5d 22 3e 0a 40 20 20 20 3c 2f 74   html]">.@   </t
1780: 64 3e 0a 40 20 20 20 3c 2f 74 72 3e 0a 40 20 20  d>.@   </tr>.@  
1790: 20 0a 40 20 20 20 3c 74 72 3e 0a 40 20 20 20 3c   .@   <tr>.@   <
17a0: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22  td align="right"
17b0: 3e 54 79 70 65 3a 0a 40 20 20 20 5b 2f 74 79 70  >Type:.@   [/typ
17c0: 65 20 74 79 70 65 5f 63 68 6f 69 63 65 73 20 31  e type_choices 1
17d0: 20 63 6f 6d 62 6f 62 6f 78 5d 0a 40 20 20 20 3c   combobox].@   <
17e0: 2f 74 64 3e 0a 40 20 20 20 3c 74 64 3e 57 68 61  /td>.@   <td>Wha
17f0: 74 20 74 79 70 65 20 6f 66 20 74 69 63 6b 65 74  t type of ticket
1800: 20 69 73 20 74 68 69 73 3f 3c 2f 74 64 3e 0a 40   is this?</td>.@
1810: 20 20 20 3c 2f 74 72 3e 0a 40 20 20 20 0a 40 20     </tr>.@   .@ 
1820: 20 20 3c 74 72 3e 0a 40 20 20 20 3c 74 64 20 61    <tr>.@   <td a
1830: 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 56 65 72  lign="right">Ver
1840: 73 69 6f 6e 3a 20 0a 40 20 20 20 3c 69 6e 70 75  sion: .@   <inpu
1850: 74 20 74 79 70 65 3d 22 74 65 78 74 22 20 6e 61  t type="text" na
1860: 6d 65 3d 22 66 6f 75 6e 64 69 6e 22 20 73 69 7a  me="foundin" siz
1870: 65 3d 22 32 30 22 20 76 61 6c 75 65 3d 22 5b 7b  e="20" value="[{
1880: 7d 20 2f 66 6f 75 6e 64 69 6e 20 67 65 74 20 68  } /foundin get h
1890: 74 6d 6c 5d 22 3e 0a 40 20 20 20 3c 2f 74 64 3e  tml]">.@   </td>
18a0: 0a 40 20 20 20 3c 74 64 3e 49 6e 20 77 68 61 74  .@   <td>In what
18b0: 20 76 65 72 73 69 6f 6e 20 6f 72 20 62 75 69 6c   version or buil
18c0: 64 20 6e 75 6d 62 65 72 20 64 6f 20 79 6f 75 20  d number do you 
18d0: 6f 62 73 65 72 76 65 72 20 74 68 65 20 70 72 6f  observer the pro
18e0: 62 6c 65 6d 3f 3c 2f 74 64 3e 0a 40 20 20 20 3c  blem?</td>.@   <
18f0: 2f 74 72 3e 0a 40 20 20 20 0a 40 20 20 20 3c 74  /tr>.@   .@   <t
1900: 72 3e 0a 40 20 20 20 3c 74 64 20 61 6c 69 67 6e  r>.@   <td align
1910: 3d 22 72 69 67 68 74 22 3e 53 65 76 65 72 69 74  ="right">Severit
1920: 79 3a 0a 40 20 20 20 5b 2f 73 65 76 65 72 69 74  y:.@   [/severit
1930: 79 20 73 65 76 65 72 69 74 79 5f 63 68 6f 69 63  y severity_choic
1940: 65 73 20 31 20 63 6f 6d 62 6f 62 6f 78 5d 0a 40  es 1 combobox].@
1950: 20 20 20 3c 2f 74 64 3e 0a 40 20 20 20 3c 74 64     </td>.@   <td
1960: 3e 48 6f 77 20 64 65 62 69 6c 69 74 61 74 69 6e  >How debilitatin
1970: 67 20 69 73 20 74 68 65 20 70 72 6f 62 6c 65 6d  g is the problem
1980: 3f 20 20 48 6f 77 20 62 61 64 6c 79 20 64 6f 65  ?  How badly doe
1990: 73 20 74 68 65 20 70 72 6f 62 6c 65 6d 0a 40 20  s the problem.@ 
19a0: 20 20 65 66 66 65 63 74 20 74 68 65 20 6f 70 65    effect the ope
19b0: 72 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 70 72  ration of the pr
19c0: 6f 64 75 63 74 3f 3c 2f 74 64 3e 0a 40 20 20 20  oduct?</td>.@   
19d0: 3c 2f 74 72 3e 0a 40 20 20 20 0a 40 20 20 20 3c  </tr>.@   .@   <
19e0: 74 72 3e 0a 40 20 20 20 3c 74 64 20 61 6c 69 67  tr>.@   <td alig
19f0: 6e 3d 22 72 69 67 68 74 22 3e 45 4d 61 69 6c 3a  n="right">EMail:
1a00: 0a 40 20 20 20 5b 2f 73 65 76 65 72 69 74 79 20  .@   [/severity 
1a10: 73 65 76 65 72 69 74 79 5f 63 68 6f 69 63 65 73  severity_choices
1a20: 20 31 20 63 6f 6d 62 6f 62 6f 78 5d 0a 40 20 20   1 combobox].@  
1a30: 20 3c 2f 74 64 3e 0a 40 20 20 20 3c 74 64 3e 4e   </td>.@   <td>N
1a40: 6f 74 20 70 75 62 6c 69 63 61 6c 6c 79 20 76 69  ot publically vi
1a50: 73 69 62 6c 65 2e 20 55 73 65 64 20 62 79 20 64  sible. Used by d
1a60: 65 76 65 6c 6f 70 65 72 73 20 74 6f 20 63 6f 6e  evelopers to con
1a70: 74 61 63 74 20 79 6f 75 20 77 69 74 68 0a 40 20  tact you with.@ 
1a80: 20 20 71 75 65 73 74 69 6f 6e 73 2e 3c 2f 74 64    questions.</td
1a90: 3e 0a 40 20 20 20 3c 2f 74 72 3e 0a 40 20 20 20  >.@   </tr>.@   
1aa0: 0a 40 20 20 20 3c 74 72 3e 0a 40 20 20 20 3c 74  .@   <tr>.@   <t
1ab0: 64 20 63 6f 6c 73 70 61 6e 3d 22 32 22 3e 0a 40  d colspan="2">.@
1ac0: 20 20 20 45 6e 74 65 72 20 61 20 64 65 74 61 69     Enter a detai
1ad0: 6c 65 64 20 64 65 73 63 72 69 70 74 69 6f 6e 20  led description 
1ae0: 6f 66 20 74 68 65 20 70 72 6f 62 6c 65 6d 2e 0a  of the problem..
1af0: 40 20 20 20 46 6f 72 20 63 6f 64 65 20 64 65 66  @   For code def
1b00: 65 63 74 73 2c 20 62 65 20 73 75 72 65 20 74 6f  ects, be sure to
1b10: 20 70 72 6f 76 69 64 65 20 64 65 74 61 69 6c 73   provide details
1b20: 20 6f 6e 20 65 78 61 63 74 6c 79 20 68 6f 77 0a   on exactly how.
1b30: 40 20 20 20 74 68 65 20 70 72 6f 62 6c 65 6d 20  @   the problem 
1b40: 63 61 6e 20 62 65 20 72 65 70 72 6f 64 75 63 65  can be reproduce
1b50: 64 2e 20 20 50 72 6f 76 69 64 65 20 61 73 20 6d  d.  Provide as m
1b60: 75 63 68 20 64 65 74 61 69 6c 20 61 73 0a 40 20  uch detail as.@ 
1b70: 20 20 70 6f 73 73 69 62 6c 65 2e 0a 40 20 20 20    possible..@   
1b80: 3c 62 72 3e 0a 40 20 20 20 3c 74 65 78 74 61 72  <br>.@   <textar
1b90: 65 61 20 6e 61 6d 65 3d 22 63 6f 6d 6d 65 6e 74  ea name="comment
1ba0: 22 20 63 6f 6c 73 3d 22 38 30 22 0a 40 20 20 20  " cols="80".@   
1bb0: 20 72 6f 77 73 3d 22 5b 7b 7d 20 2f 63 6f 6d 6d   rows="[{} /comm
1bc0: 65 6e 74 20 67 65 74 20 6c 69 6e 65 63 6f 75 6e  ent get linecoun
1bd0: 74 20 35 30 20 6d 61 78 20 31 30 20 6d 69 6e 20  t 50 max 10 min 
1be0: 68 74 6d 6c 5d 22 0a 40 20 20 20 20 77 72 61 70  html]".@    wrap
1bf0: 3d 22 76 69 72 74 75 61 6c 22 20 63 6c 61 73 73  ="virtual" class
1c00: 3d 22 77 69 6b 69 65 64 69 74 22 3e 5b 7b 7d 20  ="wikiedit">[{} 
1c10: 2f 63 6f 6d 6d 65 6e 74 20 67 65 74 20 68 74 6d  /comment get htm
1c20: 6c 5d 3c 2f 74 65 78 74 61 72 65 61 3e 3c 62 72  l]</textarea><br
1c30: 3e 0a 40 20 20 20 3c 69 6e 70 75 74 20 74 79 70  >.@   <input typ
1c40: 65 3d 22 73 75 62 6d 69 74 22 20 6e 61 6d 65 3d  e="submit" name=
1c50: 22 70 72 65 76 69 65 77 22 20 76 61 6c 75 65 3d  "preview" value=
1c60: 22 50 72 65 76 69 65 77 22 3e 0a 40 20 20 20 3c  "Preview">.@   <
1c70: 2f 74 72 3e 0a 40 20 0a 40 20 20 20 5b 2f 70 72  /tr>.@ .@   [/pr
1c80: 65 76 69 65 77 20 65 78 69 73 74 73 20 65 6e 61  eview exists ena
1c90: 62 6c 65 5f 6f 75 74 70 75 74 5d 0a 40 20 20 20  ble_output].@   
1ca0: 3c 74 72 3e 3c 74 64 20 63 6f 6c 73 70 61 6e 3d  <tr><td colspan=
1cb0: 22 32 22 3e 0a 40 20 20 20 44 65 73 63 72 69 70  "2">.@   Descrip
1cc0: 74 69 6f 6e 20 50 72 65 76 69 65 77 3a 3c 62 72  tion Preview:<br
1cd0: 3e 3c 68 72 3e 0a 40 20 20 20 5b 7b 7d 20 2f 63  ><hr>.@   [{} /c
1ce0: 6f 6d 6d 65 6e 74 20 67 65 74 20 77 69 6b 69 5d  omment get wiki]
1cf0: 0a 40 20 20 20 3c 68 72 3e 0a 40 20 20 20 3c 2f  .@   <hr>.@   </
1d00: 74 64 3e 3c 2f 74 72 3e 0a 40 20 20 20 5b 31 20  td></tr>.@   [1 
1d10: 65 6e 61 62 6c 65 5f 6f 75 74 70 75 74 5d 0a 40  enable_output].@
1d20: 20 20 20 0a 40 20 20 20 3c 74 72 3e 0a 40 20 20     .@   <tr>.@  
1d30: 20 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68   <td align="righ
1d40: 74 22 3e 0a 40 20 20 20 3c 69 6e 70 75 74 20 74  t">.@   <input t
1d50: 79 70 65 3d 22 73 75 62 6d 69 74 22 20 6e 61 6d  ype="submit" nam
1d60: 65 3d 22 73 75 62 6d 69 74 22 20 76 61 6c 75 65  e="submit" value
1d70: 3d 22 53 75 62 6d 69 74 22 3e 0a 40 20 20 20 3c  ="Submit">.@   <
1d80: 2f 74 64 3e 0a 40 20 20 20 3c 74 64 3e 41 66 74  /td>.@   <td>Aft
1d90: 65 72 20 66 69 6c 6c 69 6e 67 20 69 6e 20 74 68  er filling in th
1da0: 65 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 61 62  e information ab
1db0: 6f 76 65 2c 20 70 72 65 73 73 20 74 68 69 73 20  ove, press this 
1dc0: 62 75 74 74 6f 6e 20 74 6f 20 63 72 65 61 74 65  button to create
1dd0: 0a 40 20 20 20 74 68 65 20 6e 65 77 20 74 69 63  .@   the new tic
1de0: 6b 65 74 3c 2f 74 64 3e 0a 40 20 20 20 3c 2f 74  ket</td>.@   </t
1df0: 72 3e 0a 40 20 20 20 3c 2f 74 61 62 6c 65 3e 0a  r>.@   </table>.
1e00: 40 20 20 20 3c 21 2d 2d 20 65 6e 64 20 6f 66 20  @   <!-- end of 
1e10: 66 6f 72 6d 20 2d 2d 3e 0a 40 20 7d 20 2f 74 6b  form -->.@ } /tk
1e20: 74 6e 65 77 5f 74 65 6d 70 6c 61 74 65 20 73 65  tnew_template se
1e30: 74 0a 40 20 0a 40 20 23 23 23 23 23 23 23 23 23  t.@ .@ #########
1e40: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
1e50: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
1e60: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
1e70: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
1e80: 23 0a 40 20 23 20 54 68 65 20 74 65 6d 70 6c 61  #.@ # The templa
1e90: 74 65 20 66 6f 72 20 74 68 65 20 22 65 64 69 74  te for the "edit
1ea0: 20 74 69 63 6b 65 74 22 20 70 61 67 65 0a 40 20   ticket" page.@ 
1eb0: 23 0a 40 20 23 20 54 68 65 6e 20 67 65 6e 65 72  #.@ # Then gener
1ec0: 61 74 65 64 20 74 65 78 74 20 69 73 20 69 6e 73  ated text is ins
1ed0: 65 72 74 65 64 20 69 6e 73 69 64 65 20 61 20 66  erted inside a f
1ee0: 6f 72 6d 20 77 68 69 63 68 20 66 65 65 64 73 20  orm which feeds 
1ef0: 62 61 63 6b 20 74 6f 20 69 74 73 65 6c 66 2e 0a  back to itself..
1f00: 40 20 23 20 41 6c 6c 20 43 47 49 20 70 61 72 61  @ # All CGI para
1f10: 6d 65 74 65 72 73 20 61 72 65 20 6c 6f 61 64 65  meters are loade
1f20: 64 20 69 6e 74 6f 20 76 61 72 69 61 62 6c 65 73  d into variables
1f30: 2e 20 20 41 6c 6c 20 64 61 74 61 62 61 73 65 20  .  All database 
1f40: 66 69 6c 65 73 20 61 72 65 0a 40 20 23 20 6c 6f  files are.@ # lo
1f50: 61 64 65 64 20 69 6e 74 6f 20 76 61 72 69 61 62  aded into variab
1f60: 6c 65 73 20 69 66 20 74 68 65 79 20 68 61 76 65  les if they have
1f70: 20 6e 6f 74 20 70 72 65 76 69 6f 75 73 6c 79 20   not previously 
1f80: 62 65 65 6e 20 6c 6f 61 64 65 64 20 62 79 0a 40  been loaded by.@
1f90: 20 23 20 43 47 49 20 70 61 72 61 6d 65 74 65 72   # CGI parameter
1fa0: 73 2e 0a 40 20 7b 0a 40 20 20 20 5b 0a 40 20 20  s..@ {.@   [.@  
1fb0: 20 20 20 6c 6f 67 69 6e 20 2f 75 73 65 72 6e 61     login /userna
1fc0: 6d 65 20 67 65 74 20 2f 75 73 65 72 6e 61 6d 65  me get /username
1fd0: 20 73 65 74 0a 40 20 20 20 20 20 7b 0a 40 20 20   set.@     {.@  
1fe0: 20 20 20 20 20 7b 0a 40 20 20 20 20 20 20 20 20       {.@        
1ff0: 20 75 73 65 72 6e 61 6d 65 20 6c 6f 67 69 6e 20   username login 
2000: 65 71 20 2f 73 61 6d 65 6e 61 6d 65 20 73 65 74  eq /samename set
2010: 0a 40 20 20 22 73 61 6d 65 6e 61 6d 65 3d 22 20  .@  "samename=" 
2020: 68 74 6d 6c 20 73 61 6d 65 6e 61 6d 65 20 68 74  html samename ht
2030: 6d 6c 20 22 3c 62 72 3e 22 20 70 75 74 73 0a 40  ml "<br>" puts.@
2040: 20 20 20 20 20 20 20 20 20 7b 0a 40 20 20 20 20           {.@    
2050: 20 20 20 20 20 20 20 20 22 5c 6e 3c 68 72 3e 3c          "\n<hr><
2060: 69 3e 22 20 6c 6f 67 69 6e 20 22 20 61 64 64 65  i>" login " adde
2070: 64 20 6f 6e 20 22 20 64 61 74 65 20 22 3a 3c 2f  d on " date ":</
2080: 69 3e 3c 2f 62 72 3e 5c 6e 22 20 63 6d 61 70 70  i></br>\n" cmapp
2090: 6e 64 20 36 20 63 6f 6e 63 61 74 0a 40 20 20 20  nd 6 concat.@   
20a0: 20 20 20 20 20 20 20 20 20 2f 63 6f 6d 6d 65 6e           /commen
20b0: 74 20 61 70 70 65 6e 64 5f 66 69 65 6c 64 0a 40  t append_field.@
20c0: 20 20 20 20 20 20 20 20 20 7d 20 73 61 6d 65 6e           } samen
20d0: 61 6d 65 20 69 66 0a 40 20 20 20 20 20 20 20 20  ame if.@        
20e0: 20 7b 0a 40 20 20 20 20 20 20 20 20 20 20 20 20   {.@            
20f0: 22 5c 6e 3c 68 72 3e 3c 69 3e 22 20 6c 6f 67 69  "\n<hr><i>" logi
2100: 6e 20 22 20 63 6c 61 69 6d 69 6e 67 20 74 6f 20  n " claiming to 
2110: 62 65 20 22 20 75 73 65 72 6e 61 6d 65 20 22 20  be " username " 
2120: 61 64 64 65 64 20 6f 6e 20 22 20 64 61 74 65 0a  added on " date.
2130: 40 20 20 20 20 20 20 20 20 20 20 20 20 22 3c 2f  @            "</
2140: 69 3e 3c 62 72 3e 5c 6e 22 20 63 6d 61 70 70 6e  i><br>\n" cmappn
2150: 64 20 38 20 63 6f 6e 63 61 74 20 2f 63 6f 6d 6d  d 8 concat /comm
2160: 65 6e 74 20 61 70 70 65 6e 64 5f 66 69 65 6c 64  ent append_field
2170: 0a 40 20 20 20 20 20 20 20 20 20 7d 20 73 61 6d  .@         } sam
2180: 65 6e 61 6d 65 20 6e 6f 74 20 69 66 0a 40 20 20  ename not if.@  
2190: 20 20 20 20 20 7d 20 30 20 7b 7d 20 2f 63 6d 61       } 0 {} /cma
21a0: 70 70 6e 64 20 67 65 74 20 6c 65 6e 67 74 68 20  ppnd get length 
21b0: 6c 74 20 69 66 0a 40 20 20 20 20 20 20 20 73 75  lt if.@       su
21c0: 62 6d 69 74 5f 74 69 63 6b 65 74 0a 40 20 20 20  bmit_ticket.@   
21d0: 20 20 7d 20 2f 73 75 62 6d 69 74 20 65 78 69 73    } /submit exis
21e0: 74 73 20 69 66 0a 40 20 20 20 5d 0a 40 20 20 20  ts if.@   ].@   
21f0: 3c 74 61 62 6c 65 20 63 65 6c 6c 70 61 64 64 69  <table cellpaddi
2200: 6e 67 3d 22 35 22 3e 0a 40 20 20 20 3c 74 72 3e  ng="5">.@   <tr>
2210: 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74  <td align="right
2220: 22 3e 54 69 74 6c 65 3a 3c 2f 74 64 3e 3c 74 64  ">Title:</td><td
2230: 3e 0a 40 20 20 20 3c 69 6e 70 75 74 20 74 79 70  >.@   <input typ
2240: 65 3d 22 74 65 78 74 22 20 6e 61 6d 65 3d 22 74  e="text" name="t
2250: 69 74 6c 65 22 20 76 61 6c 75 65 3d 22 5b 74 69  itle" value="[ti
2260: 74 6c 65 20 68 74 6d 6c 5d 22 20 73 69 7a 65 3d  tle html]" size=
2270: 22 36 30 22 3e 0a 40 20 20 20 3c 2f 74 64 3e 3c  "60">.@   </td><
2280: 2f 74 72 3e 0a 40 20 20 20 3c 74 72 3e 3c 74 64  /tr>.@   <tr><td
2290: 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 53   align="right">S
22a0: 74 61 74 75 73 3a 3c 2f 74 64 3e 3c 74 64 3e 0a  tatus:</td><td>.
22b0: 40 20 20 20 5b 2f 73 74 61 74 75 73 20 73 74 61  @   [/status sta
22c0: 74 75 73 5f 63 68 6f 69 63 65 73 20 31 20 63 6f  tus_choices 1 co
22d0: 6d 62 6f 62 6f 78 5d 0a 40 20 20 20 3c 2f 74 64  mbobox].@   </td
22e0: 3e 3c 2f 74 72 3e 0a 40 20 20 20 3c 74 72 3e 3c  ></tr>.@   <tr><
22f0: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22  td align="right"
2300: 3e 54 79 70 65 3a 3c 2f 74 64 3e 3c 74 64 3e 0a  >Type:</td><td>.
2310: 40 20 20 20 5b 2f 74 79 70 65 20 74 79 70 65 5f  @   [/type type_
2320: 63 68 6f 69 63 65 73 20 31 20 63 6f 6d 62 6f 62  choices 1 combob
2330: 6f 78 5d 0a 40 20 20 20 3c 2f 74 64 3e 3c 2f 74  ox].@   </td></t
2340: 72 3e 0a 40 20 20 20 3c 74 72 3e 3c 74 64 20 61  r>.@   <tr><td a
2350: 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 53 65 76  lign="right">Sev
2360: 65 72 69 74 79 3a 3c 2f 74 64 3e 3c 74 64 3e 0a  erity:</td><td>.
2370: 40 20 20 20 5b 2f 73 65 76 65 72 69 74 79 20 73  @   [/severity s
2380: 65 76 65 72 69 74 79 5f 63 68 6f 69 63 65 73 20  everity_choices 
2390: 31 20 63 6f 6d 62 6f 62 6f 78 5d 0a 40 20 20 20  1 combobox].@   
23a0: 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40 20 20 20 3c  </td></tr>.@   <
23b0: 74 72 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69  tr><td align="ri
23c0: 67 68 74 22 3e 50 72 69 6f 72 69 74 79 3a 3c 2f  ght">Priority:</
23d0: 74 64 3e 3c 74 64 3e 0a 40 20 20 20 5b 2f 70 72  td><td>.@   [/pr
23e0: 69 6f 72 69 74 79 20 70 72 69 6f 72 69 74 79 5f  iority priority_
23f0: 63 68 6f 69 63 65 73 20 31 20 63 6f 6d 62 6f 62  choices 1 combob
2400: 6f 78 5d 0a 40 20 20 20 3c 2f 74 64 3e 3c 2f 74  ox].@   </td></t
2410: 72 3e 0a 40 20 20 20 3c 74 72 3e 3c 74 64 20 61  r>.@   <tr><td a
2420: 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 52 65 73  lign="right">Res
2430: 6f 6c 75 74 69 6f 6e 3a 3c 2f 74 64 3e 3c 74 64  olution:</td><td
2440: 3e 0a 40 20 20 20 5b 2f 72 65 73 6f 6c 75 74 69  >.@   [/resoluti
2450: 6f 6e 20 72 65 73 6f 6c 75 74 69 6f 6e 5f 63 68  on resolution_ch
2460: 6f 69 63 65 73 20 31 20 63 6f 6d 62 6f 62 6f 78  oices 1 combobox
2470: 5d 0a 40 20 20 20 3c 2f 74 64 3e 3c 2f 74 72 3e  ].@   </td></tr>
2480: 0a 40 20 20 20 3c 74 72 3e 3c 74 64 20 61 6c 69  .@   <tr><td ali
2490: 67 6e 3d 22 72 69 67 68 74 22 3e 53 75 62 73 79  gn="right">Subsy
24a0: 73 74 65 6d 3a 3c 2f 74 64 3e 3c 74 64 3e 0a 40  stem:</td><td>.@
24b0: 20 20 20 5b 2f 73 75 62 73 79 73 74 65 6d 20 73     [/subsystem s
24c0: 75 62 73 79 73 74 65 6d 5f 63 68 6f 69 63 65 73  ubsystem_choices
24d0: 20 31 20 63 6f 6d 62 6f 62 6f 78 5d 0a 40 20 20   1 combobox].@  
24e0: 20 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40 20 20 20   </td></tr>.@   
24f0: 5b 2f 65 20 68 61 73 63 61 70 20 65 6e 61 62 6c  [/e hascap enabl
2500: 65 5f 6f 75 74 70 75 74 5d 0a 40 20 20 20 20 20  e_output].@     
2510: 3c 74 72 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72  <tr><td align="r
2520: 69 67 68 74 22 3e 43 6f 6e 74 61 63 74 3a 3c 2f  ight">Contact:</
2530: 74 64 3e 3c 74 64 3e 0a 40 20 20 20 20 20 3c 69  td><td>.@     <i
2540: 6e 70 75 74 20 74 79 70 65 3d 22 74 65 78 74 22  nput type="text"
2550: 20 6e 61 6d 65 3d 22 63 6f 6e 74 61 63 74 22 20   name="contact" 
2560: 73 69 7a 65 3d 22 34 30 22 20 76 61 6c 75 65 3d  size="40" value=
2570: 22 5b 63 6f 6e 74 61 63 74 20 68 74 6d 6c 5d 22  "[contact html]"
2580: 3e 0a 40 20 20 20 20 20 3c 2f 74 64 3e 3c 2f 74  >.@     </td></t
2590: 72 3e 0a 40 20 20 20 5b 31 20 65 6e 61 62 6c 65  r>.@   [1 enable
25a0: 5f 6f 75 74 70 75 74 5d 0a 40 20 20 20 3c 74 72  _output].@   <tr
25b0: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68  ><td align="righ
25c0: 74 22 3e 56 65 72 73 69 6f 6e 26 6e 62 73 70 3b  t">Version&nbsp;
25d0: 46 6f 75 6e 64 26 6e 62 73 70 3b 49 6e 3a 3c 2f  Found&nbsp;In:</
25e0: 74 64 3e 3c 74 64 3e 0a 40 20 20 20 3c 69 6e 70  td><td>.@   <inp
25f0: 75 74 20 74 79 70 65 3d 22 74 65 78 74 22 20 6e  ut type="text" n
2600: 61 6d 65 3d 22 66 6f 75 6e 64 69 6e 22 20 73 69  ame="foundin" si
2610: 7a 65 3d 22 35 30 22 20 76 61 6c 75 65 3d 22 5b  ze="50" value="[
2620: 66 6f 75 6e 64 69 6e 20 68 74 6d 6c 5d 22 3e 0a  foundin html]">.
2630: 40 20 20 20 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40  @   </td></tr>.@
2640: 20 20 20 3c 74 72 3e 3c 74 64 20 63 6f 6c 73 70     <tr><td colsp
2650: 61 6e 3d 22 32 22 3e 0a 40 0a 40 20 20 20 5b 0a  an="2">.@.@   [.
2660: 40 20 20 20 20 20 20 30 20 2f 65 61 6c 6c 20 67  @      0 /eall g
2670: 65 74 20 2f 65 61 6c 6c 20 73 65 74 20 20 20 20  et /eall set    
2680: 20 20 20 20 20 20 20 23 20 65 61 6c 6c 20 6d 65         # eall me
2690: 61 6e 73 20 22 65 64 69 74 20 61 6c 6c 22 2e 20  ans "edit all". 
26a0: 20 64 65 66 61 75 6c 74 3d 3d 6e 6f 0a 40 20 20   default==no.@  
26b0: 20 20 20 20 2f 61 6f 6e 6c 79 62 74 6e 20 65 78      /aonlybtn ex
26c0: 69 73 74 73 20 6e 6f 74 20 2f 65 61 6c 6c 20 73  ists not /eall s
26d0: 65 74 20 20 23 20 45 64 69 74 20 61 6c 6c 20 69  et  # Edit all i
26e0: 66 20 6e 6f 20 61 6f 6e 6c 79 62 74 6e 20 43 47  f no aonlybtn CG
26f0: 49 20 70 61 72 61 6d 0a 40 20 20 20 20 20 20 2f  I param.@      /
2700: 65 61 6c 6c 62 74 6e 20 65 78 69 73 74 73 20 2f  eallbtn exists /
2710: 65 61 6c 6c 20 73 65 74 20 20 20 20 20 20 20 23  eall set       #
2720: 20 45 64 69 74 20 61 6c 6c 20 69 66 20 65 61 6c   Edit all if eal
2730: 6c 62 74 6e 20 43 47 49 20 70 61 72 61 6d 0a 40  lbtn CGI param.@
2740: 20 20 20 20 20 20 2f 77 20 68 61 73 63 61 70 20        /w hascap 
2750: 65 61 6c 6c 20 61 6e 64 20 2f 65 61 6c 6c 20 73  eall and /eall s
2760: 65 74 20 20 20 20 23 20 57 72 54 6b 74 20 70 65  et    # WrTkt pe
2770: 72 6d 69 73 73 69 6f 6e 20 6e 65 65 64 65 64 20  rmission needed 
2780: 74 6f 20 65 64 69 74 20 61 6c 6c 0a 40 20 20 20  to edit all.@   
2790: 5d 0a 40 20 0a 40 20 20 20 5b 65 61 6c 6c 20 65  ].@ .@   [eall e
27a0: 6e 61 62 6c 65 5f 6f 75 74 70 75 74 5d 0a 40 20  nable_output].@ 
27b0: 20 20 20 20 44 65 73 63 72 69 70 74 69 6f 6e 20      Description 
27c0: 41 6e 64 20 43 6f 6d 6d 65 6e 74 73 3a 3c 62 72  And Comments:<br
27d0: 3e 0a 40 20 20 20 20 20 3c 74 65 78 74 61 72 65  >.@     <textare
27e0: 61 20 6e 61 6d 65 3d 22 63 6f 6d 6d 65 6e 74 22  a name="comment"
27f0: 20 63 6f 6c 73 3d 22 38 30 22 20 0a 40 20 20 20   cols="80" .@   
2800: 20 20 20 72 6f 77 73 3d 22 5b 7b 7d 20 2f 63 6f     rows="[{} /co
2810: 6d 6d 65 6e 74 20 67 65 74 20 6c 69 6e 65 63 6f  mment get lineco
2820: 75 6e 74 20 31 35 20 6d 61 78 20 31 30 20 6d 69  unt 15 max 10 mi
2830: 6e 20 68 74 6d 6c 5d 22 0a 40 20 20 20 20 20 20  n html]".@      
2840: 77 72 61 70 3d 22 76 69 72 74 75 61 6c 22 20 63  wrap="virtual" c
2850: 6c 61 73 73 3d 22 77 69 6b 69 65 64 69 74 22 3e  lass="wikiedit">
2860: 5b 63 6f 6d 6d 65 6e 74 20 68 74 6d 6c 5d 3c 2f  [comment html]</
2870: 74 65 78 74 61 72 65 61 3e 3c 62 72 3e 0a 40 20  textarea><br>.@ 
2880: 20 20 20 20 3c 69 6e 70 75 74 20 74 79 70 65 3d      <input type=
2890: 22 68 69 64 64 65 6e 22 20 6e 61 6d 65 3d 22 65  "hidden" name="e
28a0: 61 6c 6c 22 20 76 61 6c 75 65 3d 22 31 22 3e 0a  all" value="1">.
28b0: 40 20 20 20 20 20 3c 69 6e 70 75 74 20 74 79 70  @     <input typ
28c0: 65 3d 22 73 75 62 6d 69 74 22 20 6e 61 6d 65 3d  e="submit" name=
28d0: 22 61 6f 6e 6c 79 62 74 6e 22 20 76 61 6c 75 65  "aonlybtn" value
28e0: 3d 22 41 70 70 65 6e 64 20 52 65 6d 61 72 6b 22  ="Append Remark"
28f0: 3e 0a 40 20 20 20 0a 40 20 20 20 5b 65 61 6c 6c  >.@   .@   [eall
2900: 20 6e 6f 74 20 65 6e 61 62 6c 65 5f 6f 75 74 70   not enable_outp
2910: 75 74 5d 0a 40 20 20 20 20 20 41 70 70 65 6e 64  ut].@     Append
2920: 20 52 65 6d 61 72 6b 20 66 72 6f 6d 20 0a 40 20   Remark from .@ 
2930: 20 20 20 20 3c 69 6e 70 75 74 20 74 79 70 65 3d      <input type=
2940: 22 74 65 78 74 22 20 6e 61 6d 65 3d 22 75 73 65  "text" name="use
2950: 72 6e 61 6d 65 22 20 76 61 6c 75 65 3d 22 5b 75  rname" value="[u
2960: 73 65 72 6e 61 6d 65 20 68 74 6d 6c 5d 22 20 73  sername html]" s
2970: 69 7a 65 3d 22 33 30 22 3e 3a 3c 62 72 3e 0a 40  ize="30">:<br>.@
2980: 20 20 20 20 20 3c 74 65 78 74 61 72 65 61 20 6e       <textarea n
2990: 61 6d 65 3d 22 63 6d 61 70 70 6e 64 22 20 63 6f  ame="cmappnd" co
29a0: 6c 73 3d 22 38 30 22 20 72 6f 77 73 3d 22 31 35  ls="80" rows="15
29b0: 22 0a 40 20 20 20 20 20 20 77 72 61 70 3d 22 76  ".@      wrap="v
29c0: 69 72 74 75 61 6c 22 20 63 6c 61 73 73 3d 22 77  irtual" class="w
29d0: 69 6b 69 65 64 69 74 22 3e 5b 7b 7d 20 2f 63 6d  ikiedit">[{} /cm
29e0: 61 70 70 6e 64 20 67 65 74 20 68 74 6d 6c 5d 3c  appnd get html]<
29f0: 2f 74 65 78 74 61 72 65 61 3e 3c 62 72 3e 0a 40  /textarea><br>.@
2a00: 20 20 20 20 20 5b 2f 77 20 68 61 73 63 61 70 20       [/w hascap 
2a10: 65 61 6c 6c 20 6e 6f 74 20 61 6e 64 20 65 6e 61  eall not and ena
2a20: 62 6c 65 5f 6f 75 74 70 75 74 5d 0a 40 20 20 20  ble_output].@   
2a30: 20 20 3c 69 6e 70 75 74 20 74 79 70 65 3d 22 73    <input type="s
2a40: 75 62 6d 69 74 22 20 6e 61 6d 65 3d 22 65 61 6c  ubmit" name="eal
2a50: 6c 62 74 6e 22 20 76 61 6c 75 65 3d 22 45 64 69  lbtn" value="Edi
2a60: 74 20 41 6c 6c 22 3e 0a 40 0a 40 20 20 20 5b 31  t All">.@.@   [1
2a70: 20 65 6e 61 62 6c 65 5f 6f 75 74 70 75 74 5d 0a   enable_output].
2a80: 40 20 20 20 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40  @   </td></tr>.@
2a90: 20 20 20 3c 74 72 3e 3c 74 64 20 61 6c 69 67 6e     <tr><td align
2aa0: 3d 22 72 69 67 68 74 22 3e 3c 2f 74 64 3e 3c 74  ="right"></td><t
2ab0: 64 3e 0a 40 20 20 20 3c 69 6e 70 75 74 20 74 79  d>.@   <input ty
2ac0: 70 65 3d 22 73 75 62 6d 69 74 22 20 6e 61 6d 65  pe="submit" name
2ad0: 3d 22 73 75 62 6d 69 74 22 20 76 61 6c 75 65 3d  ="submit" value=
2ae0: 22 53 75 62 6d 69 74 20 43 68 61 6e 67 65 73 22  "Submit Changes"
2af0: 3e 0a 40 20 20 20 3c 2f 74 64 3e 3c 2f 74 72 3e  >.@   </td></tr>
2b00: 0a 40 20 20 20 3c 2f 74 61 62 6c 65 3e 0a 40 20  .@   </table>.@ 
2b10: 7d 20 2f 74 6b 74 65 64 69 74 5f 74 65 6d 70 6c  } /tktedit_templ
2b20: 61 74 65 20 73 65 74 0a 40 20 0a 40 20 23 23 23  ate set.@ .@ ###
2b30: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
2b40: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
2b50: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
2b60: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
2b70: 23 23 23 23 23 23 23 0a 40 20 23 20 54 68 65 20  #######.@ # The 
2b80: 74 65 6d 70 6c 61 74 65 20 66 6f 72 20 74 68 65  template for the
2b90: 20 22 76 69 65 77 20 74 69 63 6b 65 74 22 20 70   "view ticket" p
2ba0: 61 67 65 0a 40 20 7b 0a 40 20 20 20 3c 21 2d 2d  age.@ {.@   <!--
2bb0: 20 6c 6f 61 64 20 64 61 74 61 62 61 73 65 20 66   load database f
2bc0: 69 65 6c 64 73 20 61 75 74 6f 6d 61 74 69 63 61  ields automatica
2bd0: 6c 6c 79 20 6c 6f 61 64 65 64 20 69 6e 74 6f 20  lly loaded into 
2be0: 76 61 72 69 61 62 6c 65 73 20 2d 2d 3e 0a 40 20  variables -->.@ 
2bf0: 20 20 3c 74 61 62 6c 65 20 63 65 6c 6c 70 61 64    <table cellpad
2c00: 64 69 6e 67 3d 22 35 22 3e 0a 40 20 20 20 3c 74  ding="5">.@   <t
2c10: 72 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67  r><td align="rig
2c20: 68 74 22 3e 54 69 74 6c 65 3a 3c 2f 74 64 3e 3c  ht">Title:</td><
2c30: 74 64 3e 0a 40 20 20 20 5b 74 69 74 6c 65 20 68  td>.@   [title h
2c40: 74 6d 6c 5d 0a 40 20 20 20 3c 2f 74 64 3e 3c 2f  tml].@   </td></
2c50: 74 72 3e 0a 40 20 20 20 3c 74 72 3e 3c 74 64 20  tr>.@   <tr><td 
2c60: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 53 74  align="right">St
2c70: 61 74 75 73 3a 3c 2f 74 64 3e 3c 74 64 3e 0a 40  atus:</td><td>.@
2c80: 20 20 20 5b 73 74 61 74 75 73 20 68 74 6d 6c 5d     [status html]
2c90: 0a 40 20 20 20 3c 2f 74 64 3e 3c 2f 74 72 3e 0a  .@   </td></tr>.
2ca0: 40 20 20 20 3c 74 72 3e 3c 74 64 20 61 6c 69 67  @   <tr><td alig
2cb0: 6e 3d 22 72 69 67 68 74 22 3e 54 79 70 65 3a 3c  n="right">Type:<
2cc0: 2f 74 64 3e 3c 74 64 3e 0a 40 20 20 20 5b 74 79  /td><td>.@   [ty
2cd0: 70 65 20 68 74 6d 6c 5d 0a 40 20 20 20 3c 2f 74  pe html].@   </t
2ce0: 64 3e 3c 2f 74 72 3e 0a 40 20 20 20 3c 74 72 3e  d></tr>.@   <tr>
2cf0: 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74  <td align="right
2d00: 22 3e 53 65 76 65 72 69 74 79 3a 3c 2f 74 64 3e  ">Severity:</td>
2d10: 3c 74 64 3e 0a 40 20 20 20 5b 73 65 76 65 72 69  <td>.@   [severi
2d20: 74 79 20 68 74 6d 6c 5d 0a 40 20 20 20 3c 2f 74  ty html].@   </t
2d30: 64 3e 3c 2f 74 72 3e 0a 40 20 20 20 3c 74 72 3e  d></tr>.@   <tr>
2d40: 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74  <td align="right
2d50: 22 3e 50 72 69 6f 72 69 74 79 3a 3c 2f 74 64 3e  ">Priority:</td>
2d60: 3c 74 64 3e 0a 40 20 20 20 5b 70 72 69 6f 72 69  <td>.@   [priori
2d70: 74 79 20 68 74 6d 6c 5d 0a 40 20 20 20 3c 2f 74  ty html].@   </t
2d80: 64 3e 3c 2f 74 72 3e 0a 40 20 20 20 3c 74 72 3e  d></tr>.@   <tr>
2d90: 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74  <td align="right
2da0: 22 3e 52 65 73 6f 6c 75 74 69 6f 6e 3a 3c 2f 74  ">Resolution:</t
2db0: 64 3e 3c 74 64 3e 0a 40 20 20 20 5b 70 72 69 6f  d><td>.@   [prio
2dc0: 72 69 74 79 20 68 74 6d 6c 5d 0a 40 20 20 20 3c  rity html].@   <
2dd0: 2f 74 64 3e 3c 2f 74 72 3e 0a 40 20 20 20 3c 74  /td></tr>.@   <t
2de0: 72 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67  r><td align="rig
2df0: 68 74 22 3e 53 75 62 73 79 73 74 65 6d 3a 3c 2f  ht">Subsystem:</
2e00: 74 64 3e 3c 74 64 3e 0a 40 20 20 20 5b 73 75 62  td><td>.@   [sub
2e10: 73 79 73 74 65 6d 20 68 74 6d 6c 5d 0a 40 20 20  system html].@  
2e20: 20 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40 20 20 20   </td></tr>.@   
2e30: 5b 7b 65 7d 20 68 61 73 63 61 70 20 65 6e 61 62  [{e} hascap enab
2e40: 6c 65 5f 6f 75 74 70 75 74 5d 0a 40 20 20 20 20  le_output].@    
2e50: 20 3c 74 72 3e 3c 74 64 20 61 6c 69 67 6e 3d 22   <tr><td align="
2e60: 72 69 67 68 74 22 3e 43 6f 6e 74 61 63 74 3a 3c  right">Contact:<
2e70: 2f 74 64 3e 3c 74 64 3e 0a 40 20 20 20 20 20 5b  /td><td>.@     [
2e80: 63 6f 6e 74 61 63 74 20 68 74 6d 6c 5d 0a 40 20  contact html].@ 
2e90: 20 20 20 20 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40      </td></tr>.@
2ea0: 20 20 20 5b 31 20 65 6e 61 62 6c 65 5f 6f 75 74     [1 enable_out
2eb0: 70 75 74 5d 0a 40 20 20 20 3c 74 72 3e 3c 74 64  put].@   <tr><td
2ec0: 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 56   align="right">V
2ed0: 65 72 73 69 6f 6e 26 6e 62 73 70 3b 46 6f 75 6e  ersion&nbsp;Foun
2ee0: 64 26 6e 62 73 70 3b 49 6e 3a 3c 2f 74 64 3e 3c  d&nbsp;In:</td><
2ef0: 74 64 3e 0a 40 20 20 20 5b 66 6f 75 6e 64 69 6e  td>.@   [foundin
2f00: 20 68 74 6d 6c 5d 0a 40 20 20 20 3c 2f 74 64 3e   html].@   </td>
2f10: 3c 2f 74 72 3e 0a 40 20 20 20 3c 74 72 3e 3c 74  </tr>.@   <tr><t
2f20: 64 20 63 6f 6c 73 70 61 6e 3d 22 32 22 3e 0a 40  d colspan="2">.@
2f30: 20 20 20 44 65 73 63 72 69 70 74 69 6f 6e 20 41     Description A
2f40: 6e 64 20 43 6f 6d 6d 65 6e 74 73 3a 3c 62 72 3e  nd Comments:<br>
2f50: 0a 40 20 20 20 5b 63 6f 6d 6d 65 6e 74 20 77 69  .@   [comment wi
2f60: 6b 69 5d 0a 40 20 20 20 3c 2f 74 64 3e 3c 2f 74  ki].@   </td></t
2f70: 72 3e 0a 40 20 20 20 3c 2f 74 61 62 6c 65 3e 0a  r>.@   </table>.
2f80: 40 20 7d 20 2f 74 6b 74 76 69 65 77 5f 74 65 6d  @ } /tktview_tem
2f90: 70 6c 61 74 65 20 73 65 74 0a 3b 0a              plate set.;.