/**
  * 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>";
 }
<?php 
shn_form_hidden('Main Entity', 'main_entity', array('value' => $main_entity));
?>
<div class="panel" id="search_panel" style="padding:0px">

<?php 
if ($save_query) {
    ?>
<fieldset style="border:0px;margin:0px;" >
    <legend><?php 
    echo _t('SAVE_QUERY');
    ?>
</legend>
    <?php 
    echo "<div class='field'>";
    shn_form_text('Query Name', 'query_name', null);
    echo "</div>";
    echo "<div class='field'>";
    shn_form_textarea('Query Description', 'query_desc', null);
    echo "</div>";
    shn_form_submit('Save', 'query_save');
    shn_form_submit('Cancel', '');
    ?>
</fieldset>
<?php 
}
?>

<fieldset style="border:0px;margin:0px;" >
    <legend><?php 
echo _t('ACTIONS');
    ?>
</td>
                        <td><?php 
    shn_form_text(null, 'name', array('value' => $_GET['name'], "class" => "input-block-level"));
    ?>
</td>
                        <td><?php 
    shn_form_text(null, 'description', array('value' => $_GET['description'], "class" => "input-block-level"));
    ?>
</td>
                        <td><?php 
    shn_form_date(null, 'created_date', array('value' => $_GET['created_date'], "class" => "input-block-level"));
    ?>
</td>
                        <td><?php 
    shn_form_text(null, 'created_by', array('value' => $_GET['created_by'], "class" => "input-block-level"));
    ?>
</td>
                        <td><?php 
    shn_form_select(null, 'query_type', array('options' => $types, 'value' => $_GET['query_type'], "class" => "input-block-level"));
    ?>
</td>
                    </tr>
                    <tr>		
                        <td><input type='checkbox' onchange='$("input.delete").attr("checked",this.checked)' /></td>
                        <td><?php 
    echo _t('QUERY_ID');
    ?>
</td>
                        <td><?php 
    echo _t('NAME');
Exemple #4
0
<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>


</h2>
<div class="form-container">
<form class="form-horizontal"  action='<?php 
echo get_url('admin', 'manage_locale');
?>
' method='post'>
<fieldset><legend><?php 
echo _t('ADD_LANGUAGE');
?>
</legend>
<?php 
echo "<div class='field'>";
shn_form_text(_t('LANGUAGE'), 'new_locale', array('req' => true));
echo "</div>";
echo "<div class='field'>";
shn_form_text(_t('FOLDER_NAME'), 'locale_folder', array('req' => true));
echo "</div>";
?>
<button type="submit" class="btn btn-primary" name='add_locale'  ><i class="icon-plus icon-white"></i> <?php 
echo _t('ADD_NEW');
?>
</button>
</fieldset>
<fieldset><legend><?php 
echo _t('REMOVE_LANGUAGE');
?>
</legend>
<?php 
shn_form_select('Select language', 'select_locale', array('options' => $locales, 'value' => $current_locale));
?>
<button type="submit" class="btn btn-grey" name='remove_locale'  ><i class="icon-trash"></i> <?php