+
+Add New Criteria
+
+
+
+Interview criteria:
+
+
+
+ @enabled_criteria_types.criteria_name@ | (disable) |
+
+
+
+ none defined (add one) |
+
+
+
+
+
+
+ Disabled criteria:
+
+
+ @disabled_criteria_types.criteria_name@ | (enable) |
+
+
+
Index: openacs-4/packages/recruiting/www/admin/list-criteria.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/list-criteria.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/list-criteria.tcl 30 Jul 2002 21:33:38 -0000 1.1
@@ -0,0 +1,21 @@
+ad_page_contract {
+ recruiting admin interface
+ access admin function such as: criteria specification
+ and interviewee status types
+
+ @author chak (chak@openforce.net)
+ @creation-date 2002-07-30
+ @version $Id: list-criteria.tcl,v 1.1 2002/07/30 21:33:38 chak Exp $
+}
+
+set package_id [ad_conn package_id]
+set user_id [ad_verify_and_get_user_id]
+
+db_multirow enabled_criteria_types get_enabled_criteria_types "" {
+ set disable_url "disable-criteria?[export_vars criteria_id]"
+}
+
+db_multirow disabled_criteria_types get_disabled_criteria_types "" {
+ set enable_url "enable-criteria?[export_vars criteria_id]"
+}
+
Index: openacs-4/packages/recruiting/www/admin/list-criteria.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/list-criteria.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/list-criteria.xql 30 Jul 2002 21:33:38 -0000 1.1
@@ -0,0 +1,42 @@
+
+
+
+
+
+ select criteria_id,
+ criteria_name,
+ '' as disable_url
+ from recruiting_criteria
+ where enabled_p = 't'
+ order by criteria_name
+
+
+
+
+
+ select criteria_id,
+ criteria_name,
+ '' as enable_url
+ from recruiting_criteria
+ where enabled_p = 'f'
+ order by criteria_name
+
+
+
+
+
+ update recruiting_criteria
+ set enabled_p = 't'
+ where criteria_id = :criteria_id
+
+
+
+
+
+ update recruiting_criteria
+ set enabled_p = 'f'
+ where criteria_id = :criteria_id
+
+
+
+
Index: openacs-4/packages/recruiting/www/admin/list-status-types.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/list-status-types.adp,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/list-status-types.adp 30 Jul 2002 21:33:38 -0000 1.1
@@ -0,0 +1,32 @@
+
+
+@context_bar@
+
+Add new status type
+
+
+
+Candidate status types:
+
+
+
+
+ @enabled_status_types.short_desc@ | (disable) |
+
+
+
+ none defined (add one) |
+
+
+
+
+
+
+
+ Disabled status types:
+
+
+ @disabled_status_types.short_desc@ | (enable) |
+
+
+
Index: openacs-4/packages/recruiting/www/admin/list-status-types.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/list-status-types.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/list-status-types.tcl 30 Jul 2002 21:33:38 -0000 1.1
@@ -0,0 +1,24 @@
+ad_page_contract {
+ recruiting admin interface
+ access admin function such as: criteria specification
+ and interviewee status types
+
+ @author chak (chak@openforce.net)
+ @creation-date 2002-07-30
+ @version $Id: list-status-types.tcl,v 1.1 2002/07/30 21:33:38 chak Exp $
+}
+
+set package_id [ad_conn package_id]
+set user_id [ad_verify_and_get_user_id]
+
+db_multirow enabled_status_types get_enabled_status_types {} {
+ set disable_url "disable-status-type?[export_vars status_type_id]"
+}
+
+db_multirow disabled_status_types get_disabled_status_types {} {
+ set enable_url "enable-status-type?[export_vars status_type_id]"
+}
+
+set context_bar [list [list "../" "Recruiting"] [list "index" "Admin"] "Status Types"]
+
+ad_return_template
Index: openacs-4/packages/recruiting/www/admin/list-status-types.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/list-status-types.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/list-status-types.xql 30 Jul 2002 21:33:38 -0000 1.1
@@ -0,0 +1,26 @@
+
+
+
+
+
+ select status_type_id,
+ short_desc,
+ '' as disable_url
+ from recruiting_status_types
+ where enabled_p = 't'
+ order by short_desc
+
+
+
+
+
+ select status_type_id,
+ short_desc,
+ '' as enable_url
+ from recruiting_status_types
+ where enabled_p = 'f'
+ order by short_desc
+
+
+
+
Index: openacs-4/packages/recruiting/www/admin/new-criteria.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/new-criteria.adp,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/new-criteria.adp 30 Jul 2002 21:33:38 -0000 1.1
@@ -0,0 +1,3 @@
+
+
+
Index: openacs-4/packages/recruiting/www/admin/new-criteria.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/new-criteria.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/new-criteria.tcl 30 Jul 2002 21:33:38 -0000 1.1
@@ -0,0 +1,40 @@
+ad_page_contract {
+ recruiting admin interface
+ new criteria page
+
+ @author chak (chak@openforce.net)
+ @creation-date 2002-07-30
+ @version $Id: new-criteria.tcl,v 1.1 2002/07/30 21:33:38 chak Exp $
+}
+
+set package_id [ad_conn package_id]
+set user_id [ad_verify_and_get_user_id]
+
+form create new_criteria
+element create new_criteria criteria_name \
+ -label "Criteria Name:" \
+ -datatype text \
+ -widget text \
+ -html {size 60}
+
+element create new_criteria description \
+ -label "Description:" \
+ -datatype text \
+ -widget textarea \
+ -html {rows 5 cols 60 wrap soft}
+
+if {[form is_valid new_criteria]} {
+ form get_values new_criteria \
+ criteria_name description
+
+ recruiting_criteria::new \
+ -criteria_name $criteria_name \
+ -description $description \
+ -package_id $package_id \
+ -enabled_p "t"
+
+ ad_returnredirect list-criteria
+ ad_script_abort
+}
+
+ad_return_template
Index: openacs-4/packages/recruiting/www/admin/new-status-type.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/new-status-type.adp,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/new-status-type.adp 30 Jul 2002 21:33:38 -0000 1.1
@@ -0,0 +1,3 @@
+
+
+
Index: openacs-4/packages/recruiting/www/admin/new-status-type.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/new-status-type.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/new-status-type.tcl 30 Jul 2002 21:33:38 -0000 1.1
@@ -0,0 +1,40 @@
+ad_page_contract {
+ recruiting admin interface
+ new status type page
+
+ @author chak (chak@openforce.net)
+ @creation-date 2002-07-30
+ @version $Id: new-status-type.tcl,v 1.1 2002/07/30 21:33:38 chak Exp $
+}
+
+set package_id [ad_conn package_id]
+set user_id [ad_verify_and_get_user_id]
+
+form create new_status_type
+element create new_status_type short_desc \
+ -label "Status type:" \
+ -datatype text \
+ -widget text \
+ -html {size 60}
+
+element create new_status_type long_desc \
+ -label "Description:" \
+ -datatype text \
+ -widget textarea \
+ -html {rows 5 cols 60 wrap soft}
+
+if {[form is_valid new_status_type]} {
+ form get_values new_status_type \
+ short_desc long_desc
+
+ recruiting_status_type::new \
+ -short_desc $short_desc \
+ -long_desc $long_desc \
+ -package_id $package_id \
+ -enabled_p "t"
+
+ ad_returnredirect list-status-types
+ ad_script_abort
+}
+
+ad_return_template