加入收藏 | 设为首页 | 会员中心 | 我要投稿 | RSS
您当前的位置:首页 > 开发教程

示例:帝国CMS7.5分享_提现_积分兑换插件

时间:2025-03-29 18:32:37  来源:  作者:

目录结构


│  ├─extend/ 
│  │  ├─exchangeMemberGroup/ 
│  │  │  └─config.php 
│  │  │  └─doaction.php 
│  │  │  └─log.php 
│  │  │  ├─css/ 
│  │  │  │  └─index.css 
│  │  │  ├─install/ 
│  │  │  │  └─index.php 
│  │  │  │  └─install.php 
│  │  │  │  └─uninstall.php 
│  │  │  │  ├─css/ 
│  │  │  │  │  └─logo1.png 
│  │  │  │  │  └─pc_texture.png 
│  │  │  ├─js/ 
│  │  │  │  └─admin.js 
│  │  │  │  └─index.js 
│  │  │  │  └─jquery.js 
│  │  │  │  └─utils.js 
│  │  ├─share/ 
│  │  │  └─config.php 
│  │  │  └─doaction.php 
│  │  │  └─falsedata.php 
│  │  │  └─log.php 
│  │  │  └─top.php 
│  │  │  └─topRewardLog.txt 
│  │  │  └─备注 
│  │  │  ├─css/ 
│  │  │  │  └─admin.css 
│  │  │  │  └─index.css 
│  │  │  ├─images/ 
│  │  │  │  └─banner.jpg 
│  │  │  │  └─banner1.jpg 
│  │  │  ├─install/ 
│  │  │  │  └─index.php 
│  │  │  │  └─install.php 
│  │  │  │  └─uninstall.php 
│  │  │  │  ├─css/ 
│  │  │  │  │  └─logo1.png 
│  │  │  │  │  └─pc_texture.png 
│  │  │  ├─js/ 
│  │  │  │  └─admin.js 
│  │  │  │  └─index.js 
│  │  │  │  └─jquery.js 
│  │  │  │  └─jquery.qrcode.min.js 
│  │  │  │  └─utils.js 
│  │  │  │  ├─layer/ 
│  │  │  │  │  └─layer.js 
│  │  │  │  │  ├─mobile/ 
│  │  │  │  │  │  └─layer.js 
│  │  │  │  │  │  ├─need/ 
│  │  │  │  │  │  │  └─layer.css 
│  │  │  │  │  ├─theme/ 
│  │  │  │  │  │  ├─default/ 
│  │  │  │  │  │  │  └─icon-ext.png 
│  │  │  │  │  │  │  └─icon.png 
│  │  │  │  │  │  │  └─layer.css 
│  │  │  │  │  │  │  └─loading-0.gif 
│  │  │  │  │  │  │  └─loading-1.gif 
│  │  │  │  │  │  │  └─loading-2.gif 
│  │  │  ├─topRewardLog/ 
│  │  ├─withdrawal/ 
│  │  │  └─config.php 
│  │  │  └─doaction.php 
│  │  │  └─handle.php 
│  │  │  └─log.php 
│  │  │  └─logInfo.php 
│  │  │  ├─css/ 
│  │  │  │  └─admin.css 
│  │  │  │  └─credit.png 
│  │  │  │  └─withdrawal.css 
│  │  │  ├─install/ 
│  │  │  │  └─index.php 
│  │  │  │  └─install.php 
│  │  │  │  └─uninstall.php 
│  │  │  │  ├─css/ 
│  │  │  │  │  └─logo1.png 
│  │  │  │  │  └─pc_texture.png 
│  │  │  ├─js/ 
│  │  │  │  └─app.js 
│  │  │  │  └─Common.css 
│  │  │  │  └─JQRadio.js 
│  │  │  │  └─jquery.js 
│  │  │  │  └─layer.js 
│  │  │  │  └─withdrawal.js 
│  │  │  │  ├─extend/ 
│  │  │  │  │  └─layer.ext.js 
│  │  │  │  ├─skin/ 
│  │  │  │  │  └─layer.css 
│  │  │  │  │  └─layer.ext.css 
│  │  │  │  │  ├─default/ 
│  │  │  │  │  │  └─icon-ext.png 
│  │  │  │  │  │  └─icon.png 
│  │  │  │  │  │  └─loading-0.gif 
│  │  │  │  │  │  └─loading-1.gif 
│  │  │  │  │  │  └─loading-2.gif 
│  ├─member/ 
│  │  ├─exchange/ 
│  │  │  └─index.php 
│  │  │  └─log.php 
│  │  ├─withdrawal/ 
│  │  │  └─bind.php 
│  │  │  └─index.php 
│  │  │  └─info.php 
│  │  │  └─list.php 
│  ├─share/ 
│  │  └─index.php 
│  │  └─userLog.php 
│  ├─template/ 
│  │  ├─exchange/ 
│  │  │  └─index.php 
│  │  │  └─log.php 
│  │  ├─share/ 
│  │  │  └─index.php 
│  │  │  └─member.php 
│  │  │  └─userLog.php 
│  │  ├─withdrawal/ 
│  │  │  └─cash.php 
│  │  │  └─cashbind.php 
│  │  │  └─cashInfo.php 
│  │  │  └─cashlist.php 
 

