function processForm() { if (isset($_POST['Submit'])) { ?> <h2>The form was submitted successfully.</h2> <br /> <h3> First Name: [<?php displayField('first_name'); ?> ]<br /> Last Name: [<?php displayField('last_name'); ?> ]<br /> Age: [<?php displayField('age'); ?> ]<br /> Email Address: [<?php displayField('email'); ?> ]<br /> Short Bio: [<?php displayField('short_bio'); ?> ]<br /> </h3> <br /> <?php } // close of [if (isset($_POST['submit'])) {] statement }
function displayFields() { global $data, $doit; okPrint(_('<i class="icon-ok"></i> Your server meets all the upgrade requirements.')); if ($doit == false) { warningPrint('<i class="icon-warning-sign"></i> Upgrade is in developer mode, set $doit = true.'); } ?> <form action="upgrade.php?stage=2" method="post" class="validate"> <h2>Configuration Information</h2> <p class="text-warning"> The following information <strong>should match</strong> the data found in the <strong>configuration file</strong> before the upgrade can start: </p> <div class="row"> <div class="span4"> <fieldset> <legend>Configuration File</legend> <?php displayField('Configuration File', 'config_file'); ?> </fieldset> </div> <div class="span4"> <fieldset> <legend>Database Information</legend> <?php displayField('Database Name', 'db_name'); displayField('Database User Name', 'db_username'); displayField('Database User Password', 'db_password'); displayField('Database Server', 'db_server'); displayField('Database Prefix', 'db_prefix'); ?> </fieldset> </div> <div class="span4"> <fieldset> <legend>Upgrade</legend> <p> <button type="submit" name="step1" value="step1" class="btn btn-primary">Continue Upgrade</button> </p> </fieldset> </div> </div> </form> <?php }
function displayFields() { okPrint(_('Your server meets all the upgrade requirements')); warningPrint(_('<strong>Please remeber to update your .htaccess file to the latest version else you will see a blank screen when trying to access your site.</strong>')); global $data; ?> <form action="upgrade.php?stage=2" method="post" class="validate"> <h1>Configuration Information</h1> <p>The following information should match the data found in the configuration file before the upgrade can start:</p> <div class="row"> <div class="column grid_4"> <fieldset> <legend>Configuration File</legend> <?php displayField('Configuration File', 'config_file'); ?> </fieldset> </div> <div class="column grid_4"> <fieldset> <legend>Database Information</legend> <?php displayField('Database Name', 'db_name'); displayField('Database User Name', 'db_username'); displayField('Database User Password', 'db_password'); displayField('Database Server', 'db_server'); displayField('Database Prefix', 'db_prefix'); ?> </fieldset> </div> <div class="column grid_4 last"> <fieldset> <legend>Upgrade</legend> <p> <button type="submit" name="step1" value="step1"><span class="save"></span><span>Continue Upgrade...</span></button> <button type="reset"><span class="reset"></span><span>Reset</span></button> </p> </fieldset> </div> </div> </form> <?php }
<a class="ecr_modal" title="<?php echo jgettext('Click to translate'); ?> " href="<?php echo $link; ?> " rel="{handler: 'iframe', size: {x: 900, y: 310}}" id="trfield_<?php echo $fieldID; ?> "> <?php $tmpStrings = isset($this->strings[$skey][$lang]) ? $this->strings[$skey][$lang] : array(); displayField($lang, $skey, $tmpStrings); ?> </a> <?php echo '</td>'; } //foreach $used = false; echo '<td>'; foreach ($this->definitions as $definition) { if ($skey == strtoupper($definition->definition)) { foreach ($this->languages as $lang) { if (in_array($lang, $this->hideLangs)) { continue; } if (isset($this->_strings[$skey][$lang]) && $this->_strings[$skey][$lang]) {
function displayFields() { global $data, $doit; okPrint(_('<i class="icon-ok"></i> Your server meets all the installation requirements.')); if ($doit == false) { warningPrint('<i class="icon-warning-sign"></i> Installer is in developer mode, set $doit = true.'); } ?> <form action="install.php?stage=2" method="post" class="validate"> <h2>Configuration Information</h2> <p class="text-warning"> The following information <strong>should match</strong> the data found in the <strong>configuration file</strong> before the installation can start: </p> <div class="row"> <div class="span4"> <fieldset> <legend>Configuration File</legend> <?php displayField('Configuration File', 'config_file'); ?> </fieldset> <fieldset> <legend>Database Information</legend> <?php displayField('Database Name', 'db_name'); displayField('Database User Name', 'db_username'); displayField('Database User Password', 'db_password'); displayField('Database Server', 'db_server'); displayField('Database Prefix', 'db_prefix'); ?> </fieldset> </div> <div class="span4"> <fieldset> <legend>Application Information</legend> <?php displayField('Application Name', 'application_name'); ?> </fieldset> <fieldset> <legend>Admin User Information</legend> <?php displayField('Admin User Name', 'admin_username'); displayField('Admin password', 'admin_password'); displayField('Admin Email', 'admin_email'); ?> </fieldset> </div> <div class="span4"> <fieldset> <legend>Action</legend> <p> <label for="sample-data" class="checkbox"> <input id="sample-data" type="checkbox" name="sample-data"> Install sample data </label><br> <button type="submit" name="step1" value="step1" class="btn btn-primary">Continue Install</button> </p> </fieldset> </div> </div> </form> <?php }
function writeMRecRows($lTableID, $lFID, &$utable, &$mRecs, $lEnrollRecID) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- global $genumDateFormat; $strFNPrefix = $utable->strFieldPrefix; $strFNKeyID = $strFNPrefix . '_lKeyID'; if ($utable->bCProg) { $lCProgID = $utable->cprog->lKeyID; } $bReadOnly = $utable->bReadOnly; foreach ($mRecs as $mrec) { echoT('<tr class="makeStripe">'); $lRecID = $mrec->{$strFNKeyID}; if ($utable->bCProg && !$utable->bEnrollment) { $strClone = '<br>' . strLinkClone_CPAttendance($lCProgID, $lRecID, 'Clone attendance record', true); } else { $strClone = ''; } if ($bReadOnly) { $strEditLink = ''; } else { $strEditLink = strLinkEdit_UFMultiRecEntry($utable->enumTType, $lTableID, $lFID, $lRecID, true, 'Edit record', '', $lEnrollRecID); } echoT(' <td class="enpRpt" style="text-align: center;">' . str_pad($lRecID, 5, '0', STR_PAD_LEFT) . ' ' . strLinkView_UFMFRecordViaRecID($lTableID, $lFID, $lRecID, 'View', true) . ' </td>'); echoT(' <td class="enpRpt" style="text-align: center;">' . $strEditLink . $strClone . ' </td>'); if (!$bReadOnly) { echoT(' <td class="enpRpt" style="text-align: center;">' . strLinkRem_UFMultiRecEntry($utable->enumTType, $lTableID, $lFID, $lRecID, 'Remove', true, true) . ' </td>'); } if ($utable->bCProg) { //----------------------------- // enrollment records //----------------------------- if ($utable->bEnrollment) { echoT(' <td class="enpRpt">' . date($genumDateFormat, $mrec->dteStart) . ' </td>'); if (is_null($mrec->dteMysqlEnd)) { $strEnd = '<i>Ongoing</i>'; } else { $strEnd = date($genumDateFormat, $mrec->dteEnd); } echoT(' <td class="enpRpt" style="text-align: center;">' . $strEnd . ' </td> <td class="enpRpt" style="text-align: center;">' . ($mrec->bCurrentlyEnrolled ? 'Yes' : 'No') . ' </td> <td class="enpRpt" style="text-align: center;">' . strLinkAdd_CProgAttendance(false, $lFID, $utable->cprog->lKeyID, $lRecID, 'Add attendance record', true) . ' </td> '); } else { //----------------------------- // attendance records //----------------------------- echoT(' <td class="enpRpt" style="text-align: center;">' . str_pad($mrec->lEnrollRecordID, 5, '0', STR_PAD_LEFT) . ' ' . strLinkView_UFMFRecordViaRecID($utable->cprog->lEnrollmentTableID, $lFID, $mrec->lEnrollRecordID, 'View enrollment record', true) . ' </td> <td class="enpRpt">' . date($genumDateFormat, $mrec->dteAttendance) . ' </td> <td class="enpRpt" style="text-align: right;">' . number_format($mrec->dDuration, 2) . ' </td> <td class="enpRpt" style="width: 220pt;">' . nl2br(htmlspecialchars($mrec->strCaseNotes)) . ' </td> '); $utable->dTotDuration += $mrec->dDuration; } } if ($utable->lNumFields > 0) { foreach ($utable->ufields as $ufield) { displayField($mrec, $ufield); } } echoT('</tr>'); } }
function displayFields() { okPrint(_('Your server meets all the installation requirements')); global $data; ?> <form action="install.php?stage=2" method="post" class="validate"> <h1>Configuration Information</h1> <p>The following information should match the data found in the configuration file before the installation can start:</p> <div class="row"> <div class="column grid_4"> <fieldset> <legend>Configuration File</legend> <?php displayField('Configuration File', 'config_file'); ?> </fieldset> <fieldset> <legend>Database Information</legend> <?php displayField('Database Name', 'db_name'); displayField('Database User Name', 'db_username'); displayField('Database User Password', 'db_password'); displayField('Database Server', 'db_server'); displayField('Database Prefix', 'db_prefix'); ?> </fieldset> </div> <div class="column grid_4"> <fieldset> <legend>Application Information</legend> <?php displayField('Application Name', 'application_name'); ?> </fieldset> <fieldset> <legend>Admin User Information</legend> <?php displayField('Admin User Name', 'admin_username'); displayField('Admin password', 'admin_password'); displayField('Admin Email', 'admin_email'); ?> </fieldset> </div> <div class="column grid_4 last"> <fieldset> <legend>Install</legend> <p> <button type="submit" name="step1" value="step1"><span class="save"></span><span>Continue Install...</span></button> <button type="reset"><span class="reset"></span><span>Reset</span></button> </p> </fieldset> </div> </div> </form> <?php }