Example #1
0
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="images/1.css" rel="stylesheet" type="text/css" media="screen" />
<style>
  body{
    background: #FDF5E6;
  }
</style>
</head>

<body>
<div class="wrap">
<?php 
include "manage-header.php";
FilterGetIn($_GET['id']);
if ($_GET['f'] == 1) {
    $handel_s = mysql_query("SELECT * FROM categoryinfo WHERE fid='{$_GET['id']}'");
    if (mysql_num_rows($handel_s)) {
        ?>
<script>
alert("Subcategories exist under the current classification!");
location.href="<?php 
        echo $_SERVER['HTTP_REFERER'];
        ?>
";
</script>
    
<?php 
        return;
    }
Example #2
0
    <th style="background-image: url(../images/tab_14.gif);"width="20%">Delete</th>
  </tr>
  <?php 
$perNum = 8;
if (empty($_GET['page'])) {
    $page = 1;
} elseif (preg_match('/\\d+/', $_GET['page'], $matches)) {
    $page = $matches[0];
} else {
    $page = 1;
}
$offset = ($page - 1) * $perNum;
$sql = "\n\t\t\tSELECT * \n\t\t\tFROM products ORDER BY id DESC\n\t\t\tLIMIT {$offset}, {$perNum}\n\t\t\t";
if ($_GET['s'] == 1) {
    $cid = $_GET['cid'];
    FilterGetIn($cid);
    $pname = $_GET['pname'];
    $sql = "\n\t\t\tSELECT * \n\t\t\tFROM products  WHERE 1=1  \n\t\t\t";
    if ($cid) {
        $sql .= " AND pcid='{$cid}' ";
    }
    if (trim($pname)) {
        $sql .= " AND title LIKE '%{$pname}%' OR content LIKE '%{$pname}%' ";
    }
    $sql .= " ORDER BY id DESC\n\t\t\tLIMIT {$offset}, {$perNum}";
}
$query = mysql_query($sql);
while ($row = mysql_fetch_array($query)) {
    ?>
	
  <tr style="text-align:center;">
Example #3
0
<?php

include_once 'connect.php';
include_once 'filter.php';
$orderid = $_GET['id'];
FilterGetIn($orderid);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="images/1.css" rel="stylesheet" type="text/css" media="screen" />
</head>

<body>
<div class="wrap">
<?php 
include "header.php";
?>

<div style="margin-top:30px;">
  <p style="text-align:center;font-size:25px;margin-bottom:10px;">Payment</p>
  <hr>
</div>

<form id="form1" name="form1" method="post" action="payment-action.php">
  <label for="payment"></label>
  <input type="hidden"  name="oid" value="<?php 
echo $orderid;
?>
" />