Hex Artifact Content
Not logged in

Artifact a3312ee19399f32bbb281497afc9b3886c63768f:

File src/tktconfig.c part of check-in [d5e7891b07] - Add a more advanced commit-hook mechanism that allows us to specify multiple procedures in a particular order prior to commit. Continuing work toward getting tickets going. by drh on 2007-11-18 20:48:07.

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 74 79  .@ #.@ {.@    ty
0f90: 70 65 0a 40 20 20 20 20 73 74 61 74 75 73 0a 40  pe.@    status.@
0fa0: 20 20 20 20 73 75 62 73 79 73 74 65 6d 0a 40 20      subsystem.@ 
0fb0: 20 20 20 70 72 69 6f 72 69 74 79 0a 40 20 20 20     priority.@   
0fc0: 20 73 65 76 65 72 69 74 79 0a 40 20 20 20 20 63   severity.@    c
0fd0: 6f 6e 74 61 63 74 0a 40 20 20 20 20 74 69 74 6c  ontact.@    titl
0fe0: 65 0a 40 20 20 20 20 63 6f 6d 6d 65 6e 74 0a 40  e.@    comment.@
0ff0: 20 7d 20 2f 74 69 63 6b 65 74 5f 66 69 65 6c 64   } /ticket_field
1000: 73 0a 40 20 7b 0a 40 20 20 20 20 43 52 45 41 54  s.@ {.@    CREAT
1010: 45 20 54 41 42 4c 45 20 74 69 63 6b 65 74 28 0a  E TABLE ticket(.
1020: 40 20 20 20 20 20 20 2d 2d 20 44 6f 20 6e 6f 74  @      -- Do not
1030: 20 63 68 61 6e 67 65 20 61 6e 79 20 63 6f 6c 75   change any colu
1040: 6d 6e 20 74 68 61 74 20 62 65 67 69 6e 73 20 77  mn that begins w
1050: 69 74 68 20 74 6b 74 5f 0a 40 20 20 20 20 20 20  ith tkt_.@      
1060: 74 6b 74 5f 69 64 20 49 4e 54 45 47 45 52 20 50  tkt_id INTEGER P
1070: 52 49 4d 41 52 59 20 4b 45 59 2c 0a 40 20 20 20  RIMARY KEY,.@   
1080: 20 20 20 74 6b 74 5f 75 75 69 64 20 54 45 58 54     tkt_uuid TEXT
1090: 20 55 4e 49 51 55 45 2c 0a 40 20 20 20 20 20 20   UNIQUE,.@      
10a0: 74 6b 74 5f 6d 74 69 6d 65 20 44 41 54 45 2c 0a  tkt_mtime DATE,.
10b0: 40 20 20 20 20 20 20 74 6b 74 5f 76 61 6c 69 64  @      tkt_valid
10c0: 20 42 4f 4f 4c 45 41 4e 2c 0a 40 20 20 20 20 20   BOOLEAN,.@     
10d0: 20 2d 2d 20 41 64 64 20 61 73 20 6d 61 6e 79 20   -- Add as many 
10e0: 66 69 65 6c 64 20 61 73 20 72 65 71 75 69 72 65  field as require
10f0: 64 20 62 65 6c 6f 77 20 74 68 69 73 20 6c 69 6e  d below this lin
1100: 65 0a 40 20 20 20 20 20 20 74 79 70 65 20 54 45  e.@      type TE
1110: 58 54 2c 0a 40 20 20 20 20 20 20 73 74 61 74 75  XT,.@      statu
1120: 73 20 54 45 58 54 2c 0a 40 20 20 20 20 20 20 73  s TEXT,.@      s
1130: 75 62 73 79 73 74 65 6d 20 54 45 58 54 2c 0a 40  ubsystem TEXT,.@
1140: 20 20 20 20 20 20 70 72 69 6f 72 69 74 79 20 54        priority T
1150: 45 58 54 2c 0a 40 20 20 20 20 20 20 73 65 76 65  EXT,.@      seve
1160: 72 69 74 79 20 54 45 58 54 2c 0a 40 20 20 20 20  rity TEXT,.@    
1170: 20 20 74 69 74 6c 65 20 54 45 58 54 2c 0a 40 20    title TEXT,.@ 
1180: 20 20 20 20 20 63 6f 6d 6d 65 6e 74 20 54 45 58       comment TEX
1190: 54 0a 40 20 20 20 20 29 3b 0a 40 20 20 20 20 2d  T.@    );.@    -
11a0: 2d 20 41 64 64 20 69 6e 64 69 63 65 73 20 61 73  - Add indices as
11b0: 20 64 65 73 69 72 65 64 0a 40 20 7d 20 2f 74 69   desired.@ } /ti
11c0: 63 6b 65 74 5f 73 71 6c 20 73 65 74 0a 40 20 0a  cket_sql set.@ .
11d0: 40 20 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 23 23 23 23 23 23 23  ################
1200: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
1210: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 0a 40  ##############.@
1220: 20 23 20 59 6f 75 20 63 61 6e 20 64 65 66 69 6e   # You can defin
1230: 65 20 61 64 64 69 74 69 6f 6e 61 6c 20 76 61 72  e additional var
1240: 69 61 62 6c 65 73 20 68 65 72 65 2e 20 20 54 68  iables here.  Th
1250: 65 73 65 20 76 61 72 69 61 62 6c 65 73 20 77 69  ese variables wi
1260: 6c 6c 20 62 65 0a 40 20 23 20 61 63 63 65 73 73  ll be.@ # access
1270: 69 62 6c 65 20 74 6f 20 74 68 65 20 70 61 67 65  ible to the page
1280: 20 74 65 6d 70 6c 61 74 65 73 20 77 68 65 6e 20   templates when 
1290: 74 68 65 79 20 72 75 6e 2e 0a 40 20 23 0a 40 20  they run..@ #.@ 
12a0: 7b 43 6f 64 65 20 42 75 69 6c 64 5f 50 72 6f 62  {Code Build_Prob
12b0: 6c 65 6d 20 44 6f 63 75 6d 65 6e 74 61 74 69 6f  lem Documentatio
12c0: 6e 20 46 65 61 74 75 72 65 5f 52 65 71 75 65 73  n Feature_Reques
12d0: 74 20 49 6e 63 69 64 65 6e 74 7d 20 2f 74 79 70  t Incident} /typ
12e0: 65 5f 63 68 6f 69 63 65 73 20 73 65 74 0a 40 20  e_choices set.@ 
12f0: 7b 48 69 67 68 20 4d 65 64 69 75 6d 20 4c 6f 77  {High Medium Low
1300: 7d 20 2f 70 72 69 6f 72 69 74 79 5f 63 68 6f 69  } /priority_choi
1310: 63 65 73 20 73 65 74 0a 40 20 7b 43 72 69 74 69  ces set.@ {Criti
1320: 63 61 6c 20 53 65 76 65 72 65 20 49 6d 70 6f 72  cal Severe Impor
1330: 74 61 6e 74 20 4d 69 6e 6f 72 20 43 6f 73 6d 65  tant Minor Cosme
1340: 74 69 63 7d 20 2f 73 65 76 65 72 69 74 79 5f 63  tic} /severity_c
1350: 68 6f 69 63 65 73 20 73 65 74 0a 40 20 7b 0a 40  hoices set.@ {.@
1360: 20 20 20 4f 70 65 6e 0a 40 20 20 20 46 69 78 65     Open.@   Fixe
1370: 64 0a 40 20 20 20 52 65 6a 65 63 74 65 64 0a 40  d.@   Rejected.@
1380: 20 20 20 55 6e 61 62 6c 65 5f 54 6f 5f 52 65 70     Unable_To_Rep
1390: 72 6f 64 75 63 65 0a 40 20 20 20 57 6f 72 6b 73  roduce.@   Works
13a0: 5f 41 73 5f 44 65 73 69 67 6e 65 64 0a 40 20 20  _As_Designed.@  
13b0: 20 45 78 74 65 72 6e 61 6c 5f 42 75 67 0a 40 20   External_Bug.@ 
13c0: 20 20 4e 6f 74 5f 41 5f 42 75 67 0a 40 20 20 20    Not_A_Bug.@   
13d0: 44 75 70 6c 69 63 61 74 65 0a 40 20 20 20 4f 76  Duplicate.@   Ov
13e0: 65 72 63 6f 6d 65 5f 42 79 5f 45 76 65 6e 74 73  ercome_By_Events
13f0: 0a 40 20 20 20 44 72 69 76 65 5f 42 79 5f 50 61  .@   Drive_By_Pa
1400: 74 63 68 0a 40 20 7d 20 2f 72 65 73 6f 6c 75 74  tch.@ } /resolut
1410: 69 6f 6e 5f 63 68 6f 69 63 65 73 20 73 65 74 0a  ion_choices set.
1420: 40 20 7b 0a 40 20 20 20 4f 70 65 6e 0a 40 20 20  @ {.@   Open.@  
1430: 20 56 65 72 69 66 69 65 64 0a 40 20 20 20 49 6e   Verified.@   In
1440: 5f 50 72 6f 63 65 73 73 0a 40 20 20 20 44 65 66  _Process.@   Def
1450: 65 72 72 65 64 0a 40 20 20 20 46 69 78 65 64 0a  erred.@   Fixed.
1460: 40 20 20 20 54 65 73 74 65 64 0a 40 20 20 20 43  @   Tested.@   C
1470: 6c 6f 73 65 64 0a 40 20 7d 20 2f 73 74 61 74 75  losed.@ } /statu
1480: 73 5f 63 68 6f 69 63 65 73 20 73 65 74 0a 40 20  s_choices set.@ 
1490: 0a 40 20 23 23 23 23 23 23 23 23 23 23 23 23 23  .@ #############
14a0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
14b0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
14c0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
14d0: 23 23 23 23 23 23 23 23 23 23 23 23 23 0a 40 20  #############.@ 
14e0: 23 20 54 68 65 20 22 74 6b 74 6e 65 77 5f 74 65  # The "tktnew_te
14f0: 6d 70 6c 61 74 65 22 20 76 61 72 69 61 62 6c 65  mplate" variable
1500: 20 69 73 20 73 65 74 20 74 6f 20 74 65 78 74 20   is set to text 
1510: 77 68 69 63 68 20 69 73 20 61 20 74 65 6d 70 6c  which is a templ
1520: 61 74 65 20 66 6f 72 0a 40 20 23 20 74 68 65 20  ate for.@ # the 
1530: 48 54 4d 4c 20 6f 66 20 74 68 65 20 22 4e 65 77  HTML of the "New
1540: 20 54 69 63 6b 65 74 22 20 70 61 67 65 2e 20 20   Ticket" page.  
1550: 57 69 74 68 69 6e 20 74 68 69 73 20 74 65 6d 70  Within this temp
1560: 6c 61 74 65 2c 20 74 65 78 74 20 63 6f 6e 74 61  late, text conta
1570: 69 6e 65 64 0a 40 20 23 20 77 69 74 68 69 6e 20  ined.@ # within 
1580: 5b 2e 2e 2e 5d 20 69 73 20 73 75 62 73 63 72 69  [...] is subscri
1590: 70 74 2e 20 20 54 68 61 74 20 73 75 62 73 63 72  pt.  That subscr
15a0: 69 70 74 20 72 75 6e 73 20 77 68 65 6e 20 74 68  ipt runs when th
15b0: 65 20 70 61 67 65 20 69 73 0a 40 20 23 20 72 65  e page is.@ # re
15c0: 6e 64 65 72 65 64 2e 0a 40 20 23 0a 40 20 7b 0a  ndered..@ #.@ {.
15d0: 40 20 20 20 3c 21 2d 2d 20 6c 6f 61 64 20 64 61  @   <!-- load da
15e0: 74 61 62 61 73 65 20 66 69 65 6c 64 20 6e 61 6d  tabase field nam
15f0: 65 73 20 6e 6f 74 20 66 6f 75 6e 64 20 69 6e 20  es not found in 
1600: 43 47 49 20 77 69 74 68 20 61 6e 20 65 6d 70 74  CGI with an empt
1610: 79 20 73 74 72 69 6e 67 20 2d 2d 3e 0a 40 20 20  y string -->.@  
1620: 20 3c 21 2d 2d 20 73 74 61 72 74 20 61 20 66 6f   <!-- start a fo
1630: 72 6d 20 2d 2d 3e 0a 40 20 20 20 5b 7b 4f 70 65  rm -->.@   [{Ope
1640: 6e 7d 20 2f 73 74 61 74 75 73 20 73 65 74 20 2f  n} /status set /
1650: 73 75 62 6d 69 74 20 73 75 62 6d 69 74 5f 6e 65  submit submit_ne
1660: 77 5f 74 69 63 6b 65 74 5d 0a 40 20 20 20 3c 74  w_ticket].@   <t
1670: 61 62 6c 65 20 63 65 6c 6c 70 61 64 64 69 6e 67  able cellpadding
1680: 3d 22 35 22 3e 0a 40 20 20 20 3c 74 72 3e 0a 40  ="5">.@   <tr>.@
1690: 20 20 20 3c 74 64 20 63 65 6c 6c 70 61 64 64 69     <td cellpaddi
16a0: 6e 67 3d 22 32 22 3e 0a 40 20 20 20 45 6e 74 65  ng="2">.@   Ente
16b0: 72 20 61 20 6f 6e 65 2d 6c 69 6e 65 20 73 75 6d  r a one-line sum
16c0: 6d 61 72 79 20 6f 66 20 74 68 65 20 70 72 6f 62  mary of the prob
16d0: 6c 65 6d 3a 3c 62 72 3e 0a 40 20 20 20 3c 69 6e  lem:<br>.@   <in
16e0: 70 75 74 20 74 79 70 65 3d 22 74 65 78 74 22 20  put type="text" 
16f0: 6e 61 6d 65 3d 22 74 69 74 6c 65 22 20 73 69 7a  name="title" siz
1700: 65 3d 22 36 30 22 20 76 61 6c 75 65 3d 22 5b 74  e="60" value="[t
1710: 69 74 6c 65 20 68 74 6d 6c 5d 22 3e 0a 40 20 20  itle html]">.@  
1720: 20 3c 2f 74 64 3e 0a 40 20 20 20 3c 2f 74 72 3e   </td>.@   </tr>
1730: 0a 40 20 20 20 0a 40 20 20 20 3c 74 72 3e 0a 40  .@   .@   <tr>.@
1740: 20 20 20 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69     <td align="ri
1750: 67 68 74 22 3e 54 79 70 65 3a 0a 40 20 20 20 5b  ght">Type:.@   [
1760: 2f 74 79 70 65 20 74 79 70 65 63 68 6f 69 63 65  /type typechoice
1770: 73 20 32 30 20 63 6f 6d 62 6f 62 6f 78 5d 0a 40  s 20 combobox].@
1780: 20 20 20 3c 2f 74 64 3e 0a 40 20 20 20 3c 74 64     </td>.@   <td
1790: 3e 57 68 61 74 20 74 79 70 65 20 6f 66 20 74 69  >What type of ti
17a0: 63 6b 65 74 20 69 73 20 74 68 69 73 3f 3c 2f 74  cket is this?</t
17b0: 64 3e 0a 40 20 20 20 3c 2f 74 72 3e 0a 40 20 20  d>.@   </tr>.@  
17c0: 20 0a 40 20 20 20 3c 74 72 3e 0a 40 20 20 20 3c   .@   <tr>.@   <
17d0: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22  td align="right"
17e0: 3e 56 65 72 73 69 6f 6e 3a 20 0a 40 20 20 20 3c  >Version: .@   <
17f0: 69 6e 70 75 74 20 74 79 70 65 3d 22 74 65 78 74  input type="text
1800: 22 20 6e 61 6d 65 3d 22 66 6f 75 6e 64 69 6e 22  " name="foundin"
1810: 20 73 69 7a 65 3d 22 32 30 22 20 76 61 6c 75 65   size="20" value
1820: 3d 22 5b 66 6f 75 6e 64 69 6e 20 68 74 6d 6c 5d  ="[foundin html]
1830: 22 3e 0a 40 20 20 20 3c 2f 74 64 3e 0a 40 20 20  ">.@   </td>.@  
1840: 20 3c 74 64 3e 49 6e 20 77 68 61 74 20 76 65 72   <td>In what ver
1850: 73 69 6f 6e 20 6f 72 20 62 75 69 6c 64 20 6e 75  sion or build nu
1860: 6d 62 65 72 20 64 6f 20 79 6f 75 20 6f 62 73 65  mber do you obse
1870: 72 76 65 72 20 74 68 65 20 70 72 6f 62 6c 65 6d  rver the problem
1880: 3f 3c 2f 74 64 3e 0a 40 20 20 20 3c 2f 74 72 3e  ?</td>.@   </tr>
1890: 0a 40 20 20 20 0a 40 20 20 20 3c 74 72 3e 0a 40  .@   .@   <tr>.@
18a0: 20 20 20 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69     <td align="ri
18b0: 67 68 74 22 3e 53 65 76 65 72 69 74 79 3a 0a 40  ght">Severity:.@
18c0: 20 20 20 5b 2f 73 65 76 65 72 69 74 79 20 7b 48     [/severity {H
18d0: 69 67 68 20 4d 65 64 69 75 6d 20 4c 6f 77 7d 20  igh Medium Low} 
18e0: 38 20 63 6f 6d 62 6f 62 6f 78 5d 0a 40 20 20 20  8 combobox].@   
18f0: 3c 2f 74 64 3e 0a 40 20 20 20 3c 74 64 3e 48 6f  </td>.@   <td>Ho
1900: 77 20 64 65 62 69 6c 69 74 61 74 69 6e 67 20 69  w debilitating i
1910: 73 20 74 68 65 20 70 72 6f 62 6c 65 6d 3f 20 20  s the problem?  
1920: 48 6f 77 20 62 61 64 6c 79 20 64 6f 65 73 20 74  How badly does t
1930: 68 65 20 70 72 6f 62 6c 65 6d 0a 40 20 20 20 65  he problem.@   e
1940: 66 66 65 63 74 20 74 68 65 20 6f 70 65 72 61 74  ffect the operat
1950: 69 6f 6e 20 6f 66 20 74 68 65 20 70 72 6f 64 75  ion of the produ
1960: 63 74 3f 3c 2f 74 64 3e 0a 40 20 20 20 3c 2f 74  ct?</td>.@   </t
1970: 72 3e 0a 40 20 20 20 0a 40 20 20 20 3c 74 72 3e  r>.@   .@   <tr>
1980: 0a 40 20 20 20 3c 74 64 20 63 6f 6c 73 70 61 6e  .@   <td colspan
1990: 3d 22 32 22 3e 0a 40 20 20 20 45 6e 74 65 72 20  ="2">.@   Enter 
19a0: 61 20 64 65 74 61 69 6c 65 64 20 64 65 73 63 72  a detailed descr
19b0: 69 70 74 69 6f 6e 20 6f 66 20 74 68 65 20 70 72  iption of the pr
19c0: 6f 62 6c 65 6d 2e 0a 40 20 20 20 46 6f 72 20 63  oblem..@   For c
19d0: 6f 64 65 20 64 65 66 65 63 74 73 2c 20 62 65 20  ode defects, be 
19e0: 73 75 72 65 20 74 6f 20 70 72 6f 76 69 64 65 20  sure to provide 
19f0: 64 65 74 61 69 6c 73 20 6f 6e 20 65 78 61 63 74  details on exact
1a00: 6c 79 20 68 6f 77 0a 40 20 20 20 74 68 65 20 70  ly how.@   the p
1a10: 72 6f 62 6c 65 6d 20 63 61 6e 20 62 65 20 72 65  roblem can be re
1a20: 70 72 6f 64 75 63 65 64 2e 20 20 50 72 6f 76 69  produced.  Provi
1a30: 64 65 20 61 73 20 6d 75 63 68 20 64 65 74 61 69  de as much detai
1a40: 6c 20 61 73 0a 40 20 20 20 70 6f 73 73 69 62 6c  l as.@   possibl
1a50: 65 2e 0a 40 20 20 20 3c 62 72 3e 0a 40 20 20 20  e..@   <br>.@   
1a60: 3c 74 65 78 74 61 72 65 61 20 6e 61 6d 65 3d 22  <textarea name="
1a70: 63 6f 6d 6d 65 6e 74 22 20 63 6f 6c 73 3d 22 38  comment" cols="8
1a80: 30 22 20 72 6f 77 73 3d 22 5b 63 6f 6d 6d 65 6e  0" rows="[commen
1a90: 74 20 6c 69 6e 65 63 6f 75 6e 74 20 35 30 20 6d  t linecount 50 m
1aa0: 61 78 20 31 30 20 6d 69 6e 5d 22 0a 40 20 20 20  ax 10 min]".@   
1ab0: 20 77 72 61 70 3d 22 76 69 72 74 75 61 6c 22 20   wrap="virtual" 
1ac0: 63 6c 61 73 73 3d 22 77 69 6b 69 65 64 69 74 22  class="wikiedit"
1ad0: 3e 5b 63 6f 6d 6d 65 6e 74 20 68 74 6d 6c 5d 3c  >[comment html]<
1ae0: 2f 74 65 78 74 61 72 65 61 3e 3c 62 72 3e 0a 40  /textarea><br>.@
1af0: 20 20 20 3c 62 72 3e 0a 40 20 20 20 3c 69 6e 70     <br>.@   <inp
1b00: 75 74 20 74 79 70 65 3d 22 73 75 62 6d 69 74 22  ut type="submit"
1b10: 20 6e 61 6d 65 3d 22 70 72 65 76 69 65 77 22 20   name="preview" 
1b20: 76 61 6c 75 65 3d 22 50 72 65 76 69 65 77 22 3e  value="Preview">
1b30: 0a 40 20 20 20 3c 2f 74 72 3e 0a 40 20 0a 40 20  .@   </tr>.@ .@ 
1b40: 20 20 5b 30 20 2f 70 72 65 76 69 65 77 20 67 65    [0 /preview ge
1b50: 74 20 65 6e 61 62 6c 65 5f 6f 75 74 70 75 74 5d  t enable_output]
1b60: 0a 40 20 20 20 3c 74 72 3e 3c 74 64 20 63 6f 6c  .@   <tr><td col
1b70: 73 70 61 6e 3d 22 32 22 3e 0a 40 20 20 20 44 65  span="2">.@   De
1b80: 73 63 72 69 70 74 69 6f 6e 20 50 72 65 76 69 65  scription Previe
1b90: 77 3a 3c 62 72 3e 3c 68 72 3e 0a 40 20 20 20 5b  w:<br><hr>.@   [
1ba0: 2f 63 6f 6d 6d 65 6e 74 20 68 74 6d 6c 5d 0a 40  /comment html].@
1bb0: 20 20 20 3c 68 72 3e 0a 40 20 20 20 3c 2f 74 64     <hr>.@   </td
1bc0: 3e 3c 2f 74 72 3e 0a 40 20 20 20 5b 31 20 65 6e  ></tr>.@   [1 en
1bd0: 61 62 6c 65 5f 6f 75 74 70 75 74 5d 0a 40 20 20  able_output].@  
1be0: 20 0a 40 20 20 20 3c 74 72 3e 0a 40 20 20 20 3c   .@   <tr>.@   <
1bf0: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22  td align="right"
1c00: 3e 0a 40 20 20 20 3c 69 6e 70 75 74 20 74 79 70  >.@   <input typ
1c10: 65 3d 22 73 75 62 6d 69 74 22 20 6e 61 6d 65 3d  e="submit" name=
1c20: 22 73 75 62 6d 69 74 22 20 76 61 6c 75 65 3d 22  "submit" value="
1c30: 53 75 62 6d 69 74 22 3e 0a 40 20 20 20 3c 2f 74  Submit">.@   </t
1c40: 64 3e 0a 40 20 20 20 3c 74 64 3e 41 66 74 65 72  d>.@   <td>After
1c50: 20 66 69 6c 6c 69 6e 67 20 69 6e 20 74 68 65 20   filling in the 
1c60: 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 61 62 6f 76  information abov
1c70: 65 2c 20 70 72 65 73 73 20 74 68 69 73 20 62 75  e, press this bu
1c80: 74 74 6f 6e 20 74 6f 20 63 72 65 61 74 65 0a 40  tton to create.@
1c90: 20 20 20 74 68 65 20 6e 65 77 20 74 69 63 6b 65     the new ticke
1ca0: 74 3c 2f 74 64 3e 0a 40 20 20 20 3c 2f 74 72 3e  t</td>.@   </tr>
1cb0: 0a 40 20 20 20 3c 2f 74 61 62 6c 65 3e 0a 40 20  .@   </table>.@ 
1cc0: 20 20 3c 21 2d 2d 20 65 6e 64 20 6f 66 20 66 6f    <!-- end of fo
1cd0: 72 6d 20 2d 2d 3e 0a 40 20 7d 20 2f 74 6b 74 6e  rm -->.@ } /tktn
1ce0: 65 77 5f 74 65 6d 70 6c 61 74 65 20 73 65 74 0a  ew_template set.
1cf0: 40 20 0a 40 20 23 23 23 23 23 23 23 23 23 23 23  @ .@ ###########
1d00: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
1d10: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
1d20: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
1d30: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 0a  ###############.
1d40: 40 20 23 20 54 68 65 20 74 65 6d 70 6c 61 74 65  @ # The template
1d50: 20 66 6f 72 20 74 68 65 20 22 65 64 69 74 20 74   for the "edit t
1d60: 69 63 6b 65 74 22 20 70 61 67 65 0a 40 20 7b 0a  icket" page.@ {.
1d70: 40 20 20 20 3c 21 2d 2d 20 64 61 74 61 62 61 73  @   <!-- databas
1d80: 65 20 66 69 65 6c 64 20 6e 61 6d 65 73 20 6e 6f  e field names no
1d90: 74 20 66 6f 75 6e 64 20 61 73 20 43 47 49 20 70  t found as CGI p
1da0: 61 72 61 6d 65 74 65 72 73 20 61 72 65 20 6c 6f  arameters are lo
1db0: 61 64 65 64 0a 40 20 20 20 20 20 20 20 20 66 72  aded.@        fr
1dc0: 6f 6d 20 74 68 65 20 64 61 74 61 62 61 73 65 20  om the database 
1dd0: 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 2d 2d  automatically --
1de0: 3e 0a 40 20 20 20 3c 21 2d 2d 20 73 74 61 72 74  >.@   <!-- start
1df0: 20 61 20 66 6f 72 6d 20 2d 2d 3e 0a 40 20 20 20   a form -->.@   
1e00: 5b 7b 3c 68 72 3e 3c 69 3e 25 55 53 45 52 25 20  [{<hr><i>%USER% 
1e10: 61 64 64 65 64 20 6f 6e 20 25 44 41 54 45 25 3a  added on %DATE%:
1e20: 3c 2f 69 3e 3c 62 72 3e 7d 0a 40 20 20 20 20 20  </i><br>}.@     
1e30: 2f 63 6d 61 70 70 6e 64 20 2f 63 6f 6d 6d 65 6e  /cmappnd /commen
1e40: 74 20 61 70 70 65 6e 64 5f 72 65 6d 61 72 6b 5d  t append_remark]
1e50: 0a 40 20 20 20 5b 2f 73 75 62 6d 69 74 20 73 75  .@   [/submit su
1e60: 62 6d 69 74 5f 74 69 63 6b 65 74 5f 63 68 61 6e  bmit_ticket_chan
1e70: 67 65 5d 0a 40 20 20 20 3c 74 61 62 6c 65 20 63  ge].@   <table c
1e80: 65 6c 6c 70 61 64 64 69 6e 67 3d 22 35 22 3e 0a  ellpadding="5">.
1e90: 40 20 20 20 3c 74 72 3e 3c 74 64 20 61 6c 69 67  @   <tr><td alig
1ea0: 6e 3d 22 72 69 67 68 74 22 3e 54 69 74 6c 65 3a  n="right">Title:
1eb0: 3c 2f 74 64 3e 3c 74 64 3e 0a 40 20 20 20 3c 69  </td><td>.@   <i
1ec0: 6e 70 75 74 20 74 79 70 65 3d 22 74 65 78 74 22  nput type="text"
1ed0: 20 6e 61 6d 65 3d 22 74 69 74 6c 65 22 20 76 61   name="title" va
1ee0: 6c 75 65 3d 22 5b 74 69 74 6c 65 20 68 74 6d 6c  lue="[title html
1ef0: 5d 20 73 69 7a 65 3d 36 30 22 3e 0a 40 20 20 20  ] size=60">.@   
1f00: 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40 20 20 20 3c  </td></tr>.@   <
1f10: 74 72 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69  tr><td align="ri
1f20: 67 68 74 22 3e 53 74 61 74 75 73 3a 3c 2f 74 64  ght">Status:</td
1f30: 3e 3c 74 64 3e 0a 40 20 20 20 5b 2f 73 74 61 74  ><td>.@   [/stat
1f40: 75 73 20 73 74 61 74 75 73 5f 63 68 6f 69 63 65  us status_choice
1f50: 73 20 32 30 20 63 6f 6d 62 6f 62 6f 78 5d 0a 40  s 20 combobox].@
1f60: 20 20 20 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40 20     </td></tr>.@ 
1f70: 20 20 3c 74 72 3e 3c 74 64 20 61 6c 69 67 6e 3d    <tr><td align=
1f80: 22 72 69 67 68 74 22 3e 54 79 70 65 3a 3c 2f 74  "right">Type:</t
1f90: 64 3e 3c 74 64 3e 0a 40 20 20 20 5b 2f 74 79 70  d><td>.@   [/typ
1fa0: 65 20 74 79 70 65 5f 63 68 6f 69 63 65 73 20 32  e type_choices 2
1fb0: 30 20 63 6f 6d 62 6f 62 6f 78 5d 0a 40 20 20 20  0 combobox].@   
1fc0: 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40 20 20 20 3c  </td></tr>.@   <
1fd0: 74 72 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69  tr><td align="ri
1fe0: 67 68 74 22 3e 53 65 76 65 72 69 74 79 3a 3c 2f  ght">Severity:</
1ff0: 74 64 3e 3c 74 64 3e 0a 40 20 20 20 5b 2f 73 65  td><td>.@   [/se
2000: 76 65 72 69 74 79 20 7b 48 69 67 68 20 4d 65 64  verity {High Med
2010: 69 75 6d 20 4c 6f 77 7d 20 31 30 20 63 6f 6d 62  ium Low} 10 comb
2020: 6f 62 6f 78 5d 0a 40 20 20 20 3c 2f 74 64 3e 3c  obox].@   </td><
2030: 2f 74 72 3e 0a 40 20 20 20 3c 74 72 3e 3c 74 64  /tr>.@   <tr><td
2040: 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 50   align="right">P
2050: 72 69 6f 72 69 74 79 3a 3c 2f 74 64 3e 3c 74 64  riority:</td><td
2060: 3e 0a 40 20 20 20 5b 2f 70 72 69 6f 72 69 74 79  >.@   [/priority
2070: 20 7b 48 69 67 68 20 4d 65 64 69 75 6d 20 4c 6f   {High Medium Lo
2080: 77 7d 20 31 30 20 63 6f 6d 62 6f 62 6f 78 5d 0a  w} 10 combobox].
2090: 40 20 20 20 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40  @   </td></tr>.@
20a0: 20 20 20 3c 74 72 3e 3c 74 64 20 61 6c 69 67 6e     <tr><td align
20b0: 3d 22 72 69 67 68 74 22 3e 52 65 73 6f 6c 75 74  ="right">Resolut
20c0: 69 6f 6e 3a 3c 2f 74 64 3e 3c 74 64 3e 0a 40 20  ion:</td><td>.@ 
20d0: 20 20 5b 2f 72 65 73 6f 6c 75 74 69 6f 6e 20 72    [/resolution r
20e0: 65 73 6f 6c 75 74 69 6f 6e 5f 63 68 6f 69 63 65  esolution_choice
20f0: 73 20 32 30 20 63 6f 6d 62 6f 62 6f 78 5d 0a 40  s 20 combobox].@
2100: 20 20 20 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40 20     </td></tr>.@ 
2110: 20 20 3c 74 72 3e 3c 74 64 20 61 6c 69 67 6e 3d    <tr><td align=
2120: 22 72 69 67 68 74 22 3e 53 75 62 73 79 73 74 65  "right">Subsyste
2130: 6d 3a 3c 2f 74 64 3e 3c 74 64 3e 0a 40 20 20 20  m:</td><td>.@   
2140: 5b 2f 73 75 62 73 79 73 74 65 6d 20 73 75 62 73  [/subsystem subs
2150: 79 73 74 65 6d 5f 63 68 6f 69 63 65 73 20 33 30  ystem_choices 30
2160: 20 63 6f 6d 62 6f 62 6f 78 5d 0a 40 20 20 20 3c   combobox].@   <
2170: 2f 74 64 3e 3c 2f 74 72 3e 0a 40 20 20 20 5b 2f  /td></tr>.@   [/
2180: 65 20 68 61 73 63 61 70 20 65 6e 61 62 6c 65 5f  e hascap enable_
2190: 6f 75 74 70 75 74 5d 0a 40 20 20 20 20 20 3c 74  output].@     <t
21a0: 72 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67  r><td align="rig
21b0: 68 74 22 3e 43 6f 6e 74 61 63 74 3a 3c 2f 74 64  ht">Contact:</td
21c0: 3e 3c 74 64 3e 0a 40 20 20 20 20 20 3c 69 6e 70  ><td>.@     <inp
21d0: 75 74 20 74 79 70 65 3d 22 74 65 78 74 22 20 6e  ut type="text" n
21e0: 61 6d 65 3d 22 63 6f 6e 74 61 63 74 22 20 73 69  ame="contact" si
21f0: 7a 65 3d 22 34 30 22 20 76 61 6c 75 65 3d 22 5b  ze="40" value="[
2200: 63 6f 6e 74 61 63 74 20 68 74 6d 6c 5d 22 3e 0a  contact html]">.
2210: 40 20 20 20 20 20 3c 2f 74 64 3e 3c 2f 74 72 3e  @     </td></tr>
2220: 0a 40 20 20 20 5b 31 20 65 6e 61 62 6c 65 5f 6f  .@   [1 enable_o
2230: 75 74 70 75 74 5d 0a 40 20 20 20 3c 74 72 3e 3c  utput].@   <tr><
2240: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22  td align="right"
2250: 3e 56 65 72 73 69 6f 6e 26 6e 62 73 70 3b 46 6f  >Version&nbsp;Fo
2260: 75 6e 64 26 6e 62 73 70 3b 49 6e 3a 3c 2f 74 64  und&nbsp;In:</td
2270: 3e 3c 74 64 3e 0a 40 20 20 20 3c 69 6e 70 75 74  ><td>.@   <input
2280: 20 74 79 70 65 3d 22 74 65 78 74 22 20 6e 61 6d   type="text" nam
2290: 65 3d 22 66 6f 75 6e 64 69 6e 22 20 73 69 7a 65  e="foundin" size
22a0: 3d 22 35 30 22 20 76 61 6c 75 65 3d 22 5b 66 6f  ="50" value="[fo
22b0: 75 6e 64 69 6e 20 68 74 6d 6c 5d 22 3e 0a 40 20  undin html]">.@ 
22c0: 20 20 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40 20 20    </td></tr>.@  
22d0: 20 3c 74 72 3e 3c 74 64 20 63 6f 6c 73 70 61 6e   <tr><td colspan
22e0: 3d 22 32 22 3e 0a 40 20 20 20 5b 30 20 2f 65 61  ="2">.@   [0 /ea
22f0: 6c 6c 20 30 20 67 65 74 20 2f 65 61 6c 6c 20 73  ll 0 get /eall s
2300: 65 74 5d 0a 40 20 20 20 5b 2f 61 6f 6e 6c 79 62  et].@   [/aonlyb
2310: 74 6e 20 65 78 69 73 74 73 20 6e 6f 74 20 2f 65  tn exists not /e
2320: 61 6c 6c 20 73 65 74 5d 0a 40 20 20 20 5b 2f 65  all set].@   [/e
2330: 61 6c 6c 62 74 6e 20 65 78 69 73 74 73 20 2f 65  allbtn exists /e
2340: 61 6c 6c 20 73 65 74 5d 0a 40 20 20 20 5b 2f 77  all set].@   [/w
2350: 20 68 61 73 63 61 70 20 65 61 6c 6c 20 61 6e 64   hascap eall and
2360: 20 2f 65 61 6c 6c 20 73 65 74 5d 0a 40 20 20 20   /eall set].@   
2370: 5b 65 61 6c 6c 20 65 6e 61 62 6c 65 5f 6f 75 74  [eall enable_out
2380: 70 75 74 5d 0a 40 20 20 20 20 20 44 65 73 63 72  put].@     Descr
2390: 69 70 74 69 6f 6e 20 41 6e 64 20 43 6f 6d 6d 65  iption And Comme
23a0: 6e 74 73 3a 3c 62 72 3e 0a 40 20 20 20 20 20 3c  nts:<br>.@     <
23b0: 74 65 78 74 61 72 65 61 20 6e 61 6d 65 3d 22 63  textarea name="c
23c0: 6f 6d 6d 65 6e 74 22 20 63 6f 6c 73 3d 22 38 30  omment" cols="80
23d0: 22 20 72 6f 77 73 3d 22 5b 63 6f 6d 6d 65 6e 74  " rows="[comment
23e0: 20 6c 69 6e 65 63 6f 75 6e 74 20 31 35 20 6d 61   linecount 15 ma
23f0: 78 20 31 30 20 6d 69 6e 5d 22 0a 40 20 20 20 20  x 10 min]".@    
2400: 20 20 77 72 61 70 3d 22 76 69 72 74 75 61 6c 22    wrap="virtual"
2410: 20 63 6c 61 73 73 3d 22 77 69 6b 69 65 64 69 74   class="wikiedit
2420: 22 3e 5b 63 6f 6d 6d 65 6e 74 20 68 74 6d 6c 5d  ">[comment html]
2430: 3c 2f 74 65 78 74 61 72 65 61 3e 3c 62 72 3e 0a  </textarea><br>.
2440: 40 20 20 20 20 20 3c 69 6e 70 75 74 20 74 79 70  @     <input typ
2450: 65 3d 22 68 69 64 64 65 6e 22 20 6e 61 6d 65 3d  e="hidden" name=
2460: 22 65 61 6c 6c 22 20 76 61 6c 75 65 3d 22 31 22  "eall" value="1"
2470: 3e 0a 40 20 20 20 20 20 3c 69 6e 70 75 74 20 74  >.@     <input t
2480: 79 70 65 3d 22 73 75 62 6d 69 74 22 20 6e 61 6d  ype="submit" nam
2490: 65 3d 22 61 6f 6e 6c 79 62 74 6e 22 20 76 61 6c  e="aonlybtn" val
24a0: 75 65 3d 22 41 70 70 65 6e 64 20 52 65 6d 61 72  ue="Append Remar
24b0: 6b 22 3e 0a 40 20 20 20 5b 65 61 6c 6c 20 6e 6f  k">.@   [eall no
24c0: 74 20 65 6e 61 62 6c 65 5f 6f 75 74 70 75 74 5d  t enable_output]
24d0: 0a 40 20 20 20 20 20 41 70 70 65 6e 64 20 52 65  .@     Append Re
24e0: 6d 61 72 6b 3a 3c 62 72 3e 0a 40 20 20 20 20 20  mark:<br>.@     
24f0: 3c 74 65 78 74 61 72 65 61 20 6e 61 6d 65 3d 22  <textarea name="
2500: 63 6d 61 70 70 6e 64 22 20 63 6f 6c 73 3d 22 38  cmappnd" cols="8
2510: 30 22 20 72 6f 77 73 3d 22 31 35 22 0a 40 20 20  0" rows="15".@  
2520: 20 20 20 20 77 72 61 70 3d 22 76 69 72 74 75 61      wrap="virtua
2530: 6c 22 20 63 6c 61 73 73 3d 22 77 69 6b 69 65 64  l" class="wikied
2540: 69 74 22 3e 5b 63 6d 61 70 70 6e 64 20 68 74 6d  it">[cmappnd htm
2550: 6c 5d 3c 2f 74 65 78 74 61 72 65 61 3e 3c 62 72  l]</textarea><br
2560: 3e 0a 40 20 20 20 20 20 5b 6f 6b 5f 77 72 74 6b  >.@     [ok_wrtk
2570: 74 20 65 6e 61 62 6c 65 5f 6f 75 74 70 75 74 5d  t enable_output]
2580: 0a 40 20 20 20 20 20 3c 69 6e 70 75 74 20 74 79  .@     <input ty
2590: 70 65 3d 22 73 75 62 6d 69 74 22 20 6e 61 6d 65  pe="submit" name
25a0: 3d 22 65 61 6c 6c 62 74 6e 22 20 76 61 6c 75 65  ="eallbtn" value
25b0: 3d 22 45 64 69 74 20 41 6c 6c 22 3e 0a 40 20 20  ="Edit All">.@  
25c0: 20 5b 31 20 65 6e 61 62 6c 65 5f 6f 75 74 70 75   [1 enable_outpu
25d0: 74 5d 0a 40 20 20 20 3c 2f 74 64 3e 3c 2f 74 72  t].@   </td></tr
25e0: 3e 0a 40 20 20 20 3c 74 72 3e 3c 74 64 20 61 6c  >.@   <tr><td al
25f0: 69 67 6e 3d 22 72 69 67 68 74 22 3e 3c 2f 74 64  ign="right"></td
2600: 3e 3c 74 64 3e 0a 40 20 20 20 3c 69 6e 70 75 74  ><td>.@   <input
2610: 20 74 79 70 65 3d 22 73 75 62 6d 69 74 22 20 6e   type="submit" n
2620: 61 6d 65 3d 22 73 75 62 6d 69 74 22 20 76 61 6c  ame="submit" val
2630: 75 65 3d 22 53 75 62 6d 69 74 20 43 68 61 6e 67  ue="Submit Chang
2640: 65 73 22 3e 0a 40 20 20 20 3c 2f 74 64 3e 3c 2f  es">.@   </td></
2650: 74 72 3e 0a 40 20 20 20 3c 2f 74 61 62 6c 65 3e  tr>.@   </table>
2660: 0a 40 20 20 20 3c 21 2d 2d 20 65 6e 64 2d 66 6f  .@   <!-- end-fo
2670: 72 6d 20 69 6e 73 65 72 74 65 64 20 61 75 74 6f  rm inserted auto
2680: 6d 61 74 69 63 61 6c 6c 79 20 2d 2d 3e 0a 40 20  matically -->.@ 
2690: 7d 20 2f 74 6b 74 65 64 69 74 5f 74 65 6d 70 6c  } /tktedit_templ
26a0: 61 74 65 20 73 65 74 0a 40 20 0a 40 20 23 23 23  ate set.@ .@ ###
26b0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
26c0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
26d0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
26e0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
26f0: 23 23 23 23 23 23 23 0a 40 20 23 20 54 68 65 20  #######.@ # The 
2700: 74 65 6d 70 6c 61 74 65 20 66 6f 72 20 74 68 65  template for the
2710: 20 22 76 69 65 77 20 74 69 63 6b 65 74 22 20 70   "view ticket" p
2720: 61 67 65 0a 40 20 7b 0a 40 20 20 20 3c 21 2d 2d  age.@ {.@   <!--
2730: 20 6c 6f 61 64 20 64 61 74 61 62 61 73 65 20 66   load database f
2740: 69 65 6c 64 73 20 61 75 74 6f 6d 61 74 69 63 61  ields automatica
2750: 6c 6c 79 20 6c 6f 61 64 65 64 20 69 6e 74 6f 20  lly loaded into 
2760: 76 61 72 69 61 62 6c 65 73 20 2d 2d 3e 0a 40 20  variables -->.@ 
2770: 20 20 3c 74 61 62 6c 65 20 63 65 6c 6c 70 61 64    <table cellpad
2780: 64 69 6e 67 3d 22 35 22 3e 0a 40 20 20 20 3c 74  ding="5">.@   <t
2790: 72 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67  r><td align="rig
27a0: 68 74 22 3e 54 69 74 6c 65 3a 3c 2f 74 64 3e 3c  ht">Title:</td><
27b0: 74 64 3e 0a 40 20 20 20 5b 2f 74 69 74 6c 65 20  td>.@   [/title 
27c0: 68 74 6d 6c 5d 0a 40 20 20 20 3c 2f 74 64 3e 3c  html].@   </td><
27d0: 2f 74 72 3e 0a 40 20 20 20 3c 74 72 3e 3c 74 64  /tr>.@   <tr><td
27e0: 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 53   align="right">S
27f0: 74 61 74 75 73 3a 3c 2f 74 64 3e 3c 74 64 3e 0a  tatus:</td><td>.
2800: 40 20 20 20 5b 2f 73 74 61 74 75 73 20 68 74 6d  @   [/status htm
2810: 6c 5d 0a 40 20 20 20 3c 2f 74 64 3e 3c 2f 74 72  l].@   </td></tr
2820: 3e 0a 40 20 20 20 3c 74 72 3e 3c 74 64 20 61 6c  >.@   <tr><td al
2830: 69 67 6e 3d 22 72 69 67 68 74 22 3e 54 79 70 65  ign="right">Type
2840: 3a 3c 2f 74 64 3e 3c 74 64 3e 0a 40 20 20 20 5b  :</td><td>.@   [
2850: 2f 74 79 70 65 20 68 74 6d 6c 5d 0a 40 20 20 20  /type html].@   
2860: 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40 20 20 20 3c  </td></tr>.@   <
2870: 74 72 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69  tr><td align="ri
2880: 67 68 74 22 3e 53 65 76 65 72 69 74 79 3a 3c 2f  ght">Severity:</
2890: 74 64 3e 3c 74 64 3e 0a 40 20 20 20 5b 2f 73 65  td><td>.@   [/se
28a0: 76 65 72 69 74 79 20 68 74 6d 6c 5d 0a 40 20 20  verity html].@  
28b0: 20 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40 20 20 20   </td></tr>.@   
28c0: 3c 74 72 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72  <tr><td align="r
28d0: 69 67 68 74 22 3e 50 72 69 6f 72 69 74 79 3a 3c  ight">Priority:<
28e0: 2f 74 64 3e 3c 74 64 3e 0a 40 20 20 20 5b 2f 70  /td><td>.@   [/p
28f0: 72 69 6f 72 69 74 79 20 68 74 6d 6c 5d 0a 40 20  riority html].@ 
2900: 20 20 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40 20 20    </td></tr>.@  
2910: 20 3c 74 72 3e 3c 74 64 20 61 6c 69 67 6e 3d 22   <tr><td align="
2920: 72 69 67 68 74 22 3e 52 65 73 6f 6c 75 74 69 6f  right">Resolutio
2930: 6e 3a 3c 2f 74 64 3e 3c 74 64 3e 0a 40 20 20 20  n:</td><td>.@   
2940: 5b 2f 70 72 69 6f 72 69 74 79 20 68 74 6d 6c 5d  [/priority html]
2950: 0a 40 20 20 20 3c 2f 74 64 3e 3c 2f 74 72 3e 0a  .@   </td></tr>.
2960: 40 20 20 20 3c 74 72 3e 3c 74 64 20 61 6c 69 67  @   <tr><td alig
2970: 6e 3d 22 72 69 67 68 74 22 3e 53 75 62 73 79 73  n="right">Subsys
2980: 74 65 6d 3a 3c 2f 74 64 3e 3c 74 64 3e 0a 40 20  tem:</td><td>.@ 
2990: 20 20 5b 2f 73 75 62 73 79 73 74 65 6d 20 68 74    [/subsystem ht
29a0: 6d 6c 5d 0a 40 20 20 20 3c 2f 74 64 3e 3c 2f 74  ml].@   </td></t
29b0: 72 3e 0a 40 20 20 20 5b 7b 65 7d 20 68 61 73 63  r>.@   [{e} hasc
29c0: 61 70 20 65 6e 61 62 6c 65 5f 6f 75 74 70 75 74  ap enable_output
29d0: 5d 0a 40 20 20 20 20 20 3c 74 72 3e 3c 74 64 20  ].@     <tr><td 
29e0: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 43 6f  align="right">Co
29f0: 6e 74 61 63 74 3a 3c 2f 74 64 3e 3c 74 64 3e 0a  ntact:</td><td>.
2a00: 40 20 20 20 20 20 5b 2f 63 6f 6e 74 61 63 74 20  @     [/contact 
2a10: 68 74 6d 6c 5d 0a 40 20 20 20 20 20 3c 2f 74 64  html].@     </td
2a20: 3e 3c 2f 74 72 3e 0a 40 20 20 20 5b 31 20 65 6e  ></tr>.@   [1 en
2a30: 61 62 6c 65 5f 6f 75 74 70 75 74 5d 0a 40 20 20  able_output].@  
2a40: 20 3c 74 72 3e 3c 74 64 20 61 6c 69 67 6e 3d 22   <tr><td align="
2a50: 72 69 67 68 74 22 3e 56 65 72 73 69 6f 6e 26 6e  right">Version&n
2a60: 62 73 70 3b 46 6f 75 6e 64 26 6e 62 73 70 3b 49  bsp;Found&nbsp;I
2a70: 6e 3a 3c 2f 74 64 3e 3c 74 64 3e 0a 40 20 20 20  n:</td><td>.@   
2a80: 5b 2f 66 6f 75 6e 64 69 6e 20 68 74 6d 6c 5d 0a  [/foundin html].
2a90: 40 20 20 20 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40  @   </td></tr>.@
2aa0: 20 20 20 3c 74 72 3e 3c 74 64 20 63 6f 6c 73 70     <tr><td colsp
2ab0: 61 6e 3d 22 32 22 3e 0a 40 20 20 20 44 65 73 63  an="2">.@   Desc
2ac0: 72 69 70 74 69 6f 6e 20 41 6e 64 20 43 6f 6d 6d  ription And Comm
2ad0: 65 6e 74 73 3a 3c 62 72 3e 0a 40 20 20 20 5b 2f  ents:<br>.@   [/
2ae0: 63 6f 6d 6d 65 6e 74 20 68 74 6d 6c 5d 0a 40 20  comment html].@ 
2af0: 20 20 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 40 20 20    </td></tr>.@  
2b00: 20 3c 2f 74 61 62 6c 65 3e 0a 40 20 7d 20 2f 74   </table>.@ } /t
2b10: 6b 74 76 69 65 77 5f 74 65 6d 70 6c 61 74 65 20  ktview_template 
2b20: 73 65 74 0a 3b 0a                                set.;.