当前位置: 首页>>代码示例>>PHP>>正文


PHP makePageNav函数代码示例

本文整理汇总了PHP中makePageNav函数的典型用法代码示例。如果您正苦于以下问题:PHP makePageNav函数的具体用法?PHP makePageNav怎么用?PHP makePageNav使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了makePageNav函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: pdp_render_downs

    function pdp_render_downs(&$downs, $rowstart, $per_page, $count, $link)
    {
        global $locale;
        foreach ($downs as $data) {
            if ($data['is_new']) {
                $new = " <img src='icons/new.gif'" . " alt='" . $locale['pdp_new'] . "' />";
            } else {
                $new = "";
            }
            echo "<hr>\n<table border='0' width='100%'>\n<tr>\n\t<td width='1%'><img src='icons/project.gif' alt='' /></td>\n\t<td><b><a href='" . $data['href'] . "'>" . $data['name'] . "</a></b>{$new}<br />" . "<span class='small2'>" . ($data['user_id'] ? $locale['PDP214'] . " <a href='profile.php?id=" . $data['user_id'] . "'>" . $data['user_name'] . "</a> " : "") . showdate("shortdate", $data['mtime']) . "</span>" . "</td>\n\t<td align='right' style='white-space:nowrap;'>" . $locale['pdp_downloads'] . ": " . $data['downloads'] . "<br />" . $locale['PDP021'] . ": " . $data['comments'] . "</td>\n</tr>\n<tr>\n\t<td colspan='3'>" . $data['desc'] . "</td>\n</tr>\n</table>";
        }
        if ($count > $per_page) {
            echo '
<p>
<div style="text-align:center;">' . makePageNav($rowstart, $per_page, $count, 3, $link) . '
</div>';
        }
    }
开发者ID:petemadsen,项目名称:Professional-Download-System,代码行数:18,代码来源:theme_funcs.php

示例2: listbyaccount

 static function listbyaccount($AccountID, $pagenum = 1)
 {
     global $DB, $LANG;
     $page_posts = 25;
     $spos = ($pagenum - 1) * $page_posts;
     $result = $DB->query_adv("SELECT SQL_CALC_FOUND_ROWS * FROM `History` LEFT JOIN `Users` USING (`UserID`) WHERE `AccountID`={$AccountID} ORDER BY `HistoryID` DESC LIMIT {$spos},{$page_posts}");
     $FOUND_ROWS = $DB->row($DB->query_adv('SELECT FOUND_ROWS()'));
     $count = $FOUND_ROWS['FOUND_ROWS()'];
     $show = beginTable($LANG['History'] . ' ' . $count . ' записей');
     $show .= makeTH($LANG['Actions'], $LANG['Description'], $LANG['User'], 'Время', 'IP');
     while ($row = $DB->row($result)) {
         $show .= makeTD($row['action'], '<pre>' . $row['text'] . '</pre>', empty($row['username']) ? '---' : $row['username'], $row['time'], $row['ip']);
     }
     $show .= '<tr><td colspan="3" class="nob">';
     $show .= makePageNav($pagenum, $page_posts, $count, iSELF . '?object=account&amp;action=history&amp;AccountID=' . $AccountID . '&amp;');
     $show .= '</td></tr>';
     $show .= endTable();
     return $show;
 }
开发者ID:carriercomm,项目名称:Multicabinet,代码行数:19,代码来源:class.Logger.php

示例3: elseif

        echo "<p>\n<form action='include/do_did.php?did=" . $download->id . "' method='post'>\n<div align='center'>" . $locale['PDP210'] . ": <b>" . $locale['PDP205'][$data['vote_opt']] . "</b><br />\n\t<input type='submit' name='del_vote' class='button'" . " value='" . $locale['PDP209'] . "' />\n</div>\n</form>\n";
    }
} elseif (dbrows($res) == 0) {
    echo "<p>" . $locale['PDP208'];
}
closetable();
/****************************************************************************
 * COMMENTS
 */
echo '<a name="comments"></a>';
opentable($locale['PDP021']);
$cstart = isset($_GET['rowstart']) && isNum($_GET['rowstart']) ? $_GET['rowstart'] : 0;
$order = isset($_GET['order']) && $_GET['order'] == 'desc' ? 'desc' : 'asc';
$navi = '';
if ($download->data['count_comments'] > $pdp->settings['comments_per_page']) {
    $navi = makePageNav($cstart, $pdp->settings['comments_per_page'], $download->data['count_comments'], 3, FUSION_SELF . '?did=' . $download->id . '&amp;order=' . $order . '&amp;');
    // FIXME add #comments
}
$res = dbquery("SELECT comment_user_name, comment_smileys,\n\tcomment_text, user_id, comment_id, comment_timestamp\n\tFROM " . DB_PDP_COMMENTS . "\n\tWHERE download_id='" . $download->id . "'\n\tORDER BY comment_timestamp " . $order . "\n\tLIMIT " . $cstart . ", " . $pdp->settings['comments_per_page']);
$count = dbrows($res);
/*FIXME
if($order=='asc') {
	echo '<a href="'.FUSION_SELF.'?did='.$download->id.'&amp;order=desc#comments">'
		.$locale['pdp_latest_first'].'</a>';
} else {
	echo '<strong>'.$locale['pdp_latest_first'].'</strong>
		<a href="'.FUSION_SELF.'?did='.$download->id.'#comments">'
			.$locale['pdp_off'].'</a>';
}
*/
echo $navi;
开发者ID:petemadsen,项目名称:Professional-Download-System,代码行数:31,代码来源:did.php

