本文整理汇总了PHP中show_list函数的典型用法代码示例。如果您正苦于以下问题:PHP show_list函数的具体用法?PHP show_list怎么用?PHP show_list使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了show_list函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: name_directory_options
/**
* This is a little router for the
* name-directory plugin
*/
function name_directory_options()
{
if (!current_user_can('manage_options')) {
wp_die(__('You do not have sufficient permissions to access this page.', 'name-directory'));
}
global $wpdb;
global $table_directory;
$sub_page = $_GET['sub'];
switch ($sub_page) {
case 'manage-directory':
name_directory_names();
break;
case 'edit-directory':
name_directory_edit();
break;
case 'new-directory':
name_directory_edit('new');
break;
case 'import':
name_directory_import();
break;
default:
show_list();
break;
}
}
示例2: show_item
{
echo "<ul type = 'circle'>";
for ($i = 0; $i < count($news); $i++) {
echo "<li>";
echo '<a href="news.php?id=' . ($i + 1) . '">';
echo $news[$i];
echo '</a>';
echo "</li>";
}
echo "</ul>";
}
function show_item($news)
{
echo '<a href = "news.php">Вернуться к списку новостей</a>';
echo '<h3>' . $news[$_GET['id'] - 1] . '</h3>';
echo $news[$_GET['id'] - 1] . '<br>';
echo "Рады сообщить Вам, что наш консультационный центр переехал в новый, более просторный и современный офис по адресу - ул. Вице-Адмирала Жукова, 14 (центр города)Так как здание новое, оно есть не на всех картах и навигаторах.";
}
//Точка входа
//Создаем массив новостей
$news = array();
$news[0] = '01_Передает кодировку серверу, в которой он должен обрабатывать информацию';
$news[1] = '02_Имя окна, куда будет сервер возвращать результат';
$news[2] = '03_Разрешение автозаполнения формы';
//Был ли передан id новости в качестве параметра?
if (isset($_GET['id'])) {
show_item($news, $_GET['id']);
} else {
show_list($news);
}
mail('evgeniups@mail.ru', 'jhghwg', 'wsfwe uhuhrw');
示例3: show_list
</td>
</tr>
<tr>
<td>Assign to:</td>
<td><select name="assign_to" id="assign_to"></select></td>
</tr>
<tr>
<td>Approved? </td>
<td>
<!--<input name="approved" type="checkbox" id="approved" <?php
echo $checked;
?>
/>-->
<select>
<option>Approve</option>
<option>Review Later</option>
<option>Deny</option>
</select>
</td>
</tr>
</table>
<input type="submit" value="Submit" />
</div>
</form>
<?php
show_list('request', $id);
?>
</body>
</html>
<?php
}
示例4: unset
break;
case 3:
$output .= "\r\n <h1>\r\n <font class=\"error\">{$lang_banned['updated']}</font>\r\n </h1>";
break;
case 4:
$output .= "\r\n <h1>\r\n <font class=\"error\">{$lang_banned['acc_not_found']}</font>\r\n </h1>";
break;
default:
//no error
$output .= "\r\n <h1>{$lang_banned['banned_list']}</h1>";
}
unset($err);
$output .= "\r\n </div>";
$action = isset($_GET['action']) ? $_GET['action'] : NULL;
switch ($action) {
case "do_delete_entry":
do_delete_entry();
break;
case "add_entry":
add_entry();
break;
case "do_add_entry":
do_add_entry();
break;
default:
show_list();
}
unset($action);
unset($action_permission);
unset($lang_banned);
require_once "footer.php";
示例5: show_list
<select id="month" name="month">
<option id="month_0" value="January">January</option>
<option id="month_1" value="February">February</option>
<option id="month_2" value="March">March</option>
<option id="month_3" value="April">April</option>
<option id="month_4" value="May">May</option>
<option id="month_5" value="June">June</option>
<option id="month_6" value="July">July</option>
<option id="month_7" value="August">August</option>
<option id="month_8" value="September">September</option>
<option id="month_9" value="October">October</option>
<option id="month_10" value="November">November</option>
<option id="month_11" value="December">December</option>
</select>
<select id="day" name="day"></select></td></tr>
<tr><td>Job Description:</td>
<td>
<textarea id="description" name="description" rows="10" cols="40"></textarea>
</td>
</tr>
</table>
<input type="submit" value="Submit" />
</div>
</form>
<?php
show_list('request', 0, true, false);
?>
</body>
</html>
<?php
}
示例6: show_list
echo "</tr>\n";
}
function show_list($is_team, $appid, $is_total)
{
$x = $is_team ? "teams" : "participants";
page_head("Top {$x} by application");
$apps = BoincApp::enum("deprecated=0");
if (!$appid) {
$appid = $apps[0]->id;
}
start_table();
show_header($is_team, $apps, $appid, $is_total);
$x = $is_total ? "total" : "expavg";
if ($is_team) {
$items = BoincCreditTeam::enum("appid={$appid} order by {$x} desc");
} else {
$items = BoincCreditUser::enum("appid={$appid} order by {$x} desc");
}
$i = 0;
foreach ($items as $item) {
show_row($item, $apps, $is_team, $i);
$i++;
}
end_table();
page_tail();
}
$is_team = get_int('is_team', true);
$appid = get_int('appid', true);
$is_total = get_int('is_total', true);
show_list($is_team, $appid, $is_total);
示例7: split
if (isset($_SESSION['logtick']['cats']) && empty($catid)) {
$catid = $_SESSION['logtick']['cats'];
}
$cats = split(',', $catid);
while ($cat = $xoopsDB->fetchArray($res)) {
$cat['cname'] = htmlspecialchars($cat['cname']);
$cat['checked'] = in_array($cat['catid'], $cats);
$categ[] = $cat;
}
}
// input form
$xoopsTpl->assign('mycategories', lt_get_categories());
$xoopsTpl->assign('timespans', lt_split_options($xoopsModuleConfig['timespans']));
$xoopsTpl->assign('users', $users);
$xoopsTpl->assign('categories', $categ);
$xoopsTpl->assign('interval', $xoopsModuleConfig['interval']);
$modurl = XOOPS_URL . '/modules/' . basename(dirname(__FILE__));
$xoopsTpl->assign('logresult', show_list($uid, $catid));
$xoopsTpl->assign("xoops_js", $xoopsTpl->get_template_vars('xoops_js') . "\n//--></script><script type='text/javascript' src='{$modurl}/logtick.js'><!--");
$xoopsTpl->assign('now', $now);
include XOOPS_ROOT_PATH . '/footer.php';
function get_exists_ids($table, $idname)
{
global $xoopsDB;
$res = $xoopsDB->query("SELECT {$idname} FROM {$table} GROUP BY {$idname}");
$ids = array();
while (list($u) = $xoopsDB->fetchRow($res)) {
$ids[] = $u;
}
return count($ids) ? join(',', $ids) : 'NULL';
}
示例8: show_list
<option value="Other">Other</option>
</select>-->
<label>Department</label>
<select name="campaign">';
$s['source_campaign'] = $user->getCampaign();
include 'partials/options/_campaigns.php';
echo '
</select>
<input type="submit" value="New List">
</form>';
}
if ($_REQUEST['group']) {
show_list($_REQUEST['group']);
}
if ($_REQUEST['groups_KEY'] && $_REQUEST['delete']) {
delete_group($_REQUEST['groups_KEY']);
}
if ($_REQUEST['Group_Name']) {
$groups_KEY = save_new_group($_REQUEST);
echo $groups_KEY . ' created';
}
$campaign_manager_KEY = $_REQUEST['campaign_manager_KEY'];
if ($campaign_manager_KEY) {
$campaign_manager_KEY_sql = ' and campaign_manager_KEY = ' . $campaign_manager_KEY;
}
if ($_REQUEST['campaign']) {
$campaign_sql = ' and campaign = "' . $_REQUEST['campaign'] . '"';
}
示例9: show_teams_html
function show_teams_html($list, $params)
{
page_head(tra("Team search results"));
if (sizeof($list) == 0) {
echo tra("No teams were found matching your criteria. Try another search.") . "<p>" . tra("Or you can %1create a new team%2.", "<a href=team_create_form.php>", "</a>") . "</p>\n";
team_search_form($params);
} else {
echo tra("The following teams match one or more of your search criteria.\n To join a team, click its name to go to the team page,\n then click %1Join this team%2.", "<strong>", "</strong>") . "<p>\n ";
sort_list($list);
show_list($list);
echo "<h2>" . tra("Change your search") . "</h2>";
team_search_form($params);
}
page_tail();
}
示例10: show_vendor
function show_vendor($vendor, $x)
{
echo "<h2>{$vendor}</h2>\n";
if (!count($x->total)) {
echo tra("No GPU tasks reported");
return;
}
$have_win = count($x->win) > 0;
$have_mac = count($x->mac) > 0;
$have_linux = count($x->linux) > 0;
$n = 0;
if ($have_win) {
$n++;
}
if ($have_mac) {
$n++;
}
if ($have_linux) {
$n++;
}
$show_total = $n > 1;
start_table();
echo "<tr>";
if ($show_total) {
show_list($x->total, "Total");
}
show_list($x->win, "Windows");
show_list($x->linux, "Linux");
show_list($x->mac, "Mac");
echo "</tr></table>\n";
}
示例11: search
function search($params)
{
$list = array();
$tried = false;
if (strlen($params->keywords)) {
$kw = BoincDb::escape_string($params->keywords);
$name_lc = strtolower($kw);
$name_lc = escape_pattern($name_lc);
$list2 = get_teams("name='{$name_lc}'", $params->active);
merge_lists($list2, $list, 20);
$list2 = get_teams("name like '" . $name_lc . "%'", $params->active);
merge_lists($list2, $list, 5);
$list2 = get_teams("match(name) against ('{$kw}')", $params->active);
merge_lists($list2, $list, 5);
$list2 = get_teams("match(name, description) against ('{$kw}')", $params->active);
//echo "<br>keyword matches: ",sizeof($list2);
merge_lists($list2, $list, 3);
$tried = true;
}
if (strlen($params->country) && $params->country != 'None') {
$list2 = get_teams("country = '{$params->country}'", $params->active);
//echo "<br>country matches: ",sizeof($list2);
merge_lists($list2, $list, 1);
$tried = true;
}
if ($params->type and $params->type > 1) {
$list2 = get_teams("type={$params->type}", $params->active);
//echo "<br>type matches: ",sizeof($list2);
merge_lists($list2, $list, 2);
$tried = true;
}
if (!$tried) {
$list = get_teams("id>0", $params->active);
}
if (sizeof($list) == 0) {
echo 'No teams were found matching your criteria.
Try another search.
<p>Or you can <a href="team_create_form.php">create a new team</a>.</p>
<p>';
team_search_form($params);
} else {
echo "The following teams match one or more of your search criteria.\n\t\t\tTo join a team, click its name to go to the team page, then click <strong>Join this team</strong>.</p>\n\t\t\t<p>";
sort_list($list);
show_list($list);
echo "<h2>Change your search</h2>";
team_search_form($params);
}
}
示例12: get_total
<input type='submit' value='生成GIF' class="btn btn-info btn-xs">
</form>
</td>
<td>
<a href='help.html' target='_blank'>使用说明</a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td >
<?php
$total = get_total($key_word);
echo "<table class='main_frame_width'><tr><td>";
show_list($key_word, $pn, $total, 12, $page_size);
echo "</td><td > </td><td class='text-right'>";
echo "Total:{$total}";
echo "</td></tr></table>";
?>
</td>
</tr>
<tr><td> <?php
show_search_result($key_word, $total, $pn * $page_size, $page_size);
?>
</td></tr>
<tr >
<td align="right">
<table >
<tr >
<td ><a href="control.php">控制页面</a></td>
示例13: show_list
<option id="month_11" value="December">December</option>
</select>
<select id="day" name="day"></select>
</td>
</tr>
<tr>
<td>Assign to:</td>
<td><select name="assign_to" id="assign_to"></select></td>
</tr>
<tr>
<td>Approved? </td>
<td>
<input name="approved" type="checkbox" id="approved" <?php
echo $checked;
?>
/>
</td>
</tr>
</table>
<input type="button" value="Prev" id="prev" />
<input type="submit" value="Submit" />
<input type="button" value="Next" id="next" />
</div>
</form>
<?php
show_list('history', $id);
?>
</body>
</html>
<?php
}
示例14: show_list
<option id="month_9" value="October">October</option>
<option id="month_10" value="November">November</option>
<option id="month_11" value="December">December</option>
</select>
<select id="day" name="day"></select></td></tr>
<tr><td>Number of hours:</td><td><input name="hours" id="hours" type="text" value="<?php
echo $hours;
?>
"/></td></tr>
<tr><td>Materials used:</td><td><textarea name="materials" id="materials" rows="10" cols="40"><?php
echo $materials;
?>
</textarea></td></tr>
<tr><td>Cost of materials:</td><td><input name="cost" id="cost" type="text" value="<?php
echo $cost;
?>
" /></td></tr>
</table>
<input type="submit" value="Submit" />
</div>
</form>
<?php
show_list('assign', $aid);
?>
<?php
show_list('record', $id);
?>
</body>
</html>
<?php
}
示例15: show_list
<?php
require "settings.php";
$OUTPUT = show_list();
require "template.php";
function show_list()
{
db_connect();
$get_burs = "SELECT * FROM active_bursaries ORDER BY rec_name";
$run_burs = db_exec($get_burs) or errDie("Unable to get bursaries information.");
if (pg_numrows($run_burs) < 1) {
$listing .= "<tr class='" . bg_class() . "'><td colspan='8'>No bursaries found.</td></tr>";
} else {
$listing = "";
while ($barr = pg_fetch_array($run_burs)) {
$get_bur = "SELECT * FROM bursaries WHERE id = '{$barr['bursary']}' LIMIT 1";
$run_bur = db_exec($get_bur) or errDie("Unable to get bursary information.");
if (pg_numrows($run_bur) < 1) {
return "<li class='err'>Invalid Use Of Module. Invalid Bursary.</li>";
}
$burarr = pg_fetch_array($run_bur);
$showburs = $burarr['bursary_name'];
$listing .= "\n\t\t\t\t\t<tr class='" . bg_class() . "'>\n\t\t\t\t\t\t<td>{$barr['rec_name']}</td>\n\t\t\t\t\t\t<td>{$showburs}</td>\n\t\t\t\t\t\t<td>{$barr['rec_idnum']}</td>\n\t\t\t\t\t\t<td>{$barr['rec_telephone']}</td>\n\t\t\t\t\t\t<td>{$barr['from_date']}</td>\n\t\t\t\t\t\t<td>{$barr['to_date']}</td>\n\t\t\t\t\t\t<td>" . nl2br($barr['notes']) . "</td>\n\t\t\t\t\t\t<td><a href='bursary_give_rem.php?id={$barr['id']}'>Remove</a></td>\n\t\t\t\t\t</tr>\n\t\t\t\t";
}
}
$display = "\n\t\t\t<h2>Given Bursaries</h2>\n\t\t\t<table " . TMPL_tblDflts . ">\n\t\t\t\t<tr>\n\t\t\t\t\t<th>Name</th>\n\t\t\t\t\t<th>Bursary</th>\n\t\t\t\t\t<th>ID Number</th>\n\t\t\t\t\t<th>Telephone Number</th>\n\t\t\t\t\t<th>From Date</th>\n\t\t\t\t\t<th>To Date</th>\n\t\t\t\t\t<th>Notes</th>\n\t\t\t\t\t<th>Options</th>\n\t\t\t\t</tr>\n\t\t\t\t{$listing}\n\t\t\t</table><br>" . mkQuickLinks(ql("bursary_give.php", "Give Bursary"), ql("bursary_type_add.php", "Add Bursary"), ql("bursary_type_view.php", "View Bursaries"));
return $display;
}