BVB Source Codes

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

Return Download Shandong kernel enterprise stand the source code: download diy_edit.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. CheckPurview('c_Edit');
  4. require_once(DEDEINC."/dedetag.class.php");
  5. require_once(DEDEINC."/oxwindow.class.php");
  6. if(empty($dopost))
  7. {
  8.         $dopost="";
  9. }
  10. $diyid = (empty($diyid) ? 0 : intval($diyid));
  11.  
  12. /*----------------
  13. function __SaveEdit()
  14. -----------------*/
  15. if($dopost=="save")
  16. {
  17.         $public = isset($public) && is_numeric($public) ? $public : 0;
  18.         $name = htmlspecialchars($name);
  19.         $query = "update `#@__diyforms` set name = '$name', listtemplate='$listtemplate', viewtemplate='$viewtemplate', posttemplate='$posttemplate', public='$public' where diyid='$diyid' ";
  20.         $dsql->ExecuteNoneQuery($query);
  21.         ShowMsg("成功更改一个自定义表单!","diy_main.php");
  22.         exit();
  23. }
  24. /*----------------
  25. function __Delete()
  26. -----------------*/
  27. else if($dopost=="delete")
  28. {
  29.         @set_time_limit(0);
  30.         CheckPurview('c_Del');
  31.         $row = $dsql->GetOne("Select * From #@__diyforms where diyid='$diyid'");
  32.         if(empty($job))
  33.         {
  34.                 $job="";
  35.         }
  36.  
  37.         //确认提示
  38.         if($job=="")
  39.         {
  40.                 $wintitle = "自定义表单管理-删除自定义表单";
  41.                 $wecome_info = "<a href='diy_main.php'>自定义表单管理</a>::删除自定义表单";
  42.                 $win = new OxWindow();
  43.                 $win->Init("diy_edit.php","js/blank.js","POST");
  44.                 $win->AddHidden("job","yes");
  45.                 $win->AddHidden("dopost",$dopost);
  46.                 $win->AddHidden("diyid",$diyid);
  47.                 $win->AddTitle("!将删除所有与该自定义表单相关的文件和数据<br />你确实要删除 \"".$row['name']."\" 这个自定义表单?");
  48.                 $winform = $win->GetWindow("ok");
  49.                 $win->Display();
  50.                 exit();
  51.         }
  52.  
  53.         //操作
  54.         else if($job=="yes")
  55.         {
  56.                 $row = $dsql->GetOne("Select `table` From `#@__diyforms` where diyid='$diyid'",MYSQL_ASSOC);
  57.                 if(!is_array($row))
  58.                 {
  59.                         ShowMsg("你所指定的自定义表单信息不存在!","-1");
  60.                         exit();
  61.                 }
  62.  
  63.                 //删除表
  64.                 $dsql->ExecuteNoneQuery("DROP TABLE IF EXISTS `{$row['table']}`;");
  65.  
  66.                 //删除频道配置信息
  67.                 $dsql->ExecuteNoneQuery("Delete From `#@__diyforms` where diyid='$diyid'");
  68.                 ShowMsg("成功删除一个自定义表单!","diy_main.php");
  69.                 exit();
  70.         }
  71. }
  72.  
  73. /*----------------
  74. function edit()
  75. -----------------*/
  76. $row = $dsql->GetOne("Select * From #@__diyforms where diyid='$diyid'");
  77. include DEDEADMIN."/templets/diy_edit.htm";
  78.  
  79. ?>
downloaddiy_edit.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