BVB Source Codes

Shandong kernel enterprise stand the source code Show myfriend_group.php Source code

Return Download Shandong kernel enterprise stand the source code: download myfriend_group.php Source code - Download Shandong kernel enterprise stand the source code Source code - Type:.php
  1. <?php
  2. require_once(dirname(__FILE__).'/config.php');
  3. CheckRank(0,0);
  4. $menutype = 'mydede';
  5. $dopost = isset($dopost) ? trim($dopost) : '';
  6. if($dopost == '')
  7. {
  8.         $query = "select * from `#@__member_group` where mid='{$cfg_ml->M_ID}'";
  9.         $dsql->SetQuery($query);
  10.         $dsql->Execute();
  11.         while($row = $dsql->GetArray())
  12.         {
  13.                 $mtypearr[] = $row;
  14.         }
  15.         $GLOBALS['mtypearr'] =empty($GLOBALS['mtypearr'] )? '' : $GLOBALS['mtypearr'] ;
  16.         $tpl = new DedeTemplate();
  17.         $tpl->LoadTemplate(DEDEMEMBER.'/templets/myfriend_group.htm');
  18.         $tpl->Display();
  19.         exit();
  20. }
  21. elseif ($dopost == 'add')
  22. {   $mtypename = HtmlReplace(trim($groupname));
  23.         $row = $dsql->GetOne("select * from `#@__member_group` where groupname like '$groupname' and mid='{$cfg_ml->M_ID}'");
  24.         if(is_array($row))
  25.         {
  26.                 ShowMsg('分组名称已经存在', '-1');
  27.                 exit();
  28.         }
  29.         else if(strlen($groupname)=="")
  30.         {
  31.                 ShowMsg('分组名称不能为空', '-1');
  32.                 exit();
  33.         }
  34.         $query = "insert into `#@__member_group`(groupname, mid) values ('$groupname', '$cfg_ml->M_ID'); ";
  35.         if($dsql->ExecuteNoneQuery($query))
  36.         {
  37.                 ShowMsg('增加分类成功', 'myfriend_group.php');
  38.         }
  39.         else
  40.         {
  41.                 ShowMsg('增加分类失败', '-1');
  42.         }
  43.         exit();
  44. }elseif ($dopost == 'save'){
  45.         if(isset($mtypeidarr) && is_array($mtypeidarr))
  46.         {
  47.                 $delids = '0';
  48.                 $mtypeidarr = array_filter($mtypeidarr, 'is_numeric');
  49.                 foreach($mtypeidarr as $delid)
  50.                 {
  51.                         $delids .= ','.$delid;
  52.                         unset($groupname[$delid]);
  53.                 }
  54.                 $query = "DELETE FROM `#@__member_group` WHERE id in ($delids) AND mid='$cfg_ml->M_ID'";
  55.                 $dsql->ExecNoneQuery($query);
  56.                 $sql="SELECT id FROM `#@__member_friends` WHERE groupid in ($delids) AND mid='$cfg_ml->M_ID'";
  57.                 $db->SetQuery($sql);
  58.                 $db->Execute();
  59.                 while($row = $db->GetArray())
  60.                 {
  61.                         $query2 = "UPDATE `#@__member_friends` SET groupid='1' WHERE id='{$row['id']}' AND mid='$cfg_ml->M_ID'";
  62.                         $dsql->ExecNoneQuery($query2);
  63.                 }
  64.         }
  65.         foreach ($groupname as $id => $name)
  66.         {
  67.                 $name = HtmlReplace($name);
  68.                 $query = "UPDATE `#@__member_group` SET groupname='$name' WHERE id='$id' AND mid='$cfg_ml->M_ID'";
  69.                 $dsql->ExecuteNoneQuery($query);
  70.         }
  71.         ShowMsg('分组修改完成(删除分组中的会员会转移到默认分组中)','myfriend_group.php');
  72. }
  73.  
  74. ?>
downloadmyfriend_group.php Source code - Download Shandong kernel enterprise stand the source code Source code
Related Source Codes/Software:
Dede V2.2 dance music program - This system is based on DEDE5.7 sp1 production dan... 2016-11-11
Search engine v1.0 eight grams of novels - This program consists of WEB side and collection p... 2016-11-11
A thief free Jacky novel CMS, support for multiple station collection, support pseudo original SEO - A thief free Jacky novel CMS, support for multiple... 2016-11-11
Kunlun lubricating oil companies stand the source code - Just testing, free, source code is very beautiful ... 2016-11-11
Imitation of Chinese stationmaster net source dreams to 5.7 sp1 source code - Exactly the same and the Director of China network... 2016-11-11
Newscoop CMS v4.0.4 multilingual version - Newscoop is a content management system is mainly ... 2016-11-11
Ku978 navigator free send you department (with acquisition module) - Is I purchase the commercial version of this progr... 2016-11-11
Think of concise message this v1.1 - Wisdom of concise message this V1.1 main functions... 2016-11-11
nvidia-docker - Build and run Docker containers leveraging NVIDIA ... 2017-04-08
quickstart - Angular 2 QuickStart - source from the documentati... 2017-04-08
jQuery-Autocomplete - Ajax Autocomplete for jQuery allows you to easily ... 2017-04-08
Android-Best-Practices - Android best practice examples 2017-04-08
Bootstrap-Admin-Template - Metis - Free Bootstrap Admin Dashboard Template ... 2017-04-08
CocoaSPDY - SPDY for iOS and OS X 2017-04-08
parse-dashboard - A dashboard for managing your Parse apps that aren... 2017-04-08
HoloEverywhere - NO LONGER MAINTAINED. DEVELOP FOR 4.X+ DUDE. 2017-04-08
side-comments - [UNMAINTAINED] An interface component to give your... 2017-04-08
SVG-Morpheus - JavaScript library enabling SVG icons to morph fro... 2017-04-08

 Back to top