当前位置: 首页>>代码示例>>PHP>>正文


PHP public_function::getresult方法代码示例

本文整理汇总了PHP中public_function::getresult方法的典型用法代码示例。如果您正苦于以下问题:PHP public_function::getresult方法的具体用法?PHP public_function::getresult怎么用?PHP public_function::getresult使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在public_function的用法示例。


在下文中一共展示了public_function::getresult方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: del

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>";
}
开发者ID:ZH9009,项目名称:jjczj,代码行数:14,代码来源:delcurrentmenu.php

示例2: getmenurightnum

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);
}
开发者ID:ZH9009,项目名称:jjczj,代码行数:7,代码来源:set_user_group.php

示例3: getusergroup

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'];
}
开发者ID:ZH9009,项目名称:jjczj,代码行数:7,代码来源:show_userinfo.php

示例4: getcountmenbydept

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);
}
开发者ID:ZH9009,项目名称:jjczj,代码行数:7,代码来源:dept_gl.php

示例5: getcountmen

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);
}
开发者ID:ZH9009,项目名称:jjczj,代码行数:7,代码来源:setshortmenu.php

示例6: getonepic

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'];
}
开发者ID:ZH9009,项目名称:jjczj,代码行数:7,代码来源:gl_album.php

示例7: getcountmennologin

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);
}
开发者ID:ZH9009,项目名称:jjczj,代码行数:7,代码来源:gl_usergroup.php

示例8: getparentdept

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'];
}
开发者ID:ZH9009,项目名称:jjczj,代码行数:8,代码来源:update_dept.php

示例9: getmenuname

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;
}
开发者ID:ZH9009,项目名称:jjczj,代码行数:9,代码来源:update_menu.php

示例10: update_iseduse

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>";
    }
}
开发者ID:ZH9009,项目名称:jjczj,代码行数:18,代码来源:usecurrentmenu.php

示例11: setAlbumBG

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;
}
开发者ID:ZH9009,项目名称:jjczj,代码行数:18,代码来源:set_toalbum_bg.php

示例12: MenuShow_Moduletype

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;
}
开发者ID:ZH9009,项目名称:jjczj,代码行数:12,代码来源:update_onealbumtype.php

示例13: Hidden_Album

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;
}
开发者ID:ZH9009,项目名称:jjczj,代码行数:12,代码来源:update_onealbum.php

示例14: del

function del($pid)
{
    $public_function = new public_function();
    $sql = "select * from flow_sort where sort_parent='{$pid}'";
    $delsql = "delete from flow_sort where sort_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['sort_id']);
    }
    $result1 = $public_function->getresult($delsql);
    $public_function->getresult("delete from flow_type where flow_sort not in(select sort_id from flow_sort)");
    $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)");
    echo "<script>location.href='../update_flow_type.php'</script>";
}
开发者ID:ZH9009,项目名称:jjczj,代码行数:22,代码来源:delcurrentflowtype.php

示例15: explode

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++) {
            $sql = "delete from blog_richeng where ids='{$idsalldel[$i]}'";
开发者ID:ZH9009,项目名称:jjczj,代码行数:30,代码来源:delricheng.php


注:本文中的public_function::getresult方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。