Exemplo n.º 1
0
<?php

include "../include.php";
if ($posting) {
    if (isset($_POST['order'])) {
        $counter = 1;
        foreach ($_POST['order'] as $link_id) {
            db_query('UPDATE links SET precedence = ' . $counter . ' WHERE id = ' . $link_id);
            $counter++;
        }
        die(drawLinks());
        //for ajax to update links area in sidebar
    } else {
        db_enter("links", "text url precedence");
        url_change();
    }
} elseif (!empty($_GET['id']) && url_action('delete')) {
    db_query('DELETE FROM links WHERE id = ' . $_GET['id']);
    url_query_drop('action,id');
}
drawTop();
?>
<table cellspacing="1" class="left draggable links">
	<thead>
		<?php 
echo drawHeaderRow(false, 4, "new", "#bottom");
?>
		<tr>
			<th class="reorder"></th>
			<th>Link</th>
			<th>Address</th>
Exemplo n.º 2
0
function drawBottom()
{
    global $user, $_josh, $modules, $printing, $areas, $locale, $helpdeskOptions, $helpdeskStatus;
    if (!$printing) {
        ?>
			</div>
			<div id="right" class="col-md-4">
				<div id="tools">
					<form name="search" method="get" action="/staff/search.php" onSubmit="javascript:return doSearch(this);">
					<a class="right button" href="/index.php?logout=true">
						<i class="glyphicon glyphicon-log-out"></i> Log Out
					</a>
					Hello <b><a href="/staff/view.php?id=<?php 
        echo $user["id"];
        ?>
"><?php 
        echo $user["first_name"];
        ?>
 <?php 
        echo $user["last_name"];
        ?>
</b></a>.
		            <input type="text" class="form-control" name="q" placeholder="Search Staff">
					</form>
					
					<ul class="links">
						<?php 
        echo drawLinks();
        ?>
					</ul>
				</div>
				
				<div id="spotlight">
					<?php 
        echo drawSpotlight();
        ?>
				</div>
		<?php 
        foreach ($modules as $module) {
            if ($module["pallet"]) {
                ?>
			<table class="right" cellspacing="1">
				<tr>
					<td colspan="2" class="head <?php 
                echo str_replace("/", "", $module["url"]);
                ?>
">
						<div class="head-left"><a href="<?php 
                echo $module["url"];
                ?>
"><?php 
                echo $module["name"];
                ?>
</a></div>
					</td>
				</tr>
				<?php 
                include $_josh["root"] . $module["pallet"];
                ?>
			</table>
			<?php 
            }
        }
        ?>

			<table class="right" cellspacing="1">
				<tr>
					<td colspan="2" class="head docs">
						<div class="head-left"><a href="https://ccatalyst.sharepoint.com/HCFACCIT/Forms/AllItems.aspx" target="_blank">Documents</a></div>
					</td>
				</tr>
				<!--
				<tr>
					<td style="padding:0;">
						<a href="https://ccatalyst.sharepoint.com/HCFACCIT/Forms/AllItems.aspx" target="_blank" style="color: #333;font-size:15px;line-height: 1.3;background-color:#eee; text-align: center; padding: 40px 0; display: block">Click here</a>
					</td>
				</tr>
				-->
			</table>
						<!--<div id="footer">page rendered in <?php 
        echo format_time_exec();
        ?>
</div>-->
					</div>
				</div>
			</div>
			<script src="/assets/vendor/jquery/dist/jquery.min.js"></script>
			<script src="/assets/vendor/TableDnD/dist/jquery.tablednd.min.js"></script>
			<script src="/assets/vendor/tinymce/tinymce.jquery.min.js"></script>
			<script src="/assets/js/javascript.js"></script>
		</body>
	</html>
	<?php 
    }
    db_close();
}
Exemplo n.º 3
0
            for ($i = 0; $i < $end; $i++) {
                appendItem($i);
            }
            if ($num_edge_entries < $interval[0] && $ellipse_text) {
                echo "<span>" . $ellipse_text . "</span>";
            }
        }
        // Generate interval links
        for ($i = $interval[0]; $i < $interval[1]; $i++) {
            appendItem($i);
        }
        // Generate ending points
        if ($interval[1] < $np && $num_edge_entries > 0) {
            if ($num_edge_entries < $interval[1] && $ellipse_text) {
                echo "<span>" . $ellipse_text . "</span>";
            }
            $begin = max($np - $num_edge_entries, $interval[1]);
            for ($i = $begin; $i < $np; $i++) {
                appendItem($i);
            }
        }
        // Generate "Next"-Link
        if ($next_text && ($current_page < $np - 1 || $next_show_always)) {
            appendItem($current_page + 1, array("text" => $next_text, "classes" => "next"));
        }
    }
    drawLinks();
    ?>
</div>
<?php 
}