phpBMS

root/trunk/phpbms/modules/bms/invoicestatuses_addedit.php

Revision 702, 5.2 KB (checked in by brieb, 2 years ago)

Updated copyrights to 2010

Line 
1<?php
2/*
3 $Rev: 155 $ | $LastChangedBy: mipalmer $
4 $LastChangedDate: 2006-10-22 15:09:20 -0600 (Sun, 22 Oct 2006) $
5 +-------------------------------------------------------------------------+
6 | Copyright (c) 2004 - 2010, Kreotek LLC                                  |
7 | All rights reserved.                                                    |
8 +-------------------------------------------------------------------------+
9 |                                                                         |
10 | Redistribution and use in source and binary forms, with or without      |
11 | modification, are permitted provided that the following conditions are  |
12 | met:                                                                    |
13 |                                                                         |
14 | - Redistributions of source code must retain the above copyright        |
15 |   notice, this list of conditions and the following disclaimer.         |
16 |                                                                         |
17 | - Redistributions in binary form must reproduce the above copyright     |
18 |   notice, this list of conditions and the following disclaimer in the   |
19 |   documentation and/or other materials provided with the distribution.  |
20 |                                                                         |
21 | - Neither the name of Kreotek LLC nor the names of its contributore may |
22 |   be used to endorse or promote products derived from this software     |
23 |   without specific prior written permission.                            |
24 |                                                                         |
25 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS     |
26 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT       |
27 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
28 | PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT      |
29 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,   |
30 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT        |
31 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,   |
32 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY   |
33 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT     |
34 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE   |
35 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.    |
36 |                                                                         |
37 +-------------------------------------------------------------------------+
38*/
39        include("../../include/session.php");
40        include("include/tables.php");
41        include("include/fields.php");
42
43        include("include/invoicestatuses.php");
44
45        $thetable = new invoicestatuses($db,"tbld:d6e4e1fb-4bfa-cb53-ab9c-1b3e7f907ae2");
46        $therecord = $thetable->processAddEditPage();
47
48        if(isset($therecord["phpbmsStatus"]))
49                $statusmessage = $therecord["phpbmsStatus"];
50
51        $pageTitle="Invoice Status";
52        $phpbms->cssIncludes[] = "pages/invoicestatuses.css";
53
54                //Form Elements
55                //==============================================================
56                $theform = new phpbmsForm();
57
58                $theinput = new inputCheckbox("inactive",$therecord["inactive"]);
59                $theform->addField($theinput);
60
61                $theinput = new inputField("priority",$therecord["priority"],NULL,false,"integer",8,8);
62                $theform->addField($theinput);
63
64                $theinput = new inputField("name",$therecord["name"],NULL,true,NULL,28,64);
65                $theinput->setAttribute("class","important");
66                $theform->addField($theinput);
67
68                $theinput = new inputCheckbox("invoicedefault",$therecord["invoicedefault"],"new order default");
69                $theform->addField($theinput);
70
71                $theinput = new inputCheckbox("setreadytopost",$therecord["setreadytopost"],"set ready to post when status selected");
72                $theform->addField($theinput);
73
74                $theinput = new inputSmartSearch($db, "defaultassignedtoid", "Pick Active User", $therecord["defaultassignedtoid"], "assigned to", false, 42);
75                $theform->addField($theinput);
76
77                $thetable->getCustomFieldInfo();
78                $theform->prepCustomFields($db, $thetable->customFieldsQueryResult, $therecord);
79                $theform->jsMerge();
80                //==============================================================
81                //End Form Elements
82
83        include("header.php");
84
85?>
86<div class="bodyline">
87        <?php $theform->startForm($pageTitle)?>
88
89        <fieldset id="fsAttributes">
90                <legend>attributes</legend>
91
92                <p><br /><?php $theform->showField("inactive")?></p>
93
94                <p><?php $theform->showField("priority")?></p>
95
96                <p class="notes">Lower priority numbered items are displayed first.</p>
97
98        </fieldset>
99
100        <div id="nameDiv">
101                <fieldset >
102                        <legend>name</legend>
103
104                        <p class="big"><?php $theform->showField("name");?></p>
105
106                </fieldset>
107                <fieldset>
108                        <legend>Defaults</legend>
109                        <p>
110                                <?php $theform->showField("invoicedefault")?>
111                        </p>
112                        <p>
113                                <?php $theform->showField("setreadytopost")?>
114                        </p>
115                        <p>
116                                <?php $theform->showField("defaultassignedtoid")?>
117                        </p>
118                </fieldset>
119
120                <?php $theform->showCustomFields($db, $thetable->customFieldsQueryResult) ?>
121
122        </div>
123
124        <?php
125                $theform->showGeneralInfo($phpbms,$therecord);
126                $theform->endForm();
127        ?>
128</div>
129<?php include("footer.php");?>
Note: See TracBrowser for help on using the browser.
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.