示例4: renderNav

renderNav(false, $announcementCheck);
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
echo "<tr>";
if ($rows > $posts_per_page || ($can_post || $can_reply)) {
    echo "<td align='left' style='padding:0px 0px 4px 5px;white-space:nowrap;' width='1%'>\n";
    if (iMEMBER && ($can_post || $can_reply)) {
        if (!$fdata['thread_locked'] && $can_reply) {
            echo "<a href='post.php?action=reply&amp;forum_id=" . $fdata['forum_id'] . "&amp;thread_id=" . $_GET['thread_id'] . "'><img src='" . get_image("reply") . "' alt='" . $locale['565'] . "' style='border:0px' /></a>&nbsp;\n";
        }
        if ($can_post) {
            echo "<nobr><a href='post.php?action=newthread&amp;forum_id=" . $fdata['forum_id'] . "'><img src='" . get_image("newthread") . "' alt='" . $locale['566'] . "' style='border:0px' /></a>&nbsp;\n";
        }
        echo "</td><td>";
    }
    if ($rows > $posts_per_page) {
        echo "<nobr>" . makePageNav($_GET['rowstart'], $posts_per_page, $rows, 3, FUSION_SELF . "?thread_id=" . $_GET['thread_id'] . "&amp;") . "";
    }
    echo "</td>";
}
echo "<td style='text-align:right;'>";
renderTools();
echo "</td>\n</tr></table><br />";
if ($rows != 0) {
    if ($_GET['rowstart'] == 0 && $fdata['thread_poll'] == "1") {
        if (iMEMBER) {
            $presult = dbquery("SELECT tfp.*, tfv.forum_vote_user_id FROM " . DB_FORUM_POLLS . " tfp \n\t\t\t\tLEFT JOIN " . DB_FORUM_POLL_VOTERS . " tfv\n\t\t\t\tON tfp.thread_id=tfv.thread_id AND forum_vote_user_id='" . $userdata['user_id'] . "'\n\t\t\t\tWHERE tfp.thread_id='" . $_GET['thread_id'] . "'");
        } else {
            $presult = dbquery("SELECT tfp.* FROM " . DB_FORUM_POLLS . " tfp\n\t\t\t\tWHERE tfp.thread_id='" . $_GET['thread_id'] . "'");
        }
        if (dbrows($presult)) {
            $pdata = dbarray($presult);
开发者ID:simplyianm,项目名称:clububer,代码行数:31,代码来源:hybrid.php

示例5: opentable

opentable($locale['global_056']);
$result = dbquery("SELECT tn.thread_id FROM " . DB_THREAD_NOTIFY . " tn\n\tINNER JOIN " . DB_THREADS . " tt ON tn.thread_id = tt.thread_id\n\tINNER JOIN " . DB_FORUMS . " tf ON tt.forum_id = tf.forum_id\n\tWHERE tn.notify_user=" . $userdata['user_id'] . " AND " . groupaccess('forum_access') . " AND tt.thread_hidden='0'");
$rows = dbrows($result);
if ($rows) {
    $result = dbquery("\n\t\tSELECT tf.forum_access, tn.thread_id, tn.notify_datestamp, tn.notify_user,\n\t\ttt.thread_subject, tt.forum_id, tt.thread_lastpost, tt.thread_lastuser, tt.thread_postcount,\n\t\ttu.user_id AS user_id1, tu.user_name AS user_name1, tu.user_status AS user_status1, \n\t\ttu2.user_id AS user_id2, tu2.user_name AS user_name2, tu2.user_status AS user_status2\n\t\tFROM " . DB_THREAD_NOTIFY . " tn\n\t\tINNER JOIN " . DB_THREADS . " tt ON tn.thread_id = tt.thread_id\n\t\tINNER JOIN " . DB_FORUMS . " tf ON tt.forum_id = tf.forum_id\n\t\tLEFT JOIN " . DB_USERS . " tu ON tt.thread_author = tu.user_id\n\t\tLEFT JOIN " . DB_USERS . " tu2 ON tt.thread_lastuser = tu2.user_id\n\t\tINNER JOIN " . DB_POSTS . " tp ON tt.thread_id = tp.thread_id\n\t\tWHERE tn.notify_user=" . $userdata['user_id'] . " AND " . groupaccess('forum_access') . " AND tt.thread_hidden='0'\n\t\tGROUP BY tn.thread_id\n\t\tORDER BY tn.notify_datestamp DESC\n\t\tLIMIT " . $_GET['rowstart'] . ",10\n\t");
    echo "<table class='tbl-border' cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n";
    echo "<td class='tbl2'><strong>" . $locale['global_044'] . "</strong></td>\n";
    echo "<td class='tbl2' style='text-align:center;white-space:nowrap'><strong>" . $locale['global_050'] . "</strong></td>\n";
    echo "<td class='tbl2' style='text-align:center;white-space:nowrap'><strong>" . $locale['global_047'] . "</strong></td>\n";
    echo "<td class='tbl2' style='text-align:center;white-space:nowrap'><strong>" . $locale['global_046'] . "</strong></td>\n";
    echo "<td class='tbl2' style='text-align:center;white-space:nowrap'><strong>" . $locale['global_057'] . "</strong></td>\n";
    echo "</tr>\n";
    $i = 0;
    while ($data = dbarray($result)) {
        $row_color = $i % 2 == 0 ? "tbl1" : "tbl2";
        echo "<tr>\n<td class='" . $row_color . "'><a href='" . FORUM . "viewthread.php?thread_id=" . $data['thread_id'] . "'>" . $data['thread_subject'] . "</a></td>\n";
        echo "<td class='" . $row_color . "' style='text-align:center;white-space:nowrap'>" . profile_link($data['user_id1'], $data['user_name1'], $data['user_status1']) . "</td>\n";
        echo "<td class='" . $row_color . "' style='text-align:center;white-space:nowrap'>" . profile_link($data['user_id2'], $data['user_name2'], $data['user_status2']) . "<br />\n\t\t" . showdate("forumdate", $data['thread_lastpost']) . "</td>\n";
        echo "<td class='" . $row_color . "' style='text-align:center;white-space:nowrap'>" . ($data['thread_postcount'] - 1) . "</td>\n";
        echo "<td class='" . $row_color . "' style='text-align:center;white-space:nowrap'><a href='" . FUSION_SELF . "?delete=" . $data['thread_id'] . "' onclick=\"return confirm('" . $locale['global_060'] . "');\">" . $locale['global_058'] . "</a></td>\n";
        echo "</tr>\n";
        $i++;
    }
    echo "</table>\n";
    closetable();
    echo "<div align='center' style='margin-top:5px;'>" . makePageNav($_GET['rowstart'], 10, $rows, 3, FUSION_SELF . "?") . "</div>\n";
} else {
    echo "<div style='text-align:center;'>" . $locale['global_059'] . "</div>\n";
    closetable();
}
require_once THEMES . "templates/footer.php";
开发者ID:dioda,项目名称:phpfusion,代码行数:31,代码来源:my_tracked_threads.php

示例6: form_button

        }
        echo "<tr>\n<td colspan='2' class='tbl1'>\n";
        echo "<div class='btn-group'>\n";
        echo "<a class='btn btn-primary' href='#' onclick=\"javascript:setChecked('rem_users_form','rem_check_mark[]',1);return false;\">" . $locale['448'] . "</a>\n";
        echo "<a class='btn btn-primary' href='#' onclick=\"javascript:setChecked('rem_users_form','rem_check_mark[]',0);return false;\">" . $locale['449'] . "</a>\n";
        echo "</div>\n";
        echo "</td>\n</tr>\n<tr>\n<td align='center' colspan='3' class='tbl'>\n";
        echo form_button($locale['461'], 'remove_sel', 'remove_sel', $locale['461'], array('class' => 'btn-primary m-r-10'));
        echo form_button($locale['462'], 'remove_all', 'remove_all', $locale['462'], array('class' => 'btn-primary'));
        echo "</td>\n</tr>\n";
    } else {
        echo "<tr>\n<td align='center' colspan='2' class='tbl1'>" . $locale['463'] . "</td>\n</tr>\n";
    }
    echo "</table>\n</form>\n";
    if ($rows > 20) {
        echo "<div align='center' style='margin-top:5px;'>\n" . makePageNav($_GET['rowstart'], 20, $rows, 3, FUSION_SELF . $aidlink . "&amp;group_id=" . $_GET['group_id'] . "&amp;") . "\n</div>\n";
    }
    closetable();
    echo "<script type='text/javascript'>\n";
    echo "/* <![CDATA[ */\n";
    echo "function setChecked(frmName,chkName,val) {" . "\n";
    echo "dml=document.forms[frmName];" . "\n" . "len=dml.elements.length;" . "\n" . "for(i=0;i < len;i++) {" . "\n";
    echo "if(dml.elements[i].name == chkName) {" . "\n" . "dml.elements[i].checked = val;" . "\n";
    echo "}\n}\n}\n";
    echo "/* ]]>*/\n";
    echo "</script>\n";
}
echo "<script type='text/javascript'>\n";
echo "/* <![CDATA[ */\n";
echo "function DeleteGroup() {\n";
echo "return confirm('" . $locale['423'] . "');\n}\n";
开发者ID:WuChEn,项目名称:PHP-Fusion,代码行数:31,代码来源:user_groups.php

