Esempio n. 1
0
function getcountmenbydept($dpid)
{
    $public_function = new public_function();
    $user_dept_sql = "select user_dept from blog_user where user_dept='{$dpid}'";
    $user_dept_result = $public_function->getresult($user_dept_sql);
    return $public_function->getnum($user_dept_result);
}
Esempio n. 2
0
function getmenurightnum($menuid, $usertype)
{
    $public_function = new public_function();
    $menu_right_sql = "select * from blog_menu_user where menuid='{$menuid}' and usertype='{$usertype}'";
    $menu_right_result = $public_function->getresult($menu_right_sql);
    return $public_function->getnum($menu_right_result);
}
Esempio n. 3
0
function getcountmennologin($user_type)
{
    $public_function = new public_function();
    $user_dept_sql = "select user_type,user_isedlogin from blog_user where user_type='{$user_type}' and user_isedlogin=0";
    $user_dept_result = $public_function->getresult($user_dept_sql);
    return $public_function->getnum($user_dept_result);
}
Esempio n. 4
0
function getonepic($userid, $albumid)
{
    $public_function = new public_function();
    $sql = "select photo_album,photo_path,photo_author from blog_photo where photo_author='{$userid}' and photo_album='{$albumid}' order by RAND() limit 1";
    $array = $public_function->getarray($public_function->getresult($sql));
    return $array['photo_path'];
}
Esempio n. 5
0
function getcountmen($user_type)
{
    $public_function = new public_function();
    $user_dept_sql = "select user_type from blog_user where user_type='{$user_type}'";
    $user_dept_result = $public_function->getresult($user_dept_sql);
    return $public_function->getnum($user_dept_result);
}
Esempio n. 6
0
function getusergroup($user_type)
{
    $public_function = new public_function();
    $u_type_sql = "select usertype,usertypename from blog_user_type where usertype='{$user_type}'";
    $u_array = $public_function->getarray($public_function->getresult($u_type_sql));
    return $u_array['usertypename'];
}
Esempio n. 7
0
function getparentdept($pid)
{
    $public_function = new public_function();
    $sql = "select dept_pid,dept_name from blog_dept where ids='{$pid}'";
    $result = $public_function->getresult($sql);
    $array = $public_function->getarray($result);
    return $array['dept_name'];
}
Esempio n. 8
0
function getmenuname($pid)
{
    $pmenusql = "select menu_id,menu_name from blog_menu where menu_id='{$pid}'";
    $public_function = new public_function();
    $pmenuresult = $public_function->getresult($pmenusql);
    $pmenuarray = $public_function->getarray($pmenuresult);
    $menu_name = $pmenuarray['menu_name'];
    return $menu_name;
}
Esempio n. 9
0
function MenuShow_Moduletype($moduleid, $isedshow)
{
    $public_function = new public_function();
    $sql = "update picture_module set module_isedmenu='{$isedshow}' where ids='{$moduleid}'";
    $result = $public_function->getresult($sql);
    if ($result > 0) {
        $info = "相册模块更新成功";
    } else {
        $info = "由于网络原因,操作失败,请稍后重试...";
    }
    return $info;
}
Esempio n. 10
0
function Hidden_Album($albumid, $isedyc)
{
    $public_function = new public_function();
    $update_album_sql = "update blog_album set album_isedshow='{$isedyc}' where ids='{$albumid}'";
    $update_album_result = $public_function->getresult($update_album_sql);
    if ($update_album_result > 0) {
        $info = "相册更新成功";
    } else {
        $info = "相册更新失败";
    }
    return $info;
}
Esempio n. 11
0
function del($pid)
{
    $public_function = new public_function();
    $sql = "select * from blog_menu where menu_pid='{$pid}'";
    $delsql = "delete from blog_menu where menu_id='{$pid}'";
    $result = $public_function->getresult($sql);
    $num = $public_function->getnum($result);
    for ($i = 0; $i < $num; $i++) {
        $array = $public_function->getarray($result);
        del($array['menu_id']);
    }
    $result1 = $public_function->getresult($delsql);
    echo "<script>location.href='../add_new_menu.php?'</script>";
}
Esempio n. 12
0
function setAlbumBG($albumid, $photosid, $iseds)
{
    $public_function = new public_function();
    $sql = "update blog_photo set photo_isedbg=1 where ids='{$photosid}'";
    $result = $public_function->getresult($sql);
    if ($result > 0) {
        $usql = "update blog_photo set photo_isedbg=0 where ids!='{$photosid}' and photo_album='{$albumid}'";
        $uresult = $public_function->getresult($usql);
        if ($uresult > 0) {
            $info = "±³¾°Í¼Æ¬ÉèÖóɹ¦";
        } else {
            $info = "±³¾°Í¼Æ¬ÉèÖÃʧ°Ü";
        }
    } else {
        $info = "±³¾°Í¼Æ¬ÉèÖÃʧ°Ü";
    }
    return $info;
}
Esempio n. 13
0
function update_iseduse($pid, $ise)
{
    $public_function = new public_function();
    $sql = "select * from blog_menu where menu_pid='{$pid}'";
    $updatesql = "update blog_menu set menu_isedshow='{$ise}' where menu_id='{$pid}'";
    $result = $public_function->getresult($sql);
    $num = $public_function->getnum($result);
    for ($i = 0; $i < $num; $i++) {
        $array = $public_function->getarray($result);
        update_iseduse($array['menu_id'], $ise);
    }
    $result1 = $public_function->getresult($updatesql);
    if ($result1 > 0) {
        echo "<script>location.href='../update_menu.php?info=success&menuid=" . $pid . "'</script>";
    } else {
        echo "<script>location.href='../update_menu.php?info=fail'</script>";
    }
}
Esempio n. 14
0
<?php

