dfdfdf dfddfdf fdfdfdf dfd fd fdf

...pen SQL, MyConn, 0, 1, adCmdText CheckedList.asp AS part of the initial requirements analysis which was drafted, we decided that the companies should be able to delete jobs which have been filled as a batch as opposed to individually. We felt that the best way to do this was to list all jobs offered by the company in a table but to include a column made up of check boxes. The idea is that the company checks the box for each job it wants to delete. The result is a comma delimited list which can be used in a DELETE IN SQL statement. The list is achieved by the following statements. SQL = "SELECT Job_id, Comp_id, Salary, Location, Type, Category, Date_Added FROM Job WHERE Comp_id=" &request("comp_id") Response.write"" As we can see the value of the checkbox is set to the unique job_id. We can see how this is processed by the next asp file. DeleteChecked.asp This is the file which actually executes the deletion of the boxes checked in the checkedlist file. Firstly it requests ‘Delete’ from the calling form. This variable ‘Delete’ is in the form of a comma delimited string of unique job_ids. strDeleteList = Request("Delete") the code then makes sure that at the list is not empty and if it is not, deletes the jobs from the jobs table where the id of a job appears in the delete list. if strDeleteList = "" then 'No items to delete Response.Write "You did not select any items to delete!" Else SQL = "DELETE * FROM Job WHERE Job_id In ("&strDeleteList&")" MyConn.Execute(SQL) CompHome.asp This is the page that a user is directed to after successfully logging in using a valid company contact username and password. It essentially contains an image map which links to the various asp pages which carry out all the functions available to the company. We decided that to add a personal touch to the site, that the registered user should be welcomed by name. response.write("

Welcome, "&request("user_name")& "
") When linking to the various functions available to a company, the code passes the comp_id variable to the URL. This variable is then used by the referenced page to carry out queries and data manipulations " title="Click here to add a new job "> " title="Click here to delete an old job"> " title="Click here to view or edit jobs"> " title="Click here to find suitable candidates"> UserHome.asp This is the equivalent of the company homepage and provides the user with links to do an advanced job search based on their criteria and to edit their personal details. Like the comphome, this code passes the username to the URL’s of each page carrying out any query or function needing the applicants username. " title="Click here to search for a job"> " title="Click here to view or edit your details"> Description1.asp This page gives the details for a particular job in form style. The details are retrieved for the job based on its id. The main point to note about this form is that it only gives details on the job itself. This page is used for casual browsers of the site who perform a basic search. If an applicant registers with the site, the form displayed shows the contact details for the company so that the applicant may apply for the position. This complete form is generated by the Fulljobdesc.asp file. EditProfilform.asp This is the file that is called if a user wishes to update their personal details. It loads the information stored on the user in the database, such as first name, last name and email address into the form fields SQL = "SELECT * FROM Applicant WHERE UserName='"&request("user_name")&"'" " maxlength="25" size="20 " maxlength="25" size="20"> Edirprofile.asp This is the file which processes the data entered into the editprofileform. It simply uses an SQL update statement to set the values for the fields in the Applicant table which hold the information on the user. SQL = "UPDATE Applicant SET First_Name = '"&request.form("fname")&"', Last_Name = '"&request.form("lname")&"', Email = '"&request.form("email")&"', Pword = '"&request.form("pword")&"' WHERE UserName='" &request("user_name")&"'" MyConn.Execute(SQL) Response.write("User profile has been saved") Editjobform.asp If a company wishes to change details for a particular job they are directed to this form. The code firstly loads the drop-down lists with the values held in the tables in the database relating to category, location and skill. It then makes use of the

Essay Information


Words: 2689
Pages: 10.8
Rating: None

All Papers Are For Research And Reference Purposes Only. You must cite our web site as your source.