目录名:e/ 
文件名:tree_structure目录.bat 
文件名:tree_structure目录和文件内容.bat 
文件名:directory_structure.txt 
文件内容: 
    目录名:e/  
    目录名:extend/ 
        目录名:exchangeMemberGroup/ 
        文件名:config.php 
        文件内容: 
            <?php 
            define('EmpireCMSAdmin','1'); 
            require("../../class/connect.php"); 
            require("../../class/db_sql.php"); 
            require("../../class/functions.php"); 
            include('../../data/dbcache/class.php'); 
            require "../".LoadLang("pub/fun.php"); 
            $link=db_connect(); 
            $empire=new mysqlquery(); 
            $editor=1; 
            $lur=is_login(); 
            $logininid=$lur['userid']; 
            $loginin=$lur['username']; 
            $loginrnd=$lur['rnd']; 
            $loginlevel=$lur['groupid']; 
            $loginadminstyleid=$lur['adminstyleid']; 
            //ehash 
            $ecms_hashur=hReturnEcmsHashStrAll(); 
            $config=$empire->fetch1("select * from {$dbtbpre}ecms_exchangemg_config limit 1"); 
            $topconfig=$empire->query("select * from {$dbtbpre}ecms_exchangemg_exconfig order by id asc"); 
            //保存数据 
            if($_POST){ 
              $state=(int)$_POST[state]; 
              $groupids = $_POST['groupid']; 
              $days = $_POST['days']; 
              $fens = $_POST['fens']; 
              $sql=$empire->query("update {$dbtbpre}ecms_exchangemg_config set state='$state' limit 1"); 
ECHO is off.
              $delsql=$empire->query("delete from {$dbtbpre}ecms_exchangemg_exconfig "); 
              if (count($groupids)>0) { 
                for ($i=0; $i <count($groupids); $i++) {  
                  $groupid = $groupids[$i]; 
                  $day = $days[$i]; 
                  $fen=$fens[$i]; 
                  $sql=$empire->query("insert into {$dbtbpre}ecms_exchangemg_exconfig(fen,groupid,days) values('$fen','$groupid','$day')"); 
                } 
              } 
                if($sql){ 
                    printerror("设置成功","config.php".$ecms_hashur['whehref'],1,0,1); 
                } else { 
                    printerror("保存失败","config.php".$ecms_hashur['whehref'],1,0,1); 
                } 
            } 
            function renderGroupSelectOptions($value) 
            { 
              global $empire,$public_r,$dbtbpre; 
              $groupsql=$empire->query("select groupid,groupname from {$dbtbpre}enewsmembergroup order by level"); 
              $zgroup=""; 
              while($g_r=$empire->fetch($groupsql)) 
              { 
                if($r[groupid]==$g_r[groupid]) 
                {$select=" selected";} 
                else 
                {$select="";} 
                $group.="<option value=".$g_r[groupid].$select.">".$g_r[groupname]."</option>"; 
                if($value==$g_r[groupid]) 
                {$zselect=" selected";} 
                else 
                {$zselect="";} 
                $zgroup.="<option value=".$g_r[groupid].$zselect.">".$g_r[groupname]."</option>"; 
              } 
              return $zgroup; 
            } 
            ?> 
            <html> 
            <head> 
            <link href="/e/admin/adminstyle/1/adminstyle.css" rel="stylesheet" type="text/css">  
            <link href="./css/admin.css" rel="stylesheet" type="text/css">  
            <title>积分兑换会员组</title> 
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
            <?=$loadeditorjs?> 
            </head> 
            <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1"> 
              <tr>  
                <td>位置:积分兑换会员组</td> 
                <td width="50%"><div align="right" class="emenubutton"> 
                  </div></td> 
              </tr> 
            </table> 
            <div style="display:none"> 
              <select name="groupSelect" id="groupSelect"> 
                <?=renderGroupSelectOptions()?> 
              </select> 
            </div> 
            <form name="form1" id="form1" method="post" enctype="multipart/form-data" action="config.php" > 
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="tableborder"> 
              <?=$ecms_hashur['form']?> 
                <tbody> 
