|
From: Benjamin C. <bc...@us...> - 2001-10-08 04:53:49
|
Update of /cvsroot/phpbt/phpbt/docs/html
In directory usw-pr-cvs1:/tmp/cvs-serv29139/html
Modified Files:
devguide.html devstandards.html docs.css index.html
userguide.html
Log Message:
Tweak, tweak, tweak
Index: devguide.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/docs/html/devguide.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- devguide.html 2001/10/08 01:59:15 1.7
+++ devguide.html 2001/10/08 04:53:46 1.8
@@ -189,6 +189,15 @@
CLASS="FUNCTION"
>query()</TT
>. Here are some examples:</P
+><DIV
+CLASS="EXAMPLE"
+><A
+NAME="AEN235"
+></A
+><P
+><B
+>Example 3-1. Using the database class</B
+></P
><TABLE
BORDER="0"
BGCOLOR="#EEEEEE"
@@ -215,16 +224,26 @@
></TR
></TABLE
></DIV
+></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
-NAME="AEN236"
+NAME="AEN238"
>3.1.1.2. Templates</A
></H3
><P
>Instead of outputting HTML from the scripts, templates are used to separate the code from the HTML. The templates contain tokens that are replaced by the scripts with values. The general process for using templates is as follows:</P
+><DIV
+CLASS="EXAMPLE"
+><A
+NAME="AEN241"
+></A
+><P
+><B
+>Example 3-2. Using the template class</B
+></P
><TABLE
BORDER="0"
BGCOLOR="#EEEEEE"
@@ -244,11 +263,73 @@
));
// Parse the template and print it out (inside a wrap template)
- $t->pparse('main', array('content', 'wrap', 'main');
+ $t->pparse('main', array('content', 'wrap', 'main'));
</PRE
></TD
></TR
></TABLE
+></DIV
+></DIV
+><DIV
+CLASS="SECT3"
+><H3
+CLASS="SECT3"
+><A
+NAME="AEN244"
+>3.1.1.3. Session and Authentication</A
+></H3
+><P
+>The session start and authentication code is included in <TT
+CLASS="FILENAME"
+>include.php</TT
+>. The session is started by a call to <TT
+CLASS="FUNCTION"
+>page_open()</TT
+>, with the arguments specifying which session elements should be created. phpBugTracker uses the <TT
+CLASS="CLASSNAME"
+>Auth</TT
+> and <TT
+CLASS="CLASSNAME"
+>Perm</TT
+> classes from PHPlib in addition to the base <TT
+CLASS="CLASSNAME"
+>Session</TT
+> class. </P
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN252"
+>3.1.1.3.1. Session</A
+></H4
+><P
+>Session variables, or variables that should be retained from page to page, are set via the <TT
+CLASS="VARNAME"
+>$sess</TT
+> variable, which is an instantiation of the <TT
+CLASS="CLASSNAME"
+>usess</TT
+> class. </P
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN257"
+>3.1.1.3.2. Auth</A
+></H4
+></DIV
+><DIV
+CLASS="SECT4"
+><H4
+CLASS="SECT4"
+><A
+NAME="AEN259"
+>3.1.1.3.3. Perm</A
+></H4
+></DIV
></DIV
></DIV
></DIV
Index: devstandards.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/docs/html/devstandards.html,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- devstandards.html 2001/10/08 01:59:15 1.8
+++ devstandards.html 2001/10/08 04:53:46 1.9
@@ -77,7 +77,7 @@
><DIV
CLASS="ABSTRACT"
><A
-NAME="AEN242"
+NAME="AEN263"
></A
><P
> This section details the coding and process standards to be
Index: docs.css
===================================================================
RCS file: /cvsroot/phpbt/phpbt/docs/html/docs.css,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- docs.css 2001/10/08 03:24:04 1.4
+++ docs.css 2001/10/08 04:53:46 1.5
@@ -15,3 +15,10 @@
padding: .1em;
}
+.MEDIAOBJECT {
+ text-align: center;
+ }
+
+.CAPTION {
+ text-align: center;
+ }
Index: index.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/docs/html/index.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- index.html 2001/10/08 01:59:15 1.6
+++ index.html 2001/10/08 04:53:46 1.7
@@ -104,6 +104,26 @@
></DD
></DL
></DIV
+><DIV
+CLASS="LOT"
+><DL
+CLASS="LOT"
+><DT
+><B
+>List of Examples</B
+></DT
+><DT
+>3-1. <A
+HREF="devguide.html#AEN235"
+>Using the database class</A
+></DT
+><DT
+>3-2. <A
+HREF="devguide.html#AEN241"
+>Using the template class</A
+></DT
+></DL
+></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
Index: userguide.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/docs/html/userguide.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- userguide.html 2001/10/08 01:59:15 1.5
+++ userguide.html 2001/10/08 04:53:46 1.6
@@ -132,7 +132,7 @@
><P
><IMG
SRC="images/shots/user/enterbug-chooseproject.png"
-ALIGN="CENTER"><DIV
+ALIGN="MIDDLE"><DIV
CLASS="CAPTION"
><P
>Selecting a project for a bug report.</P
|