: </td> <td> <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $g_rb_max_picture_size; ?> "> <input type="file" name="import_file"> </td> </tr><tr> <td align=left><?php echo $LangUI->_('Format'); ?> : </td> <td> <?php echo DBUtils::arraySelect($arr, 'recipe_format', 'size="1"', @$recipe_format); ?> </td> </tr> <tr> <td colspan=2> <input type=submit name="import" value="<?php echo $LangUI->_('Import'); ?> " class=button> </td> </tr> </table> </form>
if (!isset($_REQUEST['total_keys'])) { ?> <form action="index.php?m=admin&a=translation" method="POST"> <input type="hidden" name="mode" value="select"> <?php $user_lang = isset($_POST['user_lang']) ? $_POST['user_lang'] : $g_rb_language; $lang = $g_browser_lang; // get the browser language if set if ($user_lang != "") { $lang = $user_lang; } //read from the form $langFile = "lang/{$lang}.php"; // were to read the file from echo DBUtils::arraySelect($g_sm_supported_languages, 'user_lang', 'size="1"', $lang); // Now we should load up the language file select by the user or by browser detection $fp = fopen("." . $pathSeparator . $langFile, "r"); require "." . $pathSeparator . $langFile; $buffer = fgets($fp, 4096); // chop off the php start part $read = true; $file_text = ""; while ($read && !feof($fp)) { $buffer = fgets($fp, 4096); if (preg_match("/langArray/", $buffer, $matches)) { $read = false; } else { $file_text .= $buffer; } }
<?php // The listing of the users if ($SMObj->checkAccessLevel($SMObj->getSuperUserLevel())) { ?> <form action="./index.php?m=admin&a=customize" method="POST"> <table cellspacing="1" cellpadding="2" border="0" class="data"> <tr> <td><?php echo $LangUI->_('Table to Customize'); ?> :</td> <td> <?php // Workaround to put the values in the dropdown $arr = array($db_table_ethnicity => $LangUI->_('Ethnicity'), $db_table_bases => $LangUI->_('Bases'), $db_table_prep_time => $LangUI->_('Preparation Time'), $db_table_courses => $LangUI->_('Courses'), $db_table_difficulty => $LangUI->_('Difficulty'), $db_table_locations => $LangUI->_('Store Sections'), $db_table_prices => $LangUI->_('Restaurant Prices'), $db_table_meals => $LangUI->_('Meals'), $db_table_sources => $LangUI->_('Sources')); echo DBUtils::arraySelect($arr, 'edit_table', 'size=1', $edit_table); ?> </td> <td> <input type="submit" value="<?php echo $LangUI->_('Edit Table'); ?> " class="button"> </td> </tr> </table> </form> <?php if ($edit_table != "") { $counter = 0;
echo $LangUI->_('Recipe'); ?> : </td> <td> <?php echo $rc->getMenu2('recipe_id', $recipe_id, false); ?> </td> </tr><tr> <td align=left><?php echo $LangUI->_('Format'); ?> : </td> <td> <?php echo DBUtils::arraySelect($arr2, 'recipe_format', 'size="1"', ''); ?> </td> </tr><tr> <td colspan=2> <input type="checkbox" name="export_all" value="yes"> <?php echo $LangUI->_('Export All Recipes'); ?> </td> </tr><tr> <td colspan=2> <input type=hidden name="mode" value="export"> <input type=submit name="export" value="<?php echo $LangUI->_('Export'); ?>
?> </a> </td> </tr> </table> <P> <!-- End of nav header, now on to printing the list --> <form name="listForm" action="index.php?m=lists&a=print" method="post"> <input type="hidden" name="mode" value="print_confirm"> <input type="hidden" name="print" value="yes"> <table cellspacing="1" cellpadding="3" border="0" width="95%" class="data"> <tr valign="top"> <td colspan="2"> <?php echo $LangUI->_('Use Store Layout') . ': '; echo DBUtils::arraySelect($stores, 'store_id', '', $store_id); ?> <input type="checkbox" name="show_sections" value="yes" <?php echo $show_sections ? 'checked' : ''; echo "> " . $LangUI->_('Show Section headings'); ?> <input type="button" value="<?php echo $LangUI->_('Refresh'); ?> " class="button" onclick="submitIt('refresh')"> </td> </tr> <tr> <th width="5%"><?php echo $LangUI->_('Remove'); ?>
<P> <form action="./index.php?m=admin&a=update_mealplan" method="POST"> <table cellspacing="1" cellpadding="2" border="0" class="data"> <tr> <td><?php echo $LangUI->_('Starting Weekday'); ?> :</td> <td> <?php $sql = "SELECT setting_value FROM {$db_table_settings} WHERE setting_name='MealPlanStartDay' AND setting_user = '******'"; $result = $DB_LINK->Execute($sql); DBUtils::checkResult($result, NULL, NULL, $sql); // Error check $startWeekDay = isset($result->fields['setting_value']) ? $result->fields['setting_value'] : 0; // Default to Sunday // Workaround to put the values in the dropdown $arr = array("0" => $LangUI->_('Sunday'), "1" => $LangUI->_('Monday'), "2" => $LangUI->_('Tuesday'), "3" => $LangUI->_('Wednesday'), "4" => $LangUI->_('Thursday'), "5" => $LangUI->_('Friday'), "6" => $LangUI->_('Saturday')); echo DBUtils::arraySelect($arr, 'startday', 'size=1', $startWeekDay); ?> </td> <td> <input type="submit" value="<?php echo $LangUI->_('Update'); ?> " class="button"> </td> </tr> </table> </form>
?> </td> </tr> <?php if ($SMObj->checkAccessLevel($SMObj->getSuperUserLevel())) { ?> <tr> <td align="right"> <?php echo $LangUI->_('Access Level'); ?> :</td> <td> <?php $arr = $SMObj->getRevAccessArray(); echo DBUtils::arraySelect($arr, 'sm_access_level', 'size="1"', $SMObj->getAccessLevelRounded($user_details['access_level'])); ?> </td> </tr> <?php } if (!$editMode) { ?> <tr> <td align="right">Init w/ Sample Ingredients</td> <td><input type="checkbox" name="create_ingredients" value="true" checked/></td> </tr> <?php } if ($editMode && !$SMObj->checkAccessLevel($SMObj->getSuperUserLevel())) { ?>