phpBMS

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

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

Updated copyrights to 2010

  • Property svn:keywords set to LastChangedBy LastChangedDate LastChangedRevision
Line 
1<?php
2/*
3 $Rev$ | $LastChangedBy$
4 $LastChangedDate$
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        require_once("../../include/session.php");
40        require_once("include/fields.php");
41
42        $pagetitle="Search Clients and Prospects";
43
44        $phpbms->cssIncludes[] = "pages/quickview.css";
45        $phpbms->jsIncludes[] = "modules/bms/javascript/quickview.js";
46
47
48                //Form Elements
49                //==============================================================
50                $theform = new phpbmsForm();
51
52                if(isset($_GET["cid"])) {
53
54                                        //$passedValue = getUuid($db, "tbld:6d290174-8b73-e199-fe6c-bcf3d4b61083", (int) $_GET["cid"]);
55                                        $passedValue = $_GET["cid"];
56
57                } else
58                        $passedValue = NULL;
59
60                        $theinput = new inputSmartSearch($db, "clientid", "Pick Sales Order Client", $passedValue, "client", false, 55, 255, false);
61                        $theform->addField($theinput);
62
63                $theform->jsMerge();
64                //==============================================================
65                //End Form Elements
66
67                $lookUp["name"] = $theinput->getSearchInfo("Pick Sales Order Client");
68                $lookUp["e-mail address"] = $theinput->getSearchInfo("Pick Client By Email");
69                $lookUp["phone"] = $theinput->getSearchInfo("Pick Client By Phone");
70
71        include("header.php");
72        ?>
73<form method="post" name="record" id="record" onsubmit="return false;" action="#">
74<div class="bodyline">
75        <h1><?php echo $pagetitle?></h1>
76
77        <div class="fauxDiv big">
78
79                <select id="lookupby">
80                        <?php foreach($lookUp as $key=>$value) {?>
81                        <option value="<?php echo $value["id"] ?>"><?php echo $key?></option>
82                        <?php }//endforeach - lookup?>
83                </select>
84
85                <?php $theform->showField("clientid")?>
86
87                <input type="hidden" id="addeditfile" value="<?php echo getAddEditFile($db, "tbld:6d290174-8b73-e199-fe6c-bcf3d4b61083","add")?>" />
88                <input type="button" value="view" id="viewButton" class="disabledButtons" />
89                <input type="button" value="add new" id="addButton" class="Buttons" />
90        </div>
91
92
93</div>
94<div id="clientrecord" />
95</form>
96<?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.