Best Prophecy code snippet using name.size
Search.php
Source:Search.php
...14 # link to Database...15 $link = mysql_connect($location, $user, $pass) or die("Cannot connect to server");16 mysql_select_db($db) or die("Cannot select Database"); 17?><title>Search for a Customer</title> 18<font size="5" face="Arial, Helvetica, sans-serif"><strong>> Search for a19Customer</strong></font>20<form name="form" method="post" action="SearchResults.php?sort=tblPurchase2.OrderDateTime&d=DESC">21 22 <table width="100%" border="0" cellspacing="0" cellpadding="10">23 <tr> 24 <td> <table width="100%" border="1" cellpadding="5" cellspacing="0" bordercolor="#CCCCCC">25 <tr bgcolor="#FFFFCC">26 <td><strong><font size="3" face="Arial, Helvetica, sans-serif">Customer27 Info </font></strong></td>28 <td><strong><font size="3" face="Arial, Helvetica, sans-serif">Purchase Info </font></strong></td>29 </tr>30 <tr>31 <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="5">32 <tr>33 <td height="34"><div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><strong>34 <input name="chkcustomerid" type="checkbox" id="chkcustomerid" value="y">35 </strong></font></div></td>36 <td><font size="2" face="Arial, Helvetica, sans-serif">-Customer37 ID-</font></td>38 <td><font size="2" face="Arial, Helvetica, sans-serif">39 <input name="CustomerID" type="text" id="CustomerID" size="10">40 </font></td>41 </tr>42 <tr>43 <td><div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><strong>44 <input name="chkcompany" type="checkbox" id="chkcompany" value="y">45 </strong></font></div></td>46 <td><font size="2" face="Arial, Helvetica, sans-serif">-Company47 Name- </font></td>48 <td><font size="2" face="Arial, Helvetica, sans-serif">49 <input name="Company" type="text" id="Company" size="35">50 </font></td>51 </tr>52 <tr>53 <td><div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><strong>54 <input name="chkfirstname" type="checkbox" id="chkfirstname" value="y">55 </strong></font></div></td>56 <td><font size="2" face="Arial, Helvetica, sans-serif">First Name-</font></td>57 <td><font size="2" face="Arial, Helvetica, sans-serif">58 <input name="FirstName" type="text" id="FirstName" size="35">59 </font></td>60 </tr>61 <tr>62 <td><div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><strong>63 <input name="chklastname" type="checkbox" id="chklastname" value="y">64 </strong></font></div></td>65 <td><font size="2" face="Arial, Helvetica, sans-serif">Last Name-</font></td>66 <td><font size="2" face="Arial, Helvetica, sans-serif">67 <input name="LastName" type="text" id="LastName" size="35">68 </font></td>69 </tr>70 <tr>71 <td><div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><strong>72 <input name="chkaddress" type="checkbox" id="chkaddress" value="y">73 </strong></font></div></td>74 <td><font size="2" face="Arial, Helvetica, sans-serif">-Address75 1-</font></td>76 <td><font size="2" face="Arial, Helvetica, sans-serif">77 <input name="Address" type="text" id="Address" size="35">78 </font></td>79 </tr>80 <tr>81 <td><div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><strong>82 <input name="chkaddress2" type="checkbox" id="chkaddress2" value="y">83 </strong></font></div></td>84 <td><font size="2" face="Arial, Helvetica, sans-serif">-Address85 2-</font></td>86 <td><font size="2" face="Arial, Helvetica, sans-serif">87 <input name="Address2" type="text" id="Address2" size="35">88 </font></td>89 </tr>90 <tr>91 <td><div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><strong>92 <input name="chkcity" type="checkbox" id="chkcity" value="y">93 </strong></font></div></td>94 <td><font size="2" face="Arial, Helvetica, sans-serif">-City-</font></td>95 <td><font size="2" face="Arial, Helvetica, sans-serif">96 <input name="City" type="text" id="City" size="35">97 </font></td>98 </tr>99 <tr>100 <td><div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><strong>101 <input name="chkstate" type="checkbox" id="chkstate" value="y">102 </strong></font></div></td>103 <td><font size="2" face="Arial, Helvetica, sans-serif">State</font></td>104 <td><font size="2" face="Arial, Helvetica, sans-serif">105 <select name="State" tabindex="" id="State" class="text">106 <option value="" selected>Select</option>107 <? 108 $sql3 = "SELECT * FROM tblState ORDER BY State";109 $result3 = mysql_query($sql3) or die("Cannot get State");110 111 while($row3 = mysql_fetch_array($result3))112 {113 ?>114 <option value="<? echo $row3[State]; ?>"><? echo $row3[State]; ?></option>115 <?116 }117 ?>118 </select>119 </font></td>120 </tr>121 <tr>122 <td height="34"><div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><strong>123 <input name="chkzipcode" type="checkbox" id="chkzipcode" value="y">124 </strong></font></div></td>125 <td><font size="2" face="Arial, Helvetica, sans-serif">-Zip Code-</font></td>126 <td><font size="2" face="Arial, Helvetica, sans-serif">127 <input name="ZipCode" type="text" id="ZipCode" size="10">128 </font></td>129 </tr>130 <tr>131 <td height="34"><div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><strong>132 <input name="chkcountry" type="checkbox" id="chkcountry" value="y">133 </strong></font></div></td>134 <td><font size="2" face="Arial, Helvetica, sans-serif">Country</font></td>135 <td><font size="2" face="Arial, Helvetica, sans-serif">136 <select name="CountryID" tabindex="" id="CountryID" class="text">137 <option value="" selected>Select</option>138 <? 139 $sql55 = "SELECT tblCustomer.CountryID, tblShipLocation.Name FROM tblCustomer140 INNER JOIN tblShipLocation ON tblCustomer.CountryID = tblShipLocation.LocationID141 GROUP BY tblCustomer.CountryID142 ORDER BY tblShipLocation.Name";143 $result55 = mysql_query($sql55) or die("Cannot get CountryB");144 145 while($row55 = mysql_fetch_array($result55))146 {147 $CountryID = $row55[CountryID];148 $Name = $row55[Name];149 ?>150 <option value="<? echo $row55[CountryID]; ?>"><? echo $row55[Name]; ?></option>151 <?152 }153 ?>154 </select>155 </font></td>156 </tr>157 <tr>158 <td height="34"><div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><strong>159 <input name="chkemail" type="checkbox" id="chkemail" value="y">160 </strong></font></div></td>161 <td><font size="2" face="Arial, Helvetica, sans-serif">-Email-</font></td>162 <td><font size="2" face="Arial, Helvetica, sans-serif">163 <input name="Email" type="text" id="Email" size="35">164 </font></td>165 </tr>166 <tr>167 <td height="34"><div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><strong>168 <input name="chkphone" type="checkbox" id="chkphone" value="y">169 </strong></font></div></td>170 <td><font size="2" face="Arial, Helvetica, sans-serif">-Phone Number-</font></td>171 <td><font size="2" face="Arial, Helvetica, sans-serif">172 <input name="Phone" type="text" id="Phone" size="20">173 </font></td>174 </tr>175 <tr>176 <td height="34"><div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><strong>177 <input name="chkebayname" type="checkbox" id="chkebayname" value="y">178 </strong></font></div></td>179 <td><font size="2" face="Arial, Helvetica, sans-serif">-eBay/Amazon180 Name-</font></td>181 <td><font size="2" face="Arial, Helvetica, sans-serif">182 <input name="EbayName" type="text" id="EbayName" size="20">183 </font></td>184 </tr>185 <tr>186 <td height="34"><div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><strong>187 <input name="chkschool" type="checkbox" id="chkschool" value="y">188 </strong></font></div></td>189 <td><font size="2" face="Arial, Helvetica, sans-serif">-School-</font></td>190 <td><font size="2" face="Arial, Helvetica, sans-serif">191 <input name="School" type="text" id="School" size="35">192 </font></td>193 </tr>194 <tr>195 <td height="34"><div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><strong>196 <input name="chkprepclass" type="checkbox" id="chkprepclass" value="y">197 </strong></font></div></td>198 <td><font size="2" face="Arial, Helvetica, sans-serif">-Prep Class-</font></td>199 <td><font size="2" face="Arial, Helvetica, sans-serif">200 <input name="PrepClass" type="text" id="PrepClass" size="35">201 </font></td>202 </tr>203 <tr>204 <td height="34"><div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><strong>205 <input name="chktype" type="checkbox" id="chktype" value="y">206 </strong></font></div></td>207 <td><font size="2" face="Arial, Helvetica, sans-serif">Customer208 Type</font></td>209 <td><font size="2" face="Arial, Helvetica, sans-serif">210 <select name="Type" tabindex="" id="Type" class="text">211 <option value="" selected>Select</option>212 <? 213 $sql3 = "SELECT * FROM tblCustomerType ORDER BY Type";214 $result3 = mysql_query($sql3) or die("Cannot get State");215 216 while($row3 = mysql_fetch_array($result3))217 {218 ?>219 <option value="<? echo $row3[TypeID]; ?>"<? if($row3[TypeID] == 1){echo "selected";}?>><? echo $row3[Type]; ?></option>220 <?221 }222 ?>223 </select>224 </font></td>225 </tr>226 </table> 227 </td>228 <td valign="top"><table width="100%" border="0" cellpadding="5" cellspacing="0" bordercolor="#CCCCCC">229 <tr>230 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">231 <input name="chkpurchaseid" type="checkbox" id="chkpurchaseid" value="y">232 </font></strong></div></td>233 <td><font size="2" face="Arial, Helvetica, sans-serif">-Purchase234 ID-</font></td>235 <td><input name="PurchaseID" type="text" id="PurchaseID" size="5"></td>236 </tr>237 <tr>238 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">239 <input name="chkdaterange" type="checkbox" id="chkdaterange" value="y">240 </font></strong></div></td>241 <td><font size="2" face="Arial, Helvetica, sans-serif">Date Range242 <font size="1">( add 1 day to end date)</font></font></td>243 <td><font size="2" face="Arial, Helvetica, sans-serif">244 <input name="StartDate" type="text" id="StartDate" size="14"> 245 to 246 <input name="EndDate" type="text" id="EndDate" size="14">247 </font></td>248 </tr>249 <tr>250 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">251 <input name="chktestid" type="checkbox" id="chktestid" value="y">252 </font></strong></div></td>253 <td><font size="2" face="Arial, Helvetica, sans-serif">Test ID</font></td>254 <td><font size="2" face="Arial, Helvetica, sans-serif">255 <select name="TestID" tabindex="" id="TestID">256 <option value="" selected>Test</option>257 <? 258 // build combo box for the test options from the database.259 // SQL to get data from test table260 $sql = "SELECT * FROM tblTests ORDER BY Name";261 //put SQL statement into result set for loop through records262 $result = mysql_query($sql) or die("Cannot execute query!");263 264 while($row = mysql_fetch_array($result))265 {266 ?>267 <option value="<? echo $row[TestID]; ?>" <? if($row[TestID] == $TestID){echo "selected";}?><? if($row[Name] == $tURL){echo "selected";}?>><? echo $row[Name]; ?></option>268 <?269 }270 ?>271 </select>272 </font></td>273 </tr>274 <tr>275 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">276 <input name="chktestdate" type="checkbox" id="chktestdate" value="y">277 </font></strong></div></td>278 <td><font size="2" face="Arial, Helvetica, sans-serif">-Test Date-</font></td>279 <td><input name="TestDate" type="text" id="TestDate" size="14">280 <font size="2" face="Arial, Helvetica, sans-serif">ex: 2004-12-04</font></td>281 </tr>282 <tr>283 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">284 <input name="chkreferredby" type="checkbox" id="chkreferredby" value="y">285 </font></strong></div></td>286 <td><font size="2" face="Arial, Helvetica, sans-serif">Referred287 By</font></td>288 <td><font size="2" face="Arial, Helvetica, sans-serif">289 <select name="ReferredBy" tabindex="" id="ReferredBy" class="text">290 <option value="" selected>Select</option>291 <? 292 $sql = "SELECT * FROM tblReferredBy";293 294 $result = mysql_query($sql) or die("Cannot get ReferredBy");295 296 while($row = mysql_fetch_array($result))297 {298 ?>299 <option value="<? echo $row[ReferredByID]; ?>" <? if($row[ReferredByID] == $ReferredBy){echo "selected";}?>><? echo $row[Name]; ?></option>300 <?301 }302 ?>303 </select>304 </font></td>305 </tr>306 <tr>307 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">308 <input name="chksubtotal" type="checkbox" id="chksubtotal" value="y">309 </font></strong></div></td>310 <td><font size="2" face="Arial, Helvetica, sans-serif">Subtotal</font></td>311 <td><input name="Subtotal" type="text" id="Subtotal" size="10"></td>312 </tr>313 <tr>314 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">315 <input name="chktax" type="checkbox" id="chktax" value="y">316 </font></strong></div></td>317 <td><font size="2" face="Arial, Helvetica, sans-serif">Tax</font></td>318 <td><input name="Tax" type="text" id="Tax" size="10"></td>319 </tr>320 <tr>321 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">322 <input name="chkdiscount" type="checkbox" id="chkdiscount" value="y">323 </font></strong></div></td>324 <td><font size="2" face="Arial, Helvetica, sans-serif">Discount</font></td>325 <td><input name="Discount" type="text" id="Discount" size="10"></td>326 </tr>327 <tr>328 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">329 <input name="chkshippingcost" type="checkbox" id="chkshippingcost" value="y">330 </font></strong></div></td>331 <td><font size="2" face="Arial, Helvetica, sans-serif">Shipping332 Cost </font></td>333 <td><input name="ShippingCost" type="text" id="ShippingCost" size="10"></td>334 </tr>335 <tr>336 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">337 <input name="chkshipcostID" type="checkbox" id="chkshipcostID" value="y">338 </font></strong></div></td>339 <td><font size="2" face="Arial, Helvetica, sans-serif"><a href="ShipCostID.php" target="_blank">Ship Cost340 ID</a></font></td>341 <td><input name="ShipCostID" type="text" id="ShipCostID" size="10"></td>342 </tr>343 <tr>344 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">345 <input name="chkcardtype" type="checkbox" id="chkcardtype" value="y">346 </font></strong></div></td>347 <td><font size="2" face="Arial, Helvetica, sans-serif">Card Type </font></td>348 <td><select name="CardType" id="CardType">349 <option value="visa" selected>visa</option>350 <option value="mastercard">mastercard</option>351 <option value="discover">discover</option>352 <option value="amex">amex</option>353 <option value="paypal">paypal</option>354 </select></td>355 </tr>356 <tr>357 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">358 <input name="chklast4" type="checkbox" id="chklast4" value="y">359 </font></strong></div></td>360 <td><font size="2" face="Arial, Helvetica, sans-serif">-Last 4361 Digits-362 <font size="1">(don't include leading zeros) </font></font></td>363 <td><input name="Last4" type="text" id="Last4" size="5" maxlength="4"></td>364 </tr>365 <tr>366 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">367 <input name="chkauth" type="checkbox" id="chkauth" value="y">368 </font></strong></div></td>369 <td><font size="2" face="Arial, Helvetica, sans-serif">-AUTH/TKT-</font></td>370 <td><input name="Auth" type="text" id="Auth" size="10"></td>371 </tr>372 <tr>373 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">374 <input name="chkischeck" type="checkbox" id="chkischeck" value="y">375 </font></strong></div></td>376 <td><font size="2" face="Arial, Helvetica, sans-serif">Is Check?</font></td>377 <td><input name="IsCheck" type="text" id="IsCheck" value="y" size="3" maxlength="1"></td>378 </tr>379 <tr>380 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">381 <input name="chkpaypalnumber" type="checkbox" id="chkpaypalnumber" value="y">382 </font></strong></div></td>383 <td><font size="2" face="Arial, Helvetica, sans-serif">-Paypal384 Number-</font></td>385 <td><input name="PaypalNumber" type="text" id="PaypalNumber" size="20"></td>386 </tr>387 <tr>388 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">389 <input name="chkip" type="checkbox" id="chkip" value="y">390 </font></strong></div></td>391 <td><font size="2" face="Arial, Helvetica, sans-serif">IP</font></td>392 <td><input name="IP" type="text" id="IP" size="20"></td>393 </tr>394 <tr>395 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">396 <input name="chkstatus" type="checkbox" id="chkstatus" value="y">397 </font></strong></div></td>398 <td><font size="2" face="Arial, Helvetica, sans-serif">Purchase399 Status</font></td>400 <td><select name="Status" id="Status">401 <option value="active" selected>active</option>402 <option value="cancel">cancel</option>403 </select></td>404 </tr>405 </table> 406 <font size="2" face="Arial, Helvetica, sans-serif"> </font></td>407 </tr>408 <tr bgcolor="#FFFFCC">409 <td><font size="2" face="Arial, Helvetica, sans-serif"><strong><font size="3">Product</font><font size="3" face="Arial, Helvetica, sans-serif">410 Info </font></strong></font></td>411 <td><font size="2" face="Arial, Helvetica, sans-serif"><strong><font size="3">Bulk412 Order </font><font size="3" face="Arial, Helvetica, sans-serif">413 Info</font></strong></font></td>414 </tr>415 <tr>416 <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="5">417 <tr>418 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">419 <input name="chkproduct" type="checkbox" id="chkproduct" value="y">420 </font></strong></div></td>421 <td><font size="2" face="Arial, Helvetica, sans-serif">Product</font></td>422 <td><font size="2" face="Arial, Helvetica, sans-serif">423 <select name="ProductID" tabindex="" id="ProductID" class="text">424 <option value="" selected>Select</option>425 <? 426 $sql = "SELECT * FROM tblProductNew ORDER BY Nickname ASC";427 428 $result = mysql_query($sql) or die("Cannot get tblProduct1");429 430 while($row = mysql_fetch_array($result))431 {432 ?>433 <option value="<? echo $row[ProductID]; ?>"><? echo $row[Nickname]; ?></option>434 <?435 }436 ?>437 </select>438 </font></td>439 </tr>440 <tr>441 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">442 <input name="chkquantity" type="checkbox" id="chkquantity" value="y">443 </font></strong></div></td>444 <td><font size="2" face="Arial, Helvetica, sans-serif">Quantity</font></td>445 <td><input name="Quantity" type="text" id="Quantity" size="10"></td>446 </tr>447 <tr>448 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">449 <input name="chkshipped" type="checkbox" id="chkshipped" value="y">450 </font></strong></div></td>451 <td><font size="2" face="Arial, Helvetica, sans-serif">Shipped?</font></td>452 <td><input name="Shipped" type="text" id="Shipped" value="n" size="3" maxlength="1"></td>453 </tr>454 <tr>455 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">456 <input name="chkreplacement" type="checkbox" id="chkreplacement" value="y">457 </font></strong></div></td>458 <td><font size="2" face="Arial, Helvetica, sans-serif">Replacement?</font></td>459 <td><input name="Replacement" type="text" id="Replacement" value="y" size="3" maxlength="1"></td>460 </tr>461 <tr>462 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">463 <input name="chkitemnumber" type="checkbox" id="chkitemnumber" value="y">464 </font></strong></div></td>465 <td><font size="2" face="Arial, Helvetica, sans-serif">-eBay Item466 # -</font></td>467 <td><input name="ItemNumber" type="text" id="ItemNumber" size="20"></td>468 </tr>469 <tr>470 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">471 <input name="chkpstatus" type="checkbox" id="chkpstatus" value="y">472 </font></strong></div></td>473 <td><font size="2" face="Arial, Helvetica, sans-serif">Product474 Status</font></td>475 <td><select name="PStatus" id="PStatus">476 <option value="active" selected>active</option>477 <option value="cancel">cancel</option>478 <option value="backorder">backorder</option>479 <option value="preorder">preorder</option>480 </select></td>481 </tr>482 </table>483 <font size="2" face="Arial, Helvetica, sans-serif"> </font></td>484 <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="5">485 <tr>486 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">487 <input name="chkpaid" type="checkbox" id="chkpaid" value="y">488 </font></strong></div></td>489 <td><font size="2" face="Arial, Helvetica, sans-serif">Paid?</font></td>490 <td><input name="Paid" type="text" id="Paid" value="n" size="3" maxlength="1"></td>491 </tr>492 <tr>493 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">494 <input name="chkpaymentterms" type="checkbox" id="chkpaymentterms" value="y">495 </font></strong></div></td>496 <td><font size="2" face="Arial, Helvetica, sans-serif">-Payment497 Terms-</font></td>498 <td><input name="PaymentTerms" type="text" id="PaymentTerms" size="35"></td>499 </tr>500 <tr>501 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">502 <input name="chkinvoicenumber" type="checkbox" id="chkinvoicenumber" value="y">503 </font></strong></div></td>504 <td><font size="2" face="Arial, Helvetica, sans-serif">-Invoice505 # - </font></td>506 <td><input name="InvoiceNumber" type="text" id="InvoiceNumber" size="10"></td>507 </tr>508 <tr>509 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">510 <input name="chkponumber" type="checkbox" id="chkponumber" value="y">511 </font></strong></div></td>512 <td><font size="2" face="Arial, Helvetica, sans-serif">-PO # - </font></td>513 <td><input name="PONumber" type="text" id="PONumber" size="20"></td>514 </tr>515 <tr>516 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">517 <input name="chkinvoicedate" type="checkbox" id="chkinvoicedate" value="y">518 </font></strong></div></td>519 <td><font size="2" face="Arial, Helvetica, sans-serif">Invoice520 Date </font></td>521 <td><input name="InvoiceDate" type="text" id="InvoiceDate" size="14"></td>522 </tr>523 <tr>524 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">525 <input name="chknovapress" type="checkbox" id="chknovapress" value="y">526 </font></strong></div></td>527 <td><font size="2" face="Arial, Helvetica, sans-serif">Nova Press? </font></td>528 <td><input name="NovaPress" type="text" id="NovaPress" value="y" size="3" maxlength="1"></td>529 </tr>530 </table> 531 </td>532 </tr>533 <tr>534 <td valign="top" bgcolor="#FFFFCC"><font size="2" face="Arial, Helvetica, sans-serif"><strong><font size="3">Shipping535 Information </font></strong></font></td>536 <td valign="top"> </td>537 </tr>538 <tr>539 <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="5">540 <tr>541 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">542 <input name="chkshipper" type="checkbox" id="chkshipper" value="y">543 </font></strong></div></td>544 <td><font size="2" face="Arial, Helvetica, sans-serif">Shipper</font></td>545 <td><font size="2" face="Arial, Helvetica, sans-serif">546 <select name="ShipperID" tabindex="" id="ShipperID" class="text">547 <option value="" selected>Select</option>548 <? 549 $sql = "SELECT * FROM tblShipper";550 551 $result = mysql_query($sql) or die("Cannot get tblProduct1");552 553 while($row = mysql_fetch_array($result))554 {555 ?>556 <option value="<? echo $row[ShipperID]; ?>"><? echo $row[CompanyName]; ?></option>557 <?558 }559 ?>560 </select>561 </font></td>562 </tr>563 <tr>564 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">565 <input name="chktrackingnumber" type="checkbox" id="chktrackingnumber" value="y">566 </font></strong></div></td>567 <td><font size="2" face="Arial, Helvetica, sans-serif">-Tracking568 # -</font></td>569 <td><input name="TrackingNumber" type="text" id="TrackingNumber" size="20"></td>570 </tr>571 <tr>572 <td height="34"><div align="center"><strong><font size="2" face="Arial, Helvetica, sans-serif">573 <input name="chkshipdate" type="checkbox" id="chkshipdate" value="y">574 </font></strong></div></td>575 <td><font size="2" face="Arial, Helvetica, sans-serif">Ship Date </font></td>576 <td><input name="ShipDate" type="text" id="ShipDate" size="14"></td>577 </tr>578 </table></td>579 <td valign="top"> </td>580 </tr>581 </table> 582 </td>583 </tr>584 <tr> 585 <td><input type="submit" name="Submit" value="Search"></td>586 </tr>587 </table>588</form>589 590<?...
destination.php
Source:destination.php
...73}74</script>75<link href="style.css" rel="stylesheet" type="text/css">76</head>77<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="font-family: arial; font-size: large;">78<form name="destination" action="sucdestinationadd.php" method="post">79 <font size="2" face="Arial, Helvetica, sans-serif"> 80 <input name="agent_id" type="hidden" value="<?php echo $user; ?>">81 </font> 82 <table width="100%" border="0" cellspacing="0" cellpadding="0">83 <tr> 84 <td colspan="2" background="item/List.gif"><div align="right"><font size="2" face="Arial, Helvetica, sans-serif"><a href="javascript:window.close()">Close</a> 85 </font></div></td>86 </tr>87 <tr> 88 <td width="59%" valign="top"><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#DFFECB">89 <tr> 90 <td height="58" colspan="4" valign="top"><font size="2" face="Arial, Helvetica, sans-serif"><img src="images/reportindex_01.gif" width="459" height="58"></font></td>91 </tr>92 <tr bgcolor="#66CC66"> 93 <td colspan="4" valign="top"><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif"><strong>1. 94 From</strong></font></td>95 </tr>96 <tr> 97 <td height="44" colspan="2" valign="top"><font size="2" face="Arial, Helvetica, sans-serif">Sender's Account Number <br>98 <input name="acc_no" type="text" id="acc_no" size="40">99 </font></td>100 <td width="26%" valign="top"><font size="2" face="Arial, Helvetica, sans-serif">Origin <br>101 <input name="origin" type="text" id="origin">102 </font></td>103 <td width="27%" valign="top"><font size="2" face="Arial, Helvetica, sans-serif">Destination <br>104 <input name="destination" type="text" id="destination">105 </font></td>106 </tr>107 <tr> 108 <td colspan="2" valign="top"><font size="2" face="Arial, Helvetica, sans-serif">Sender's 109 Name<br>110 <input name="sen_name" type="text" id="sen_name" size="40">111 </font></td>112 <td valign="top"><font size="2" face="Arial, Helvetica, sans-serif">Phone 113 <br>114 <input name="phone" type="text" id="phone" size="20">115 </font></td>116 <td valign="top"><font size="2" face="Arial, Helvetica, sans-serif">Email 117 <br>118 <input name="semail" type="text" id="semail" size="25">119 </font></td>120 </tr>121 <tr> 122 <td height="31" align="left" valign="top" colspan="4"><font size="2" face="Arial, Helvetica, sans-serif">Company <input name="company" type="text" id="company" size="81">123 </font></td>124 </tr>125 <tr> 126 <td align="left" valign="top" colspan="4"><font size="2" face="Arial, Helvetica, sans-serif">Address <textarea name="address" cols="62" rows="2" id="address"></textarea>127 </font></td>128 </tr>129 <tr> 130 <td colspan="4" valign="top"><font size="1"> </font></td>131 </tr>132 <tr> 133 <td height="24" colspan="2" align="right"><font size="2" face="Arial, Helvetica, sans-serif">City :134 <input name="city" type="text" id="city" size="30">135 </font></td>136 <td align="right"><font size="2" face="Arial, Helvetica, sans-serif">State / Province 137 : <br>138 </font></td>139 <td><font size="2" face="Arial, Helvetica, sans-serif"> 140 <input name="state" type="text" id="state" size="20">141 </font></td>142 </tr>143 <tr> 144 <td height="24" colspan="2" align="right"><font size="2" face="Arial, Helvetica, sans-serif">Country : 145 <input name="country" type="text" id="country" size="30">146 </font></td>147 <td align="right"><font size="2" face="Arial, Helvetica, sans-serif">ZIP / Postal 148 Code : <br>149 </font></td>150 <td> <font size="2" face="Arial, Helvetica, sans-serif"> 151 <input name="postal_code" type="text" id="postal_code" size="20">152 </font></td>153 </tr>154 <tr bgcolor="#66CC66"> 155 <td colspan="4" valign="top"><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif"><strong>2. 156 To Recipient's</strong></font></td>157 </tr>158 <tr> 159 <td colspan="2" align="right"><font size="2" face="Arial, Helvetica, sans-serif">Name 160 / Attn. : 161 <input name="rece_name" type="text" id="rece_name" size="27">162 </font></td>163 <td colspan="2" align="right"><font size="2" face="Arial, Helvetica, sans-serif">Phone 164 : 165 <input name="rece_phone" type="text" id="rece_phone" size="20"> 166 </font></td>167 168 </tr>169 <tr> 170 <td align="left" valign="top" colspan="3"><font size="2" face="Arial, Helvetica, sans-serif">Company <input name="rece_company" type="text" id="rece_company" size="81"></font></td>171 <td align="left" valign="top" ><font size="2" face="Arial, Helvetica, sans-serif">Email <input name="remail" type="text" id="remail" size="20"></font></td>172 </tr>173 <tr> 174 <td align="left" valign="top" colspan="4"><font size="2" face="Arial, Helvetica, sans-serif">Address <textarea name="rece_address" cols="62" rows="2" id="rece_address"></textarea>175 </font></td>176 </tr>177 <tr> 178 <td colspan="4" valign="top"><font size="1"> </font></td>179 </tr>180 <tr> 181 <td height="24" colspan="2" align="right" valign="top"><font size="2" face="Arial, Helvetica, sans-serif">City 182 : 183 <input name="rece_city" type="text" id="rece_city" size="30">184 </font></td>185 <td align="right"><font size="2" face="Arial, Helvetica, sans-serif">State / Province 186 : </font></td>187 <td><font size="2" face="Arial, Helvetica, sans-serif"> 188 <input name="rece_state" type="text" id="rece_state" size="20">189 </font></td>190 </tr>191 <tr> 192 <td height="24" colspan="2" align="right" valign="top"><font size="2" face="Arial, Helvetica, sans-serif">Country 193 : 194 <input name="rece_country" type="text" id="rece_country" size="30">195 </font></td>196 <td align="right"><font size="2" face="Arial, Helvetica, sans-serif">ZIP / Postal 197 Code : </font></td>198 <td> <font size="2" face="Arial, Helvetica, sans-serif"> 199 <input name="rece_code" type="text" id="rece_code" size="20">200 </font></td>201 </tr>202 <tr> 203 <td width="28%" valign="top"><font size="2" face="Arial, Helvetica, sans-serif"> 204 Received by Bex<br>205 <input name="rece_bex" type="text" id="rece_bex">206 </font></td>207 <td width="19%" valign="top"><font size="2" face="Arial, Helvetica, sans-serif">Courier/BR. 208 Code 209 <input name="cour_code" type="text" id="cour_code" size="15">210 </font></td>211 <td colspan="2" valign="top"><font size="2" face="Arial, Helvetica, sans-serif">Date 212 & Time<br>213 <input name="date_time" type="text" id="date_time" size="40">214 <a href="javascript:NewCal('date_time','ddmmyyyy',true,24)"><img src="images/cal.gif" width="16" height="16" border="0" alt="Pick a date"></a></font></td>215 </tr>216 <tr> 217 <td colspan="4" valign="top"> <div align="center"> </div></td>218 </tr>219 </table></td>220 <td width="41%" valign="top"><table width="99%" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#DFFECB">221 <?php222 223 $sql = "Select des_id, track_no from destination Order by des_id desc limit 1";224 $res = mysql_query($sql) or die(mysql_error());225 while($id = mysql_fetch_array($res))226 {227 $track_no = $id['track_no'];228 $track_no1 = $track_no + 1;229 230 ?>231 <tr> 232 <td colspan="3"><font size="2" face="Arial, Helvetica, sans-serif">Tracking Your Shipment By Omex Air Way Bill Number :</font></td>233 <td><font size="2" face="Arial, Helvetica, sans-serif"> 234 <input name="track_no" type="text" id="track_no" style="text-align:right" value="<?php echo $track_no1;?>" size="15">235 </font></td>236 </tr>237 <?php } ?>238 <tr> 239 <td colspan="4" bgcolor="#66CC66"><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif"><strong>3. 240 Dimensions in CM</strong></font></td>241 </tr>242 <tr> 243 <td width="15%"><font size="2" face="Arial, Helvetica, sans-serif">Length</font></td>244 <td width="15%"><font size="2" face="Arial, Helvetica, sans-serif">Width</font></td>245 <td width="43%"><font size="2" face="Arial, Helvetica, sans-serif">Height 246 Volumetic Width</font></td>247 <td width="27%" align="center" bgcolor="#66CC66" class="form"><font size="1" face="Arial, Helvetica, sans-serif">MODE 248 OF PAYMENT</font></td>249 </tr>250 <tr> 251 <td><font size="2" face="Arial, Helvetica, sans-serif"> 252 <input name="length" type="text" id="length" size="3" onBlur="aa();">253 </font></td>254 <td><font size="2" face="Arial, Helvetica, sans-serif"> 255 <input name="width" type="text" id="width" size="3" onBlur="aa();">256 </font></td>257 <td><font size="2" face="Arial, Helvetica, sans-serif"> 258 <input name="height" type="text" id="height" size="3" onBlur="aa();">259 = 260 <input name="total" type="text" id="total" size="3">261 </font></td>262 <td rowspan="4" bgcolor="#E6FBE3"> <font size="2" face="Arial, Helvetica, sans-serif"> 263 <input name="prepaid" type="checkbox" id="prepaid" value="prepaid">264 Prepaid<br>265 <input name="account" type="checkbox" id="account" value="shipper Account">266 Shippers <br>267 Account<br>268 <input name="consignee" type="checkbox" id="consignee" value="consignee" onClick="showMe('div22222', this)" checked>269 Consignee <br>270 (Collect) <br>271 <br>272 <br>273 274 275 </font></td>276 </tr>277 <tr> 278 <td height="21" colspan="3"><table width="100%" border="0" cellspacing="0" cellpadding="0">279 <tr> 280 <td colspan="3"><font size="2" face="Arial, Helvetica, sans-serif">Total 281 Volume Weight </font></td>282 <td colspan="3"><font size="2" face="Arial, Helvetica, sans-serif">Total 283 Chargeable Weight </font></td>284 </tr>285 <tr> 286 <td colspan="3"><font size="2" face="Arial, Helvetica, sans-serif"> 287 <input name="vol_weight" type="text" id="vol_weight" size="16">288 </font></td>289 <td colspan="3"><font size="2" face="Arial, Helvetica, sans-serif"> 290 <input name="char_weight" type="text" id="char_weight" size="15">291 </font></td>292 </tr>293 </table></td>294 </tr>295 <tr> 296 <td colspan="3" rowspan="2" valign="middle"><font size="2" face="Arial, Helvetica, sans-serif"> 297 <input name="document" type="radio" id="document" value="Dox" onClick="showMes('div1', 2)">298 Documents only (No commercial Value)<br>299 <input name="document" type="radio" id="document" value="N-Dox" onClick="showMes('div1', 1)">300 Non-Documents (Provide 4Copies of Invoice And other Documentation)</font></td>301 </tr> 302 </table>303 <div id="div22222" style="visibility:none">304 <table width="99%" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#DFFECB">305 <tr> 306 <td width="73%">Service Provider <select name="through" style="font-size: 9">307 <option value="UNKNOWN">UNKNOWN</option>308 <?php 309 $sql="select * from media";310 $res=mysql_query($sql) or die(mysql_error());311 while($row=mysql_fetch_array($res))312 {313 ?>314 <option value="<?php echo $row['m_id']; ?>" > <?php echo $row['media_name'];?></option>315 <?php316 }317 ?>318 </select></td>319 </tr>320 321 </table>322 </div>323 <table width="99%" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#DFFECB">324 <tr> 325 <td colspan="7" bgcolor="#66CC66"><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif"><strong>4. 326 No. of Pcs and Total weight</strong></font></td>327 </tr>328 <tr> 329 <td colspan="2" width="20%" align="center"><font size="2" face="Arial, Helvetica, sans-serif">PCS</font></td>330 <td align="center" width="15%"><font size="2" face="Arial, Helvetica, sans-serif">KGS</font></td>331 <td align="center">OTHERS</td>332 <td align="center" width="20%"><font size="2" face="Arial, Helvetica, sans-serif">GMS</font></td>333 <td align="center" width="15%"><font size="2" face="Arial, Helvetica, sans-serif">VAT</font></td>334 <td align="center" width="15%"><font size="2" face="Arial, Helvetica, sans-serif">CHARGE</font></td>335 </tr>336 <tr> 337 <td colspan="2"><font size="2" face="Arial, Helvetica, sans-serif"> 338 <input name="no_pics" type="text" id="no_pics" size="10">339 </font></td>340 <td><font size="2" face="Arial, Helvetica, sans-serif"> 341 <input name="kgs" type="text" id="kgs" size="10">342 </font></td>343 <td><input name="others" type="text" size="20"></td>344 <td valign="middle"><font size="2" face="Arial, Helvetica, sans-serif"> 345 <input name="gms" type="text" id="gms" size="10">346 </font></td>347 <td valign="middle"><font size="2" face="Arial, Helvetica, sans-serif"> 348 <input name="vat" type="text" id="vatss" size="10">349 </font></td>350 <td valign="middle"><font size="2" face="Arial, Helvetica, sans-serif"> 351 <input name="charge" type="text" id="charge" size="10">352 </font></td>353 </tr>354 </table>355 <table width="99%" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#DFFECB">356 <tr> 357 <td colspan="5" align="justify"><font size="2" face="Arial, Helvetica, sans-serif">"The 358 senders attention is drawn to the important notice overleaf. Subject 359 to the conditions endorsed and incorporated overleaf. Please accept 360 the documents or goods described below for delevery" </font></td>361 </tr>362 <tr> 363 <td colspan="3"><font size="2" face="Arial, Helvetica, sans-serif">Full 364 Description of contents. (No Cash allowed)<br>365 <textarea name="disc_conten" cols="40" rows="2" id="disc_conten"></textarea>366 </font></td>367 368 <td colspan="2"><font size="2" face="Arial, Helvetica, sans-serif"> 369 Status370 <input name="status" type="text" id="status" size="20"><br>371 Current Location372 <input name="clocation" type="text" id="clocation" size="20">373 </font></td>374 </tr>375 <tr> 376 <td colspan="3" align="justify"><font size="2" face="Arial, Helvetica, sans-serif">Insurance 377 coverage in available upon shipper's within request and payment 378 therefore<br>379 <br>380 Yes : 381 <input type="radio" name="radiobutton" value="yes">382 No 383 <input type="radio" name="radiobutton" value="no">384 </font></td>385 <td> </td>386 <td><p><font size="2" face="Arial, Helvetica, sans-serif">Declared 387 Value For Customs</font></p>388 <p><font size="2" face="Arial, Helvetica, sans-serif"> 389 <input name="dvCustoms" type="text" size="15">390 </font></p></td>391 </tr>392 <tr> 393 <td colspan="3"><font size="2" face="Arial, Helvetica, sans-serif">Received 394 in good order and condition<br>395 Date & Time 396 <input name="rece_date_time" type="text" id="rece_date_time" size="25">397 <a href="javascript:NewCal('rece_date_time','ddmmyyyy')"><img src="images/cal.gif" width="16" height="16" border="0" alt="Pick a date"></a></font></td>398 <td rowspan="2" valign="bottom">Ref. NO.<input name="refname" type="text" id="refname" size="25"></td>399 <td rowspan="2" valign="bottom"> </td>400 </tr>401 </table></td>402 </tr>403 <tr> 404 <td colspan="2"> <div id="div1" style="display:none"> 405 <table width="67%" height="570" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#F2F2F2" bgcolor="#E4E4E4">406 <tr> 407 <td width="17" rowspan="21" valign="top"> </td>408 <td height="23" colspan="3" background="item/titl.jpg"><div align="center"><font color="#990000" size="2" face="Arial, Helvetica, sans-serif"><strong>Insert 409 Commercial Information</strong></font></div></td>410 </tr>411 <tr> 412 <td width="455"><font size="2" face="Arial, Helvetica, sans-serif">Date 413 of Exam</font></td>414 <td width="59"><font size="2" face="Arial, Helvetica, sans-serif"><strong>:</strong></font></td>415 <td width="253"> <font size="2" face="Arial, Helvetica, sans-serif"> 416 <input name="date_of_exam" type="text" id="date_of_exam" />417 <a href="javascript:NewCal('date_of_exam','ddmmyyyy')"><img src="images/cal.gif" width="16" height="16" border="0" alt="Pick a date"></a></font></td>418 </tr>419 <tr> 420 <td><font size="2" face="Arial, Helvetica, sans-serif">Shipper/Exporte(Complete 421 Name & Address)</font></td>422 <td><font size="2" face="Arial, Helvetica, sans-serif"><strong>:</strong></font></td>423 <td><font size="2" face="Arial, Helvetica, sans-serif"> 424 <textarea name="shipper_name" rows="2" id="shipper_name"></textarea>425 </font></td>426 </tr>427 <tr> 428 <td height="24"><font size="2" face="Arial, Helvetica, sans-serif">Vat 429 No.</font></td>430 <td><font size="2" face="Arial, Helvetica, sans-serif"><strong>:</strong></font></td>431 <td><font size="2" face="Arial, Helvetica, sans-serif"> 432 <input name="vat_no" type="text" id="vat_no">433 </font></td>434 </tr>435 <tr> 436 <td><font size="2" face="Arial, Helvetica, sans-serif">Country of 437 Export</font></td>438 <td><font size="2" face="Arial, Helvetica, sans-serif"><strong>:</strong></font></td>439 <td><font size="2" face="Arial, Helvetica, sans-serif"> 440 <input name="export" type="text" id="export">441 </font></td>442 </tr>443 <tr> 444 <td><font size="2" face="Arial, Helvetica, sans-serif">Country of 445 manufacture</font></td>446 <td><font size="2" face="Arial, Helvetica, sans-serif"><strong>:</strong></font></td>447 <td><font size="2" face="Arial, Helvetica, sans-serif"> 448 <input name="coun_manu" type="text" id="coun_manu">449 </font></td>450 </tr>451 <tr> 452 <td><font size="2" face="Arial, Helvetica, sans-serif">Country of 453 ultimate destination</font></td>454 <td><font size="2" face="Arial, Helvetica, sans-serif"><strong>:</strong></font></td>455 <td><font size="2" face="Arial, Helvetica, sans-serif"> 456 <input name="coun_des" type="text" id="coun_des" />457 </font></td>458 </tr>459 <tr> 460 <td><font size="2" face="Arial, Helvetica, sans-serif">Export Reference(i.e. 461 order no invoice no. etc.) </font></td>462 <td><font size="2" face="Arial, Helvetica, sans-serif"><strong>:</strong></font></td>463 <td><font size="2" face="Arial, Helvetica, sans-serif"> 464 <input name="export_refer" type="text" id="export_refer" />465 </font></td>466 </tr>467 <tr> 468 <td><font size="2" face="Arial, Helvetica, sans-serif">Consignee 469 (Complete Name & Address)</font></td>470 <td><font size="2" face="Arial, Helvetica, sans-serif"><strong>:</strong></font></td>471 <td><font size="2" face="Arial, Helvetica, sans-serif"> 472 <textarea name="consignee_name" rows="2" id="consignee_name"></textarea>473 </font></td>474 </tr>475 <tr> 476 <td><font size="2" face="Arial, Helvetica, sans-serif">Importer-if 477 other than consignee (Complete Name and Address)</font></td>478 <td><font size="2" face="Arial, Helvetica, sans-serif"><strong>:</strong></font></td>479 <td><font size="2" face="Arial, Helvetica, sans-serif"> 480 <textarea name="impor_name" rows="2" id="impor_name"></textarea>481 </font></td>482 </tr>483 <tr> 484 <td><font size="2" face="Arial, Helvetica, sans-serif">Air Waybill 485 No.</font></td>486 <td><font size="2" face="Arial, Helvetica, sans-serif"><strong>:</strong></font></td>487 <td><font size="2" face="Arial, Helvetica, sans-serif"> 488 <input name="air_way" type="text" id="air_way">489 </font></td>490 </tr>491 <tr> 492 <td><font size="2" face="Arial, Helvetica, sans-serif">Mark / Nos</font></td>493 <td><font size="2" face="Arial, Helvetica, sans-serif"><strong>:</strong></font></td>494 <td><font size="2" face="Arial, Helvetica, sans-serif"> 495 <input name="mark_no" type="text" id="mark_no">496 </font></td>497 </tr>498 <tr> 499 <td><font size="2" face="Arial, Helvetica, sans-serif">No. of pkgs</font></td>500 <td><font size="2" face="Arial, Helvetica, sans-serif"><strong>:</strong></font></td>501 <td><font size="2" face="Arial, Helvetica, sans-serif"> 502 <input name="no_pkgs" type="text" id="no_pkgs" />503 </font></td>504 </tr>505 <tr> 506 <td height="30"><font size="2" face="Arial, Helvetica, sans-serif">Type 507 of Packaging</font></td>508 <td><font size="2" face="Arial, Helvetica, sans-serif"><strong>:</strong></font></td>509 <td><font size="2" face="Arial, Helvetica, sans-serif"> 510 <input name="type_packing" type="text" id="type_packing">511 </font></td>512 </tr>513 <tr> 514 <td height="26"><font size="2" face="Arial, Helvetica, sans-serif">Full 515 description of goods</font></td>516 <td><font size="2" face="Arial, Helvetica, sans-serif"><strong>:</strong></font></td>517 <td><font size="2" face="Arial, Helvetica, sans-serif"> 518 <input name="descrip" type="text" id="descrip">519 </font></td>520 </tr>521 <tr> 522 <td height="24"><font size="2" face="Arial, Helvetica, sans-serif">City</font></td>523 <td><font size="2" face="Arial, Helvetica, sans-serif"><strong>:</strong></font></td>524 <td><font size="2" face="Arial, Helvetica, sans-serif"> 525 <input name="non_city" type="text" id="non_city">526 </font></td>527 </tr>528 <tr> 529 <td height="27"><font size="2" face="Arial, Helvetica, sans-serif">Units 530 of measure</font></td>531 <td><font size="2" face="Arial, Helvetica, sans-serif"><strong>:</strong></font></td>532 <td><font size="2" face="Arial, Helvetica, sans-serif"> 533 <input name="measure" type="text" id="measure">534 </font></td>535 </tr>536 <tr> 537 <td height="24"><font size="2" face="Arial, Helvetica, sans-serif">Weight</font></td>538 <td><font size="2" face="Arial, Helvetica, sans-serif"><strong>:</strong></font></td>539 <td><font size="2" face="Arial, Helvetica, sans-serif"> 540 <input name="weight" type="text" id="weight">541 </font></td>542 </tr>543 <tr> 544 <td height="26"><font size="2" face="Arial, Helvetica, sans-serif">Unit 545 Value</font></td>546 <td><font size="2" face="Arial, Helvetica, sans-serif"><strong>:</strong></font></td>547 <td><font size="2" face="Arial, Helvetica, sans-serif"> 548 <input name="unit_vale" type="text" id="unit_vale">549 </font></td>550 </tr>551 <tr> 552 <td height="24"><font size="2" face="Arial, Helvetica, sans-serif">Total 553 Value</font></td>554 <td><font size="2" face="Arial, Helvetica, sans-serif"><strong>:</strong></font></td>555 <td><font size="2" face="Arial, Helvetica, sans-serif"> 556 <input name="total_value" type="text" id="total_value">557 </font></td>558 </tr>559 <tr> 560 <td height="26" colspan="3" background="item/List.gif"> <div align="right"> 561 </div></td>562 </tr>563 </table>564 </div></td>565 </tr>566 <tr> 567 <td colspan="2"><div align="center"> <font size="2" face="Arial, Helvetica, sans-serif"> 568 <input type="submit" name="Submit" value="Submit">569 </font></div></td>570 </tr>571 </table>572</form>573</body>574</html>...
us_migration_4_10.php
Source:us_migration_4_10.php
...30 'medium' => 'Medium',31 'tripadvisor' => 'Tripadvisor',32 'rss' => 'RSS',33 );34 private $image_sizes = NULL;35 private function get_image_sizes() {36 if ( is_array( $this->image_sizes ) ) {37 return $this->image_sizes;38 }39 $this->image_sizes = array();40 $custom_tnail_sizes = us_get_option( 'img_size' );41 if ( is_array( $custom_tnail_sizes ) ) {42 foreach ( $custom_tnail_sizes as $size_index => $size ) {43 $crop = ( ! empty( $size['crop'][0] ) );44 $crop_str = ( $crop ) ? '_crop' : '';45 $width = ( ! empty( $size['width'] ) AND intval( $size['width'] ) > 0 ) ? intval( $size['width'] ) : 0;46 $height = ( ! empty( $size['height'] ) AND intval( $size['height'] ) > 0 ) ? intval( $size['height'] ) : 0;47 $old_name = 'us_img_size_' . $size_index;48 $new_name = 'us_' . $width . '_' . $height . $crop_str;49 $this->image_sizes[$old_name] = $new_name;50 }51 }52 return $this->image_sizes;53 }54 // Content55 public function translate_content( &$content ) {56 return $this->_translate_content( $content );57 }58 public function translate_us_social_links( &$name, &$params, &$content ) {59 $items = array();60 foreach ( $this->socials_config as $social_link => $label ) {61 if ( ! empty( $params[$social_link] ) ) {62 $items[] = array(63 'type' => $social_link,64 'url' => $params[$social_link],65 );66 }67 if ( isset( $params[$social_link] ) ) {68 unset( $params[$social_link] );69 }70 }71 if ( isset( $params['custom_icon'] ) ) {72 $params['custom_icon'] = trim( $params['custom_icon'] );73 }74 if ( ! empty( $params['custom_icon'] ) AND ! empty( $params['custom_link'] ) ) {75 $custom_link = array(76 'type' => 'custom',77 'url' => $params['custom_link'],78 'icon' => $params['custom_icon'],79 'color' => '#1abc9c',80 );81 if ( ! empty ( $params['custom_title'] ) ) {82 $custom_link['title'] = $params['custom_title'];83 }84 if ( ! empty ( $params['custom_color'] ) ) {85 $custom_link['color'] = $params['custom_color'];86 }87 $items[] = $custom_link;88 }89 if ( isset( $params['custom_icon'] ) ) {90 unset( $params['custom_icon'] );91 }92 if ( isset( $params['custom_link'] ) ) {93 unset( $params['custom_link'] );94 }95 if ( isset( $params['custom_title'] ) ) {96 unset( $params['custom_title'] );97 }98 if ( isset( $params['custom_color'] ) ) {99 unset( $params['custom_color'] );100 }101 if ( count( $items ) ) {102 $params['items'] = urlencode( json_encode( $items ) );103 }104 return TRUE;105 }106 public function translate_us_blog( &$name, &$params, &$content ) {107 $changed = FALSE;108 if ( isset( $params['img_size'] ) AND $params['img_size'] == 'tnail-1x1' ) {109 $params['img_size'] = 'us_600_600_crop';110 $changed = TRUE;111 }112 if ( isset( $params['img_size'] ) AND $params['img_size'] == 'tnail-1x1-small' ) {113 $params['img_size'] = 'us_350_350_crop';114 $changed = TRUE;115 }116 $img_sizes = $this->get_image_sizes();117 foreach ( $img_sizes as $old_name => $new_name ) {118 if ( isset( $params['img_size'] ) AND $params['img_size'] == $old_name ) {119 $params['img_size'] = $new_name;120 $changed = TRUE;121 }122 }123 return $changed;124 }125 public function translate_us_portfolio( &$name, &$params, &$content ) {126 $changed = FALSE;127 if ( isset( $params['img_size'] ) AND $params['img_size'] == 'tnail-1x1' ) {128 $params['img_size'] = 'us_600_600_crop';129 $changed = TRUE;130 }131 if ( isset( $params['img_size'] ) AND $params['img_size'] == 'tnail-1x1-small' ) {132 $params['img_size'] = 'us_350_350_crop';133 $changed = TRUE;134 }135 $img_sizes = $this->get_image_sizes();136 foreach ( $img_sizes as $old_name => $new_name ) {137 if ( isset( $params['img_size'] ) AND $params['img_size'] == $old_name ) {138 $params['img_size'] = $new_name;139 $changed = TRUE;140 }141 }142 return $changed;143 }144 145 public function translate_us_gallery( &$name, &$params, &$content ) {146 $changed = FALSE;147 if ( isset( $params['img_size'] ) AND $params['img_size'] == 'tnail-1x1' ) {148 $params['img_size'] = 'us_600_600_crop';149 $changed = TRUE;150 }151 if ( isset( $params['img_size'] ) AND $params['img_size'] == 'tnail-1x1-small' ) {152 $params['img_size'] = 'us_350_350_crop';153 $changed = TRUE;154 }155 $img_sizes = $this->get_image_sizes();156 foreach ( $img_sizes as $old_name => $new_name ) {157 if ( isset( $params['img_size'] ) AND $params['img_size'] == $old_name ) {158 $params['img_size'] = $new_name;159 $changed = TRUE;160 }161 }162 return $changed;163 }164 public function translate_us_image_slider( &$name, &$params, &$content ) {165 $changed = FALSE;166 if ( isset( $params['img_size'] ) AND $params['img_size'] == 'tnail-1x1' ) {167 $params['img_size'] = 'us_600_600_crop';168 $changed = TRUE;169 }170 if ( isset( $params['img_size'] ) AND $params['img_size'] == 'tnail-1x1-small' ) {171 $params['img_size'] = 'us_350_350_crop';172 $changed = TRUE;173 }174 $img_sizes = $this->get_image_sizes();175 foreach ( $img_sizes as $old_name => $new_name ) {176 if ( isset( $params['img_size'] ) AND $params['img_size'] == $old_name ) {177 $params['img_size'] = $new_name;178 $changed = TRUE;179 }180 }181 return $changed;182 }183 public function translate_us_single_image( &$name, &$params, &$content ) {184 $changed = FALSE;185 if ( isset( $params['size'] ) AND $params['size'] == 'tnail-1x1' ) {186 $params['size'] = 'us_600_600_crop';187 $changed = TRUE;188 }189 if ( isset( $params['size'] ) AND $params['size'] == 'tnail-1x1-small' ) {190 $params['size'] = 'us_350_350_crop';191 $changed = TRUE;192 }193 $img_sizes = $this->get_image_sizes();194 foreach ( $img_sizes as $old_name => $new_name ) {195 if ( isset( $params['size'] ) AND $params['size'] == $old_name ) {196 $params['size'] = $new_name;197 $changed = TRUE;198 }199 }200 return $changed;201 }202 // Options203 public function translate_theme_options( &$options ) {204 $img_sizes = $this->get_image_sizes();205 if ( isset( $options['post_related_img_size'] ) AND $options['post_related_img_size'] == 'tnail-1x1' ) {206 $options['post_related_img_size'] = 'us_600_600_crop';207 }208 if ( isset( $options['post_related_img_size'] ) AND $options['post_related_img_size'] == 'tnail-1x1-small' ) {209 $options['post_related_img_size'] = 'us_350_350_crop';210 }211 if ( isset( $options['blog_img_size'] ) AND $options['blog_img_size'] == 'tnail-1x1' ) {212 $options['blog_img_size'] = 'us_600_600_crop';213 }214 if ( isset( $options['blog_img_size'] ) AND $options['blog_img_size'] == 'tnail-1x1-small' ) {215 $options['blog_img_size'] = 'us_350_350_crop';216 }217 if ( isset( $options['archive_img_size'] ) AND $options['archive_img_size'] == 'tnail-1x1' ) {218 $options['archive_img_size'] = 'us_600_600_crop';219 }220 if ( isset( $options['archive_img_size'] ) AND $options['archive_img_size'] == 'tnail-1x1-small' ) {221 $options['archive_img_size'] = 'us_350_350_crop';222 }223 if ( isset( $options['search_img_size'] ) AND $options['search_img_size'] == 'tnail-1x1' ) {224 $options['search_img_size'] = 'us_600_600_crop';225 }226 if ( isset( $options['search_img_size'] ) AND $options['search_img_size'] == 'tnail-1x1-small' ) {227 $options['search_img_size'] = 'us_350_350_crop';228 }229 foreach ( $img_sizes as $old_name => $new_name ) {230 if ( $options['post_related_img_size'] == $old_name ) {231 $options['post_related_img_size'] = $new_name;232 }233 if ( $options['blog_img_size'] == $old_name ) {234 $options['blog_img_size'] = $new_name;235 }236 if ( $options['archive_img_size'] == $old_name ) {237 $options['archive_img_size'] = $new_name;238 }239 if ( $options['search_img_size'] == $old_name ) {240 $options['search_img_size'] = $new_name;241 }242 }243 $old_img_sizes = $options['img_size'];244 if ( ! is_array( $old_img_sizes ) ) {245 $old_img_sizes = array();246 }247 $new_img_sizes = array(248 array(249 'width' => 350,250 'height' => 350,251 'crop' => array( '0' => 'crop' ),252 ),253 array(254 'width' => 600,255 'height' => 600,256 'crop' => array( '0' => 'crop' ),257 ),258 );259 foreach ( $old_img_sizes as $size ) {260 $new_img_sizes[] = $size;261 }262 $options['img_size'] = $new_img_sizes;263 // Regenerate sizes data for images264 $attachments = get_posts(265 array(266 'post_type' => 'attachment',267 'posts_per_page' => - 1,268 'post_status' => 'any',269 'numberposts' => - 1,270 )271 );272 foreach ( $attachments as $attachment ) {273 $attachment_ID = $attachment->ID;274 if ( is_array( $imagedata = wp_get_attachment_metadata( $attachment_ID ) ) ) {275 if ( isset ( $imagedata['sizes']['tnail-1x1-small'] ) ) {276 $imagedata['sizes']['us_350_350_crop'] = $imagedata['sizes']['tnail-1x1-small'];277 }278 if ( isset ( $imagedata['sizes']['tnail-1x1'] ) ) {279 $imagedata['sizes']['us_600_600_crop'] = $imagedata['sizes']['tnail-1x1'];280 }281 foreach ( $img_sizes as $old_name => $new_name ) {282 if ( isset ( $imagedata['sizes'][$old_name] ) ) {283 $imagedata['sizes'][$new_name] = $imagedata['sizes'][$old_name];284 }285 }286 wp_update_attachment_metadata( $attachment_ID, $imagedata );287 }288 }289 return TRUE;290 }291}...
size
Using AI Code Generation
1require("name.php");2$name = new Name("John","Doe");3echo $name->size();4Related Posts: PHP | count() function5PHP | array_multisort() Function6PHP | array_merge() Function7PHP | array_key_exists() Function8PHP | array_intersect() Function9PHP | array_diff() Function10PHP | array_change_key_case() Function11PHP | array_chunk() Function12PHP | array_combine() Function13PHP | array_count_values() Function14PHP | array_diff_assoc() Function15PHP | array_diff_key() Function16PHP | array_diff_uassoc() Function17PHP | array_diff_ukey() Function18PHP | array_fill_keys() Function19PHP | array_fill() Function20PHP | array_filter() Function21PHP | array_flip() Function22PHP | array_intersect_assoc() Function23PHP | array_intersect_key() Function24PHP | array_intersect_uassoc() Function25PHP | array_intersect_ukey() Function26PHP | array_key_first() Function27PHP | array_key_last() Function28PHP | array_keys() Function29PHP | array_map() Function30PHP | array_merge_recursive() Function31PHP | array_pad() Function32PHP | array_product() Function33PHP | array_rand() Function34PHP | array_reduce() Function35PHP | array_replace_recursive() Function36PHP | array_replace() Function37PHP | array_reverse() Function38PHP | array_search() Function39PHP | array_slice() Function40PHP | array_sum() Function41PHP | array_udiff_assoc() Function42PHP | array_udiff_uassoc() Function43PHP | array_udiff() Function44PHP | array_uintersect_assoc() Function45PHP | array_uintersect_uassoc() Function46PHP | array_uintersect() Function47PHP | array_unique() Function48PHP | array_unshift() Function49PHP | array_values() Function50PHP | array_walk_recursive() Function51PHP | array_walk() Function52PHP | array() Function53PHP | arsort() Function54PHP | asort() Function55PHP | compact() Function56PHP | count_chars() Function57PHP | current() Function58PHP | each() Function59PHP | end() Function60PHP | extract() Function61PHP | in_array() Function62PHP | key() Function63PHP | krsort() Function64PHP | ksort() Function65PHP | list() Function66PHP | natcasesort()
size
Using AI Code Generation
1$size = $name->size();2echo $size;32.2.2. count() Method4array count ( void )5Example 1: How to use count() method?6$size = $name->count();7echo $size;82.2.3. keys() Method9array keys ( void )10Example 1: How to use keys() method?11$keys = $name->keys();12print_r($keys);132.2.4. values() Method14array values ( void )15Example 1: How to use values() method?16$values = $name->values();17print_r($values);182.2.5. get() Method19mixed get ( mixed $key )20Example 1: How to use get() method?
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Execute automation tests with size on a cloud-based Grid of 3000+ real browsers and operating systems for both web and mobile applications.
Test now for FreeGet 100 minutes of automation test minutes FREE!!