Need Script, Or Any Solution For Website Design Task! - Webmasters - Nairaland
Nairaland Forum › Science/Technology › Webmasters › Need Script, Or Any Solution For Website Design Task! (3520 Views)
| Need Script, Or Any Solution For Website Design Task! by gbolio4(op): 2:15am On Jan 25, 2006 |
hi All, Plz ppl i need Help as i have an ultimatum to Beat on Web Dev project. my job is on the line here!!!! I need the resource or resource's [script, program or software] to build a website that basically mimics the shipment-tracking ability of sites like FedEx, dhl or ups I basically need to construct a page where users can enter a login ID and tracking # combination, and on clicking 'go', the user should be brought to a page detailing the movement of goods he/she ordered and dispatched and where exactly such shipment/package is at that particular point in time..... It should be be something with a interface to generate the login and tracking numbers and also specify what data to present on the results page belonging to any particular tracking number / login ID combination. Call it a kinda Shipment or On-line Order tracking Solution and you'd be right. i don't mind if its a script, database solution, software or combination of those to produce the solution... I'm posting an example here :: http://www.ups.com/WebTracking/track?loc=en_NG&WT.svl=SubNav Please People I know that We have the Brains in this E-community to help me find a solution to this task... I would Appreciate any/all help... E-kolanuts would be presented to the problem solver ![]() |
| Re: Need Script, Or Any Solution For Website Design Task! by sbucareer(f): 2:34am On Jan 25, 2006 |
We are willing to help you since you asked nicely, but you need to tell us what script language you would prefer it on i.e. php, asp, jsp, c#, j#, .NET etc. and I thinks it would probably be a database solution for optimization purpose. What database server, would like it one oracle, mysql, db2, pointbase etc.? I believe there are professional web-driven database designers here. I would personally help you if it were on Java platform. I don't want to start learning php and asp as I find them boring. [center][glow=red,2,150]Java rocks[/glow][/center] |
| Re: Need Script, Or Any Solution For Website Design Task! by sbucareer(f): 3:21am On Jan 25, 2006 |
#### ATTENTION: # # Table structure for table `customer` # CREATE DATABASE upsTraking; USE upsTraking; #### ATTENTION: # # Table structure for table `customer` # CREATE DATABASE {databasename}; GRANT ALL PRIVILEGES ON {databasename}.* TO 'databaseuse_user'@'localhost' IDENTIFIED BY 'thepassword'; USE {databasename}; FLUSH privileges; CREATE TABLE Customer ( CID int(11) unsigned NOT NULL auto_increment, ID_MSG int(10) unsigned NOT NULL default '0', Firstname varchar(128) NOT NULL default '-1,0', Lastname varchar(128) NOT NULL default '-1,0', Address varchar(128) NOT NULL default '-1,0', Postcode varchar(10) NOT NULL default '-1,0', Telephone int(10) unsigned NOT NULL default '0', DOB int(10) unsigned NOT NULL default '0', Sex varchar(5) NOT NULL default '-1,0', CONSTRAINT cid_pk PRIMARY KEY (CID), UNIQUE ID (ID, CID), KEY ID_MSG (ID_MSG) ); # # Table structure for table `tracking` # CREATE TABLE tracking ( TrakingID int(10) unsigned NOT NULL default '0', UNIQUE ID (ID, CID), CID int(11) unsigned NOT NULL, FOREIGN KEY (CID), REFERENCES customer(CIS) , ); The is probably the mysql database schema you will need NOTE is it not normalized, so you can do that. Save it as my.sql and run it on your prefer database. Change the {} to your prefer settings. |
| Re: Need Script, Or Any Solution For Website Design Task! by sbucareer(f): 3:30am On Jan 25, 2006 |
[move][glow=navy,1,50] A simple interface, HTML, modify to suit your style[/glow][/move] [center][glow=magenta,1,50] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>UPS</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body><form name="form1" method="post" action=""> <div align="center"> <table width="465" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="30" height="21"> </td> <td width="28"> </td> <td width="21"> </td> <td width="24"> </td> <td width="202"> </td> <td width="55"> </td> <td width="40"> </td> <td width="65"> </td> </tr> <tr> <td height="77"> </td> <td> </td> <td> </td> <td> </td> <td colspan="2" valign="top"><table cellspacing="0" cellpadding="0"> <tr> <td class="pi-mA1-c-t-spc"></td> </tr> <tr> <td class="pi-mA1-c" valign="top"><table cellspacing="0" cellpadding="0"> <tr> <td>Please enter your UPS Tracking Numbers below and select the Track button. You can enter only to 1 numbers at a time. </td> </tr> </table></td> </tr> </table></td> <td> </td> <td> </td> </tr> <tr> <td height="22"> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td height="31"> </td> <td valign="top">1.</td> <td> </td> <td colspan="4" valign="top"> <input name="textfield" type="text" size="50" maxlength="30"></td> <td> </td> </tr> <tr> <td height="26"> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td height="33"> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td colspan="4" valign="top"><input type="submit" name="Submit" value="ok "></td> <td> </td> </tr> <tr> <td height="155"> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table> </div> </form> </body> </html> [/glow][/center] I will post the [glow=red,2,50]JSP[/glow] code later to access the database. Remember my solution is purely Java platform |
| Re: Need Script, Or Any Solution For Website Design Task! by gbolio4(op): 11:47pm On Jan 25, 2006 |
![]() Thanks a lot sbucareer you've been very good to me i really apprecate your help thank you please expedite action on completeing it for me. thanks again |
| Re: Need Script, Or Any Solution For Website Design Task! by sbucareer(f): 5:55pm On Jan 26, 2006 |
In tomcat reference container for Java the directory structure is organised in this form.
Put this code in the beans directory [glow=brown,0,50] import java.io.*; import java.io.serializable; public class SessionBean extends Serializable{ /** * If you need to use other session attributes, mut be listed here */ String upsTrackNumber = null; public SessionBean ( ){ }//End default Contructor // Get the string from the user HTTP session and set it to object public void setUpsTrackNumber (String toSet){ this.upsTrackNumber = toSet; }//End setUpsTrackNumber // Return this object back to any calling object, probably to access the db public String getUpsTrackNumber ( ){ return this.upsTrackNumber; }//End getUpsTrackNumber }//End SessionBean [/glow] The HTML file above find the <form method=post action=""> in the action part between the quotes put search.jsp . Below is the search script [glow=magenta,0,50] <@ page import="com.sun.projectDir.beans.SessionBean"%> <@ page import="com.sun.projectDir.db.EnterpriseBean" %> <jsp:useBean id="ups" scope="page" class="com.sun.projectDir.SessionBean" /> <jsp:useBean id="eb" scope="session" class="com.sun.projectDir.db.EnterpriseBean" /> <jsp:setProperty name="uspTrackNumber" property="*" /> <HTML> <HEAD></TITLE>Ups Tracker</TITLE> </HEAD> <body> <% String firstName = null; String lastName = null; String address = null; String postCode = null; //etc. Put all the information You want to display String upsNumber = ups.getUpsTrackNumber(); if ( upsNumber != null ){ eb = new EnterperiseBean ( ); firstname = eb.getFirstname(); //etc. }//End if %> <Table boder=0> <Td> <tr>First Name</tr> </tr>Last Name</tr> etc. </Td> <%=firstName%> <%=lastName%> <!-- etc. All the information you want to view --> </table> </body> </html> [/glow] I will write the EnterpriseBean for you later. This is how the system access your database. |
| Re: Need Script, Or Any Solution For Website Design Task! by sbucareer(f): 6:31pm On Jan 26, 2006 |
@Senu, please can you increase the charater numbers for "Maximum allowed characters in signatures" I need to edit my signature to a url link but the character you set do not allow me to add more entries... please |
| Re: Need Script, Or Any Solution For Website Design Task! by sbucareer(f): 12:37am On Jan 27, 2006 |
[glow=#bbffcc,0,50]I know this is long code and most probably you will not need all the methods. Use the ones that apply to use and discard the rest[/glow]
Tell me if you need any help [glow=#ff55tt,0,50]Learn Software Engineer using Java[/glow] |
| Re: Need Script, Or Any Solution For Website Design Task! by skima(m): 9:48am On Jan 27, 2006 |
I have complete this kind of system but it excludes date of but will autogenerate tracking number for u. Its also has the admin area where u would add and edit sender/reciever info. PHP/MySQL |
| Re: Need Script, Or Any Solution For Website Design Task! by sbucareer(f): 1:05pm On Jan 30, 2006 |
[move][glow=#3f8f3d,0,50]PHP/MYSQL SOLUTION BY SKIMA[/glow][/move] @skima, could you posted your solution for us ? |
| Re: Need Script, Or Any Solution For Website Design Task! by sbucareer(f): 1:07pm On Jan 30, 2006 |
[move][glow=#9e43ef,0,50]PHP/MYSQL SOLUTION BY SKIMA[/glow][/move] @skima, could you post your solution for us ? Sorry for the previous post |
| Re: Need Script, Or Any Solution For Website Design Task! by skima(m): 5:39pm On Jan 30, 2006 |
ill do so soon! tonight just hopped in now. |
| Re: Need Script, Or Any Solution For Website Design Task! by skima(m): 1:23am On Jan 31, 2006 |
here comes the Solution : filename : sql.sql purpose : for database table set
|
| Re: Need Script, Or Any Solution For Website Design Task! by skima(m): 1:25am On Jan 31, 2006 |
filename: track.php purpose: to enable user track their shipment info <? |
| Re: Need Script, Or Any Solution For Website Design Task! by skima(m): 1:27am On Jan 31, 2006 |
filename: constr.php purpose : for database connect and table declaration <? $user=""; // enter database username $pass="" ; //enter ur database password $db=""; // database name $con=mysql_connect("localhost","$user","$pass" ;mysql_select_db("$db" ;$tab="track"; if(!$con) echo "<p> Cannot connect to the database".mysql_error(); ?> |
| Re: Need Script, Or Any Solution For Website Design Task! by skima(m): 1:32am On Jan 31, 2006 |
filename : add.php purpose : to add,edit/update and delete tracking information <? |
| Re: Need Script, Or Any Solution For Website Design Task! by skima(m): 1:34am On Jan 31, 2006 |
filename: index2.php purpose : to view all users in the database... to enable us edit/delete their information independently. <html> |
| Re: Need Script, Or Any Solution For Website Design Task! by skima(m): 1:36am On Jan 31, 2006 |
filename: link.php purpose: to display links to other pages and to secure against interludes. it secures the page (uses session)
|
| Re: Need Script, Or Any Solution For Website Design Task! by skima(m): 1:38am On Jan 31, 2006 |
filename: add2.php purpose : to generate and add tracking information includeing tracking number with leading company code;
|
| Re: Need Script, Or Any Solution For Website Design Task! by skima(m): 1:42am On Jan 31, 2006 |
filename : class.php purpose : simplified functions wrapped up in a file with OOP concept php >=4
|
| Re: Need Script, Or Any Solution For Website Design Task! by skima(m): 1:45am On Jan 31, 2006 |
filename : index.php purpose : to prompt user for login credential and create session . remember i just used simplified "if " to make sure the user marches a preset one... i didnt prompt from the DB u may do so
|
| Re: Need Script, Or Any Solution For Website Design Task! by skima(m): 1:46am On Jan 31, 2006 |
filename : logout.php purpose : to end users session
|
| Re: Need Script, Or Any Solution For Website Design Task! by skima(m): 1:53am On Jan 31, 2006 |
i'd liked to send the .zip version to via mail but didnt know your ID . just try that out and let me know wats up after ill be glad to help out. [move]PHP ROCKS[/move] |
| Re: Need Script, Or Any Solution For Website Design Task! by sbucareer(f): 2:30am On Jan 31, 2006 |
@ gbolio4, you have two solutions now, try either one or both and let us know if we met your criteria. Any further assistance, I will be glad to help. [move][glow=#f4e31d,1,50]EJB/JAVA is the way forward[/glow][/move] |
| Re: Need Script, Or Any Solution For Website Design Task! by joftech(m): 3:51am On Feb 01, 2006 |
He better go the PHP/MySql way, it's really really faster to learn. |
| Re: Need Script, Or Any Solution For Website Design Task! by skima(m): 5:25pm On Feb 01, 2006 |
yeah he should... |
| Re: Need Script, Or Any Solution For Website Design Task! by sbucareer(f): 5:48pm On Feb 01, 2006 |
99.9% of nairaland forum members are addictively php followers, what a shame... ![]() |
| Re: Need Script, Or Any Solution For Website Design Task! by skima(m): 5:55pm On Feb 01, 2006 |
I dont think there is anything bad .. and knowing other lang. is not a bad idea also. People in here (some with php knowledge) also know other langs. |
| Re: Need Script, Or Any Solution For Website Design Task! by joftech(m): 8:53pm On Feb 01, 2006 |
I prefer PHP because it's open source and easy to learn. I used to dig ASP before since i know VB but i need something that's not going to put strains on ones pocket. |
| Re: Need Script, Or Any Solution For Website Design Task! by bolaoni(m): 7:18pm On Feb 03, 2006 |
Hi guys, thanks so much for all these wonderful posts, especially skima and sbu. At the beginning of the year, don't know JACK about PHP/MySQL but this thread and other provided a source of motivation for me. I just decided to check out Google and I saw tonnes of tutorials. Picked up the pick of the pack and it was solid GEM ![]() Now I can create a basic database. Hope to commence a DB-driven website project SOON! Thanks so much guys, I love ya all. Bola |
| Re: Need Script, Or Any Solution For Website Design Task! by skima(m): 8:33pm On Feb 03, 2006 |
Dats gr8 man... you are on your way to becoming a world class developer. while learn make google ur companion... (php.net,zend.com,www.w3schools.com/sql for sql knowledge, mysql.com) etc. Always learn by practising (developing apps). To ur success ! |
| Re: Need Script, Or Any Solution For Website Design Task! by bolaoni(m): 1:34pm On Feb 04, 2006 |
Thanks Man. Ur suggestions are noted! Can you please suggest any project for a beginner? I will like to work on that too. |
I Need Ebook Rebrander Script Or Software • Bulk Sms Script Or Software • Writing A Time Based Expiration Script Or Function Using Php And Mysql • 2 • 3 • 4
Need Facebook Account To Buy • Wordpress Web Solutions: Questions And Answers • .


;
