Changeset 693 for trunk/phpbms/modules/bms/clients_purchasehistory.php
- Timestamp:
- 12/31/09 13:36:45 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/modules/bms/clients_purchasehistory.php
r606 r693 52 52 if(!isset($_POST["fromdate"])) $_POST["fromdate"]=dateToString(strtotime("-1 year")); 53 53 if(!isset($_POST["todate"])) $_POST["todate"]=dateToString(mktime()); 54 if(!isset($_POST["status"])) $_POST["status"]="Orders /Invoices";54 if(!isset($_POST["status"])) $_POST["status"]="Orders and Invoices"; 55 55 if(!isset($_POST["command"])) $_POST["command"]="show"; 56 56 57 57 if($_POST["command"]=="print") { 58 58 59 $_SESSION["printing"]["whereclause"]="WHEREclients.id=".$_GET["id"];60 $_SESSION["printing"]["dataprint"]="Single Record";61 $fromClient=true; 62 require("report/clients_purchasehistory.php");59 $_SESSION["printing"]["whereclause"] = "clients.id=".$_GET["id"]; 60 $_SESSION["printing"]["dataprint"] = "Single Record"; 61 62 goURL("report/clients_purchasehistory.php?rid=".urlencode("rpt:1908b03c-cacc-f03a-6d22-21fdef123f65")."&tid=".urlencode("tbld:6d290174-8b73-e199-fe6c-bcf3d4b61083")."&status=".urlencode($_POST["status"])."&fromdate=".urlencode($_POST["fromdate"])."&todate=".urlencode($_POST["todate"])); 63 63 64 64 } else { … … 72 72 $thestatus="(invoices.type =\""; 73 73 switch($_POST["status"]){ 74 case "Orders /Invoices":74 case "Orders and Invoices": 75 75 $thestatus.="Order\" or invoices.type=\"Invoice\")"; 76 76 break; … … 110 110 thedate, 111 111 invoices.id"; 112 112 113 113 $queryresult=$db->query($querystatement); 114 114 … … 142 142 <label for="status">type</label><br /> 143 143 <select name="status" id="status"> 144 <option value="Orders /Invoices" <?php if($_POST["status"]=="Orders/Invoices") echo "selected=\"selected\""?>>Orders/Invoices</option>144 <option value="Orders abd Invoices" <?php if($_POST["status"]=="Orders and Invoices") echo "selected=\"selected\""?>>Orders and Invoices</option> 145 145 <option value="Invoices" <?php if($_POST["status"]=="Invoices") echo "selected=\"selected\""?>>Invoices</option> 146 146 <option value="Orders" <?php if($_POST["status"]=="Orders") echo "selected=\"selected\""?>>Orders</option> … … 153 153 154 154 <p id="printP"><br /><input id="print" name="command" type="submit" value="print" class="Buttons" /></p> 155 <p id="changeTimelineP"><br /><input name="command" type="submit" value=" change timeframe/view" class="smallButtons" /></p>155 <p id="changeTimelineP"><br /><input name="command" type="submit" value="update" class="smallButtons" /></p> 156 156 </div> 157 157 </form>