예제 #1
0
	<script type="text/javascript" src="/jquery/jquery.metadata.js"></script>
    <script type="text/javascript" src="/jquery/jquery.tablesorter.js"></script>

	<script type="text/javascript">
	$(document).ready(function() { 
    $("table") 
    .tablesorter({widthFixed: true, widgets: ['zebra']}) 
    .tablesorterPager({container: $("#pager")}); 
	});
    </script>
<?php 
//	<script type="text/javascript" src="/jquery/parser-network.js"></script>
include "config_min.php";
require_once "models/articles.php";
$shop_all_min = shop_all($dbcnx_min);
$shop_all_world_min = shop_all_world($dbcnx_min);
// НОВОЕ!!!!!!!!!!!!!!!!!!
if (isset($_COOKIE['id']) and isset($_COOKIE['hash'])) {
    $query = mysql_query("SELECT * FROM user WHERE user_id = '" . intval($_COOKIE['id']) . "'", $dbcnx);
    $userdata = mysql_fetch_array($query);
    if ($userdata['position'] == "ADM" or $userdata['position'] == "RED") {
        // 6
        if (isset($_POST['find_sub'])) {
            $find_mag = $_POST['find'];
            echo "<div class='title_term'>МАГАЗИНЫ МИНДАЛЬ | ВСЕГО [ " . $shop_all_world_min . " ]</div><br>";
            echo "<div class='find'><form name='find' method='POST' action='ip_mindal.php'>";
            echo "<input name='find' type='text' size='20' value='" . $find_mag_min . "'> <input type='submit' name='find_sub' value=' Поиск '> <input type='submit' name='exit' value=' Сброс '>";
            echo "</form></div><br>";
            echo "<div class='table2'>";
            //			echo "<form name='' action='' method='post' id='example_group2'>";
            echo "<table class='tablesorter' style='margin: auto;' cellspacing='1'>";
예제 #2
0
	<script type="text/javascript">
	$(document).ready(function() { 
    $("table") 
    .tablesorter({widthFixed: true, widgets: ['zebra']}) 
    .tablesorterPager({container: $("#pager")}); 
	});
    </script>
<?php 
//	<script type="text/javascript" src="/jquery/parser-network.js"></script>
include "config.php";
require_once "models/articles.php";
if (isset($_GET['obl'])) {
    $shop_obl = $_GET['obl'];
}
$shop_all = shop_all($dbcnx);
$shop_all_world = shop_all_world($dbcnx);
$shop_ws = shop_ws($dbcnx);
$shop_ws_kas = shop_ws_kas($dbcnx);
$shop_ves = shop_ves($dbcnx);
$internet = internet($dbcnx);
// НОВОЕ!!!!!!!!!!!!!!!!!!
if (isset($_COOKIE['id']) and isset($_COOKIE['hash'])) {
    $query = mysql_query("SELECT * FROM user WHERE user_id = '" . intval($_COOKIE['id']) . "'", $dbcnx);
    $userdata = mysql_fetch_array($query);
    if ($userdata['position'] == "ADM" or $userdata['position'] == "RED") {
        // 6
        if (isset($_POST['find_sub'])) {
            $find_mag = $_POST['find'];
            echo "<div class='title_term'>МАГАЗИНЫ ПЕЛИКАН | <a href='ip_pelican.php'>ВСЕГО [ " . $shop_all_world . " ]</a>  | <a href='?obl=TLT'>TLT</a> | <a href='?obl=SMR'>SMR</a> | <a href='?obl=KNL'>KNL</a> | <a href='?obl=SMR_OBL'>OBL</a></div><br>";
            echo "<div class='find'><form name='find' method='POST' action='ip_pelican.php'>";
            echo "<input name='find' type='text' size='20' value='" . $find_mag . "'> <input type='submit' name='find_sub' value=' Поиск '> <input type='submit' name='exit' value=' Сброс '>";