/** * Function to get database details for conf file */ public function writeConfInit() { echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"res/installer.css\" />"; echo "<script type=\"text/javascript\" src=\"res/js/jquery.min.js\"></script>"; echo "<script type=\"text/javascript\" src=\"res/js/installerValidateHelper.js\"></script>"; echo "<script type=\"text/javascript\" src=\"res/js/jquery.form-validator.min.js\"></script>"; shn_form_fopen("conf", "install", array('enctype' => 'enctype="multipart/form-data"', 'req_message' => true)); shn_form_fsopen(_t('Database details')); shn_form_text(_t('Database host'), 'db_host', " data-validation=\"required\" data-validation-error-msg=\"" . _t("Please enter the Database host") . "\" ", array('value' => 'localhost', 'help' => _t("Your database server's host."), 'req' => true)); shn_form_text(_t('Database port'), 'db_port', " data-validation=\"required\" data-validation-error-msg=\"" . _t("Please enter the Database port") . "\" ", array('value' => '3306', 'help' => _t("Your database server's port."), 'req' => true)); shn_form_radio(array(_t('Create New'), _t('Use Existing')), '', 'db_preference', null, null); shn_form_text(_t('Database name'), 'db_name', " data-validation=\"required\" data-validation-error-msg=\"" . _t("Please enter the Database name") . "\" ", array('help' => _t("The name of the database you'll be using for Vesuvius"), 'req' => true)); shn_form_text(_t('Database username'), 'db_user', " data-validation=\"required\" data-validation-error-msg=\"" . _t("Please enter Database username") . "\" ", array('help' => _t('Database username'), 'req' => true)); shn_form_password(_t('Database password'), 'db_pass', null, array('help' => _t('The password for the database user you have specified.'))); shn_form_textarea('', 'license', ' readonly style="font-size:11px;"', array('value' => $this->_getLicenseAgreementText(), 'cols' => '45', 'rows' => '8')); shn_form_checkbox(_t('I agree with the terms of the License Agreement'), 'license_agreement', " data-validation=\"required\" data-validation-error-msg=\"" . _t("You should agree to the terms") . "\" ", array('req' => true, 'value' => 1, 'disabled' => false)); shn_form_submit(_t('Submit Configuration')); shn_form_fsclose(); shn_form_fclose(); echo "<script> \$.validate(); </script>"; }
<b>_("Please enter at least one field below:")</b><br /><br /> <div class="form-container"> <form method="get" action="index.php"> <input type="hidden" name="mod" value="vm"> <input type="hidden" name="act" value="volunteer"> <input type="hidden" name="vm_action" value="process_search"> <?php shn_form_fsopen(_('Personal Information')); shn_form_text(_('Any ID Number:'), 'vol_id', 'size="30"'); shn_form_text(_('Name:'), 'vol_name', 'size="30"'); shn_form_fsclose(); shn_form_fsopen(_('Skills')); shn_form_radio(array('and_skills' => _('Require ALL skills below'), 'or_skills' => _('Require ANY skills below')), _('Skills Matching:'), 'skills_matching'); $skills->display('', 'Node.toggleChildren(0, 0, true);'); $resources->display('', 'Node.toggleChildren(0, 0, true);'); shn_form_fsclose(); shn_form_submit(_('Search')); ?> </form> </div>
?> </legend> <a class="btn" href="<?php echo get_url('analysis', 'search_form', null, array('main_entity' => $main_entity)); ?> "><i class="icon-chevron-left"></i> <?php echo _t('BACK'); ?> </a> <?php echo _t('CHANGE_VIEW__'); shn_form_select('', 'shuffle_results', array('value' => $search_entity, 'options' => $shuffle_options, 'br' => false)); shn_form_submit(_t('SUBMIT'), 'shuffle'); echo " "; shn_form_select('', 'actions', array('value' => $_POST['actions'], 'options' => $actions)); shn_form_submit(_t('SUBMIT'), 'action'); ?> </fieldset> <?php if (is_array($search_form) && count($search_form) != 0) { ?> <fieldset style="border:0px;margin:0px;" > <legend><?php echo _t('SEARCH_FORM'); ?> </legend> <?php if ($fields['person_addresses'] != null) { $fields['person_addresses'] = null; $fields = place_form_elements($search_form, $fields);
<h2><?php echo _t('IMPORT_EVENTS'); ?> </h2> <div class="form-container"> <form class="form-horizontal" action='<?php echo get_url('admin', 'import'); ?> ' method='post' enctype="multipart/form-data" > <fieldset> <?php shn_form_upload(_t('EVENT_STANDARD_FORMAT_XML'), 'xml', $extra_opts = null); shn_form_submit(_t('UPLOAD_FILE'), 'upload', $extra_opts = null); if (isset($errors)) { ?> <a class="btn" href=<?php get_url('admin', 'import', null, array('message' => 'error')); ?> id="<?php echo $index_term->file_name; ?> " style="float:right;background:#EEEAD4"><i class="icon-download-alt"></i> <?php echo "Download the error report"; ?> </a> <?php //shn_form_submit(_t('DOWNLOAD_ERROR_REPORT'), 'error' , $extra_opts = null); } ?> </fieldset> </form>