示例7: dbquery

echo "<table align='center' width='55%' cellspacing='0'>\n<td class='tbl2' width='30%'><b>" . $locale['VARC351'] . "</b></td>\n<td class='tbl2' align='right' width='10%'><b>" . $locale['VARC352'] . "</b></td>\n</tr>\n";
if (!isset($sortby) || !preg_match("/^[0-9A-Z]\$/", $sortby)) {
    $sortby = "all";
}
$orderby = $sortby == "all" ? "" : " WHERE name LIKE '{$sortby}%'";
$result = dbquery("SELECT * FROM " . DB_UBERPETS_PET_SPECIES . "" . $orderby . "");
$rows = dbrows($result);
if (!isset($rowstart) || !isNum($rowstart)) {
    $rowstart = 0;
}
if ($rows != 0) {
    $result = dbquery("SELECT * FROM " . DB_UBERPETS_PET_SPECIES . "" . $orderby . " ORDER BY name ASC, name LIMIT {$rowstart},25");
    echo "<br><img src='" . PETS . ($folder != '' ? $folder : "") . "/Normal.gif' name='folder_preview' alt=''>";
    while ($data = dbarray($result)) {
        echo "<table align='center' width='55%' cellspacing='0'>";
        echo "<tr><td class='small' width='30%'><img src='" . THEME . "images/bullet.gif' alt=''> <a href='admin.php?a_page=pet_species&step=edit&species_id=" . $data['sid'] . "'><b>" . $data['name'] . "</b></a></td>\n";
        echo "<td class='small' align='right' width='30%'><a href='admin.php?a_page=pet_species&step=delete&species_id=" . $data['sid'] . "'>Delete</a></td></tr>";
        echo "</table>\n";
    }
    echo "<div align='center' style='margin-top:5px;'>" . makePageNav($rowstart, 25, $rows, 3, "{$FUSION_SELF}?a_page=pet_species&sortby={$sortby}&") . "\n</div>\n";
} else {
    echo "<center><br>" . $locale['VARC354'] . " <b>{$sortby}<b><br></center>\n";
}
$search = array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
echo "<hr><table align='center' cellpadding='0' cellspacing='1' class='tbl-border'>\n<tr>\n";
echo "<td rowspan='2' class='tbl2'><a href='" . UBP_BASE . "admin/admin.php?a_page=pet_species&sortby=all'>" . $locale['VARC353'] . "</a></td>";
for ($i = 0; $i < 36 != ""; $i++) {
    echo "<td align='center' class='tbl1'><div class='small'><a href='" . UBP_BASE . "admin/admin.php?a_page=pet_species&sortby=" . $search[$i] . "'>" . $search[$i] . "</a></div></td>";
    echo $i == 17 ? "<td rowspan='2' class='tbl2'><a href='" . UBP_BASE . "admin/admin.php?a_page=pet_species&sortby=all'>" . $locale['VARC353'] . "</a></td>\n</tr>\n<tr>\n" : "\n";
}
echo "</table>\n";
开发者ID:simplyianm,项目名称:clububer,代码行数:31,代码来源:pet_species.php