require_once '../../include/conmysql.php';
require_once '../../include/public_function.php';
$public_function = new public_function();
$blog_type_user = $_SESSION['UID'];
$url = $_GET['url'];
$select_blog_album_right_sql = "select album_right,album_right_name,album_right_desc from blog_album_right";
$select_blog_album_right_result = $public_function->getresult($select_blog_album_right_sql);
$select_blog_album_right_num = $public_function->getnum($select_blog_album_right_result);
$album_right = $_POST['album_right'];
$album_name = $_POST['album_name'];
$album_desc = $_POST['album_desc'];
$album_module = $_POST['album_module'];
/* if($album_desc0=="说说这个相册的故事...(非必填)"){
	$album_desc="";
}else{
	$album_desc=$album_desc0;
} */
$album_createdate = CURRENT_TIME;
$insert_blog_sql = "insert into blog_album(album_name,album_desc,album_author,album_createdate,album_right,album_module) \nvalue('{$album_name}','{$album_desc}','{$blog_type_user}','{$album_createdate}','{$album_right}','{$album_module}')";
if ($album_name == "" || $album_name == null || $album_name == "相册名称") {
    $info1 = "相册名称";
    $info2 = "说说这个相册的故事...(非必填)";
} else {
    $select_album_name_sql = "select album_name,album_author from blog_album where album_name='{$album_name}' and album_author='{$blog_type_user}'";
    if ($public_function->getnum($public_function->getresult($select_album_name_sql)) > 0) {
        $info = "该相册已创建";
    } else {
        $public_function->getresult($insert_blog_sql);
        $album = mysql_insert_id();
Esempio n. 15
0
<?php

require_once '../../../include/conmysql.php';
require_once '../../../include/public_function.php';
$public_function = new public_function();
$blog_userid = $_SESSION['UID'];
$update_sql = "update blog_richeng set importent=1";
$update_result = $public_function->getresult($update_sql);
if ($update_result > 0) {
    $sql = "delete from blog_richeng_isedimport where ids<>1";
    $result = $public_function->getresult($sql);
    echo "<script>location.href='../richeng_fl.php'</script>";
} else {
    echo "<script>location.href='../richeng_fl.php'</script>";
}
Esempio n. 16
0
<?php

require_once '../../../include/conmysql.php';
require_once '../../../include/public_function.php';
$public_function = new public_function();
$blog_userid = $_SESSION['UID'];
$flowid = $_GET['flowid'];
$prcsid = $_GET['prcsid'];
if ($public_function->getbgbyuser($blog_userid) != "") {
    $bg = $public_function->getbgbyuser($blog_userid);
} else {
    if ($public_function->getbgbysys() != "") {
        $bg = $public_function->getbgbysys();
    } else {
        $bg = "images/bg/bg3.jpg";
    }
}
//获取流程信息
$flow_result = mysql_query("select * from flow_type where flow_id='{$flowid}'");
$flow_array = mysql_fetch_array($flow_result);
//获取单个步骤信息
$flow_step_result = $public_function->getresult("select * from flow_process where id='{$prcsid}'");
$flow_step_array = $public_function->getarray($flow_step_result);
//获取当前流程的所有步骤
$flow_step_all_result = $public_function->getresult("select * from flow_process where flow_id='{$flowid}' order by prcs_id asc");
$flow_step_all_num = mysql_num_rows($flow_step_all_result);
?>
<!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="X-UA-Compatible" content="IE=edge,chrome=1"/>
Esempio n. 17
0
<?php
require_once '../../include/conmysql.php';
require_once '../../include/public_function.php';
require_once '../../include/riji_gl_function.php';
$public_function=new public_function();
$blog_userid=$_SESSION['UID'];
if($public_function->getbgbyuser($blog_userid)!=""){
	$bg=$public_function->getbgbyuser($blog_userid);
}else if($public_function->getbgbysys()!=""){
	$bg=$public_function->getbgbysys();
}else{
	$bg="../../images/bg/bg3.jpg";
}
$blogid=$_GET['blogid'];
//日记管理
$select_blog_sql="select * from blog_blog where blog_userid='$blog_userid' and blog_id='$blogid' order by blog_id desc";
$select_blog_result=$public_function->getresult($select_blog_sql);
$select_blog_num=$public_function->getnum($select_blog_result);
$pagesize=1;
$yeshu=ceil($select_blog_num/$pagesize);          //求得一共需要多少页
$geshu=3;                                  //一页显示10个页码*-*
if($_POST['page']!=null){
	$page=$_POST["page"];
}else{
	$page=$_GET["page"];
}

if(empty($page))
{
	$page=1;
}
Esempio n. 18
0
		}
	});
});
</script>
</head>

