Exemplo n.º 1
0
session_start();
require "admin-class.php";
$adminOb = new adminclass();
$getCate = $adminOb->populateCate();
if (isset($_SESSION['user'])) {
    //do nothing
} else {
    $adminOb->redirect("index.php");
}
if (isset($_POST['submit'])) {
    for ($i = 0; $i < count($getCate); $i++) {
        $a = $getCate[$i]['cid'];
        $arr[$i]['result'] = $_POST[$a];
        $arr[$i]['cid'] = $getCate[$i]['cid'];
    }
    echo $adminOb->updateFeaturedCate($arr);
}
?>


<!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 rel="stylesheet" href="style.css" type="text/css"/>
<link rel="shortcut icon" href="../images/icon.ico"/>
<title>Orkut Papa-Home</title>

<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />