% # host-form.adp -- an incldued file for host-edit.adp and host-add.adp which # shares the form between those two pages. # # required arguments - the text for the "submit button" and the action # for the form if { [ns_adp_argc] != 3 } { ns_log error "wrong number of arguments passed to host-form.adp. The text for the submit button should be included, as well as the form action to send the data to." ns_adp_abort } ns_adp_bind_args submit_button_text form_action # make sure these variables exist so we don't generate lots of errors # accessing unknown variables below if { ![info exists hostname] } { set hostname "" } if { ![info exists ip_address] } { set ip_address "" } if { ![info exists os_version] } { set os_version "" } if { ![info exists description] } { set description "" } if { ![info exists model_and_serial] } { set model_and_serial "" } if { ![info exists street_address] } { set street_address "" } if { ![info exists remote_console_instructions] } { set remote_console_instructions "" } if { ![info exists service_phone_number] } { set service_phone_number "" } if { ![info exists service_contract] } { set service_contract "" } if { ![info exists facility_phone] } { set facility_phone "" } if { ![info exists facility_contact] } { set facility_contact "" } if { ![info exists backup_strategy] } { set backup_strategy "" } if { ![info exists rdbms_backup_strategy] } { set rdbms_backup_strategy "" } if { ![info exists further_docs_url] } { set further_docs_url "" } %> <%=[glassroom_form_action "$form_action" ]%> <% if { [info exists host_id] } { ns_puts "[export_form_vars host_id]\n" } %>
Main Hostname: | > |
IP Address: | > |
Operating System and Version: | > |
Description of physical configuration: | |
Model# and Serial #: | > |
Street Address: | |
How to get to the console port: | |
Service contract phone number: | > |
Service contract number and other details: | |
Hosting facility phone number: | > |
Hosting facility contact information: | > |
File system backup strategy: | |
RDBMS backup strategy: | |
Complete URL for other documentation: | > |
<%=[glassroom_submit_button "$submit_button_text" ]%>