From: Jason Woofenden Date: Wed, 12 Nov 2008 21:29:58 +0000 (-0500) Subject: starting to work X-Git-Url: https://jasonwoof.com/gitweb/?p=contractor-progress.git;a=commitdiff_plain;h=5cc6274a058be9a9cf9d7d3e1d169870cad90353 starting to work --- 5cc6274a058be9a9cf9d7d3e1d169870cad90353 diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..a7bee83 --- /dev/null +++ b/.htaccess @@ -0,0 +1,8 @@ +php_flag register_globals off +php_flag magic_quotes_gpc off +Options -MultiViews +AddDefaultCharset UTF-8 +RewriteEngine on +RewriteRule ^$ /run.php +RewriteRule ^[^/]*\.html$ /run.php +RewriteRule ^[^/.]*$ /run.php diff --git a/code/config.php b/code/config.php new file mode 100644 index 0000000..4232c67 --- /dev/null +++ b/code/config.php @@ -0,0 +1,4 @@ + + + + + tasks entry + + + + + + +

Progress

+ +

This page is for commissioning Jason Woofenden, working out the details of what is to be done and the cost, and managing schedules and priorities.

+ +

Commission a new feature/updateReport a problem

+ + +
+

Tasks needing your attention:

+ +
Task #~task_id~: ~task_title.html~ (~task_state~)
+ + + + +
+

Prioritized queue

+

Use the arrows on the left to change the order.

+ +
Task #~task_id~: ~task_title.html~ (~task_price.money~)
+ + + + +
+

Tasks waiting for Jason:

+ +
Task #~task_id~: ~task_title.html~ (~task_state~)
+ + + + +
+

Jason is currently working on:

+ + + + + + +
+

Finished tasks (unpaid)

+ + + +
Total: ~task_total.money~
+ + + +
+

Finished and paid for

+ + + + +
...
+ + + + + + diff --git a/index.php b/index.php new file mode 100644 index 0000000..7f2a922 --- /dev/null +++ b/index.php @@ -0,0 +1,49 @@ + + + + + + + + + +

Client Login

+ + +
Incorrect username and/or password
+ + +
+ + + + + + + + + + + + + + + + + + +
Username:
Password:
+
+ + + diff --git a/login.php b/login.php new file mode 100644 index 0000000..0d77fa2 --- /dev/null +++ b/login.php @@ -0,0 +1,40 @@ + diff --git a/tasks.css b/tasks.css new file mode 100644 index 0000000..e7a6c7c --- /dev/null +++ b/tasks.css @@ -0,0 +1,8 @@ +.index_body h3 { + text-align: left; + margin: 15px 0px 5px; +} + +#badges { + margin-top: 30px; +} diff --git a/tasks.email.txt b/tasks.email.txt new file mode 100644 index 0000000..ebcd37b --- /dev/null +++ b/tasks.email.txt @@ -0,0 +1,10 @@ +tasks form submitted with the following: + +client_id: ~client_id~ +ord: ~ord~ +title: ~title~ +url: ~url~ +description: +~description.tab~ +state: ~state~ +paid: ~paid~ diff --git a/tasks.html b/tasks.html new file mode 100644 index 0000000..cce4e0c --- /dev/null +++ b/tasks.html @@ -0,0 +1,35 @@ + + + + + tasks entry + + + + + + + +

Add a new entryEdit entry "~client_id.html~"

+ +
+ + + + + + + + + +
Title:
Url:
Description:
+
+ + + +

Thank you for taking the time to fill out this form.

+ + + + + diff --git a/tasks.php b/tasks.php new file mode 100644 index 0000000..0443889 --- /dev/null +++ b/tasks.php @@ -0,0 +1,127 @@ +"; + } + } + $subject = 'tasks form submitted'; + $message = tem_run('tasks.email.txt'); + $cc = ''; + $bcc = ''; + if(email($from, $to, $subject, $message, $reply_to, $cc, $bcc)) { + message('Due to an internal error, your message could not be sent. Please try again later.'); + $error = true; + } + } + if($error !== true) { + tem_show('thankyou'); + return; + } + } + # otherwise, we display the form again. tasks_get_fields() has + # already put the posted values back into the template engine, so they will + # show up in the form fields. You should add some message asking people to + # fix their entry in whatever way you require. + } elseif($edit_id) { + # we've recieved an edit id, but no data. So we grab the values to be edited from the database + list($client_id, $ord, $title, $url, $description, $state, $paid) = db_get_row('tasks', TASKS_DB_FIELDS, 'where id=%i', $edit_id); + tasks_tem_sets($client_id, $ord, $title, $url, $description, $state, $paid); + } else { + # form not submitted, you can set default values like so: + #tem_set('client_id', 'Yes'); + } + + # this has to be later in the file because it requres that client_id be set already + if($edit_id) { + tem_show('edit_msg'); + } + + tem_show('form'); +} + +?> diff --git a/tasks.sql b/tasks.sql new file mode 100644 index 0000000..4306c57 --- /dev/null +++ b/tasks.sql @@ -0,0 +1,13 @@ +drop table if exists tasks; +create table tasks ( + id int unique auto_increment, + client_id int not null default 0, + finished_at varchar(20) not null default "", + price varchar(20) not null default "", + ord int not null default 0, + title varchar(200) not null default "", + url varchar(200) not null default "", + description text not null default "", + state int not null default 0, + paid int not null default 0 +); diff --git a/template.html b/template.html new file mode 100644 index 0000000..3cdc104 --- /dev/null +++ b/template.html @@ -0,0 +1,47 @@ + + + + + JasonWoof -- Website Services + + + + + + + + + +
+
+ +
+ +