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


PHP public_function::getarray方法代码示例

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


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

示例1: 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

示例2: 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

示例3: 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

示例4: 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

示例5: 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

示例6: 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

示例7: 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

示例8: getAllCanUseWebSiteType

        <tr>
          <td width="100px" align="right">═ЭоиБ║</td>
          <td align="left" width="400"><input type="text" value="<?php 
echo $select_url_array['link_url'];
?>
" name="link_url" id="link_url" style="width:400px;" placeholder="╩С╚в═Эои"/></td>
        </tr>
        <tr>
          <td width="100px" align="right">ио└ЯБ║</td>
          <td align="left" width="210">
          	<select name="link_module">
          		<?php 
$urltyperesult = getAllCanUseWebSiteType();
$urltypenum = $public_function->getnum($urltyperesult);
for ($i = 0; $i < $urltypenum; $i++) {
    $urltypearray = $public_function->getarray($urltyperesult);
    ?>
          		<option value="<?php 
    echo $urltypearray['ids'];
    ?>
" <?php 
    if ($select_url_array['link_module'] == $urltypearray['ids'] || $urltypearray['ids'] == $urlmoduleid) {
        echo "selected";
    }
    ?>
><?php 
    echo $urltypearray['module_name'];
    ?>
</option>
          		<?php 
}
开发者ID:ZH9009,项目名称:jjczj,代码行数:31,代码来源:add_url.php

示例9: getTreeupdate

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

示例10: if

    <td class="Big"><img src="../images/menu/exam.gif" width="22" height="20" align="absmiddle"/><span class="big3"> 编辑角色权限 - (<? echo $usertypename;?>)</span>&nbsp;&nbsp;
    <span id="anniu"><a href="javascript:setug();" class=button1>确定</a></span>
    <span id="anniu"><a href="javascript:location.href='gl_usergroup.php';" class=button1>返回</a></span>
    &nbsp;&nbsp;
    </td>
  </tr>
</table>
<table border="1" cellspacing="0" class="small" cellpadding="3" >

 
<?
$COUNT_FUNC = 0;
$m_menu_sql2 = "SELECT * from blog_menu where menu_pid=0";
$m_menu_rs2=$public_function->getresult($m_menu_sql2);
$m_menu_num2=$public_function->getnum($m_menu_rs2);
while($m_menu_row2 = $public_function->getarray($m_menu_rs2))//大菜单开始
{
	$MENU_ID = $m_menu_row2['menu_id'];
	$MENU_NAME = $m_menu_row2['menu_name'];
	++$COUNT_FUNC;
?>
<tr class="TableContent">
<td valign="top" >
	<table class="TableBlock" style="width:550px;" align="center">
     <tr class="TableHeader" title="<? echo $MENU_NAME;?>">
      <td align="left">
		 <input type="checkbox" name="menuid1[]" id="menuid1[]" value="<? echo $MENU_ID;?>" <? if (getmenurightnum($MENU_ID, $usertype)>0){echo "checked";}?>/>
         <label><? echo $MENU_NAME."<a href='#'>[一级菜单]</a>";?></label>
      </td>
     </tr>
	 <?
开发者ID:ZH9009,项目名称:jjczj,代码行数:31,代码来源:set_user_group.php

示例11: getOneZLSelectResult

$public_function = new public_function();
$blog_userid = $_SESSION['UID'];
$utype = $_SESSION['UTYPE'];
if ($_SESSION['UID'] == null || $_SESSION['UID'] == 0) {
    echo "<script>location.href='../admin.php'</script>";
}
$xmid = str_replace(" ", "", $_GET['xmid']);
$url = str_replace(" ", "", $_GET['url']);
$url1 = str_replace(" ", "", $_GET['url1']);
$page = str_replace(" ", "", $_GET['page']);
//获取资料列表选项,通过项目的ID号获取项目分类,然后通过项目分类获取对应所需的资料
$zlselectresult = getOneZLSelectResult($xmid, 0);
$zlselectnum = $public_function->getnum($zlselectresult);
//获取项目信息通过项目ID号
$xmresultbyid = getXMXXByXmID($xmid);
$xmarraybyid = $public_function->getarray($xmresultbyid);
//项目资料是否齐全
$xm_zl_isedqq = $xmarraybyid['xm_zl_isedqq'];
//项目资料不齐全的原因
$xm_zl_bqq_yy = $xmarraybyid['xm_zl_bqq_yy'];
$xm_zl_bqq_yy_0 = explode(",", $xm_zl_bqq_yy);
//资料信息
$ziliaoxx = $xmarraybyid['ziliaoxx'];
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<title></title>
<link rel="stylesheet" href="../css/richeng/richeng.css" />
开发者ID:ZH9009,项目名称:jjczj,代码行数:31,代码来源:xm_zlqr.php

示例12: values

            $public_function->getresult($insert_user_group_menu_sql13);
            $insert_user_group_menu_sql14 = "insert into blog_menu_user(menuid,usertype) values(14,'{$usertype}')";
            $public_function->getresult($insert_user_group_menu_sql14);
            //日程安排
            $insert_user_group_menu_sql15 = "insert into blog_menu_user(menuid,usertype) values(17,'{$usertype}')";
            $public_function->getresult($insert_user_group_menu_sql15);
            //相册管理
            $insert_user_group_menu_sql16 = "insert into blog_menu_user(menuid,usertype) values(26,'{$usertype}')";
            $public_function->getresult($insert_user_group_menu_sql16);
            $info = "<font color='green'>用户组添加成功,</font>继续<a href='add_user.php' target='main'>添加用户</a>";
        }
    }
}
//根据用户组ID号修改用户组名称
$usergrouptype_sql = "select ids,usertype,usertypename from blog_user_type where ids='{$usergrouptype_id}'";
$usergrouptype_array = $public_function->getarray($public_function->getresult($usergrouptype_sql));
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<title>添加用户组信息</title>
<link rel="stylesheet" href="../css/public.css" />
<script charset="utf-8" src="../js/jquery-1.6.min.js"></script>
</head>
<body>
<div style="height:35px;line-height:30px;font-size: 15px;">
	<span><img src="../images/green_arrow.gif" alt="添加用户组" align="absmiddle"/>&nbsp;<?php 