示例8: opentable

opentable($locale['global_056']);
$result = dbquery("SELECT tn.thread_id FROM " . DB_FORUM_THREAD_NOTIFY . " tn\r\n\tINNER JOIN " . DB_FORUM_THREADS . " tt ON tn.thread_id = tt.thread_id\r\n\tINNER JOIN " . DB_FORUMS . " tf ON tt.forum_id = tf.forum_id\r\n\t" . (multilang_table("FO") ? "WHERE tf.forum_language='" . LANGUAGE . "' AND" : "WHERE") . " tn.notify_user=" . $userdata['user_id'] . " AND " . groupaccess('forum_access') . " AND tt.thread_hidden='0'");
$rows = dbrows($result);
if ($rows) {
    $result = dbquery("\r\n\t\tSELECT tf.forum_access, tn.thread_id, tn.notify_datestamp, tn.notify_user,\r\n\t\ttt.thread_subject, tt.forum_id, tt.thread_lastpost, tt.thread_lastuser, tt.thread_postcount,\r\n\t\ttu.user_id AS user_id1, tu.user_name AS user_name1, tu.user_status AS user_status1, \r\n\t\ttu2.user_id AS user_id2, tu2.user_name AS user_name2, tu2.user_status AS user_status2\r\n\t\tFROM " . DB_FORUM_THREAD_NOTIFY . " tn\r\n\t\tINNER JOIN " . DB_FORUM_THREADS . " tt ON tn.thread_id = tt.thread_id\r\n\t\tINNER JOIN " . DB_FORUMS . " tf ON tt.forum_id = tf.forum_id\r\n\t\tLEFT JOIN " . DB_USERS . " tu ON tt.thread_author = tu.user_id\r\n\t\tLEFT JOIN " . DB_USERS . " tu2 ON tt.thread_lastuser = tu2.user_id\r\n\t\tINNER JOIN " . DB_FORUM_POSTS . " tp ON tt.thread_id = tp.thread_id\r\n\t\t" . (multilang_table("FO") ? "WHERE tf.forum_language='" . LANGUAGE . "' AND" : "WHERE") . " tn.notify_user=" . $userdata['user_id'] . " AND " . groupaccess('forum_access') . " AND tt.thread_hidden='0'\r\n\t\tGROUP BY tn.thread_id\r\n\t\tORDER BY tn.notify_datestamp DESC\r\n\t\tLIMIT " . $_GET['rowstart'] . ",10\r\n\t");
    echo "<table class='tbl-border' cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n";
    echo "<td class='tbl2'><strong>" . $locale['global_044'] . "</strong></td>\n";
    echo "<td class='tbl2' style='text-align:center;white-space:nowrap'><strong>" . $locale['global_050'] . "</strong></td>\n";
    echo "<td class='tbl2' style='text-align:center;white-space:nowrap'><strong>" . $locale['global_047'] . "</strong></td>\n";
    echo "<td class='tbl2' style='text-align:center;white-space:nowrap'><strong>" . $locale['global_046'] . "</strong></td>\n";
    echo "<td class='tbl2' style='text-align:center;white-space:nowrap'><strong>" . $locale['global_057'] . "</strong></td>\n";
    echo "</tr>\n";
    $i = 0;
    while ($data = dbarray($result)) {
        $row_color = $i % 2 == 0 ? "tbl1" : "tbl2";
        echo "<tr>\n<td class='" . $row_color . "'><a href='" . FORUM . "viewthread.php?thread_id=" . $data['thread_id'] . "'>" . $data['thread_subject'] . "</a></td>\n";
        echo "<td class='" . $row_color . "' style='text-align:center;white-space:nowrap'>" . profile_link($data['user_id1'], $data['user_name1'], $data['user_status1']) . "</td>\n";
        echo "<td class='" . $row_color . "' style='text-align:center;white-space:nowrap'>" . profile_link($data['user_id2'], $data['user_name2'], $data['user_status2']) . "<br />\r\n\t\t" . showdate("forumdate", $data['thread_lastpost']) . "</td>\n";
        echo "<td class='" . $row_color . "' style='text-align:center;white-space:nowrap'>" . ($data['thread_postcount'] - 1) . "</td>\n";
        echo "<td class='" . $row_color . "' style='text-align:center;white-space:nowrap'><a href='" . INFUSIONS . "forum_threads_list_panel/my_tracked_threads.php?delete=" . $data['thread_id'] . "' onclick=\"return confirm('" . $locale['global_060'] . "');\">" . $locale['global_058'] . "</a></td>\n";
        echo "</tr>\n";
        $i++;
    }
    echo "</table>\n";
    closetable();
    echo "<div align='center' style='margin-top:5px;'>" . makePageNav($_GET['rowstart'], 10, $rows, 3, INFUSIONS . "forum_threads_list_panel/my_tracked_threads.php?") . "</div>\n";
} else {
    echo "<div style='text-align:center;'>" . $locale['global_059'] . "</div>\n";
    closetable();
}
require_once THEMES . "templates/footer.php";
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:31,代码来源:my_tracked_threads.php

