예제 #1
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'];
}
예제 #2
0
파일: gl_album.php 프로젝트: ZH9009/jjczj
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'];
}
예제 #3
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'];
}
예제 #4
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;
}
예제 #5
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>";
}
예제 #6
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>";
    }
}
예제 #7
0
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>";
}
예제 #8
0
파일: add_url.php 프로젝트: ZH9009/jjczj
        <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 
}
예제 #9
0
파일: menu_list.php 프로젝트: ZH9009/jjczj
		}
	});
});
</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>
예제 #10
0
    <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>
	 <?
예제 #11
0
파일: xm_zlqr.php 프로젝트: ZH9009/jjczj
$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" />
예제 #12
0
            $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 "添加用户组";
?>
예제 #13
0
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;
        }
    }
}
예제 #14
0
파일: add_album.php 프로젝트: ZH9009/jjczj
        }).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>
예제 #15
0
파일: richeng_gl.php 프로젝트: ZH9009/jjczj
} 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">
예제 #16
0
        $bg = "../../images/bg/bg3.jpg";
    }
}
//获取日程分类
$richeng_type_sql = "select ids,typesname from blog_richeng_type";
$richeng_type_result = $public_function->getresult($richeng_type_sql);
$richeng_type_num = $public_function->getnum($richeng_type_result);
//获取日程的重要程度
$richeng_imp_type_sql = "select ids,importent from blog_richeng_isedimport";
$richeng_imp_type_result = $public_function->getresult($richeng_imp_type_sql);
$richeng_imp_type_num = $public_function->getnum($richeng_imp_type_result);
//根据ID号查询需要修改的日程信息
$richengid = str_replace(" ", "", $_GET['ids']);
$richeng_sql = "select ids,contents,starttime,endtime,types,userid,dates,titles,importent from blog_richeng where ids='{$richengid}'";
$richeng_result = $public_function->getresult($richeng_sql);
$richeng_array = $public_function->getarray($richeng_result);
?>
<!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/public.css" />
<link rel="stylesheet" type="text/css" href="../../plugins/date1/jquery.datetimepicker.css"/>
<script charset="utf-8" src="../../js/jquery-1.6.min.js"></script>
<!-- 弹出窗口 -->
<script type="text/javascript">
function checkinput(){
	var titles=example.titles.value;
	var contents=example.contents.value;
예제 #17
0
				</td>
			</tr>
			<tr style="height:40px;">
				<td style="width:100px;" align="right">菜单模块路径:</td>
				<td align="left">
					&nbsp;<input name="menu_url" id="menu_url" style="height:30px;width:350px;border:solid;border-width:1px;border-color:#ececec;" value=""/>
				</td>
			</tr>
			<tr style="height:40px;">
				<td style="width:100px;" align="right">上级菜单:</td>
				<td align="left">
					<select name="menu_pid" id="menu_pid" style="height:30px;border:solid;border-width:1px;border-color:#ececec;margin-left:4px;">
						<option value="">顶级菜单</option>
						<?php 
for ($i = 0; $i < $menu_num; $i++) {
    $menu_array = $public_function->getarray($menu_result);
    ?>
							<option value="<?php 
    echo $menu_array['menu_id'];
    ?>
">
								<?php 
    echo $menu_array['menu_name'];
    ?>
							</option>
							<?php 
}
?>
					</select>
				</td>
			</tr>
예제 #18
0
파일: set_rijifl.php 프로젝트: ZH9009/jjczj
				<td colspan="2" style="border-left:solid;border-top:solid;border-right:solid;border-color: #ececec;border-width: 2px;background-color: #56b4dc;color: white;" align="center">修改所日记分类</td>
			</tr>
			<tr style="height:30px;">
				<td align="right" style="width: 100px;border:solid;border-color: #ececec;border-width: 2px;">
					<input type="hidden" name="blogid" value="<?php 
echo $blog_id;
?>
"/>
					<span>权限:</span>
				</td>
				<td align="left" style="border-top:solid;border-bottom:solid;border-right:solid;border-color: #ececec;border-width: 2px;">
					<span>
						<select name="blog_type" style="min-width:100px;height:30px;">
							<?php 
for ($i = 0; $i < $blog_type_num; $i++) {
    $blog_type_array = $public_function->getarray($blog_type_result);
    ?>
									<option value="<?php 
    echo $blog_type_array['blog_type_id'];
    ?>
"><?php 
    echo $blog_type_array['blog_type_name'];
    ?>
</option>
								<?php 
}
?>
	
						</select>
					</span>
				</td>
예제 #19
0
	$page=1;
}
if ($select_photo_num==0 )
{
	$pages=0;
}
else
{
	$pages=floor($select_photo_num / $pagesize);
	if  (($select_photo_num%$pagesize) > 0 )
	{
		$pages=$pages+1;
	}
}
$blogcnt=1;
while ( $blogcnt<=($page-1)*$pagesize  && $row = $public_function->getarray($select_photo_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" />
<script charset="utf-8" src="../js/jquery-1.6.min.js"></script>
<script src="../plugins/layer/lib.js"></script>
<script src="../plugins/layer/layer.min.js"></script>
예제 #20
0
				<td colspan="2" style="border-left:solid;border-top:solid;border-right:solid;border-color: #ececec;border-width: 2px;background-color: #56b4dc;color: white;" align="center">设置所选日记权限</td>
			</tr>
			<tr style="height:30px;">
				<td align="right" style="width: 100px;border:solid;border-color: #ececec;border-width: 2px;">
					<input type="hidden" name="blog_id" value="<?php 
echo $blog_id;
?>
"/>
					<span>权限:</span>
				</td>
				<td align="left" style="border-top:solid;border-bottom:solid;border-right:solid;border-color: #ececec;border-width: 2px;">
					<span>
						<select name="blog_right" style="min-width:100px;height:30px;">
							<?php 
for ($i = 0; $i < $blog_right_num; $i++) {
    $blog_right_array = $public_function->getarray($blog_right_result);
    ?>
									<option value="<?php 
    echo $blog_right_array['blog_right'];
    ?>
"><?php 
    echo $blog_right_array['right_type_name'];
    ?>
</option>
								<?php 
}
?>
	
						</select>
					</span>
				</td>
예제 #21
0
파일: main.php 프로젝트: ZH9009/jjczj
?>
           
            </div>
        </div>
        <!--头部结束-->
        <!--左边菜单开始-->
        <div class="left_c left">
            <h1>系统菜单</h1>
        	<div class="acc">
                <?php 
$sql = "select * from blog_menu " . $usertype_sql . " order by menu_order";
$result = $public_function->getresult($sql);
$num = $public_function->getnum($result);
for ($i = 0; $i < $public_function->getnum($result); $i++) {
    echo "<div>";
    $array = $public_function->getarray($result);
    $array_id = $array['menu_id'];
    $result1 = $public_function->getresult("select * from blog_menu " . $usertype_sql . " and menu_pid='{$array_id}' order by menu_order");
    $num1 = $public_function->getnum($result1);
    if ($num1 > 0) {
        ?>
						<a class="one" href="#" title="<?php 
        echo $array['menu_name'];
        ?>
"><?php 
        echo $array['menu_name'];
        ?>
</a>
						<ul class="kid">
							<?php 
        for ($i1 = 0; $i1 < $num1; $i1++) {
예제 #22
0
            }
        } else {
            $sql = "update blog_user set user_name='{$user_name}',user_type='{$user_type}',user_passwd='{$user_passwd}',update_date='{$create_date}' where user_id='{$user_id}'";
            $result = $public_function->getresult($sql);
            if ($result > 0) {
                echo "<script>location.href='../add_user.php?info=success2&userid=" . $user_id . "'</script>";
            } else {
                echo "<script>location.href='../add_user.php?info=error2'</script>";
            }
        }
    }
} else {
    if ($operationuser == "edit") {
        $user_id = $_POST['user_id'];
        $sql_select_sql = "select user_jiguan,user_id from blog_user where user_id='{$user_id}'";
        $user_array = $public_function->getarray($public_function->getresult($sql_select_sql));
        $user_truename = $_POST['user_truename'];
        $user_sex = $_POST['user_sex'];
        $user_birthday = $_POST['user_birthday'];
        $s_province = $_POST['s_province'];
        $s_city = $_POST['s_city'];
        $s_county = $_POST['s_county'];
        $user_jiguan1 = $s_province . $s_city . $s_county;
        if ($user_jiguan1 == "省份地级市市、县级市") {
            $user_jiguan = $user_array['user_jiguan'];
        } else {
            $user_jiguan = $user_jiguan1;
        }
        $user_address = $_POST['user_address'];
        $user_xiexing = $_POST['user_xiexing'];
        $user_ganqing = $_POST['user_ganqing'];
예제 #23
0
파일: gl_url.php 프로젝트: ZH9009/jjczj
} else {
    $page = $_GET["page"];
}
if (empty($page)) {
    $page = 1;
}
if ($select_url_num == 0) {
    $pages = 0;
} else {
    $pages = floor($select_url_num / $pagesize);
    if ($select_url_num % $pagesize > 0) {
        $pages = $pages + 1;
    }
}
$blogcnt = 1;
while ($blogcnt <= ($page - 1) * $pagesize && ($row = $public_function->getarray($select_url_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" />
<script charset="utf-8" src="../../js/jquery-1.6.min.js"></script>
<script src="../../plugins/layer/lib.js"></script>
<script src="../../plugins/layer/layer.min.js"></script>
<script type="text/javascript">
//设置每页显示条数
예제 #24
0
파일: flow_list.php 프로젝트: ZH9009/jjczj
			main.location.href=$(a).attr("href");
		}
	});
});
</script>
</head>