<body style="background-color: #ececec;">
<div class="st_tree" style="width:300px;overflow: auto;">
<?php 
$userid = $_SESSION['UID'];
$utype = $_SESSION['UTYPE'];
$usertype_sql = "";
if ($utype == 1) {
    $usertype_sql = "";
} else {
    $usertype_sql = "where menu_id in(select menuid from blog_menu_user where usertype='{$utype}')";
}
//获取公共类
$public_function = new public_function();
$sql = "select * from blog_menu " . $usertype_sql . " order by menu_order";
$result = $public_function->getresult($sql);
for ($i = 0; $i < $public_function->getnum($result); $i++) {
    $r[] = $public_function->getarray($result);
}
echo getTreeupdate($r, 0);
?>
</div>
</body>

</html>
Esempio n. 19
0
<?php

require_once '../../../../include/conmysql.php';
require_once '../../../../include/public_function.php';
$public_function = new public_function();
$blog_userid = $_SESSION['UID'];
$flow_name = str_replace(" ", "", $_POST['flow_name']);
$flow_no = str_replace(" ", "", $_POST['flow_no']);
$flow_sort = str_replace(" ", "", $_POST['flow_sort']);
$flow_desc = str_replace(" ", "", $_POST['flow_desc']);
$dept_id0 = str_replace(" ", "", $_POST['dept_id']);
$flow_id = str_replace(" ", "", $_POST['flow_id']);
$create_time = CURRENT_TIME;
if ($dept_id0 == "" || $dept_id0 == null) {
    $dept_id = 0;
}
if ($flow_name == "" || $flow_name == null) {
    echo "<script>alert('Á÷³ÌÃû³Æ²»ÄÜΪ¿Õ');location.href='../update_flow.php'</script>";
} else {
    if ($flow_id == 0 || $flow_id == null || $flow_id == "") {
        $result1 = mysql_query("select * from flow_type where flow_name='{$flow_name}'");
        $num1 = mysql_num_rows($result1);
        $array1 = mysql_fetch_array($result1);
        if ($num1 > 0) {
            echo "<script>alert('ϵͳÒѾ­´æÔÚ¸ÃÁ÷³ÌÃû³Æ');location.href='../update_flow.php'</script>";
        } else {
            $sql = "insert into flow_type(flow_name,flow_no,flow_sort,flow_desc,dept_id,create_time) values('{$flow_name}','{$flow_no}','{$flow_sort}','{$flow_desc}','{$dept_id}','{$create_time}')";
            $result = $public_function->getresult($sql);
            $menuid = mysql_insert_id();
            if ($result > 0) {
                echo "<script>location.href='../update_flow.php?flowid=" . $menuid . "'</script>";
Esempio n. 20
0
<?php

require_once '../include/conmysql.php';
require_once '../include/public_function.php';
require_once '../include/pagesizelist.php';
require_once '../include/photo_gl_function.php';
$public_function = new public_function();
$blog_userid = $_SESSION['UID'];
$albumid = $_GET['albumid'];
if ($public_function->getbgbyuser($blog_userid) != "") {
    $bg = $public_function->getbgbyuser($blog_userid);
} else {
    if ($public_function->getbgbysys() != "") {
        $bg = $public_function->getbgbysys();
    } else {
        $bg = "images/bg/bg3.jpg";
    }
}
if ($_GET['types'] == "chushihua") {
    $chushihua = $public_function->chushihuaonepagesize($_GET['uid']);
    if ($chushihua == true) {
        $info = "<font color='green'>初始化成功</font>";
    } else {
        $info = "<font color='red'>初始化失败</font>,请<a href='set_photo_onepage_showsize.php?uid=" . $_GET['uid'] . "&types=chushihua'>重试</a>";
    }
}
if ($_GET['types'] == "setpagesize") {
    $listpsize = $_POST['userlistpsize'];
    $uid = $_GET['uid'];
    if (setphotolistonesize($uid, $listpsize) == true) {
        echo "<script>parent.location.href='view_album_photos.php?info=setonepagesucess&albumid=" . $albumid . "'</script>";
Esempio n. 21
0
<?php

require_once '../../../../include/conmysql.php';
require_once '../../../../include/public_function.php';
$public_function = new public_function();
$blog_userid = $_SESSION['UID'];
$flowids0 = str_replace(" ", "", $_GET['flowids']);
$flowids = explode(',', $flowids0);
$page = str_replace(" ", "", $_GET['page']);
$yeshu = str_replace(" ", "", $_GET['yeshu']);
$cnt = str_replace(" ", "", $_GET['cnt']);
for ($i = 0; $i < count($flowids); $i++) {
    if (delflow($flowids[$i])) {
        $public_function->getresult("delete from flow_print_tpl where flow_id not in(select flow_id from flow_type)");
        $public_function->getresult("delete from flow_process where flow_id not in(select flow_id from flow_type)");
        $public_function->getresult("delete from flow_query_tpl where flow_id not in(select flow_id from flow_type)");
        $public_function->getresult("delete from flow_rule where flow_id not in(select flow_id from flow_type)");
        $public_function->getresult("delete from flow_run where flow_id not in(select flow_id from flow_type)");
        $public_function->getresult("delete from flow_run_log where flow_id not in(select flow_id from flow_type)");
        $public_function->getresult("delete from flow_timer where flow_id not in(select flow_id from flow_type)");
        returndelflow($page, $info = "²Ù×÷³É¹¦", $cnt, $yeshu, $flowids);
    } else {
        returndelflow($page, $info = "ÍøÂç´íÎó,ÇëÉÔºòÖØÊÔ.", $cnt, $yeshu, $flowids);
    }
}
function delflow($flowid)
{
    if (mysql_query("delete from flow_type where flow_id='{$flowid}'") > 0) {
        return true;
    } else {
        return false;
Esempio n. 22
0
<?php

require_once '../include/conmysql.php';
require_once '../include/public_function.php';
require_once '../include/user_function.php';
$public_function = new public_function();
$blog_userid = $_SESSION['UID'];
$user_type = $_SESSION['UTYPE'];
if ($_SESSION['UID'] == null || $_SESSION['UID'] == 0) {
    echo "<script>location.href='../admin.php'</script>";
}
$public_function = new public_function();
$user_function = new user_function();
$username = turn_string_sql($_REQUEST['name']);
$userpasswd = md5(md5(md5(md5(md5(md5(md5(md5(md5(md5(md5(md5(turn_string_sql($_REQUEST['pwd'])))))))))))));
function clearCookies()
{
    setcookie('uid', '', time() - 3600);
}
?>

<?php 
$sql = "select user_id,user_name,user_passwd,user_isedlogin,user_type from blog_user where user_name='{$username}'";
$user_result = mysql_query($sql);
if (mysql_num_rows($user_result) > 0) {
    $user_array = mysql_fetch_array($user_result);
    if ($user_array['user_passwd'] == $userpasswd) {
        if ($user_array['user_isedlogin'] == 1) {
            $user_function->user_login_registersession($user_array['user_id'], $user_array['user_type']);
            //setcookie("UID1", "cccccccccccc", time()+3600*24*365);
            //$user_function->user_login_registercookie($user_array['user_id'],$user_array['user_type']);
Esempio n. 23
0
<?php

require_once '../../../include/conmysql.php';
require_once '../../../include/public_function.php';
$public_function = new public_function();
$blog_userid = $_SESSION['UID'];
$idsone = str_replace(" ", "", $_GET['ids']);
$idsall = str_replace(" ", "", $_GET['ids']);
$idsalldel = explode(',', $idsall);
$ty = str_replace(" ", "", $_GET['ty']);
$page = str_replace(" ", "", $_GET['page']);
$yeshu = str_replace(" ", "", $_GET['yeshu']);
$pagesize = str_replace(" ", "", $_GET['pagesize']);
$cnt = str_replace(" ", "", $_GET['cnt']);
$dates = str_replace(" ", "", $_GET['dates']);
$richeng_sql = "select ids,contents,starttime,endtime,types,userid,dates,date_format(dates,'%Y-%m-%d') as dates1,titles,importent from blog_richeng where userid='{$blog_userid}' and date_format(dates,'%Y-%m-%d')='{$dates}'";
$richeng_result = $public_function->getresult($richeng_sql);
$richeng_num = $public_function->getnum($richeng_result);
//echo $richeng_num;
if ($ty == "delone") {
    $delone_sql = "delete from blog_richeng where ids='{$idsone}'";
    $delone_result = $public_function->getresult($delone_sql);
    if ($delone_result > 0) {
        $info = "success";
    } else {
        $info = "fail";
    }
    rturnPage($page, $yeshu, $info, $cnt);
} else {
    if ($ty == "delall") {
        for ($i = 0; $i < count($idsalldel); $i++) {
Esempio n. 24
0
<?php

require_once 'include/conmysql.php';
require_once 'include/public_function.php';
require_once 'include/blog_menu_function.php';
require_once 'include/main_function.php';
require_once 'include/user_function.php';
//获取公共类
$public_function = new public_function();
$user_function = new user_function();
$userid = $_SESSION['UID'];
$utype = $_SESSION['UTYPE'];
if ($_SESSION['UID'] == null || $_SESSION['UID'] == 0) {
    echo "<script>location.href='../admin.php'</script>";
}
/* if($_SESSION['UID']==null||$_SESSION['UID']==0){
	echo "<script>location.href='admin.php'</script>";
} */
$usertype_sql = "";
if ($utype == 1) {
    $usertype_sql = "where menu_isedshow=0";
} else {
    $usertype_sql = "where menu_isedshow=0 and menu_id in(select menuid from blog_menu_user where usertype='{$utype}')";
}
$ggresult = mysql_query("select * from czj_gg order by ids desc");
$ggnum = mysql_num_rows($ggresult);
function substr_cut($str_cut, $length)
{
    if (strlen($str_cut) > $length) {
        for ($i = 0; $i < $length; $i++) {
            if (ord($str_cut[$i]) > 128) {
Esempio n. 25
0
<?php

//项目待审管理列表
require_once '../../include/conmysql.php';
require_once '../../include/public_function.php';
require_once '../../include/bbs_function.php';
$blog_userid = $_SESSION['UID'];
$blog_usertype = $_SESSION['UTYPE'];
$public_function = new public_function();
$bbs_function = new bbs_function();
if ($_SESSION['UID'] == null || $_SESSION['UID'] == 0) {
    echo "<script>location.href='../../admin.php'</script>";
}
$fatieid = str_replace(" ", "", $_GET['fatieid']);
$pfatieid = str_replace(" ", "", $_GET['pfatieid']);
$types = str_replace(" ", "", $_GET['types']);
if ($_GET['readcount'] == "yes") {
    $bbs_function->createTieZiReader($fatieid, $blog_userid, CURRENT_TIME);
}
//echo $fatieid;die();
$page = str_replace(" ", "", $_POST['page']) ? str_replace(" ", "", $_POST['page']) : str_replace(" ", "", $_GET['page']);
//查询条件
$select_result = mysql_query("select * from blog_bbs_content where ids='{$fatieid}'");
$select_array = mysql_fetch_array($select_result);
//查询帖子分类
$bbs_typeid = $select_array['bbs_type'];
$bbs_type_result = mysql_query("select * from blog_bbs_type where ids='{$bbs_typeid}'");
$bbs_type_array = mysql_fetch_array($bbs_type_result);
//查询跟帖
$select_sql1 = "select * from blog_bbs_content where bbs_floor='{$fatieid}' order by bbs_utime desc";
$select_result1 = mysql_query($select_sql1);
Esempio n. 26
0
<?php 
require_once '../include/conmysql.php';
require_once '../include/public_function.php';
require_once '../include/photo_gl_function.php';
$public_function=new public_function();
$blog_type_user=$_SESSION['UID'];
$mid=str_replace(" ", "", $_GET['mid']);
$url=str_replace(" ", "", $_GET['url']);

$menu_sql="select ids,module_name,module_iseduse,module_sort,module_url,module_showhome,module_isedmenu,module_url
		from picture_module where module_isedmenu=1 order by module_sort asc";
$menu_result=$public_function->getresult($menu_sql);
$menu_num=$public_function->getnum($menu_result);

//获取推荐的相册
$album_sql="select ids,album_name,album_desc,album_author,album_createdate,photo_size,album_iseddel,album_right,album_fangke,album_pinglun,album_zan,album_bg,album_module,album_isedhot,album_isedshow from blog_album where album_iseddel=0 and album_isedshow=1 and album_module='$mid' order by ids desc";
$album_result=$public_function->getresult($album_sql);
$album_num=$public_function->getnum($album_result);
$pagesize=4;
$yeshu=ceil($album_num/$pagesize);          //求得一共需要多少页
$geshu=3;                                  //一页显示10个页码*-*
if($_POST['page']!=null){
	$page=$_POST["page"];
}else{
	$page=$_GET["page"];
}

if(empty($page))
{
	$page=1;
}
Esempio n. 27
0
<?php
require_once '../../include/conmysql.php';
require_once '../../include/public_function.php';
require_once '../../include/riji_gl_function.php';
$public_function=new public_function();
$blog_userid=$_SESSION['UID'];
if($public_function->getbgbyuser($blog_userid)!=""){
	$bg=$public_function->getbgbyuser($blog_userid);
}else if($public_function->getbgbysys()!=""){
	$bg=$public_function->getbgbysys();
}else{
	$bg="../../images/bg/bg3.jpg";
}
$types_option=turn_string_str($_GET['types']);
//日记管理
$select_blog_sql="select blog_id,blog_title,
	blog_content,blog_userid,blog_type,blog_right,blog_date,
	blog_viewtime,blog_shoucangtime,blog_zhuanfatime,blog_zantime,
	blog_fenxiangtime,blog_isedview,blog_isedzhuanzai,blog_isedshoucang,
	blog_isedzan,blog_isedfenxiang,blog_isedshow from blog_blog where blog_userid='$blog_userid'
	order by blog_id desc";
$select_blog_result=$public_function->getresult($select_blog_sql);
$select_blog_num=$public_function->getnum($select_blog_result);

$settypes="gl_blog";
if($types_option=="setpagesize"){
	$public_function->setPageSize(turn_string_sql($_GET['pagesizeset']), turn_string_sql($_GET['settypes']), $blog_userid);
	echo "<script>location.href='gl_blog.php'</script>";
}
$ised_pagesize_result=mysql_query("select * from czj_pagesize where types='$settypes' and userid='$blog_userid'");
$ised_pagesize_num=mysql_num_rows($ised_pagesize_result);
Esempio n. 28
0
<?php

require_once '../../../include/conmysql.php';
require_once '../../../include/public_function.php';
$public_function = new public_function();
$blog_userid = $_SESSION['UID'];
$flowid = $_GET['flowid'];
$prcsid = $_GET['prcsid'];
if ($public_function->getbgbyuser($blog_userid) != "") {
    $bg = $public_function->getbgbyuser($blog_userid);
} else {
    if ($public_function->getbgbysys() != "") {
        $bg = $public_function->getbgbysys();
    } else {
        $bg = "images/bg/bg3.jpg";
    }
}
//获取流程信息
$flow_result = mysql_query("select * from flow_type where flow_id='{$flowid}'");
$flow_array = mysql_fetch_array($flow_result);
//获取单个步骤信息
$flow_step_result = $public_function->getresult("select * from flow_process where id='{$prcsid}'");
$flow_step_array = $public_function->getarray($flow_step_result);
//获取当前流程的所有步骤
$flow_priv_all_result = $public_function->getresult("select * from blog_user_type where usertype!=1 and usertype!=2 and usertype!=3");
$flow_priv_all_num = mysql_num_rows($flow_priv_all_result);
?>
<!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="X-UA-Compatible" content="IE=edge,chrome=1"/>
Esempio n. 29
0
<?php

require_once '../../../include/conmysql.php';
require_once '../../../include/public_function.php';
$public_function = new public_function();
$blog_userid = $_SESSION['UID'];
$bbstypeid = str_replace(" ", "", $_GET['bbstypeid']);
$result = $public_function->getresult("delete from blog_bbs_content where bbs_type='{$bbstypeid}'");
$result = $public_function->getresult("delete from blog_bbs_type where ids='{$bbstypeid}'");
$result = $public_function->getresult("delete from blog_bbs_content_shoucang where bbsid not in(select ids from blog_bbs_content)");
$result = $public_function->getresult("delete from blog_bbs_content_viewhistory where bbsid not in(select ids from blog_bbs_content)");
$result = $public_function->getresult("delete from blog_bbs_jb where jbbbsid not in(select ids from blog_bbs_content)");
echo "<script>location.href='../shyule_bbsmodule_gl.php'</script>";
Esempio n. 30
0
<?php

require_once '../../../include/conmysql.php';
require_once '../../../include/public_function.php';
$public_function = new public_function();
$blog_userid = $_SESSION['UID'];
$blog_right = str_replace(" ", "", $_GET['blogright']);
$blog_rightid = str_replace(" ", "", $_GET['blogrightid']);
$select_sql = "update blog_blog set blog_right=1 where blog_right='{$blog_right}'";
$select_result = $public_function->getresult($select_sql);
if ($select_result > 0) {
    $sql = "delete from blog_right_type where right_type_id='{$blog_rightid}'";
    $result = $public_function->getresult($sql);
    if ($result > 0) {
        $info = "success";
    } else {
        $info = "fail";
    }
} else {
    $info = "fail";
}
echo "<script>location.href='../set_riji_viewright.php?info=" . $info . "'</script>";