Hex Artifact Content
Not logged in

Artifact dabb2f23c9ada753312052c2976062defaa95a9b:

File src/tktconfig.c part of check-in [d913179b82] - Progress toward ticket editing. This is an incremental check-in. by drh on 2007-11-24 21:28:03.

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 4f 70 65 6e 7d 20 2f 73 74 61 74 75    [{Open} /statu
1680: 73 20 73 65 74 20 2f 73 75 62 6d 69 74 20 73 75  s set /submit su
1690: 62 6d 69 74 5f 6e 65 77 5f 74 69 63 6b 65 74 5d  bmit_new_ticket]
16a0: 0a 40 20 20 20 3c 74 61 62 6c 65 20 63 65 6c 6c  .@   <table cell
16b0: 70 61 64 64 69 6e 67 3d 22 35 22 3e 0a 40 20 20  padding="5">.@  
16c0: 20 3c 74 72 3e 0a 40 20 20 20 3c 74 64 20 63 6f   <tr>.@   <td co
16d0: 6c 73 70 61 6e 3d 22 32 22 3e 0a 40 20 20 20 45  lspan="2">.@   E
16e0: 6e 74 65 72 20 61 20 6f 6e 65 2d 6c 69 6e 65 20  nter a one-line 
16f0: 73 75 6d 6d 61 72 79 20 6f 66 20 74 68 65 20 70  summary of the p
1700: 72 6f 62 6c 65 6d 3a 3c 62 72 3e 0a 40 20 20 20  roblem:<br>.@   
1710: 3c 69 6e 70 75 74 20 74 79 70 65 3d 22 74 65 78  <input type="tex
1720: 74 22 20 6e 61 6d 65 3d 22 74 69 74 6c 65 22 20  t" name="title" 
1730: 73 69 7a 65 3d 22 36 30 22 20 76 61 6c 75 65 3d  size="60" value=
1740: 22 5b 7b 7d 20 2f 74 69 74 6c 65 20 67 65 74 20  "[{} /title get 
1750: 68 74 6d 6c 5d 22 3e 0a 40 20 20 20 3c 2f 74 64  html]">.@   </td
1760: 3e 0a 40 20 20 20 3c 2f 74 72 3e 0a 40 20 20 20  >.@   </tr>.@   
1770: 0a 40 20 20 20 3c 74 72 3e 0a 40 20 20 20 3c 74  .@   <tr>.@   <t
1780: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e  d align="right">
1790: 54 79 70 65 3a 0a 40 20 20 20 5b 2f 74 79 70 65  Type:.@   [/type
17a0: 20 74 79 70 65 5f 63 68 6f 69 63 65 73 20 31 20   type_choices 1 
17b0: 63 6f 6d 62 6f 62 6f 78 5d 0a 40 20 20 20 3c 2f  combobox].@   </
17c0: 74 64 3e 0a 40 20 20 20 3c 74 64 3e 57 68 61 74  td>.@   <td>What
17d0: 20 74 79 70 65 20 6f 66 20 74 69 63 6b 65 74 20   type of ticket 
17e0: 69 73 20 74 68 69 73 3f 3c 2f 74 64 3e 0a 40 20  is this?</td>.@ 
17f0: 20 20 3c 2f 74 72 3e 0a 40 20 20 20 0a 40 20 20    </tr>.@   .@  
1800: 20 3c 74 72 3e 0a 40 20 20 20 3c 74 64 20 61 6c   <tr>.@   <td al
1810: 69 67 6e 3d 22 72 69 67 68 74 22 3e 56 65 72 73  ign="right">Vers
1820: 69 6f 6e 3a 20 0a 40 20 20 20 3c 69 6e 70 75 74  ion: .@   <input
1830: 20 74 79 70 65 3d 22 74 65 78 74 22 20 6e 61 6d   type="text" nam
1840: 65 3d 22 66 6f 75 6e 64 69 6e 22 20 73 69 7a 65  e="foundin" size
1850: 3d 22 32 30 22 20 76 61 6c 75 65 3d 22 5b 7b 7d  ="20" value="[{}
1860: 20 2f 66 6f 75 6e 64 69 6e 20 67 65 74 20 68 74   /foundin get ht
1870: 6d 6c 5d 22 3e 0a 40 20 20 20 3c 2f 74 64 3e 0a  ml]">.@   </td>.
1880: 40 20 20 20 3c 74 64 3e 49 6e 20 77 68 61 74 20  @   <td>In what 
1890: 76 65 72 73 69 6f 6e 20 6f 72 20 62 75 69 6c 64  version or build
18a0: 20 6e 75 6d 62 65 72 20 64 6f 20 79 6f 75 20 6f   number do you o
18b0: 62 73 65 72 76 65 72 20 74 68 65 20 70 72 6f 62  bserver the prob
18c0: 6c 65 6d 3f 3c 2f 74 64 3e 0a 40 20 20 20 3c 2f  lem?</td>.@   </
18d0: 74 72 3e 0a 40 20 20 20 0a 40 20 20 20 3c 74 72  tr>.@   .@   <tr
18e0: 3e 0a 40 20 20 20 3c 74 64 20 61 6c 69 67 6e 3d  >.@   <td align=
18f0: 22 72 69 67 68 74 22 3e 53 65 76 65 72 69 74 79  "right">Severity
1900: 3a 0a 40 20 20 20 5b 2f 73 65 76 65 72 69 74 79  :.@   [/severity
1910: 20 73 65 76 65 72 69 74 79 5f 63 68 6f 69 63 65   severity_choice
1920: 73 20 31 20 63 6f 6d 62 6f 62 6f 78 5d 0a 40 20  s 1 combobox].@ 
1930: 20 20 3c 2f 74 64 3e 0a 40 20 20 20 3c 74 64 3e    </td>.@   <td>
1940: 48 6f 77 20 64 65 62 69 6c 69 74 61 74 69 6e 67  How debilitating
1950: 20 69 73 20 74 68 65 20 70 72 6f 62 6c 65 6d 3f   is the problem?
1960: 20 20 48 6f 77 20 62 61 64 6c 79 20 64 6f 65 73    How badly does
1970: 20 74 68 65 20 70 72 6f 62 6c 65 6d 0a 40 20 20   the problem.@  
1980: 20 65 66 66 65 63 74 20 74 68 65 20 6f 70 65 72   effect the oper
1990: 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 70 72 6f  ation of the pro
19a0: 64 75 63 74 3f 3c 2f 74 64 3e 0a 40 20 20 20 3c  duct?</td>.@   <
19b0: 2f 74 72 3e 0a 40 20 20 20 0a 40 20 20 20 3c 74  /tr>.@   .@   <t
19c0: 72 3e 0a 40 20 20 20 3c 74 64 20 61 6c 69 67 6e  r>.@   <td align
19d0: 3d 22 72 69 67 68 74 22 3e 45 4d 61 69 6c 3a 0a  ="right">EMail:.
19e0: 40 20 20 20 5b 2f 73 65 76 65 72 69 74 79 20 73  @   [/severity s
19f0: 65 76 65 72 69 74 79 5f 63 68 6f 69 63 65 73 20  everity_choices 
1a00: 31 20 63 6f 6d 62 6f 62 6f 78 5d 0a 40 20 20 20  1 combobox].@   
1a10: 3c 2f 74 64 3e 0a 40 20 20 20 3c 74 64 3e 4e 6f  </td>.@   <td>No
1a20: 74 20 70 75 62 6c 69 63 61 6c 6c 79 20 76 69 73  t publically vis
1a30: 69 62 6c 65 2e 20 55 73 65 64 20 62 79 20 64 65  ible. Used by de
1a40: 76 65 6c 6f 70 65 72 73 20 74 6f 20 63 6f 6e 74  velopers to cont
1a50: 61 63 74 20 79 6f 75 20 77 69 74 68 0a 40 20 20  act you with.@  
1a60: 20 71 75 65 73 74 69 6f 6e 73 2e 3c 2f 74 64 3e   questions.</td>
1a70: 0a 40 20 20 20 3c 2f 74 72 3e 0a 40 20 20 20 0a  .@   </tr>.@   .
1a80: 40 20 20 20 3c 74 72 3e 0a 40 20 20 20 3c 74 64  @   <tr>.@   <td
1a90: 20 63 6f 6c 73 70 61 6e 3d 22 32 22 3e 0a 40 20   colspan="2">.@ 
1aa0: 20 20 45 6e 74 65 72 20 61 20 64 65 74 61 69 6c    Enter a detail
1ab0: 65 64 20 64 65 73 63 72 69 70 74 69 6f 6e 20 6f  ed description o
1ac0: 66 20 74 68 65 20 70 72 6f 62 6c 65 6d 2e 0a 40  f the problem..@
1ad0: 20 20 20 46 6f 72 20 63 6f 64 65 20 64 65 66 65     For code defe
1ae0: 63 74 73 2c 20 62 65 20 73 75 72 65 20 74 6f 20  cts, be sure to 
1af0: 70 72 6f 76 69 64 65 20 64 65 74 61 69 6c 73 20  provide details 
1b00: 6f 6e 20 65 78 61 63 74 6c 79 20 68 6f 77 0a 40  on exactly how.@
1b10: 20 20 20 74 68 65 20 70 72 6f 62 6c 65 6d 20 63     the problem c
1b20: 61 6e 20 62 65 20 72 65 70 72 6f 64 75 63 65 64  an be reproduced
1b30: 2e 20 20 50 72 6f 76 69 64 65 20 61 73 20 6d 75  .  Provide as mu
1b40: 63 68 20 64 65 74 61 69 6c 20 61 73 0a 40 20 20  ch detail as.@  
1b50: 20 70 6f 73 73 69 62 6c 65 2e 0a 40 20 20 20 3c   possible..@   <
1b60: 62 72 3e 0a 40 20 20 20 3c 74 65 78 74 61 72 65  br>.@   <textare
1b70: 61 20 6e 61 6d 65 3d 22 63 6f 6d 6d 65 6e 74 22  a name="comment"
1b80: 20 63 6f 6c 73 3d 22 38 30 22 0a 40 20 20 20 20   cols="80".@    
1b90: 72 6f 77 73 3d 22 5b 7b 7d 20 2f 63 6f 6d 6d 65  rows="[{} /comme
1ba0: 6e 74 20 67 65 74 20 6c 69 6e 65 63 6f 75 6e 74  nt get linecount
1bb0: 20 35 30 20 6d 61 78 20 31 30 20 6d 69 6e 20 68   50 max 10 min h
1bc0: 74 6d 6c 5d 22 0a 40 20 20 20 20 77 72 61 70 3d  tml]".@    wrap=
1bd0: 22 76 69 72 74 75 61 6c 22 20 63 6c 61 73 73 3d  "virtual" class=
1be0: 22 77 69 6b 69 65 64 69 74 22 3e 5b 7b 7d 20 2f  "wikiedit">[{} /
1bf0: 63 6f 6d 6d 65 6e 74 20 67 65 74 20 68 74 6d 6c  comment get html
1c00: 5d 3c 2f 74 65 78 74 61 72 65 61 3e 3c 62 72 3e  ]</textarea><br>
1c10: 0a 40 20 20 20 3c 69 6e 70 75 74 20 74 79 70 65  .@   <input type
1c20: 3d 22 73 75 62 6d 69 74 22 20 6e 61 6d 65 3d 22  ="submit" name="
1c30: 70 72 65 76 69 65 77 22 20 76 61 6c 75 65 3d 22  preview" value="
1c40: 50 72 65 76 69 65 77 22 3e 0a 40 20 20 20 3c 2f  Preview">.@   </
1c50: 74 72 3e 0a 40 20 0a 40 20 20 20 5b 2f 70 72 65  tr>.@ .@   [/pre
1c60: 76 69 65 77 20 65 78 69 73 74 73 20 65 6e 61 62  view exists enab
1c70: 6c 65 5f 6f 75 74 70 75 74 5d 0a 40 20 20 20 3c  le_output].@   <
1c80: 74 72 3e 3c 74 64 20 63 6f 6c 73 70 61 6e 3d 22  tr><td colspan="
1c90: 32 22 3e 0a 40 20 20 20 44 65 73 63 72 69 70 74  2">.@   Descript
1ca0: 69 6f 6e 20 50 72 65 76 69 65 77 3a 3c 62 72 3e  ion Preview:<br>
1cb0: 3c 68 72 3e 0a 40 20 20 20 5b 7b 7d 20 2f 63 6f  <hr>.@   [{} /co
1cc0: 6d 6d 65 6e 74 20 67 65 74 20 77 69 6b 69 5d 0a  mment get wiki].
1cd0: 40 20 20 20 3c 68 72 3e 0a 40 20 20 20 3c 2f 74  @   <hr>.@   </t
1ce0: 64 3e 3c 2f 74 72 3e 0a 40 20 20 20 5b 31 20 65  d></tr>.@   [1 e
1cf0: 6e 61 62 6c 65 5f 6f 75 74 70 75 74 5d 0a 40 20  nable_output].@ 
1d00: 20 20 0a 40 20 20 20 3c 74 72 3e 0a 40 20 20 20    .@   <tr>.@   
1d10: 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74  <td align="right
1d20: 22 3e 0a 40 20 20 20 3c 69 6e 70 75 74 20 74 79  ">.@   <input ty
1d30: 70 65 3d 22 73 75 62 6d 69 74 22 20 6e 61 6d 65  pe="submit" name
1d40: 3d 22 73 75 62 6d 69 74 22 20 76 61 6c 75 65 3d  ="submit" value=
1d50: 22 53 75 62 6d 69 74 22 3e 0a 40 20 20 20 3c 2f  "Submit">.@   </
1d60: 74 64 3e 0a 40 20 20 20 3c 74 64 3e 41 66 74 65  td>.@   <td>Afte
1d70: 72 20 66 69 6c 6c 69 6e 67 20 69 6e 20 74 68 65  r filling in the
1d80: 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 61 62 6f   information abo
1d90: 76 65 2c 20 70 72 65 73 73 20 74 68 69 73 20 62  ve, press this b
1da0: 75 74 74 6f 6e 20 74 6f 20 63 72 65 61 74 65 0a  utton to create.
1db0: 40 20 20 20 74 68 65 20 6e 65 77 20 74 69 63 6b  @   the new tick
1dc0: 65 74 3c 2f 74 64 3e 0a 40 20 20 20 3c 2f 74 72  et</td>.@   </tr
1dd0: 3e 0a 40 20 20 20 3c 2f 74 61 62 6c 65 3e 0a 40  >.@   </table>.@
1de0: 20 20 20 3c 21 2d 2d 20 65 6e 64 20 6f 66 20 66     <!-- end of f
1df0: 6f 72 6d 20 2d 2d 3e 0a 40 20 7d 20 2f 74 6b 74  orm -->.@ } /tkt
1e00: 6e 65 77 5f 74 65 6d 70 6c 61 74 65 20 73 65 74  new_template set
1e10: 0a 40 20 0a 40 20 23 23 23 23 23 23 23 23 23 23  .@ .@ ##########
1e20: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
1e30: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
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: 0a 40 20 23 20 54 68 65 20 74 65 6d 70 6c 61 74  .@ # The templat
1e70: 65 20 66 6f 72 20 74 68 65 20 22 65 64 69 74 20  e for the "edit 
1e80: 74 69 63 6b 65 74 22 20 70 61 67 65 0a 40 20 7b  ticket" page.@ {
1e90: 0a 40 20 20 20 3c 21 2d 2d 20 64 61 74 61 62 61  .@   <!-- databa
1ea0: 73 65 20 66 69 65 6c 64 20 6e 61 6d 65 73 20 6e  se field names n
1eb0: 6f 74 20 66 6f 75 6e 64 20 61 73 20 43 47 49 20  ot found as CGI 
1ec0: 70 61 72 61 6d 65 74 65 72 73 20 61 72 65 20 6c  parameters are l
1ed0: 6f 61 64 65 64 0a 40 20 20 20 20 20 20 20 20 66  oaded.@        f
1ee0: 72 6f 6d 20 74 68 65 20 64 61 74 61 62 61 73 65  rom the database
1ef0: 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 2d   automatically -
1f00: 2d 3e 0a 40 20 20 20 3c 21 2d 2d 20 73 74 61 72  ->.@   <!-- star
1f10: 74 20 61 20 66 6f 72 6d 20 2d 2d 3e 0a 40 20 20  t a form -->.@  
1f20: 20 5b 7b 0a 40 20 20 20 20 20 3c 68 72 3e 3c 69   [{.@     <hr><i
1f30: 3e 25 4c 4f 47 49 4e 25 20 61 64 64 65 64 20 6f  >%LOGIN% added o
1f40: 6e 20 25 44 41 54 45 25 3a 3c 2f 69 3e 3c 62 72  n %DATE%:</i><br
1f50: 3e 0a 40 20 20 20 20 7d 20 7b 0a 40 20 20 20 20  >.@    } {.@    
1f60: 20 3c 68 72 3e 3c 69 3e 25 4c 4f 47 49 4e 25 20   <hr><i>%LOGIN% 
1f70: 63 6c 61 69 6d 69 6e 67 20 74 6f 20 62 65 20 25  claiming to be %
1f80: 55 53 45 52 25 20 61 64 64 65 64 20 6f 6e 20 25  USER% added on %
1f90: 44 41 54 45 25 3a 3c 2f 69 3e 3c 62 72 3e 0a 40  DATE%:</i><br>.@
1fa0: 20 20 20 20 7d 20 2f 75 73 65 72 6e 61 6d 65 20      } /username 
1fb0: 2f 63 6d 61 70 70 6e 64 20 2f 63 6f 6d 6d 65 6e  /cmappnd /commen
1fc0: 74 20 61 70 70 65 6e 64 5f 72 65 6d 61 72 6b 0a  t append_remark.
1fd0: 40 20 20 20 2f 73 75 62 6d 69 74 20 73 75 62 6d  @   /submit subm
1fe0: 69 74 5f 74 69 63 6b 65 74 5f 63 68 61 6e 67 65  it_ticket_change
1ff0: 5d 0a 40 20 20 20 3c 74 61 62 6c 65 20 63 65 6c  ].@   <table cel
2000: 6c 70 61 64 64 69 6e 67 3d 22 35 22 3e 0a 40 20  lpadding="5">.@ 
2010: 20 20 3c 74 72 3e 3c 74 64 20 61 6c 69 67 6e 3d    <tr><td align=
2020: 22 72 69 67 68 74 22 3e 54 69 74 6c 65 3a 3c 2f  "right">Title:</
2030: 74 64 3e 3c 74 64 3e 0a 40 20 20 20 3c 69 6e 70  td><td>.@   <inp
2040: 75 74 20 74 79 70 65 3d 22 74 65 78 74 22 20 6e  ut type="text" n
2050: 61 6d 65 3d 22 74 69 74 6c 65 22 20 76 61 6c 75  ame="title" valu
2060: 65 3d 22 5b 74 69 74 6c 65 20 68 74 6d 6c 5d 22  e="[title html]"
2070: 20 73 69 7a 65 3d 22 36 30 22 3e 0a 40 20 20 20   size="60">.@   
2080: 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40 20 20 20 3c  </td></tr>.@   <
2090: 74 72 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69  tr><td align="ri
20a0: 67 68 74 22 3e 53 74 61 74 75 73 3a 3c 2f 74 64  ght">Status:</td
20b0: 3e 3c 74 64 3e 0a 40 20 20 20 5b 2f 73 74 61 74  ><td>.@   [/stat
20c0: 75 73 20 73 74 61 74 75 73 5f 63 68 6f 69 63 65  us status_choice
20d0: 73 20 31 20 63 6f 6d 62 6f 62 6f 78 5d 0a 40 20  s 1 combobox].@ 
20e0: 20 20 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40 20 20    </td></tr>.@  
20f0: 20 3c 74 72 3e 3c 74 64 20 61 6c 69 67 6e 3d 22   <tr><td align="
2100: 72 69 67 68 74 22 3e 54 79 70 65 3a 3c 2f 74 64  right">Type:</td
2110: 3e 3c 74 64 3e 0a 40 20 20 20 5b 2f 74 79 70 65  ><td>.@   [/type
2120: 20 74 79 70 65 5f 63 68 6f 69 63 65 73 20 31 20   type_choices 1 
2130: 63 6f 6d 62 6f 62 6f 78 5d 0a 40 20 20 20 3c 2f  combobox].@   </
2140: 74 64 3e 3c 2f 74 72 3e 0a 40 20 20 20 3c 74 72  td></tr>.@   <tr
2150: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68  ><td align="righ
2160: 74 22 3e 53 65 76 65 72 69 74 79 3a 3c 2f 74 64  t">Severity:</td
2170: 3e 3c 74 64 3e 0a 40 20 20 20 5b 2f 73 65 76 65  ><td>.@   [/seve
2180: 72 69 74 79 20 73 65 76 65 72 69 74 79 5f 63 68  rity severity_ch
2190: 6f 69 63 65 73 20 31 20 63 6f 6d 62 6f 62 6f 78  oices 1 combobox
21a0: 5d 0a 40 20 20 20 3c 2f 74 64 3e 3c 2f 74 72 3e  ].@   </td></tr>
21b0: 0a 40 20 20 20 3c 74 72 3e 3c 74 64 20 61 6c 69  .@   <tr><td ali
21c0: 67 6e 3d 22 72 69 67 68 74 22 3e 50 72 69 6f 72  gn="right">Prior
21d0: 69 74 79 3a 3c 2f 74 64 3e 3c 74 64 3e 0a 40 20  ity:</td><td>.@ 
21e0: 20 20 5b 2f 70 72 69 6f 72 69 74 79 20 70 72 69    [/priority pri
21f0: 6f 72 69 74 79 5f 63 68 6f 69 63 65 73 20 31 20  ority_choices 1 
2200: 63 6f 6d 62 6f 62 6f 78 5d 0a 40 20 20 20 3c 2f  combobox].@   </
2210: 74 64 3e 3c 2f 74 72 3e 0a 40 20 20 20 3c 74 72  td></tr>.@   <tr
2220: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68  ><td align="righ
2230: 74 22 3e 52 65 73 6f 6c 75 74 69 6f 6e 3a 3c 2f  t">Resolution:</
2240: 74 64 3e 3c 74 64 3e 0a 40 20 20 20 5b 2f 72 65  td><td>.@   [/re
2250: 73 6f 6c 75 74 69 6f 6e 20 72 65 73 6f 6c 75 74  solution resolut
2260: 69 6f 6e 5f 63 68 6f 69 63 65 73 20 31 20 63 6f  ion_choices 1 co
2270: 6d 62 6f 62 6f 78 5d 0a 40 20 20 20 3c 2f 74 64  mbobox].@   </td
2280: 3e 3c 2f 74 72 3e 0a 40 20 20 20 3c 74 72 3e 3c  ></tr>.@   <tr><
2290: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22  td align="right"
22a0: 3e 53 75 62 73 79 73 74 65 6d 3a 3c 2f 74 64 3e  >Subsystem:</td>
22b0: 3c 74 64 3e 0a 40 20 20 20 5b 2f 73 75 62 73 79  <td>.@   [/subsy
22c0: 73 74 65 6d 20 73 75 62 73 79 73 74 65 6d 5f 63  stem subsystem_c
22d0: 68 6f 69 63 65 73 20 31 20 63 6f 6d 62 6f 62 6f  hoices 1 combobo
22e0: 78 5d 0a 40 20 20 20 3c 2f 74 64 3e 3c 2f 74 72  x].@   </td></tr
22f0: 3e 0a 40 20 20 20 5b 2f 65 20 68 61 73 63 61 70  >.@   [/e hascap
2300: 20 65 6e 61 62 6c 65 5f 6f 75 74 70 75 74 5d 0a   enable_output].
2310: 40 20 20 20 20 20 3c 74 72 3e 3c 74 64 20 61 6c  @     <tr><td al
2320: 69 67 6e 3d 22 72 69 67 68 74 22 3e 43 6f 6e 74  ign="right">Cont
2330: 61 63 74 3a 3c 2f 74 64 3e 3c 74 64 3e 0a 40 20  act:</td><td>.@ 
2340: 20 20 20 20 3c 69 6e 70 75 74 20 74 79 70 65 3d      <input type=
2350: 22 74 65 78 74 22 20 6e 61 6d 65 3d 22 63 6f 6e  "text" name="con
2360: 74 61 63 74 22 20 73 69 7a 65 3d 22 34 30 22 20  tact" size="40" 
2370: 76 61 6c 75 65 3d 22 5b 63 6f 6e 74 61 63 74 20  value="[contact 
2380: 68 74 6d 6c 5d 22 3e 0a 40 20 20 20 20 20 3c 2f  html]">.@     </
2390: 74 64 3e 3c 2f 74 72 3e 0a 40 20 20 20 5b 31 20  td></tr>.@   [1 
23a0: 65 6e 61 62 6c 65 5f 6f 75 74 70 75 74 5d 0a 40  enable_output].@
23b0: 20 20 20 3c 74 72 3e 3c 74 64 20 61 6c 69 67 6e     <tr><td align
23c0: 3d 22 72 69 67 68 74 22 3e 56 65 72 73 69 6f 6e  ="right">Version
23d0: 26 6e 62 73 70 3b 46 6f 75 6e 64 26 6e 62 73 70  &nbsp;Found&nbsp
23e0: 3b 49 6e 3a 3c 2f 74 64 3e 3c 74 64 3e 0a 40 20  ;In:</td><td>.@ 
23f0: 20 20 3c 69 6e 70 75 74 20 74 79 70 65 3d 22 74    <input type="t
2400: 65 78 74 22 20 6e 61 6d 65 3d 22 66 6f 75 6e 64  ext" name="found
2410: 69 6e 22 20 73 69 7a 65 3d 22 35 30 22 20 76 61  in" size="50" va
2420: 6c 75 65 3d 22 5b 66 6f 75 6e 64 69 6e 20 68 74  lue="[foundin ht
2430: 6d 6c 5d 22 3e 0a 40 20 20 20 3c 2f 74 64 3e 3c  ml]">.@   </td><
2440: 2f 74 72 3e 0a 40 20 20 20 3c 74 72 3e 3c 74 64  /tr>.@   <tr><td
2450: 20 63 6f 6c 73 70 61 6e 3d 22 32 22 3e 0a 40 20   colspan="2">.@ 
2460: 20 20 5b 30 20 2f 65 61 6c 6c 20 30 20 67 65 74    [0 /eall 0 get
2470: 20 2f 65 61 6c 6c 20 73 65 74 5d 0a 40 20 20 20   /eall set].@   
2480: 5b 2f 61 6f 6e 6c 79 62 74 6e 20 65 78 69 73 74  [/aonlybtn exist
2490: 73 20 6e 6f 74 20 2f 65 61 6c 6c 20 73 65 74 5d  s not /eall set]
24a0: 0a 40 20 20 20 5b 2f 65 61 6c 6c 62 74 6e 20 65  .@   [/eallbtn e
24b0: 78 69 73 74 73 20 2f 65 61 6c 6c 20 73 65 74 5d  xists /eall set]
24c0: 0a 40 20 20 20 5b 2f 77 20 68 61 73 63 61 70 20  .@   [/w hascap 
24d0: 65 61 6c 6c 20 61 6e 64 20 2f 65 61 6c 6c 20 73  eall and /eall s
24e0: 65 74 5d 0a 40 20 20 20 5b 65 61 6c 6c 20 65 6e  et].@   [eall en
24f0: 61 62 6c 65 5f 6f 75 74 70 75 74 5d 0a 40 20 20  able_output].@  
2500: 20 20 20 44 65 73 63 72 69 70 74 69 6f 6e 20 41     Description A
2510: 6e 64 20 43 6f 6d 6d 65 6e 74 73 3a 3c 62 72 3e  nd Comments:<br>
2520: 0a 40 20 20 20 20 20 3c 74 65 78 74 61 72 65 61  .@     <textarea
2530: 20 6e 61 6d 65 3d 22 63 6f 6d 6d 65 6e 74 22 20   name="comment" 
2540: 63 6f 6c 73 3d 22 38 30 22 20 0a 40 20 20 20 20  cols="80" .@    
2550: 20 20 72 6f 77 73 3d 22 5b 7b 7d 20 2f 63 6f 6d    rows="[{} /com
2560: 6d 65 6e 74 20 67 65 74 20 6c 69 6e 65 63 6f 75  ment get linecou
2570: 6e 74 20 31 35 20 6d 61 78 20 31 30 20 6d 69 6e  nt 15 max 10 min
2580: 20 68 74 6d 6c 5d 22 0a 40 20 20 20 20 20 20 77   html]".@      w
2590: 72 61 70 3d 22 76 69 72 74 75 61 6c 22 20 63 6c  rap="virtual" cl
25a0: 61 73 73 3d 22 77 69 6b 69 65 64 69 74 22 3e 5b  ass="wikiedit">[
25b0: 63 6f 6d 6d 65 6e 74 20 68 74 6d 6c 5d 3c 2f 74  comment html]</t
25c0: 65 78 74 61 72 65 61 3e 3c 62 72 3e 0a 40 20 20  extarea><br>.@  
25d0: 20 20 20 3c 69 6e 70 75 74 20 74 79 70 65 3d 22     <input type="
25e0: 68 69 64 64 65 6e 22 20 6e 61 6d 65 3d 22 65 61  hidden" name="ea
25f0: 6c 6c 22 20 76 61 6c 75 65 3d 22 31 22 3e 0a 40  ll" value="1">.@
2600: 20 20 20 20 20 3c 69 6e 70 75 74 20 74 79 70 65       <input type
2610: 3d 22 73 75 62 6d 69 74 22 20 6e 61 6d 65 3d 22  ="submit" name="
2620: 61 6f 6e 6c 79 62 74 6e 22 20 76 61 6c 75 65 3d  aonlybtn" value=
2630: 22 41 70 70 65 6e 64 20 52 65 6d 61 72 6b 22 3e  "Append Remark">
2640: 0a 40 20 20 20 5b 65 61 6c 6c 20 6e 6f 74 20 65  .@   [eall not e
2650: 6e 61 62 6c 65 5f 6f 75 74 70 75 74 5d 0a 40 20  nable_output].@ 
2660: 20 20 20 20 41 70 70 65 6e 64 20 52 65 6d 61 72      Append Remar
2670: 6b 3a 3c 62 72 3e 0a 40 20 20 20 20 20 3c 74 65  k:<br>.@     <te
2680: 78 74 61 72 65 61 20 6e 61 6d 65 3d 22 63 6d 61  xtarea name="cma
2690: 70 70 6e 64 22 20 63 6f 6c 73 3d 22 38 30 22 20  ppnd" cols="80" 
26a0: 72 6f 77 73 3d 22 31 35 22 0a 40 20 20 20 20 20  rows="15".@     
26b0: 20 77 72 61 70 3d 22 76 69 72 74 75 61 6c 22 20   wrap="virtual" 
26c0: 63 6c 61 73 73 3d 22 77 69 6b 69 65 64 69 74 22  class="wikiedit"
26d0: 3e 5b 7b 7d 20 2f 63 6d 61 70 70 6e 64 20 67 65  >[{} /cmappnd ge
26e0: 74 20 68 74 6d 6c 5d 3c 2f 74 65 78 74 61 72 65  t html]</textare
26f0: 61 3e 3c 62 72 3e 0a 40 20 20 20 20 20 5b 2f 77  a><br>.@     [/w
2700: 20 68 61 73 63 61 70 20 65 61 6c 6c 20 6e 6f 74   hascap eall not
2710: 20 61 6e 64 20 65 6e 61 62 6c 65 5f 6f 75 74 70   and enable_outp
2720: 75 74 5d 0a 40 20 20 20 20 20 3c 69 6e 70 75 74  ut].@     <input
2730: 20 74 79 70 65 3d 22 73 75 62 6d 69 74 22 20 6e   type="submit" n
2740: 61 6d 65 3d 22 65 61 6c 6c 62 74 6e 22 20 76 61  ame="eallbtn" va
2750: 6c 75 65 3d 22 45 64 69 74 20 41 6c 6c 22 3e 0a  lue="Edit All">.
2760: 40 20 20 20 5b 31 20 65 6e 61 62 6c 65 5f 6f 75  @   [1 enable_ou
2770: 74 70 75 74 5d 0a 40 20 20 20 3c 2f 74 64 3e 3c  tput].@   </td><
2780: 2f 74 72 3e 0a 40 20 20 20 3c 74 72 3e 3c 74 64  /tr>.@   <tr><td
2790: 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 3c   align="right"><
27a0: 2f 74 64 3e 3c 74 64 3e 0a 40 20 20 20 3c 69 6e  /td><td>.@   <in
27b0: 70 75 74 20 74 79 70 65 3d 22 73 75 62 6d 69 74  put type="submit
27c0: 22 20 6e 61 6d 65 3d 22 73 75 62 6d 69 74 22 20  " name="submit" 
27d0: 76 61 6c 75 65 3d 22 53 75 62 6d 69 74 20 43 68  value="Submit Ch
27e0: 61 6e 67 65 73 22 3e 0a 40 20 20 20 3c 2f 74 64  anges">.@   </td
27f0: 3e 3c 2f 74 72 3e 0a 40 20 20 20 3c 2f 74 61 62  ></tr>.@   </tab
2800: 6c 65 3e 0a 40 20 20 20 3c 21 2d 2d 20 65 6e 64  le>.@   <!-- end
2810: 2d 66 6f 72 6d 20 69 6e 73 65 72 74 65 64 20 61  -form inserted a
2820: 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 2d 2d 3e  utomatically -->
2830: 0a 40 20 7d 20 2f 74 6b 74 65 64 69 74 5f 74 65  .@ } /tktedit_te
2840: 6d 70 6c 61 74 65 20 73 65 74 0a 40 20 0a 40 20  mplate set.@ .@ 
2850: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
2860: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
2870: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
2880: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
2890: 23 23 23 23 23 23 23 23 23 23 0a 40 20 23 20 54  ##########.@ # T
28a0: 68 65 20 74 65 6d 70 6c 61 74 65 20 66 6f 72 20  he template for 
28b0: 74 68 65 20 22 76 69 65 77 20 74 69 63 6b 65 74  the "view ticket
28c0: 22 20 70 61 67 65 0a 40 20 7b 0a 40 20 20 20 3c  " page.@ {.@   <
28d0: 21 2d 2d 20 6c 6f 61 64 20 64 61 74 61 62 61 73  !-- load databas
28e0: 65 20 66 69 65 6c 64 73 20 61 75 74 6f 6d 61 74  e fields automat
28f0: 69 63 61 6c 6c 79 20 6c 6f 61 64 65 64 20 69 6e  ically loaded in
2900: 74 6f 20 76 61 72 69 61 62 6c 65 73 20 2d 2d 3e  to variables -->
2910: 0a 40 20 20 20 3c 74 61 62 6c 65 20 63 65 6c 6c  .@   <table cell
2920: 70 61 64 64 69 6e 67 3d 22 35 22 3e 0a 40 20 20  padding="5">.@  
2930: 20 3c 74 72 3e 3c 74 64 20 61 6c 69 67 6e 3d 22   <tr><td align="
2940: 72 69 67 68 74 22 3e 54 69 74 6c 65 3a 3c 2f 74  right">Title:</t
2950: 64 3e 3c 74 64 3e 0a 40 20 20 20 5b 74 69 74 6c  d><td>.@   [titl
2960: 65 20 68 74 6d 6c 5d 0a 40 20 20 20 3c 2f 74 64  e html].@   </td
2970: 3e 3c 2f 74 72 3e 0a 40 20 20 20 3c 74 72 3e 3c  ></tr>.@   <tr><
2980: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22  td align="right"
2990: 3e 53 74 61 74 75 73 3a 3c 2f 74 64 3e 3c 74 64  >Status:</td><td
29a0: 3e 0a 40 20 20 20 5b 73 74 61 74 75 73 20 68 74  >.@   [status ht
29b0: 6d 6c 5d 0a 40 20 20 20 3c 2f 74 64 3e 3c 2f 74  ml].@   </td></t
29c0: 72 3e 0a 40 20 20 20 3c 74 72 3e 3c 74 64 20 61  r>.@   <tr><td a
29d0: 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 54 79 70  lign="right">Typ
29e0: 65 3a 3c 2f 74 64 3e 3c 74 64 3e 0a 40 20 20 20  e:</td><td>.@   
29f0: 5b 74 79 70 65 20 68 74 6d 6c 5d 0a 40 20 20 20  [type html].@   
2a00: 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40 20 20 20 3c  </td></tr>.@   <
2a10: 74 72 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69  tr><td align="ri
2a20: 67 68 74 22 3e 53 65 76 65 72 69 74 79 3a 3c 2f  ght">Severity:</
2a30: 74 64 3e 3c 74 64 3e 0a 40 20 20 20 5b 73 65 76  td><td>.@   [sev
2a40: 65 72 69 74 79 20 68 74 6d 6c 5d 0a 40 20 20 20  erity html].@   
2a50: 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40 20 20 20 3c  </td></tr>.@   <
2a60: 74 72 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69  tr><td align="ri
2a70: 67 68 74 22 3e 50 72 69 6f 72 69 74 79 3a 3c 2f  ght">Priority:</
2a80: 74 64 3e 3c 74 64 3e 0a 40 20 20 20 5b 70 72 69  td><td>.@   [pri
2a90: 6f 72 69 74 79 20 68 74 6d 6c 5d 0a 40 20 20 20  ority html].@   
2aa0: 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40 20 20 20 3c  </td></tr>.@   <
2ab0: 74 72 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69  tr><td align="ri
2ac0: 67 68 74 22 3e 52 65 73 6f 6c 75 74 69 6f 6e 3a  ght">Resolution:
2ad0: 3c 2f 74 64 3e 3c 74 64 3e 0a 40 20 20 20 5b 70  </td><td>.@   [p
2ae0: 72 69 6f 72 69 74 79 20 68 74 6d 6c 5d 0a 40 20  riority html].@ 
2af0: 20 20 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40 20 20    </td></tr>.@  
2b00: 20 3c 74 72 3e 3c 74 64 20 61 6c 69 67 6e 3d 22   <tr><td align="
2b10: 72 69 67 68 74 22 3e 53 75 62 73 79 73 74 65 6d  right">Subsystem
2b20: 3a 3c 2f 74 64 3e 3c 74 64 3e 0a 40 20 20 20 5b  :</td><td>.@   [
2b30: 73 75 62 73 79 73 74 65 6d 20 68 74 6d 6c 5d 0a  subsystem html].
2b40: 40 20 20 20 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40  @   </td></tr>.@
2b50: 20 20 20 5b 7b 65 7d 20 68 61 73 63 61 70 20 65     [{e} hascap e
2b60: 6e 61 62 6c 65 5f 6f 75 74 70 75 74 5d 0a 40 20  nable_output].@ 
2b70: 20 20 20 20 3c 74 72 3e 3c 74 64 20 61 6c 69 67      <tr><td alig
2b80: 6e 3d 22 72 69 67 68 74 22 3e 43 6f 6e 74 61 63  n="right">Contac
2b90: 74 3a 3c 2f 74 64 3e 3c 74 64 3e 0a 40 20 20 20  t:</td><td>.@   
2ba0: 20 20 5b 63 6f 6e 74 61 63 74 20 68 74 6d 6c 5d    [contact html]
2bb0: 0a 40 20 20 20 20 20 3c 2f 74 64 3e 3c 2f 74 72  .@     </td></tr
2bc0: 3e 0a 40 20 20 20 5b 31 20 65 6e 61 62 6c 65 5f  >.@   [1 enable_
2bd0: 6f 75 74 70 75 74 5d 0a 40 20 20 20 3c 74 72 3e  output].@   <tr>
2be0: 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74  <td align="right
2bf0: 22 3e 56 65 72 73 69 6f 6e 26 6e 62 73 70 3b 46  ">Version&nbsp;F
2c00: 6f 75 6e 64 26 6e 62 73 70 3b 49 6e 3a 3c 2f 74  ound&nbsp;In:</t
2c10: 64 3e 3c 74 64 3e 0a 40 20 20 20 5b 66 6f 75 6e  d><td>.@   [foun
2c20: 64 69 6e 20 68 74 6d 6c 5d 0a 40 20 20 20 3c 2f  din html].@   </
2c30: 74 64 3e 3c 2f 74 72 3e 0a 40 20 20 20 3c 74 72  td></tr>.@   <tr
2c40: 3e 3c 74 64 20 63 6f 6c 73 70 61 6e 3d 22 32 22  ><td colspan="2"
2c50: 3e 0a 40 20 20 20 44 65 73 63 72 69 70 74 69 6f  >.@   Descriptio
2c60: 6e 20 41 6e 64 20 43 6f 6d 6d 65 6e 74 73 3a 3c  n And Comments:<
2c70: 62 72 3e 0a 40 20 20 20 5b 63 6f 6d 6d 65 6e 74  br>.@   [comment
2c80: 20 77 69 6b 69 5d 0a 40 20 20 20 3c 2f 74 64 3e   wiki].@   </td>
2c90: 3c 2f 74 72 3e 0a 40 20 20 20 3c 2f 74 61 62 6c  </tr>.@   </tabl
2ca0: 65 3e 0a 40 20 7d 20 2f 74 6b 74 76 69 65 77 5f  e>.@ } /tktview_
2cb0: 74 65 6d 70 6c 61 74 65 20 73 65 74 0a 3b 0a     template set.;.