Пример #1
0
function dispPageDropDown($label, $ppage)
{
    $con = new DBconn();
    echo '<label>' . $label . '</label>';
    echo '<select name="ppage" id="ppage" onchange="return perpage(this.form);">';
    $pag_query = "select number,id from paging";
    $pag_sel = $con->recordselect($pag_query);
    while ($pag_row = mysql_fetch_array($pag_sel)) {
        echo '<option value="' . $pag_row['number'] . '" ' . ($ppage == $pag_row['number'] ? 'selected="selected"' : '') . '>' . $pag_row['number'] . '</option>';
    }
    echo '</select>';
}
Пример #2
0
/blog/" title="Blog" >Blog</a><br/> 
        </li>
-->
		<li>
		<?php 
require_once DIR_FS . 'includes/functions/dbconn.php';
require_once DIR_FS . 'includes/functions/functions.php';
$con = new DBconn();
$con->connect(SITE_DB_HOST, SITE_DB_NAME, SITE_DB_USER, SITE_DB_PASS);
if (!isset($links1)) {
    $links1 = '';
}
if (!isset($links2)) {
    $links2 = '';
}
$selectQuery = $con->recordselect("SELECT * from content");
if (mysql_num_rows($selectQuery) > 0) {
    while ($cms_arr = mysql_fetch_assoc($selectQuery)) {
        $column = $cms_arr['column'];
        if ($column == 1) {
            $href = SITE_URL . 'content/' . $cms_arr['id'] . '/' . Slug($cms_arr['title']) . '/';
            $links1 .= "<a title='" . ucfirst($cms_arr['title']) . "' href='" . $href . "'><span class='footerblack'>" . $cms_arr['title'] . "</span></a><br/>";
        } elseif ($column == 2) {
            $href = SITE_URL . 'content/' . $cms_arr['id'] . '/' . Slug($cms_arr['title']) . '/';
            $links2 .= "<a title='" . ucfirst($cms_arr['title']) . "' href='" . $href . "'><span class='footerblack'>" . $cms_arr['title'] . "</span></a><br/>";
        }
    }
}
?>
        </li>
        <li class="linkdiv hovereffect">
Пример #3
0
        <?php 
get_search_form();
?>
        </li>
        <li class="last">
          <ul>
            <li><a href="<?php 
echo SITE_URL;
?>
help/" title="Help">Help</a></li>
            <?php 
if ($_SESSION["userId"] != "" and $_SESSION["name"] != "") {
    ?>
                
			<?php 
    $sel_count_unrearinbox = mysql_fetch_assoc($con->recordselect("SELECT count(*) as inboxunread FROM usermessages WHERE receiverId='" . $_SESSION['userId'] . "' and  status=0"));
    ?>
                
                
                <li class="backhover"> 
                	<a href="#" id="clearCountInbox">
                    	<div class="inbox"></div>
                        <?php 
    if ($sel_count_unrearinbox['inboxunread'] > 0) {
        ?>
                            <div class="notification" id="count_inboxunread">
                                <?php 
        echo $sel_count_unrearinbox['inboxunread'];
        ?>
                            </div>
                        <?php