示例9: ug_adminhelp

            $help = $locale['urg_a_config_183'];
        }
        if ($i % 2 == 0) {
            $row_color = "tbl1";
        } else {
            $row_color = "tbl2";
        }
        echo "<tr class='" . $row_color . "'>\n";
        echo "<td>" . $data['name'] . "</td>\n";
        echo "<td>" . $data['value'] . "</td>\n";
        echo "<td align='right' valign='top'>\n";
        //echo "<img src='".INFUSIONS."user_gold/images/help.png'  style='border: 0; cursor:help;' title='".$help."' alt='".$help."' />\n";
        ug_adminhelp($data['name'], $data['name'], '400', '100');
        echo "&nbsp;&nbsp;\n";
        echo "<a href='" . FUSION_SELF . $aidlink . "&amp;op=config&amp;pre=" . $_REQUEST['pre'] . "&amp;step=edit&amp;name=" . $data['name'] . "'>\n";
        echo "<img src='../images/edit.png' alt='" . $locale['urg_a_config_185'] . "' title='" . $locale['urg_a_config_185'] . "' style='border: 0;' /></a>\n";
        echo "</td>\n";
        echo "</tr>\n<tr>\n";
        echo "<td colspan='3'><hr /></td>\n";
        echo "</tr>\n";
        $i++;
    }
    echo "</table>\n";
    $total_rows = dbcount("(*)", DB_UG3_SETTINGS, $and);
    if ($total_rows > 20) {
        echo "<div align='center' style='margin-top:5px;'>\n" . makePageNav($rowstart, 20, $total_rows, 3, FUSION_SELF . $aidlink . "&amp;op=config&amp;pre=" . $_REQUEST['pre'] . "&amp;") . "\n</div>\n";
    }
} else {
    echo "<tr><td align='center'>" . $locale['urg_a_config_186'] . "</td></tr></table>\n";
}
closetable();
开发者ID:simplyianm,项目名称:clububer,代码行数:31,代码来源:configuration.php

