示例#1
0
        Also known as AR or accounts receivable.</span>
    </td>
</tr>
<tr>
    <td><b>Donation Department</b></td>
    <td>
    <?php 
// try to find a sane default automatically
$default = 701;
$db = Database::pDataConnect();
$lookup = $db->query("SELECT dept_no FROM departments WHERE dept_name LIKE '%DONAT%'");
if ($lookup && $db->num_rows($lookup) > 0) {
    $row = $db->fetch_row($lookup);
    $default = $row['dept_no'];
}
echo InstallUtilities::installTextField('roundUpDept', $default);
?>
    <span class='noteTxt'>Set the department number for lines entered via the "round up" donation function.</span>
    </td>
</tr>
<tr>
    <td colspan="2">
    <hr />
    <p>Discount type modules control how sale discounts are calculated.</p>
    </td>
</tr>
<tr><td>
<b>Default Discounts</b>:</td><td>
<?php 
foreach (DiscountType::$MAP as $id => $name) {
    echo '[' . $id . '] => ' . $name . '<br />';
示例#2
0
文件: debug.php 项目: phpsmith/IS4C
<hr />
<form action=debug.php method=post>
<b>Log State Changes</b>: 
<?php 
echo InstallUtilities::installSelectField('Debug_CoreLocal', array(1 => 'Yes', 0 => 'No'), 0);
?>
<br />
See optional logs above.
<hr />
<b>Show Page Changes</b>: 
<?php 
echo InstallUtilities::installSelectField('Debug_Redirects', array(1 => 'Yes', 0 => 'No'), 0);
?>
<br />
This option changes HTTP redirects into manual, clickable links. A stack
trace is also included. There are some javascript-based URL changes that
this won't catch, but your browser surely has a fancy javascript console
available for those. If not, find a better browser.
<hr />
<b>Character Set</b>
<?php 
echo InstallUtilities::installTextField('CoreCharSet', 'utf-8');
?>
Change the character set used to display pages. Common values are "utf-8" and "iso-8859-1".
<hr />
<input type=submit value="Save Changes" />
</form>
</div> <!--    wrapper -->
</body>
</html>
示例#3
0
文件: receipt.php 项目: phpsmith/IS4C
    <td><?php 
echo InstallUtilities::installTextField('emailReceiptPort', '25');
?>
</td>
</tr>
<tr>
    <td><b>STMP Username</b>:</td>
    <td><?php 
echo InstallUtilities::installTextField('emailReceiptUser', '');
?>
</td>
</tr>
<tr>
    <td><b>STMP Password</b>:</td>
    <td><?php 
echo InstallUtilities::installTextField('emailReceiptPw', '', InstallUtilities::PARAM_SETTING, true, array('type' => 'password'));
?>
</td>
</tr>
<tr>
    <td><b>STMP Security</b>:</td>
    <td><?php 
echo InstallUtilities::installSelectField('emailReceiptSSL', array('none', 'SSL', 'TLS'), 'none');
?>
</td>
</tr>
<tr>
    <td><b>HTML Receipt Builder</b>:</td>
    <?php 
$mods = AutoLoader::listModules('DefaultHtmlEmail');
sort($mods);
示例#4
0
    <td><?php 
echo InstallUtilities::installSelectField('TenderHardMinMax', array(1 => 'Absolute Limit', 0 => 'Warning Only'), 0);
?>
</td>
</tr>
<tr>
    <td><b>Allow members to write checks over purchase amount</b>: </td>
    <td><?php 
echo InstallUtilities::installSelectField('cashOverLimit', array(1 => 'Yes', 0 => 'No'), 0);
?>
</td>
</tr>
<tr>
    <td><b>Check over limit</b>:</td>
    <td>$<?php 
echo InstallUtilities::installTextField('dollarOver', 0);
?>
</td>
</tr>
<tr>
    <td><b>EBT Total Default</b>: </td>
    <td>
    <?php 
$ebtOpts = array(1 => 'Cash Side', 0 => 'Food Side');
echo InstallUtilities::installselectField('fntlDefault', $ebtOpts, 1);
?>
    </td>
</tr>
<tr>
    <td><b>Tender Report</b>:</td>
    <td>
示例#5
0
文件: index.php 项目: phpsmith/IS4C
echo InstallUtilities::installTextField('mUser', 'root');
?>
</td>
</tr>
<tr>
    <td>Server password:</td>
    <td>
    <?php 
echo InstallUtilities::installTextField('mPass', '', InstallUtilities::EITHER_SETTING, true, array('type' => 'password'));
?>
    </td>
</tr>
<tr>
    <td>Server database name:</td>
    <td><?php 
echo InstallUtilities::installTextField('mDatabase', 'core_trans');
?>
</td>
</tr>
<tr>
    <td colspan=2>
<div class="noteTxt">
Testing server connection:
<?php 
$sql = InstallUtilities::dbTestConnect(CoreLocal::get('mServer'), CoreLocal::get('mDBMS'), CoreLocal::get('mDatabase'), CoreLocal::get('mUser'), CoreLocal::get('mPass'));
if ($sql === False) {
    echo "<span class='fail'>Failed</span>";
    echo '<div class="db_hints" style="margin-left:25px;width:350px;">';
    if (!function_exists('socket_create')) {
        echo '<i>Try enabling PHP\'s socket extension in php.ini for better diagnostics</i>';
    } elseif (@MiscLib::pingport(CoreLocal::get('mServer'), CoreLocal::get('DBMS'))) {
示例#6
0
echo InstallUtilities::installSelectField('SecurityRefund', $privLevels, 20);
?>
</td>
</tr>
<tr>
    <td><b>Line Item Discount</b>: </td>
    <td><?php 
echo InstallUtilities::installSelectField('SecurityLineItemDiscount', $privLevels, 20);
?>
</td>
</tr>
<tr>
    <td><b>Void Limit</b>:</td>
    <td>
    <?php 
echo InstallUtilities::installTextField('VoidLimit', 0);
?>
 
    (in dollars, per transaction. Zero for unlimited).
    </td>
</tr>
<tr>
    <td colspan=2>
    <hr />
    <input type=submit name=secsubmit value="Save Changes" />
    </td>
</tr>
</table>
</form>
</div> <!--    wrapper -->
</body>
示例#7
0
文件: plugins.php 项目: phpsmith/IS4C
                $default = isset($info['default']) ? $info['default'] : '';
                echo '<b>' . (isset($info['label']) ? $info['label'] : $field) . '</b>: ';
                if (isset($info['options']) && is_array($info['options'])) {
                    // plugin select fields are defined backwards. swap keys for values.
                    $invert = array();
                    foreach ($info['options'] as $label => $value) {
                        $invert[$value] = $label;
                    }
                    $attributes = array();
                    if (is_array($default)) {
                        $attributes['multiple'] = 'multiple';
                        $attributes['size'] = 5;
                    }
                    echo InstallUtilities::installSelectField($field, $invert, $default, InstallUtilities::EITHER_SETTING, true, $attributes);
                } else {
                    echo InstallUtilities::installTextField($field, $default);
                }
                if (isset($info['description'])) {
                    echo '<span class="noteTxt" style="width:200px;">' . $info['description'] . '</span>';
                }
                InstallUtilities::paramSave($field, CoreLocal::get($field));
                echo '</td></tr>';
            }
            $instance->settingChange();
        }
    }
}
echo '</table>';
InstallUtilities::paramSave('PluginList', CoreLocal::get('PluginList'));
?>
<hr />