ECHO is off.
                  <tr bgcolor="#FFFFFF">  
                    <td width="23%" height="25"><div align="right">插件开关:</div></td> 
                    <td width="77%" height="25"> 
                        <label> 
                          <input type="radio" name="state" value="1" <?=$config['state']==1?'checked="checked"':''?>> 
                          开启 
                        </label> 
                        <label> 
                          <input type="radio" name="state" value="0" <?=$config['state']''?>> 
                          关闭 
                        </label> 
                    </td> 
                  </tr> 
ECHO is off.
ECHO is off.
                  <tr bgcolor="#FFFFFF">  
                    <td width="23%" ><div align="right">兑换设置:</div></td> 
                    <td width="77%"  align="left" style="padding:6px;"> 
                      <div style="width:100%"> 
                        <table width="600px" border="0" align="left" cellpadding="0" cellspacing="1" class="tableborder"> 
                          <tbody id="topConfigTableBody"> 
                            <tr class="header"> 
                                <td>兑换会员组</td> 
                                <td>所需积分</td> 
                                <td>兑换天数</td> 
                                <td>操作</td> 
                            </tr> 
                            <? 
                            while($r=$empire->fetch($topconfig)) 
                            { 
ECHO is off.
                            ?> 
                            <tr bgcolor="#FFFFFF">  
ECHO is off.
                              <td width="30%" height="25"> 
                                <select name="groupid[]" id="groupid[]" value="<?=$r[groupid]?>"> 
                                  <?=renderGroupSelectOptions($r[groupid])?> 
                                </select> 
                              </td> 
                              <td width="20%" height="25"> 
                                <input name="fens[]" value="<?=$r[fen]?>"/> 
                              </td> 
                              <td width="20%" height="25"> 
                                <input name="days[]" value="<?=$r[days]?>"/> 
                              </td> 
                              <td width="10%" height="25"> 
                                <a href="javascript:;" class="btn" onclick="delConfig(this)">删除</a> 
                              </td> 
                            </tr> 
                            <?}?> 
                          </tbody> 
                        </table> 
                      </div> 
                      <div> 
                        <a href="javascript:;" class="btn" onclick="addConfig()">添加</a> 
                      </div> 
                    </td> 
                  </tr> 
ECHO is off.
ECHO is off.
                  <tr bgcolor="#FFFFFF">  
                    <td height="25">&nbsp;</td> 
                    <td height="25"><input type="submit" name="Submit" value=" 保存 "> </td> 
                  </tr> 
ECHO is off.
                </tbody> 
ECHO is off.
              </table> 
            </form> 
            <? 
            db_close(); 
            $empire=null; 
            ?> 
            <script src="../share/js/jquery.js"></script> 
            <script src="./js/admin.js"></script> 
            <-- <script src="/e/extend/share/js/admin.js"></script> --> 
            </body> 
            </html>

来顶一下
返回首页
返回首页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
推荐资讯
相关文章
    无相关信息
栏目更新
栏目热门