echo "添加用户组";
?>
开发者ID:ZH9009,项目名称:jjczj,代码行数:31,代码来源:add_user_group.php

示例13:

require_once '../../include/public_function.php';
require_once '../../include/blog_menu_function.php';
require_once '../../include/user_function.php';
$public_function = new public_function();
$user_function = new user_function();
$username = str_replace(" ", "", $_GET['pid']);
$userid = str_replace(" ", "", $_GET['uid']);
header("content-type:text/html;charset=gb2312");
if ($username == "") {
    echo "<font color='red'>警告:用户名不能为空!</font>";
    exit;
} else {
    $ui_result = mysql_query("select user_name,user_id from blog_user where user_id='{$userid}'");
    $ui_array = mysql_fetch_array($ui_result);
    if ($ui_array['user_name'] == $username) {
        echo "<font color='red'>*</font>用户名可包含数字、字母、下划线和汉字,2-20";
        exit;
    } else {
        $sql = "select user_name,user_isedlogin from blog_user where user_name='" . $username . "'";
        $query = $public_function->getresult($sql);
        $num = $public_function->getnum($query);
        $array = $public_function->getarray($query);
        if ($num > 0) {
            echo "<font color='red'>警告:系统已存在该用户名</font>";
            exit;
        } else {
            echo "<font color='green'>√&nbsp;恭喜:该用户名可以使用</font>";
            exit;
        }
    }
}
开发者ID:ZH9009,项目名称:jjczj,代码行数:31,代码来源:edittestname.php

示例14:

        }).blur();
    });
</script>
</head>
<body>
<div id="forlogin">
	  <form action="#" method="post" id="form1">
      <table style="width:100%;">
        <tr><td colspan="2">&nbsp;</td></tr>
        <tr>
          <td width="40" align="right">权限:</td>
          <td align="left" width="210">
          		<select name="album_right" style="height: 30px;">
          			<?php 
for ($i = 0; $i < $select_blog_album_right_num; $i++) {
    $select_blog_album_right_array = $public_function->getarray($select_blog_album_right_result);
    ?>
          			<option value="<?php 
    echo $select_blog_album_right_array['album_right'];
    ?>
" ><?php 
    echo $select_blog_album_right_array['album_right_name'];
    ?>
</option>
          			<?php 
}
?>
          		</select>
          </td>
        </tr>
        <tr><td colspan="2">&nbsp;</td></tr>
开发者ID:ZH9009,项目名称:jjczj,代码行数:31,代码来源:add_album.php

示例15: floor

} else {
    $page = $_GET["page"];
}
if (empty($page)) {
    $page = 1;
}
if ($richeng_num == 0) {
    $pages = 0;
} else {
    $pages = floor($richeng_num / $pagesize);
    if ($richeng_num % $pagesize > 0) {
        $pages = $pages + 1;
    }
}
$blogcnt = 1;
while ($blogcnt <= ($page - 1) * $pagesize && ($row = $public_function->getarray($richeng_result))) {
    $blogcnt = $blogcnt + 1;
}
?>
<!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"/>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<title>日记本_写日志</title>
<link rel="stylesheet" href="../../css/public.css" />
<link rel="stylesheet" type="text/css" href="../../plugins/date1/jquery.datetimepicker.css"/>
<style type="text/css" media="screen">@import url(../../css/blog/pagestyle.css);</style>
<script charset="utf-8" src="../../js/jquery-1.6.min.js"></script>
<!-- 弹出窗口 -->
<script type="text/javascript">
开发者ID:ZH9009,项目名称:jjczj,代码行数:31,代码来源:richeng_gl.php


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