<?php $criterion = $QUERY['q']; for ($i = 0; $i < $criterion->advanced_value_count; $i++) { $root_key = $criterion->get_qs_key() . '[' . $i . ']'; if ($i == 0) { print '<li><label for="' . $root_key . '[v]">' . $criterion->label . ':</label>'; } else { print '<li><label for="' . $root_key . '[oper]">'; print '<select name="' . $root_key . '[oper]" id="' . $root_key . '[oper]">'; print html_options($QUERY->get_list('boolean_op'), @$criterion->get_operator($i)); print '</select></label>'; } print '<input type="text" name="' . $root_key . '[v]" id="' . $root_key . '" value="' . htmlspecialchars(@$criterion->get_value($i), ENT_QUOTES) . '" />'; print '<label class="label_between" for="' . $root_key . '[index]">in</label>'; print '<select name="' . $root_key . '[index]" id="' . $root_key . '[index]">'; print html_options($QUERY->get_list($criterion->get_list()), @$criterion->get_index($i)); print '</select></li>'; } ?> </ol> </fieldset> <? /* Advanced fields */ ?> <fieldset class="searchset"> <?php echo html_query_criterion_input($QUERY, 'text', NULL, TRUE); ?> </fieldset> <? endif /*Basic/Advanced*/?> <fieldset class="controlset"> <ol> <li class="years to_the_left solo">
function link_tag($url, $text, $options = '') { return "<a href='{$url}' " . html_options($options) . ">{$text}</a>"; }
function html_query_criterion_date_field($query, $name, $index) { $criterion = $query->criteria_container->get_by_qs_key($name); $value_o = $criterion->get_value($name); $name = $name . '[' . $index . ']'; $value = $criterion->get_value($name); $range = $criterion->get_range(); $range[0] = split('-', $range[0]); $range[1] = split('-', $range[1]); switch ($index) { case QC_DATE_YEAR: $options = get_year_options($value, $range[0][0], $range[1][0]); break; case QC_DATE_MONTH: $options = get_month_options($value); break; case QC_DATE_DAY: $options = get_day_options($value); break; case QC_DATE_HOUR: $options = array(); for ($i = 0; $i <= 23; $i++) { $options[sprintf('%02d', $i)] = sprintf('%02d', $i); } $options = html_options($options, $value, '', TRUE); break; case QC_DATE_MINUTE: $options = array(); for ($i = 0; $i <= 59; $i++) { $options[sprintf('%02d', $i)] = sprintf('%02d', $i); } $options = html_options($options, $value, '', TRUE); break; } $result = '<select name="' . $name . '">'; $result .= $options; $result .= "</select>\n"; return $result; }
function admin_user() { global $user, $privileges, $tshirt_sizes, $privileges; $html = ''; if (!isset($_REQUEST['id'])) { redirect(users_link()); } $id = $_REQUEST['id']; if (!isset($_REQUEST['action'])) { $user_source = User($id); if ($user_source === false) { engelsystem_error('Unable to load user.'); } if ($user_source == null) { error(_('This user does not exist.')); redirect(users_link()); } $html .= "Hallo,<br />" . "hier kannst du den Eintrag ändern. Unter dem Punkt 'Gekommen' " . "wird der Engel als anwesend markiert, ein Ja bei Aktiv bedeutet, " . "dass der Engel aktiv war und damit ein Anspruch auf ein T-Shirt hat. " . "Wenn T-Shirt ein 'Ja' enthält, bedeutet dies, dass der Engel " . "bereits sein T-Shirt erhalten hat.<br /><br />\n"; $html .= "<form class=\"admin-user-form\" action=\"" . page_link_to("admin_user") . "&action=save&id={$id}\" method=\"post\">\n"; $html .= "<table border=\"0\">\n"; $html .= "<input type=\"hidden\" name=\"Type\" value=\"Normal\">\n"; $SQL = "SELECT * FROM `User` WHERE `UID`='" . sql_escape($id) . "'"; list($user_source) = sql_select($SQL); $html .= "<tr><td>\n"; $html .= "<table>\n"; $html .= " <tr><td>Nick</td><td>" . "<input class=\"form-control\" type=\"text\" size=\"40\" name=\"eNick\" value=\"" . $user_source['Nick'] . "\"></td></tr>\n"; $html .= " <tr><td>lastLogIn</td><td>" . date("Y-m-d H:i", $user_source['lastLogIn']) . "</td></tr>\n"; $html .= " <tr><td>Name</td><td>" . "<input class=\"form-control\" type=\"text\" size=\"40\" name=\"eName\" value=\"" . $user_source['Name'] . "\"></td></tr>\n"; $html .= " <tr><td>Vorname</td><td>" . "<input class=\"form-control\" type=\"text\" size=\"40\" name=\"eVorname\" value=\"" . $user_source['Vorname'] . "\"></td></tr>\n"; $html .= " <tr><td>Alter</td><td>" . "<input class=\"form-control\" type=\"text\" size=\"5\" name=\"eAlter\" value=\"" . $user_source['Alter'] . "\"></td></tr>\n"; $html .= " <tr><td>Telefon</td><td>" . "<input class=\"form-control\" type=\"text\" size=\"40\" name=\"eTelefon\" value=\"" . $user_source['Telefon'] . "\"></td></tr>\n"; $html .= " <tr><td>Handy</td><td>" . "<input class=\"form-control\" type=\"text\" size=\"40\" name=\"eHandy\" value=\"" . $user_source['Handy'] . "\"></td></tr>\n"; $html .= " <tr><td>DECT</td><td>" . "<input class=\"form-control\" type=\"text\" size=\"4\" name=\"eDECT\" value=\"" . $user_source['DECT'] . "\"></td></tr>\n"; $html .= " <tr><td>email</td><td>" . "<input class=\"form-control\" type=\"text\" size=\"40\" name=\"eemail\" value=\"" . $user_source['email'] . "\"></td></tr>\n"; $html .= " <tr><td>" . form_checkbox('email_shiftinfo', _("Please send me an email if my shifts change"), $user_source['email_shiftinfo']) . "</td></tr>\n"; $html .= " <tr><td>jabber</td><td>" . "<input class=\"form-control\" type=\"text\" size=\"40\" name=\"ejabber\" value=\"" . $user_source['jabber'] . "\"></td></tr>\n"; $html .= " <tr><td>Size</td><td>" . html_select_key('size', 'eSize', $tshirt_sizes, $user_source['Size']) . "</td></tr>\n"; $options = array('1' => "Yes", '0' => "No"); // Gekommen? $html .= " <tr><td>Gekommen</td><td>\n"; $html .= html_options('eGekommen', $options, $user_source['Gekommen']) . "</td></tr>\n"; // Aktiv? $html .= " <tr><td>Aktiv</td><td>\n"; $html .= html_options('eAktiv', $options, $user_source['Aktiv']) . "</td></tr>\n"; // Aktiv erzwingen if (in_array('admin_active', $privileges)) { $html .= " <tr><td>" . _("Force active") . "</td><td>\n"; $html .= html_options('force_active', $options, $user_source['force_active']) . "</td></tr>\n"; } // T-Shirt bekommen? $html .= " <tr><td>T-Shirt</td><td>\n"; $html .= html_options('eTshirt', $options, $user_source['Tshirt']) . "</td></tr>\n"; $html .= " <tr><td>Hometown</td><td>" . "<input class=\"form-control\" type=\"text\" size=\"40\" name=\"Hometown\" value=\"" . $user_source['Hometown'] . "\"></td></tr>\n"; $html .= "</table>\n</td><td valign=\"top\"></td></tr>"; $html .= "</td></tr>\n"; $html .= "</table>\n<br />\n"; $html .= "<input class=\"btn btn-primary\" type=\"submit\" value=\"Speichern\">\n"; $html .= "</form>"; $html .= "<hr />"; $html .= form_info('', _('Please visit the angeltypes page or the users profile to manage users angeltypes.')); $html .= "Hier kannst Du das Passwort dieses Engels neu setzen:<form class=\"admin-user-form\" action=\"" . page_link_to("admin_user") . "&action=change_pw&id={$id}\" method=\"post\">\n"; $html .= "<br /><table>\n"; $html .= " <tr><td width=\"30%\">Passwort </td><td>" . "<input class=\"form-control\" type=\"password\" size=\"40\" name=\"new_pw\" value=\"\"></td></tr>\n"; $html .= " <tr><td width=\"30%\">Wiederholung </td><td>" . "<input class=\"form-control\" type=\"password\" size=\"40\" name=\"new_pw2\" value=\"\"></td></tr>\n"; $html .= "</table>"; $html .= "<div class=\"form-group\"><input class=\"btn btn-primary\" type=\"submit\" value=\"Speichern\"></div>\n"; $html .= "</form>"; $html .= "<hr />"; $my_highest_group = sql_select("SELECT * FROM `UserGroups` WHERE `uid`='" . sql_escape($user['UID']) . "' ORDER BY `group_id` LIMIT 1"); if (count($my_highest_group) > 0) { $my_highest_group = $my_highest_group[0]['group_id']; } $his_highest_group = sql_select("SELECT * FROM `UserGroups` WHERE `uid`='" . sql_escape($id) . "' ORDER BY `group_id` LIMIT 1"); if (count($his_highest_group) > 0) { $his_highest_group = $his_highest_group[0]['group_id']; } if ($id != $user['UID'] && $my_highest_group <= $his_highest_group) { $html .= "Hier kannst Du die Benutzergruppen des Engels festlegen:<form class=\"admin-user-form\" action=\"" . page_link_to("admin_user") . "&action=save_groups&id=" . $id . "\" method=\"post\">\n"; $html .= '<table>'; $groups = sql_select("SELECT * FROM `Groups` LEFT OUTER JOIN `UserGroups` ON (`UserGroups`.`group_id` = `Groups`.`UID` AND `UserGroups`.`uid` = '" . sql_escape($id) . "') WHERE `Groups`.`UID` >= '" . sql_escape($my_highest_group) . "' ORDER BY `Groups`.`Name`"); foreach ($groups as $group) { $html .= '<tr><td><input type="checkbox" name="groups[]" value="' . $group['UID'] . '"' . ($group['group_id'] != "" ? ' checked="checked"' : '') . ' /></td><td>' . $group['Name'] . '</td></tr>'; } $html .= '</table>'; $html .= "<input class=\"btn btn-primary\" type=\"submit\" value=\"Speichern\">\n"; $html .= "</form>"; $html .= "<hr />"; } $html .= "<form class=\"admin-user-form\" action=\"" . page_link_to("admin_user") . "&action=delete&id=" . $id . "\" method=\"post\">\n"; $html .= "<tr><td><input class=\"btn btn-primary\" type=\"submit\" value=\"Löschen\"></td></tr>\n"; $html .= "</form>"; $html .= "<hr />"; } else { switch ($_REQUEST['action']) { case 'save_groups': if ($id != $user['UID']) { $my_highest_group = sql_select("SELECT * FROM `UserGroups` WHERE `uid`='" . sql_escape($user['UID']) . "' ORDER BY `group_id`"); $his_highest_group = sql_select("SELECT * FROM `UserGroups` WHERE `uid`='" . sql_escape($id) . "' ORDER BY `group_id`"); if (count($my_highest_group) > 0 && (count($his_highest_group) == 0 || $my_highest_group[0]['group_id'] <= $his_highest_group[0]['group_id'])) { $groups_source = sql_select("SELECT * FROM `Groups` LEFT OUTER JOIN `UserGroups` ON (`UserGroups`.`group_id` = `Groups`.`UID` AND `UserGroups`.`uid` = '" . sql_escape($id) . "') WHERE `Groups`.`UID` >= '" . sql_escape($my_highest_group[0]['group_id']) . "' ORDER BY `Groups`.`Name`"); $groups = array(); $grouplist = array(); foreach ($groups_source as $group) { $groups[$group['UID']] = $group; $grouplist[] = $group['UID']; } if (!is_array($_REQUEST['groups'])) { $_REQUEST['groups'] = array(); } sql_query("DELETE FROM `UserGroups` WHERE `uid`='" . sql_escape($id) . "'"); $user_groups_info = array(); foreach ($_REQUEST['groups'] as $group) { if (in_array($group, $grouplist)) { sql_query("INSERT INTO `UserGroups` SET `uid`='" . sql_escape($id) . "', `group_id`='" . sql_escape($group) . "'"); $user_groups_info[] = $groups[$group]['Name']; } } $user_source = User($id); engelsystem_log("Set groups of " . User_Nick_render($user_source) . " to: " . join(", ", $user_groups_info)); $html .= success("Benutzergruppen gespeichert.", true); } else { $html .= error("Du kannst keine Engel mit mehr Rechten bearbeiten.", true); } } else { $html .= error("Du kannst Deine eigenen Rechte nicht bearbeiten.", true); } break; case 'delete': if ($user['UID'] != $id) { $user_source = sql_select("SELECT `Nick`, `UID` FROM `User` WHERE `UID` = '" . sql_escape($id) . "' LIMIT 1"); sql_query("DELETE FROM `User` WHERE `UID`='" . sql_escape($id) . "' LIMIT 1"); sql_query("DELETE FROM `UserGroups` WHERE `uid`='" . sql_escape($id) . "'"); engelsystem_log("Deleted user " . User_Nick_render($user_source)); $html .= success("Benutzer gelöscht!", true); } else { $html .= error("Du kannst Dich nicht selber löschen!", true); } break; case 'save': $force_active = $user['force_active']; if (in_array('admin_active', $privileges)) { $force_active = $_REQUEST['force_active']; } $SQL = "UPDATE `User` SET \n `Nick` = '" . sql_escape($_POST["eNick"]) . "', \n `Name` = '" . sql_escape($_POST["eName"]) . "', \n `Vorname` = '" . sql_escape($_POST["eVorname"]) . "', \n `Telefon` = '" . sql_escape($_POST["eTelefon"]) . "', \n `Handy` = '" . sql_escape($_POST["eHandy"]) . "', \n `Alter` = '" . sql_escape($_POST["eAlter"]) . "', \n `DECT` = '" . sql_escape($_POST["eDECT"]) . "', \n `email` = '" . sql_escape($_POST["eemail"]) . "', \n `email_shiftinfo` = " . sql_bool(isset($_REQUEST['email_shiftinfo'])) . ", \n `jabber` = '" . sql_escape($_POST["ejabber"]) . "', \n `Size` = '" . sql_escape($_POST["eSize"]) . "', \n `Gekommen`= '" . sql_escape($_POST["eGekommen"]) . "', \n `Aktiv`= '" . sql_escape($_POST["eAktiv"]) . "', \n `force_active`= " . sql_escape($force_active) . ", \n `Tshirt` = '" . sql_escape($_POST["eTshirt"]) . "', \n `Hometown` = '" . sql_escape($_POST["Hometown"]) . "' \n WHERE `UID` = '" . sql_escape($id) . "' \n LIMIT 1"; sql_query($SQL); engelsystem_log("Updated user: "******"eNick"] . ", " . $_POST["eSize"] . ", available: " . $_POST["eGekommen"] . ", active: " . $_POST["eAktiv"] . ", tshirt: " . $_POST["eTshirt"]); $html .= success("Änderung wurde gespeichert...\n", true); break; case 'change_pw': if ($_REQUEST['new_pw'] != "" && $_REQUEST['new_pw'] == $_REQUEST['new_pw2']) { set_password($id, $_REQUEST['new_pw']); $user_source = User($id); engelsystem_log("Set new password for " . User_Nick_render($user_source)); $html .= success("Passwort neu gesetzt.", true); } else { $html .= error("Die Eingaben müssen übereinstimmen und dürfen nicht leer sein!", true); } break; } } return page_with_title(_('Edit user'), array($html)); }
<? endif ?> <? if (empty($USER->email)): ?> To use Auto-Alerts please <a href="<?php echo $MODULE->url('prefs'); ?> ">set up your email address</a> <? else: ?> Select the day of the week on which you wish to receive Auto Alerts: <? print "<select name=\"day\" "; // add AJAX call if ($CONF['submit_forms_with_script']) print "onchange=\"update_search_day(this.options[this.selectedIndex].value,'" . $MODULE->url('saved') . "')\" "; print ">\n";?> <?php echo html_options(get_days_of_the_week_values(), @$USER->prefs['saved_search_day'], 'Never', TRUE); ?> </select> <br />Results will be mailed to <?php echo $USER->email; ?> . <? endif // email check ?> <a href="<?php echo $MODULE->url('help', '/saved'); ?> " onClick="return popup_help(this)"><?php echo $STRINGS['save_search_help']; ?> »</a> <? endif // auto alerts ?>
function getLink($text, $url = '', $options = '') { return "<a href='" . getURL($url) . "' " . html_options($options) . ">{$text}</a>"; }
function image($path, $options = '') { return "<img src='" . assetURL("images/{$path}") . "' " . html_options($options) . ">\n"; }
if ($tlsa['selector'] > 1 or $tlsa['selector'] < 0) { $tlsa['status'] = 'Unknown (selector type not supported yet)'; } else { $tlsa['status'] = 'Unknown (matchingtype type not supported yet)'; } } } } } } else { $tlsa = array('usage' => NULL, 'selector' => NULL, 'matchingtype' => NULL, 'hash' => NULL, 'usage_text' => NULL, 'selector_text' => NULL, 'matchingtype_text' => NULL); $tlsa['status'] = 'No record'; } $domain_html = htmlentities($_POST['domain']); $port_html = (int) $_POST['port']; $protocol_options = html_options(array('auto' => 'guess from port', '' => 'pure ssl', 'smtp' => 'smtp'), $_POST['protocol']); $subject_html = htmlentities($cert_meta['parsed']['subject']['CN']); $issuer_html = htmlentities($cert_meta['parsed']['issuer']['CN']); $hash_html = chunk_split($tlsa['hash'], 64); $sha256_html = chunk_split($cert_meta['sha256'], 64); $sha512_html = chunk_split($cert_meta['sha512'], 64); $expire_date = gmdate("Y-m-d H:i:s", $cert_meta['parsed']['validTo_time_t']); $created_date = gmdate("Y-m-d H:i:s", $cert_meta['parsed']['validFrom_time_t']); $pule_date = gmdate("Y-m-d H:i:s", strtotime($cert_meta['pulse'])); $export_html = htmlentities($cert_meta['content']); $pub_key_html = htmlentities($cert_meta['pub_key']); echo <<<HTML_BLOCK <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > \t<head> \t\t<title>TLSA info of {$domain_html}:{$port_html}</title>
function print_paging() { global $CONF, $QUERY; ?> <div class="results-paging"> <div class="results-messages"><?php echo $QUERY->info['results_message']; ?> | <?php echo $QUERY->info['page_message']; ?> </div> <div class="paging clearfix"> <? if ($QUERY->info['page_first_url']): ?><a href="<?php echo $QUERY->info['page_first_url']; ?> " class="first">« First</a><? else: ?><span class="first">« First</span><? endif ?> <div class="spacer clearfix"> <? if ($QUERY->info['page_prev_url']): ?><a href="<?php echo $QUERY->info['page_prev_url']; ?> " class="prev">‹ Prev</a><? else: ?><span class="prev">‹ Prev</span><? endif ?> <? if (!empty($QUERY->info['page_urls'])): ?> <? foreach ($QUERY->info['page_urls'] as $page_num=>$page_url) { if ($QUERY->page == $page_num) print("<span class='page-num-current'>".format_number($page_num)."</span>"); else print("<a href=\"$page_url\">".format_number($page_num)."</a>"); } ?> <?endif?> <? if ($QUERY->info['page_next_url']): ?><a href="<?php echo $QUERY->info['page_next_url']; ?> ">Next ›</a><? else: ?><span>Next ›</span><? endif ?> </div> <? if ($QUERY->info['page_last_url']): ?><a href="<?php echo $QUERY->info['page_last_url']; ?> " class="last">Last »</a><? else: ?><span class="last">Last »</span><? endif ?> </div> <div class="results-actions"> <? if (count(@$QUERY->get_list('sort')) > 1): ?> Sort results by <?php echo html_query_criterion_list($QUERY, 'sort', array('class' => 'resort', 'data-request_uri' => $_SERVER['REQUEST_URI'], 'data-url' => $QUERY->url(array('sort' => ''), 'page'), 'data-current' => @$QUERY['sort']->get_value()), FALSE); ?> <? endif ?> <? if ($QUERY->info['results_count'] <= $CONF['max_export']): ?> <select name="export" onchange="export_format(this.value)"><?php echo html_options($QUERY->get_list('export_formats'), '', 'Save results as'); ?> </select> <SCRIPT TYPE="text/javascript"> // reload the page with the selected export format specified function export_format(format) { url = location.href; <? if (substr_count($_SERVER['REQUEST_URI'], '?') == 1): ?> url += '&'; <? else: ?> url += '?'; <? endif ?> if (format != '') window.location = url + 'format=' + format; } </SCRIPT> <? endif ?> </div> </div> <? } // end function print_paging
<select name="rights[]" onchange="check_boxes('rights', 'dd_rights')"><?php echo html_options($QUERY->get_list('rights'), $items[$i], 'Blank'); ?> </select> <?} } if (!$post_data && count($items) < count($QUERY->get_list('rights'))) {?> <select name="rights[]" onchange="check_boxes('rights', 'dd_rights')"><?php echo html_options($QUERY->get_list('rights'), isset($items[$count]) ? $items[$count] : '', 'Blank'); ?> </select> <?}?> </dd> <dt>Root</dt><dd><select name="root"><?php echo html_options(array(0 => 'No', 1 => 'Yes'), isset($_POST['root']) ? $_POST['root'] : @$RECORD['root'], NULL, TRUE); ?> </select></dd> </fieldset> <fieldset class="submitset"> <? if ($IS_NEW) : ?> <dt></dt><dd><input type="submit" id="submit" value="Create" /></dd> <? else : ?> <dt></dt><dd><input type="submit" id="submit" value="Save" /> <input type="submit" name="delete" value="Delete" onClick="return confirm('Do you want to delete this record?');" /> <input type="submit" name="clear" value="Clear Saved Data" onClick="return confirm('This will remove all data fields (saved searches, preferences, etc.). Are you sure?');" /></dd> <? endif ?> </fieldset> </dl> <script type="text/javascript">
<legend>Login preferences</legend> <label for="timeout">Login expires after</label><select id="timeout" name="timeout"><?php echo html_options($CONF['user_timeout_options'], isset($USER->prefs['timeout']) ? $USER->prefs['timeout'] : $CONF['user_timeout'], NULL, TRUE); ?> </select> <p class="muted">If you are not active on the site within the time you specify here then your account will automatically be logged out for security</p> </fieldset> <? endif ?> <fieldset class="searchprefs"> <legend>Search preferences</legend> <label for="search_mode">Search mode</label><select id="search_mode" name="search_mode"><?php echo html_options(array('default' => 'Basic', 'advanced' => 'Advanced'), @$USER->prefs['search_mode']); ?> </select> <p class="muted">Your choice will affect the level of detail on the search form, choosing Basic will give you fewer fields to specify for a quicker search and Advanced will allow you to be more specific with your search queries</p> <label for="page_size">Results per page</label><select id="page_size" name="page_size"><?php echo html_options(array('10' => '10', '50' => '50', '100' => '100'), @$USER->prefs['page_size']); ?> </select> <p class="muted">Your choice here will determine how many results are shown per page on large result sets</p> </fieldset> <? if ($module_template != '') /* Load module-specific template */ require_once $module_template; ?> <fieldset class="submitset"><input type="submit" name="submit" id="submit" class="save-button" value="Save" /></fieldset> </form> </div> <? endif ?> <?php require_once $CONF['path_templates'] . 'inc-footer.php';
<? else: ?> <div><p>No viewed records</p></div> <? endif /* RECORDLIST */ ?> </div> <?if ($CONF['marked_records_size']):?> <h3 class="tab-title" id="marked-records">Marked Records</h3> <div class="recordlist" id="marked"> <? if ($MARKED_RECORDS->count() > 0): ?> <form method="POST" name="mark_records" action="<?php echo $MODULE->url('marked'); ?> "> <p style="margin-bottom:1em;text-align:right"><select name="export" onchange="export_format(this.value)"><?php echo html_options($QUERY->get_list('export_formats'), '', 'Save marked records as'); ?> </select></p> <SCRIPT TYPE="text/javascript"> // reload the page with the selected export format specified function export_format(format) { url = '<?php echo $MODULE->url('marked'); ?> '; url += '?'; if (format != '') window.location = url + 'format=' + format; } </SCRIPT>
<option value=''>{$lang['select_please']}</option> STD; foreach ($cities as $item => $region) { $selected = $region['region_id'] == $cfg['shop_city'] ? 'selected' : ''; $str .= <<<STD <option value="{$region['region_id']}" {$selected} >{$region['region_name']}</option> STD; } $str .= '</select>'; break; case 'lang': $options = $lang_list; $values = $var['value']; $optionHtml = html_options(['options' => $options, 'selected' => $values]); $str = <<<STD <select name="value[{$var['id']}]" class="form-control"> {$optionHtml} </select> STD; break; case 'invoice_type': $rateArr = unserialize($var['value']); $str = <<<STD <table> <tr> <th scope="col">{$lang['invoice_type']}</th> <th scope="col">{$lang['invoice_rate']}</th> </tr> <tr>
<li class="date to_the_left"> <label for="date">Date:</label> <?php echo html_query_criterion_date_field($QUERY, 'date', QC_DATE_MONTH); ?> <?php echo html_query_criterion_date_field($QUERY, 'date', QC_DATE_DAY); ?> <?php echo html_query_criterion_date_field($QUERY, 'date', QC_DATE_YEAR); ?> </li> <li class="date to_the_left"> <label for="time">Time:</label> <select name="time"><?php echo html_options($time_options, $time, '', TRUE); ?> </select> </li> <input type="hidden" name="style" value="<?php echo $QUERY['style']->get_value(); ?> "> </ol> </fieldset> </div> <div class="form_rightcol last"> <fieldset class="submitset"> <input type="submit" id="submit" value="View" /> <? if ($QUERY['style']->get_value() == 'list'): ?> <input type="submit" name="view_grid" value="Switch to Grid View" />