<body style="background-color: #ececec;">
<div class="st_tree" style="width:300px;overflow: auto;">
<?php 
$public_function = new public_function();
$sql = "select * from flow_sort where have_child='no' order by sort_no";
$result = $public_function->getresult($sql);
echo "<ul>";
for ($i = 0; $i < $public_function->getnum($result); $i++) {
    $r = $public_function->getarray($result);
    echo "<li><a href='current_flow_list.php?flowsortid=" . $r['sort_id'] . "' target='update_menu'>" . $r['sort_name'] . "</a></li><ul>";
    $sort_id = $r['sort_id'];
    $flow_result = mysql_query("select * from flow_type where flow_sort='{$sort_id}'");
    for ($i1 = 0; $i1 < $public_function->getnum($flow_result); $i1++) {
        $r1 = $public_function->getarray($flow_result);
        echo "<li><a href='update_flow.php?flowid=" . $r1['flow_id'] . "' target='update_menu'>" . $r1['flow_name'] . "</a></li>";
    }
    echo "</ul>";
}
echo "</ul>";
?>
</div>
</body>

</html>
예제 #25
0
파일: xingganmn.php 프로젝트: ZH9009/jjczj
	$page=1;
}
if ($album_num==0 )
{
	$pages=0;
}
else
{
	$pages=floor($album_num / $pagesize);
	if  (($album_num%$pagesize) > 0 )
	{
		$pages=$pages+1;
	}
}
$blogcnt=1;
while ( $blogcnt<=($page-1)*$pagesize  && $row = $public_function->getarray($album_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" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta http-equiv="Cache-Control" content="no-transform " /> 
<title>天下美图网-<?php echo getModuleNameByID($mid);?></title>
<link href="css/style.css" rel="stylesheet" media="screen" type="text/css" />
<style type="text/css">
body{margin:0px;padding:0px;background-color:#ececec;}
예제 #26
0
				</div>
			</td>
		</tr>
		<tr>
			<td colspan="2">&nbsp;</td>
		</tr>
		<tr>
			<td align="right">
				<span><span style="font-size:13px;">用户分类:</span></span>
			</td>
			<td>
				<span>
					<select name="user_type" style="min-width:100px;height:30px;line-height:30px;">
						<?php 
for ($i = 0; $i < $user_type_num; $i++) {
    $user_type_array = $public_function->getarray($user_type_result);
    ?>
								<option value="<?php 
    echo $user_type_array['usertype'];
    ?>
" <?php 
    if ($user_type_array['usertype'] == $user_info_array['user_type']) {
        echo 'selected="selected"';
    }
    ?>
><?php 
    echo $user_type_array['usertypename'];
    ?>
</option>
							<?php 
}
예제 #27
0
$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"/>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<title>设置当前流程步骤下一步</title>
<link rel="stylesheet" href="../../../css/public.css" />
<script type="text/javascript">
function setflownextstep(){
	var a=new Array();
	var i;
예제 #28
0
if ($_REQUEST['rijiotype'] == "insert") {
    $page = $_REQUEST['page'];
    if ($blog_id == null || $blog_id == "" || $blog_id == 0) {
        $insert_blog_sql = "insert into blog_blog(blog_title,blog_content,blog_userid,blog_type,blog_right,blog_date) values('{$blog_title}','{$blog_content}','{$blog_userid}','{$blog_type}','{$blog_right}','{$blog_date}')";
        $insert_blog_result = mysql_query($insert_blog_sql);
        echo mysql_error();
    } else {
        $insert_blog_sql = "update blog_blog set blog_title='{$blog_title}',blog_content='{$blog_content}',blog_type='{$blog_type}',blog_right='{$blog_right}',blog_date='{$blog_date}' where blog_id='{$blog_id}'";
        $insert_blog_result = mysql_query($insert_blog_sql);
    }
    echo "<script>location.href='gl_blog.php?page=" . $page . "'</script>";
} else {
    if ($_REQUEST['rijiotype'] == "query") {
        $select_blog_sql = "select blog_id,blog_title,\n\tblog_content,blog_userid,blog_type,blog_right,blog_date,\n\tblog_viewtime,blog_shoucangtime,blog_zhuanfatime,blog_zantime,\n\tblog_fenxiangtime,blog_isedview,blog_isedzhuanzai,blog_isedshoucang,\n\tblog_isedzan,blog_isedfenxiang,blog_isedshow from blog_blog where blog_id='{$blogid}'";
        $select_blog_result = $public_function->getresult($select_blog_sql);
        $select_blog_array = $public_function->getarray($select_blog_result);
    } else {
        if ($_REQUEST['rijiotype'] == "delblog") {
            $blog_id = $_REQUEST['blogid'];
            $page = $_REQUEST['page'];
            $yeshu = $_REQUEST['yeshu1'];
            $pagesize = $_REQUEST['pagesize'];
            $cnt = $_REQUEST['cnt'];
            $del_blog_sql = "delete from blog_blog where blog_id='{$blog_id}'";
            $del_blog_result = $public_function->getresult($del_blog_sql);
            //echo "<script>location.href='gl_blog.php?page=".$_REQUEST['page']."'</script>";
            //echo $_REQUEST['page'];
            if ($page == 1) {
                echo "<script>location.href='" . $url . ".php?info=success&page=1&bloggltype=" . $_REQUEST['bloggltype'] . "'</script>";
            } else {
                if ($page != 1 && $page == $yeshu) {
예제 #29
0
파일: gl_blog.php 프로젝트: ZH9009/jjczj
	$page=1;
}
if ($select_blog_num==0 )
{
	$pages=0;
}
else
{
	$pages=floor($select_blog_num / $pagesize);
	if  (($select_blog_num%$pagesize) > 0 )
	{
		$pages=$pages+1;
	}
}
$blogcnt=1;
while ( $blogcnt<=($page-1)*$pagesize  && $row = $public_function->getarray($select_blog_result))//记录集
{
	$blogcnt = $blogcnt + 1;
}
?>
<!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 type="text/javascript" src="../../plugins/page1/jquery.min.js"></script>
<script type="text/javascript">
//设置每页显示条数
function setpagesize(){
예제 #30
0
파일: setmainjm.php 프로젝트: ZH9009/jjczj
<?php

require_once '../../include/conmysql.php';
require_once '../../include/public_function.php';
$public_function = new public_function();
$blog_userid = $_SESSION['UID'];
$topname = str_replace(" ", "", $_POST['topname']);
$operation = str_replace(" ", "", $_POST['operation']);
$url = str_replace(" ", "", $_GET['url']);
$url1 = str_replace(" ", "", $_POST['url']);
$title_sql = "select * from blog_toptitle";
$title_result = $public_function->getresult($title_sql);
$title_array = $public_function->getarray($title_result);
$title_num = $public_function->getnum($title_result);
$sql = "insert into blog_toptitle(topname) values('{$topname}')";
$usql = "update blog_toptitle set topname='{$topname}'";
if ($operation == "add") {
    if ($title_num > 0) {
        $result = $public_function->getresult($usql);
        if ($result > 0) {
            $info = "网站顶部标题更新成功";
        } else {
            $info = "由于网络原因,操作失败,请稍后重试...";
        }
    } else {
        $result1 = $public_function->getresult($sql);
        if ($result1 > 0) {
            $info = "网站顶部标题更新成功";
        } else {
            $info = "由于网络原因,操作失败,请稍后重试...";
        }