/[dtapublic]/to_be_filed/webprojs/php_libraries/php_library/fboprime/stdformatx.inc
ViewVC logotype

Annotation of /to_be_filed/webprojs/php_libraries/php_library/fboprime/stdformatx.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 35 - (hide annotations) (download)
Sat Oct 8 23:35:33 2016 UTC (7 years, 10 months ago) by dashley
File size: 6724 byte(s)
Initial commit.
1 dashley 35 <?php
2     //$Header: /hl/cvsroots/gpl01/gpl01/webprojs/fboprime/sw/phplib/stdformatx.inc,v 1.2 2006/07/09 04:34:57 dashley Exp $
3     //--------------------------------------------------------------------------------------------------------------
4     //stdformatx--FboPrime Page Standard "Look and Feel" Functions Not Necessary for Day Scheduling View
5     //Copyright (C) 2006 David T. Ashley
6     //
7     //This program is free software; you can redistribute it and/or
8     //modify it under the terms of the GNU General Public License
9     //as published by the Free Software Foundation; either version 2
10     //of the License, or (at your option) any later version.
11     //
12     //This program is distributed in the hope that it will be useful,
13     //but WITHOUT ANY WARRANTY; without even the implied warranty of
14     //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15     //GNU General Public License for more details.
16     //
17     //You should have received a copy of the GNU General Public License
18     //along with this program; if not, write to the Free Software
19     //Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20     //********************************************************************************
21     //This contains functions used in development and debugging of FBO-Prime. The
22     //contents of this file are kept separate to avoid introducing baggage into
23     //the production software.
24     //--------------------------------------------------------------------------------------------------------------
25     require_once("stdformat.inc");
26     //
27     //--------------------------------------------------------------------------------------------------------------
28     //This file contains functions that emit standard elements of FboPrime pages and otherwise give the set of
29     //pages a consistent (and hopefully easy to modify) look and feel.
30     //--------------------------------------------------------------------------------------------------------------
31     //Emits the standard page when the user does not have adequate permissions to access the page.
32     //
33     function STDFORMAT_inadequatepermissionspage($pagetitle, $sddt, $sdtim)
34     {
35     HTMLFORMAT_echo_push_nl("<html>");
36     HTMLFORMAT_echo_push_nl("<head>");
37     HTMLFORMAT_echo_noop_nl("<title>FBO-Prime Inadequate User Permissions</title>");
38     HTMLFORMAT_echo_pull_nl("</head>");
39     HTMLFORMAT_echo_push_nl("<body>");
40     HTMLFORMAT_echo_push_nl("<table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"4\" rules=\"none\">");
41     HTMLFORMAT_echo_push_nl("<tr>");
42     HTMLFORMAT_echo_push_nl("<td align=\"center\">");
43     HTMLFORMAT_echo_noop_nl("<title>FBO-Prime Inadequate User Permissions</title>");
44     HTMLFORMAT_echo_noop_nl("<br><br><br><br><br><p>You do not have adequate user permissions to use the ");
45     HTMLFORMAT_echo_noop_nl($pagetitle . " page.</p>");
46    
47     HTMLFORMAT_echo_noop_nl("<p>Click ");
48    
49     $baseurl = "index.php";
50     if (($sddt === FALSE) && ($sdtim === FALSE))
51     {
52     //No adjustment to the base URL needed.
53     }
54     else if (($sddt === FALSE) && ($sdtim !== FALSE))
55     {
56     $baseurl = $baseurl . "?sdtim=" . $sdtim;
57     }
58     else if (($sddt !== FALSE) && ($sdtim === FALSE))
59     {
60     $baseurl = $baseurl . "?sddt=" . $sddt;
61     }
62     else
63     {
64     $baseurl = $baseurl . "?sddt=" . $sddt . "&sdtim=" . $sdtim;
65     }
66     HTMLFORMAT_echo_noop_nl("<a href=\"" . $baseurl . "\">here</a> to return to the day view scheduler.</p><br><br><br><br><br>");
67     HTMLFORMAT_echo_pull_nl("</td>");
68     HTMLFORMAT_echo_pull_nl("</tr>");
69     HTMLFORMAT_echo_pull_nl("</table>");
70     STDFORMAT_stdfooter_tabular(FALSE, $sddt, $sdtim);
71     HTMLFORMAT_echo_pull_nl("</body>");
72     HTMLFORMAT_echo_pull_nl("</html>");
73     }
74     //
75     //--------------------------------------------------------------------------------------------------------------
76     //Emits the standard page when the client page requires that a user be logged in but there is no user logged in.
77     //
78     function STDFORMAT_underconstructionpage($desc_in, $curuserinfo_in, $cursessioninfo_in, $sddt_in, $sdtim_in)
79     {
80     HTMLFORMAT_echo_push_nl("<html>");
81     HTMLFORMAT_echo_push_nl("<head>");
82     HTMLFORMAT_echo_noop_nl("<title>FBO-Prime Page Under Construction</title>");
83     HTMLFORMAT_echo_pull_nl("</head>");
84     HTMLFORMAT_echo_push_nl("<body>");
85     HTMLFORMAT_echo_push_nl("<table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"4\" rules=\"none\">");
86     HTMLFORMAT_echo_push_nl("<tr>");
87     HTMLFORMAT_echo_push_nl("<td align=\"center\">");
88     HTMLFORMAT_echo_noop_nl("<br><br><br><br><br><p>This page (" . $desc_in . ") is under construction.</p>");
89     HTMLFORMAT_echo_noop_nl("<p>Please click ");
90    
91     $baseurl = "index.php";
92     if (($sddt_in === FALSE) && ($sdtim_in === FALSE))
93     {
94     //No adjustment to the base URL needed.
95     }
96     else if (($sddt_in === FALSE) && ($sdtim_in !== FALSE))
97     {
98     $baseurl = $baseurl . "?sdtim=" . $sdtim_in;
99     }
100     else if (($sddt_in !== FALSE) && ($sdtim_in === FALSE))
101     {
102     $baseurl = $baseurl . "?sddt=" . $sddt_in;
103     }
104     else
105     {
106     $baseurl = $baseurl . "?sddt=" . $sddt_in . "&sdtim=" . $sdtim_in;
107     }
108     HTMLFORMAT_echo_noop_nl("<a href=\"" . $baseurl . "\">here</a> to return to the day view scheduler.</p><br><br><br><br><br>");
109     HTMLFORMAT_echo_pull_nl("</td>");
110     HTMLFORMAT_echo_pull_nl("</tr>");
111     HTMLFORMAT_echo_pull_nl("</table>");
112     STDFORMAT_stdfooter_tabular($curuserinfo_in, $sddt_in, $sdtim_in);
113     HTMLFORMAT_echo_pull_nl("</body>");
114     HTMLFORMAT_echo_pull_nl("</html>");
115     }
116     //
117     //--------------------------------------------------------------------------------------------------------------
118     //End of $RCSfile: stdformatx.inc,v $.
119     //--------------------------------------------------------------------------------------------------------------
120     ?>

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25