Beispiel #1
0
</td></tr>
<tr>
    <td colspan=2>
    <b>Variable Weight Item Mapping</b> (UPC Prefix "2"):<br />
    Variable-weight items do not have identical barcodes because the
    price is encoded in the barcode. A translator is required to map
    these different barcodes back to one logical product.
    </td>
</tr>
<tr>
    <td>
    <b>Translator</b>:
    </td>
    <td>
    <?php 
$mods = AutoLoader::listModules('VariableWeightReWrite');
echo InstallUtilities::installSelectField('VariableWeightReWriter', $mods, 'ZeroedPriceReWrite');
?>
    </td>
</tr>
<tr><td colspan=2>
<hr />
</td></tr>
<tr><td>
<input type=submit name=scansubmit value="Save Changes" />
</td></tr></table>
</form>
</div> <!--    wrapper -->
</body>
</html>
Beispiel #2
0
<div class="alert"><?php 
InstallUtilities::checkWritable('../log/core_local.log', 'True');
?>
</div>
<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>
Beispiel #3
0
<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);
$e_mods = array('' => '[None]');
foreach ($mods as $m) {
    $e_mods[$m] = $m;
}
?>
    <td><?php 
echo InstallUtilities::installSelectField('emailReceiptHtml', $e_mods, '');
?>
</td>
</tr>
<tr><td colspan=2 class="submitBtn">
<input type=submit name=esubmit value="Save Changes" />
</td></tr>
</table>
</form>
</div> <!--    wrapper -->
</body>
</html>
Beispiel #4
0
<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>
    <?php 
$mods = AutoLoader::listModules('TenderReport');
sort($mods);
echo InstallUtilities::installSelectField('TenderReportMod', $mods, 'DefaultTenderReport');
?>
    </td>
</tr>
<tr><td>
<b>Tender Mapping</b>:<br />
<p>Map custom tenders to IS4Cs expected tenders Tender Rpt. column: Include the checked tenders 
    in the Tender Report (available via Mgrs. Menu [MG])</p></td><td>
<?php 
$settings = CoreLocal::get("TenderMap");
$db = Database::pDataConnect();
$tender_table = $db->table_definition('tenders');
/**
  Load tender map from database if
  the schema supports it
*/
Beispiel #5
0
}
?>
</td></tr>
<tr>
    <td>Server database host: </td>
    <td><?php 
echo InstallUtilities::installTextField('mServer', '127.0.0.1');
?>
</td>
</tr>
<tr>
    <td>Server database type:</td>
    <td>
    <?php 
$db_opts = \COREPOS\common\sql\Lib::getDrivers();
echo InstallUtilities::installSelectField('mDBMS', $db_opts, 'mysql');
?>
    </td>
</tr>
<tr>
    <td>Server user name:</td>
    <td><?php 
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'));
Beispiel #6
0
    <td><?php 
echo InstallUtilities::installSelectField('SecurityTR', $privLevels, 20);
?>
</td>
</tr>
<tr>
    <td><b>Refund Item</b>: </td>
    <td><?php 
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>
Beispiel #7
0
            foreach ($instance->plugin_settings as $field => $info) {
                echo '<tr><td colspan="2" style="margin-bottom: 0px; height:auto;">';
                $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'));