示例10: makelist

                    makelist();
                    echo "</td>\n";
                    $counter++;
                    $k++;
                }
                echo "</tr>\n</table>\n";
                if ($rows > $kroaxsettings['kroax_set_thumbs_per_page']) {
                    echo "<div align='center' style='margin-top:5px;'>\n" . makePageNav($rowstart, $kroaxsettings['kroax_set_thumbs_per_page'], $rows, 3, FUSION_SELF . "?category=" . $category . "&") . "\n</div>\n";
                }
                //thumb view end
            } else {
                $result = dbquery("Select * from " . $db_prefix . "kroax WHERE " . groupaccess('kroax_access') . "  AND kroax_cat='{$category}' AND kroax_approval=''  ORDER by kroax_id DESC LIMIT {$rowstart}," . $kroaxsettings['kroax_set_pre'] . " ");
                while ($data = dbarray($result)) {
                    makelist();
                }
                echo "<div align='center' style='margin-top:5px;'>\n" . makePageNav($rowstart, $kroaxsettings['kroax_set_pre'], $rows, 3, FUSION_SELF . "?category=" . $category . "&") . "\n</div>\n";
            }
        }
    }
}
if ($kroaxsettings['kroax_set_thumb'] == '1') {
    if (isset($category) && isNum($category)) {
        $category = cleanurl_kroax($category);
    } else {
        //Album view start
        $result = dbquery("SELECT * FROM " . $db_prefix . "kroax_kategori WHERE " . groupaccess('access') . " AND status='1' AND parentid='0' ORDER BY title ASC");
        $rows = dbrows($result);
        $counter = 0;
        $r = 0;
        $k = 1;
        echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n";
开发者ID:simplyianm,项目名称:clububer,代码行数:31,代码来源:kroax.php

示例11: isset

}
if (!$rows) {
    ?>
	<tr>
		<td class="tbl1"><?php 
    echo isset($addon_cat_id) || isset($version) || isset($type) ? $locale['addondb424'] : $locale['addondb422'];
    ?>
</td>
	</tr>
<?php 
}
?>
</table>
<?php 
if ($rows > $settings_global['addons_per_page']) {
    echo "<div align='center' style='margin-top:5px;'>\n" . makePageNav($_GET['rowstart'], $settings_global['addons_per_page'], $rows, 3, $get_vars ? FUSION_SELF . "" . $get_vars . "&amp;" : "") . "\n</div>\n";
}
closetable();
opentable($locale['addondb500']);
$total_addon = dbcount("(addon_id)", DB_ADDONS, "addon_status = '0'");
$total_infus = dbcount("(addon_id)", DB_ADDONS, "addon_status = '0' && addon_type = '1'");
$total_panel = dbcount("(addon_id)", DB_ADDONS, "addon_status = '0' && addon_type = '3'");
$total_theme = dbcount("(addon_id)", DB_ADDONS, "addon_status = '0' && addon_type = '2'");
$total_other = dbcount("(addon_id)", DB_ADDONS, "addon_status = '0' && addon_type = '4'");
$total_trans = dbcount("(trans_id)", DB_ADDON_TRANS, "trans_active = '0'");
$total = dbarray(dbquery("SELECT SUM(addon_download_count) download_count, COUNT(addon_id) FROM " . DB_ADDONS . " WHERE addon_status = '0'"));
$total_count = $total['download_count'];
echo "<table class='tbl-border' align='center' width='100%'><tr>\n\r\n        <th class='forum-caption' width='20%'><b>" . $locale['addondb501'] . "</b></th>\r\n        <th class='forum-caption' width='20%'>" . $locale['addondb502'] . "</th>\r\n        <th class='forum-caption' width='20%'>" . $locale['addondb503'] . "</th>\r\n        <th class='forum-caption' width='20%'>" . $locale['addondb504'] . "</th>\r\n        <th class='forum-caption' width='20%'>" . $locale['addondb505'] . "</th>\n";
echo "<tr></tr>\n\r\n        <td class='tbl2' align='center'>" . $total_addon . "</td>\r\n        <td class='tbl2' align='center'>" . $total_infus . "</td>\r\n        <td class='tbl2' align='center'>" . $total_panel . "</td>\r\n        <td class='tbl2' align='center'>" . $total_theme . "</td>\r\n        <td class='tbl2' align='center'>" . $total_other . "</td>\n\r\n        </tr>\n<table>\n";
echo "<table class='tbl-border' align='center' width='100%'><tr>\n";
if (iMEMBER) {
开发者ID:xXxthebeastxXx,项目名称:addondb,代码行数:31,代码来源:index.php

示例12: while

    $r = 0;
    $k = 1;
    echo "<table cellpadding='0' cellspacing='0' width='100%' style='margin: 0 auto;'>\n<tr>\n";
    while ($data = dbarray($result)) {
        if ($counter != 0 && $counter % $varcsettings['thumbs_per_row'] == 0) {
            echo "</tr>\n<tr>\n";
        }
        echo "<td align='center' valign='top' class='tbl'>\n";
        makelist();
        echo "</td>\n";
        $counter++;
        $k++;
    }
    echo "</tr>\n</table>\n";
    if ($rows > $varcsettings['thumbs_per_page']) {
        echo "<div align='center' style='margin-top:5px;'>\n" . makePageNav($rowstart, $varcsettings['thumbs_per_page'], $rows, 3, FUSION_SELF . "?category=" . $category . "&") . "\n</div>\n";
    }
} else {
    echo "<table width='100%' border='0' cellspacing='2' cellpadding='3' align='left'>";
    $result = dbquery("select * from " . $db_prefix . "varcade_cats WHERE " . groupaccess('access') . "");
    $numrows = dbrows($result);
    if ($numrows > 0) {
        $numrows % 2 ? $numrows += 1 : $numrows;
        $rows = $numrows / 2;
        //left main cats
        echo "<td width=50%>";
        $result1 = dbquery("select * from " . $db_prefix . "varcade_cats WHERE " . groupaccess('access') . " ORDER BY title LIMIT {$rows}");
        while ($data1 = dbarray($result1)) {
            $count1 = "" . dbcount("(lid)", "" . $db_prefix . "varcade_games", "cid='" . $data1['cid'] . "' AND status='2'") . "";
            echo '<table cellspacing="2" cellpadding="2" border="0"><tr><td rowspan="2">';
            echo "<a href='" . FUSION_SELF . "?category=" . $data1['cid'] . "'><img src='" . INFUSIONS . "varcade/categoryimg/" . $data1['image'] . "' alt='" . $data1['title'] . "' border='0'></a></td>";
开发者ID:simplyianm,项目名称:clububer,代码行数:31,代码来源:index.php

示例13: while

    $r = 0;
    $k = 1;
    echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
    while ($data = dbarray($result)) {
        if ($counter != 0 && $counter % $uberpets_settings['pound_pets_per_row'] == 0) {
            echo "</tr>\n<tr>\n";
        }
        echo "<td align='center' valign='top' class='tbl'>\n";
        makelist();
        echo "</td>\n";
        $counter++;
        $k++;
    }
    echo "</tr>\n</table>\n";
    if ($rows > $varcsettings['pound_pets_per_page']) {
        echo "<div align='center' style='margin-top:5px;'>\n" . makePageNav($rowstart, $uberpets_settings['pound_pets_per_page'], $rows, 3, BASEDIR . "game/" . url31("cat", $category, $category['title']) . "&") . "\n</div>\n";
    }
    closetable();
    //If the page is abandon
} elseif ($page == "abandon") {
    if (!$step || $step == 1) {
        opentable("Abandon");
        $petno = $pets_of_user;
        if ($petno == 1) {
            $tdwidth = "84%";
        } elseif ($petno == 2 || 4) {
            $tdwidth = "42%";
        } elseif ($petno == 3) {
            $tdwidth = "42%";
        }
        echo "<br /><center>Which pet will you abandon today?<br /><br />";
开发者ID:simplyianm,项目名称:clububer,代码行数:31,代码来源:pound.php

示例14: opentable

    $rowstart = 0;
}
opentable($locale['apdev036']);
$result = dbquery("SELECT a.addon_id, \r\n\t\t\t\t                                         a.addon_name, \r\n\t\t\t\t                                         a.addon_author_name, \r\n\t\t\t\t                                         a.addon_author_status,\r\n\t\t\t\t                                         a.addon_date,\r\n\t\t\t\t                                         a.addon_download_count,   \r\n\t\t\t\t                                         u.user_id, \r\n\t\t\t\t                                         u.user_name,\r\n\t\t\t\t                                         u.user_joined, \r\n\t\t\t\t                                         u.user_lastvisit,  \r\n\t\t\t\t                                         u.user_status \r\n\t\t\t\t                                         FROM " . DB_ADDONS . " a\r\n\t\t\t\t                                         LEFT JOIN " . DB_USERS . " u \r\n\t\t\t\t                                         ON a.addon_submitter_id=u.user_id \r\n\t\t\t\t                                         WHERE a.addon_status = '0' \r\n\t\t\t\t                                         AND a.addon_author_status = '2' \r\n\t\t\t\t                                         ORDER BY a.addon_date DESC\r\n\t\t\t\t                                         ");
echo "<table cellpadding='0' cellspacing='0' align='center' width='100%' class='tbl-border'>\n<tr>\n";
echo "<th colspan='4' class='forum-caption'>" . $locale['apdev030'] . "</th>\n";
echo "</tr>\n<tr>\n";
echo "<td class='tbl1' colspan='4'>&nbsp;</td>\n";
echo "</tr>\n<tr>\n";
if (dbrows($result) != 0) {
    echo "<td class='tbl1'>" . $locale['apdev003'] . "</td>\n";
    echo "<td class='tbl1'>" . $locale['apdev037'] . "</td>\n";
    echo "<td class='tbl1'>" . $locale['apdev038'] . "</td>\n";
    echo "<td class='tbl1' align='center'>" . $locale['apdev039'] . "</td>\n";
    echo "</tr>\n";
    while ($data = dbarray($result)) {
        echo "<tr>\n<td class='tbl1'><a href='" . ADDON . "view.php?addon_id=" . $data['addon_id'] . "'>" . $data['addon_name'] . "</a></td>";
        echo "<td class='tbl1'>" . profile_link($data['user_id'], $data['user_name'], $data['user_status']) . "</td>";
        echo "<td class='tbl1'>" . showdate("shortdate", $data['addon_date']) . "</td>";
        echo "<td class='tbl1' align='center'>" . $data['addon_download_count'] . "</td>";
        echo "</tr>\n";
    }
    echo "</table>\n";
} else {
    echo "<td class='tbl1' align='center' colspan='4'>" . $locale['apdev040'] . "</td>\n</tr>\n</table>\n";
}
closetable();
if ($counter > $settings_global['addons_per_page']) {
    echo "<div align='center' style='margin-top:5px;'>\n" . makePageNav($rowstart, $settings_global['addons_per_page'], $counter, 3, FUSION_SELF . $aidlink . "&amp;") . "</div>";
}
require_once THEMES . "templates/footer.php";
开发者ID:xXxthebeastxXx,项目名称:addondb,代码行数:31,代码来源:dev_applications.php

示例15: closetable

                echo "<a href='" . GIFT_SYSTEM . "give_gift.php?gift_id=" . $data['gift_id'] . "'>";
                echo "<img src='" . GIFT_IMAGES . $data['gift_image'] . "' alt='" . $data['gift_image'] . "' style='border:0px;' border='0' alt='' />\n";
                echo "</a>\n";
            }
            echo "<br />" . $locale['sfgift822'] . " " . $data['gift_price'] . " " . $locale['sfgift823'] . "<br />" . $locale['sfgift824'] . " " . ($data['gift_stock'] - $data['gift_bought']) . "\n";
            echo "</td>\n";
            $counter++;
        }
        echo "</tr>\n</table>\n";
    } else {
        echo "<center><br />\n" . $locale['sfgift802'] . "<br /><br />\n</center>\n";
    }
    echo "</td>\n</tr>\n</table>\n";
    closetable();
    $total_rows = dbcount("(*)", DB_GIFT);
    if ($total_rows > 10) {
        echo "<div align='center' style='margin-top:5px;'>\n" . makePageNav($_GET['rowstart'], 16, $total_rows, 3, FUSION_SELF . "?" . $nav_user . "orderby=" . $orderby . "&sortby=" . $sortby . "&") . "\n</div>\n";
    }
} else {
    if ($userdata['user_id'] == $_GET['user_id']) {
        opentable($locale['sfgift830']);
        echo $locale['sfgift831'];
        closetable();
    } else {
        opentable($locale['sfgift830']);
        echo $locale['sfgift832'];
        closetable();
    }
}
require_once GIFT_SYSTEM . "footer.php";
require_once THEMES . "templates/footer.php";
开发者ID:simplyianm,项目名称:clububer,代码行数:31,代码来源:brows_gifts.php


注:本文中的makePageNav函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。