hey guyz,
thnx for your time readin this....
Trust me... Its not as long as it looks
well here goes...
what i need is a script that can be integrated into my template...so first ill go about the structure...then ill tell how it should work...
so as for the structure you see that as this script will be to upload a couple images and send data into database.... it has to be named as :
add_template.php
it is located in this folder :
root/administration/
now as i use dreamweaver to apply templates to pages i need the script to be clean.. i mean that all should be include in the file "add_template.php" preferably by using the "switch" function and naming the cases appropriately.. however the script cannot go into cases... cases should use include funtion to include the appropriate page into that case.. the files containing the script should be placed in a sub folder :
includes/
the cases should include all these pages :
case 'addnew':
add_template?mode=addnew
(containing inlude to a script that is described below)
case 'edit':
add_template?mode=edit
(containing script to adit existing records)
case 'delete':
add_template?mode=delete&deleteid="id here"
(containing script that would delete the record with id mentioned in the url.. there should however be a confirmation message ..
e.g " Are you sure you want to delete this record : Yes || No")
case 'list':
add_template?mode=list
(should display all the records in an organized way)
this list section has to have another sub section:
add_template?mode=list&detail="id here"
to show details of the records showin in "list"
ok now for the :
"add_template?mode=addnew"
ok now this is the main part that needs explanation...
you see this page has to be a forem... and yet again this should also use include feature to include a "addnew.htm" page that contains form.. (easy config later) .... it should have fields for the following table : (SQL)
(NOTE :
Connection to be made by including :
root/Connections/solothemes.php)
ok now as the table shows exact name of fields....they should be named the same way in form...
you are to use upload feature to upload the images linked to from "image" field and "thumb" field.... the uploaded images are to be placed in this folder:
root/modules/templates/images/
root/modules/templates/thumb/
however...the thumbnail has to be resized before saving...to :
150px * 150px
(if you have a way by which only image has to be uploaded...and it can be resized and display as thumb, without loading the whole image..you can use that)
the rest of the field go normal into the databse... bute image name has to be entered into database too... it is to be renamed to the id of the record... like record "43" should have image "43.gif" etc.....
after entering : "Successfully uploaded. View it here:
add_template?mode=list&detail="id here"
.."
one important thing.... DO NOT make use of "exit;" feature.... make use of "if" and "else" statements to quit the script...im sure you know how....coz exiting script exits the whole page...ruining the template...
well i hope you got it.....and will be ready to do it for me...coz if you do...im ready to shower you with 200+ frih$'s depending upon the cleanliness of the script...and the time taken for you to bring it up to me...
thnx alot !!!
post here and tell if ur working on it...
plz do a complete script.... do not leave spaces with comments that i am to do this here...
thnx alot in advance.....

thnx for your time readin this....
Trust me... Its not as long as it looks
well here goes...
what i need is a script that can be integrated into my template...so first ill go about the structure...then ill tell how it should work...
so as for the structure you see that as this script will be to upload a couple images and send data into database.... it has to be named as :
add_template.php
it is located in this folder :
root/administration/
now as i use dreamweaver to apply templates to pages i need the script to be clean.. i mean that all should be include in the file "add_template.php" preferably by using the "switch" function and naming the cases appropriately.. however the script cannot go into cases... cases should use include funtion to include the appropriate page into that case.. the files containing the script should be placed in a sub folder :
includes/
the cases should include all these pages :
case 'addnew':
add_template?mode=addnew
(containing inlude to a script that is described below)
case 'edit':
add_template?mode=edit
(containing script to adit existing records)
case 'delete':
add_template?mode=delete&deleteid="id here"
(containing script that would delete the record with id mentioned in the url.. there should however be a confirmation message ..
e.g " Are you sure you want to delete this record : Yes || No")
case 'list':
add_template?mode=list
(should display all the records in an organized way)
this list section has to have another sub section:
add_template?mode=list&detail="id here"
to show details of the records showin in "list"
ok now for the :
"add_template?mode=addnew"
ok now this is the main part that needs explanation...
you see this page has to be a forem... and yet again this should also use include feature to include a "addnew.htm" page that contains form.. (easy config later) .... it should have fields for the following table : (SQL)
(NOTE :
Connection to be made by including :
root/Connections/solothemes.php)
| Code: |
|
table name : templates `id` mediumint(9) NOT NULL auto_increment, `name` varchar(255) NOT NULL default '', `category` varchar(255) NOT NULL default '', `description` varchar(255) NOT NULL default '', `resolution` varchar(255) NOT NULL default '', `authur` varchar(255) NOT NULL default '', `website` varchar(255) NOT NULL default '', `image` varchar(255) NOT NULL default '', `thumb` varchar(255) NOT NULL default '', `download_link` varchar(255) NOT NULL default '', `addition_date` varchar(255) NOT NULL default '', Primare : id |
ok now as the table shows exact name of fields....they should be named the same way in form...
you are to use upload feature to upload the images linked to from "image" field and "thumb" field.... the uploaded images are to be placed in this folder:
root/modules/templates/images/
root/modules/templates/thumb/
however...the thumbnail has to be resized before saving...to :
150px * 150px
(if you have a way by which only image has to be uploaded...and it can be resized and display as thumb, without loading the whole image..you can use that)
the rest of the field go normal into the databse... bute image name has to be entered into database too... it is to be renamed to the id of the record... like record "43" should have image "43.gif" etc.....
after entering : "Successfully uploaded. View it here:
add_template?mode=list&detail="id here"
.."
one important thing.... DO NOT make use of "exit;" feature.... make use of "if" and "else" statements to quit the script...im sure you know how....coz exiting script exits the whole page...ruining the template...
well i hope you got it.....and will be ready to do it for me...coz if you do...im ready to shower you with 200+ frih$'s depending upon the cleanliness of the script...and the time taken for you to bring it up to me...
thnx alot !!!
post here and tell if ur working on it...
plz do a complete script.... do not leave spaces with comments that i am to do this here...
thnx alot in advance.....
that stops when the upload is complete.