/var/www/(Del)tsolpv.com/2013/webadmin/careerlist_status.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
include 'config.php';

// Check if the user is logged in

if ((!isSet($_SESSION['loginname'])) || ($loggin <> '1'))
{
header("Location: login.php");
exit;
}
require(
"configure.php"); 

$carlistid         $_GET['carlistid'];
$carid         $_GET['carid'];
$nowdate         date("Y-m-d H:i:s");

$sql "update career_list set carliststatus=case when carliststatus = 1 then 0 else 1 end, modifyday='$nowdate', cmsloginid='"$_SESSION['cmsloginid']. "' ";
$sql .= " where carlistid="$carlistid ." ";
mysql_query($sql);
mysql_close($dbh);

header("Location: careerlist_index.php?carid=$carid&msg=更新成功");
?>