當前位置: 首頁>>代碼示例>>PHP>>正文


PHP sys_popedom函數代碼示例

本文整理匯總了PHP中sys_popedom函數的典型用法代碼示例。如果您正苦於以下問題:PHP sys_popedom函數的具體用法?PHP sys_popedom怎麽用?PHP sys_popedom使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了sys_popedom函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: setok_f

 function setok_f()
 {
     sys_popedom($this->module_sign . ":setting", "tpl");
     $rs = array();
     if ($_POST && is_array($_POST) && count($_POST) > 0) {
         foreach ($_POST as $key => $value) {
             $rs[$key] = $this->trans_lib->safe($key);
         }
     }
     $file = ROOT_DATA . "system_" . $_SESSION["sys_lang_id"] . ".php";
     $_sys = array();
     if (file_exists($file)) {
         include $file;
     }
     //判斷郵件密碼及FTP密碼
     if ($rs["smtp_pass"] && strlen($rs["smtp_pass"]) == strlen($_sys["smtp_pass"]) && substr($rs["smtp_pass"], 0, 1) == substr($_sys["smtp_pass"], 0, 1) && substr($rs["smtp_pass"], -1) == substr($_sys["smtp_pass"], -1)) {
         $rs["smtp_pass"] = $_sys["smtp_pass"];
     }
     if ($rs["ftp_pass"] && strlen($rs["ftp_pass"]) == strlen($_sys["ftp_pass"]) && substr($rs["ftp_pass"], 0, 1) == substr($_sys["ftp_pass"], 0, 1) && substr($rs["ftp_pass"], -1) == substr($_sys["ftp_pass"], -1)) {
         $rs["ftp_pass"] = $_sys["ftp_pass"];
     }
     //判斷FTP複選框
     $rs["ftp_pasv"] = $this->trans_lib->checkbox("ftp_pasv");
     $this->file_lib->vi($rs, ROOT_DATA . "system_" . $_SESSION["sys_lang_id"] . ".php", "_sys");
     error("數據更新成功!", site_url("setting"));
 }
開發者ID:norain2050,項目名稱:hkgbf,代碼行數:26,代碼來源:setting.php

示例2: index_f

 function index_f()
 {
     //設置是否有權限執行此操作
     sys_popedom("html:list", "tpl");
     $this->auto_load();
     $this->cate_m->langid($_SESSION["sys_lang_id"]);
     $this->cate_m->get_all();
     $this->cate_m->format_list(0, 0);
     $catelist = $this->cate_m->flist();
     if (!$catelist) {
         $catelist = array();
     }
     foreach ($catelist as $key => $value) {
         $value["space"] = "";
         for ($i = 0; $i < $value["level"]; $i++) {
             $value["space"] .= "  ";
         }
         $catelist[$key] = $value;
     }
     $module_list = $this->module_m->all_module();
     //取得模塊列表
     $cate_html = "<select name='typeid' id='typeid'>";
     $cate_html .= "<option value='0:0'>全部,不限製…</option>";
     $cate_html .= "<optgroup label='選擇模塊'>";
     $new_mlist = array();
     foreach ($module_list as $key => $value) {
         if ($value["ctrl_init"] == "list" && ($value["if_list"] || $value["if_msg"])) {
             $new_mlist[] = $value;
             $cate_html .= "<option value='" . $value["id"] . ":0'";
             if ($typeid == $value["id"] . ":0") {
                 $cate_html .= " selected";
             }
             $cate_html .= ">" . $value["title"];
             if (!$value["status"]) {
                 $cate_html .= "(已停用)";
             }
             $cate_html .= "</option>";
         }
     }
     $cate_html .= "</optgroup>";
     $cate_html .= "<optgroup label='選擇分類'>";
     foreach ($catelist as $key => $value) {
         $cate_html .= "<option value='" . $value["module_id"] . ":" . $value["id"] . "'";
         if ($typeid == $value["module_id"] . ":" . $value["id"]) {
             $cate_html .= " selected";
         }
         $cate_html .= ">【" . $value["title"] . "】" . $value["space"] . $value["cate_name"];
         if (!$value["status"]) {
             $cate_html .= "(已停用)";
         }
         $cate_html .= "</option>";
     }
     $cate_html .= "</optgroup>";
     $cate_html .= "</select>";
     $this->tpl->assign("cate_html", $cate_html);
     $this->tpl->display("create_html/list.html");
 }
開發者ID:norain2050,項目名稱:hkgbf,代碼行數:57,代碼來源:html.php

示例3: del_f

 function del_f()
 {
     $id = $this->trans_lib->int("id");
     if (!$id) {
         exit("對不起,你的操作有錯誤!");
     }
     sys_popedom("subscribers:delete", "ajax");
     $this->subscribers_m->del($id);
     exit("ok");
 }
開發者ID:ahmatjan,項目名稱:yida,代碼行數:10,代碼來源:subscribers.php

示例4: del_f

 function del_f()
 {
     $id = $this->trans_lib->safe("id");
     if (!$id) {
         exit("Error:操作非法,沒有指定ID");
     }
     sys_popedom("hotlink:delete", "ajax");
     $this->hotlink_m->del($id);
     exit("ok");
 }
開發者ID:ahmatjan,項目名稱:yida,代碼行數:10,代碼來源:hotlink.php

示例5: index_f

 function index_f()
 {
     sys_popedom("excel:list", "tpl");
     $condition = "ctrl_init='list'";
     $mlist = $this->module_m->all_module(0, $condition);
     $this->tpl->assign("mlist", $mlist);
     //取得附件信息
     $filelist = $this->file_list();
     $this->tpl->assign("filelist", $filelist);
     //讀取excel文件
     $this->tpl->display("excel/list.html");
 }
開發者ID:norain2050,項目名稱:hkgbf,代碼行數:12,代碼來源:excel.php

示例6: setok_f

 function setok_f()
 {
     sys_popedom($this->module_sign . ":setting", "tpl");
     $rs = array();
     if ($_POST && is_array($_POST) && count($_POST) > 0) {
         foreach ($_POST as $key => $value) {
             $rs[$key] = $this->trans_lib->safe($key);
         }
     }
     $this->file_lib->vi($rs, ROOT_DATA . "system_" . $_SESSION["sys_lang_id"] . ".php", "_sys");
     error("數據更新成功!", site_url("setting"));
 }
開發者ID:helloyuanyuan,項目名稱:ReferralBonus,代碼行數:12,代碼來源:setting.php

示例7: index_f

 function index_f()
 {
     sys_popedom("excel_user:list", "tpl");
     $DB_Server = $this->db->host;
     $DB_Username = $this->db->user;
     $DB_Password = $this->db->pass;
     $DB_DBName = $this->db->data;
     $savename = date("YmjHis");
     $Connect = @mysql_connect($DB_Server, $DB_Username, $DB_Password) or die("Couldn't connect.");
     mysql_query("Set Names gb2312");
     $file_type = "vnd.ms-excel";
     $file_ending = "xls";
     header("Content-Type: application/{$file_type};charset=utf-8");
     header("Content-Disposition: attachment; filename=" . $savename . ".{$file_ending}");
     //header("Pragma: no-cache");
     $now_date = date("Y-m-j H:i:s");
     $sql = "Select id,username,phone,regdate,status,fxstatus,job,company,bankAccount,cardCode,bankName from " . $this->db->prefix . "user ";
     $ALT_Db = @mysql_select_db($DB_DBName, $Connect) or die("Couldn't select database");
     $result = @mysql_query($sql, $Connect) or die(mysql_error());
     $sep = "\t";
     for ($i = 0; $i < mysql_num_fields($result); $i++) {
         echo mysql_field_name($result, $i) . "\t";
     }
     print "\n";
     $i = 0;
     while ($row = mysql_fetch_row($result)) {
         $schema_insert = "";
         for ($j = 0; $j < mysql_num_fields($result); $j++) {
             if (!isset($row[$j])) {
                 $schema_insert .= "NULL" . $sep;
             } elseif ($row[$j] != "") {
                 if ($j == "3") {
                     $postdate = date('Y-m-d h:m:s', $row[$j]);
                     $schema_insert .= "{$postdate}" . $sep;
                 } else {
                     $schema_insert .= "{$row[$j]}" . $sep;
                 }
             } else {
                 $schema_insert .= "" . $sep;
             }
         }
         $schema_insert = str_replace($sep . "\$", "", $schema_insert);
         $schema_insert .= "\t";
         print trim($schema_insert);
         print "\n";
         $i++;
     }
     return true;
     $this->tpl->display("home.html");
 }
開發者ID:helloyuanyuan,項目名稱:ReferralBonus,代碼行數:50,代碼來源:excel_user.php

示例8: ajax_del_f

 function ajax_del_f()
 {
     $id = $this->trans_lib->int("id");
     if (!$id) {
         exit("error:沒有指定ID");
     }
     sys_popedom($this->module_sign . ":delete", "ajax");
     $rs = $this->tpl_m->get_one($id);
     if ($rs["ifsystem"]) {
         exit("error: 對不起,係統模板不允許刪除");
     }
     if ($rs["ifdefault"]) {
         exit("error: 對不起,默認模板不允許刪除");
     }
     $this->tpl_m->del($id);
     exit("ok");
 }
開發者ID:helloyuanyuan,項目名稱:ReferralBonus,代碼行數:17,代碼來源:tpl.php

示例9: ajax_del_f

 function ajax_del_f()
 {
     $id = $this->trans_lib->int("id");
     if (!$id) {
         exit("error:沒有指定ID");
     }
     sys_popedom("usergroup:delete", "ajax");
     $rs = $this->usergroup_m->get_one($id);
     if ($rs["ifdefault"]) {
         exit("默認組不允許刪除!");
     }
     if ($rs["ifsystem"]) {
         exit("係統組不允許刪除!");
     }
     $this->usergroup_m->del($id);
     exit("ok");
 }
開發者ID:helloyuanyuan,項目名稱:ReferralBonus,代碼行數:17,代碼來源:usergroup.php

示例10: ajax_del_f

 function ajax_del_f()
 {
     $id = $this->trans_lib->int("id");
     if (!$id) {
         exit("error:沒有指定ID");
     }
     sys_popedom("user:delete", "ajax");
     load_plugin("user:del:prev");
     $this->user_m->del($id);
     load_plugin("user:del:next");
     exit("ok");
 }
開發者ID:ahmatjan,項目名稱:yida,代碼行數:12,代碼來源:user.php

示例11: ajax_del_f

 function ajax_del_f()
 {
     $id = $this->trans_lib->int("id");
     if (!$id) {
         exit("error:沒有指定ID");
     }
     sys_popedom($this->module_sign . ":delete", "ajax");
     $this->phpok_m->del($id);
     exit("ok");
 }
開發者ID:ahmatjan,項目名稱:yida,代碼行數:10,代碼來源:phpok.php

示例12: index_f

 function index_f()
 {
     sys_popedom($this->module_sign . ":list", "tpl");
     if (file_exists(ROOT_DATA . "system_" . $_SESSION["sys_lang_id"] . ".php")) {
         include ROOT_DATA . "system_" . $_SESSION["sys_lang_id"] . ".php";
         $siteurl = $_sys["siteurl"];
     }
     if (!$siteurl) {
         $siteurl = $this->trans_lib->get_url();
     }
     if (substr($siteurl, -1) != "/") {
         $siteurl .= "/";
     }
     $this->tpl->assign("siteurl", $siteurl);
     $this->cate_m->langid($_SESSION["sys_lang_id"]);
     $this->cate_m->get_all();
     $this->cate_m->format_list(0, 0);
     $catelist = $this->cate_m->flist();
     if (!$catelist) {
         $catelist = array();
     }
     foreach ($catelist as $key => $value) {
         $value["space"] = "";
         for ($i = 0; $i < $value["level"]; $i++) {
             $value["space"] .= "  ";
         }
         $catelist[$key] = $value;
     }
     $module_list = $this->module_m->all_module();
     //取得模塊列表
     $cate_html = "<select name='typeid' id='typeid'>";
     $cate_html .= "<option value='0:0'>全部,不限製…</option>";
     $cate_html .= "<optgroup label='選擇模塊'>";
     $new_mlist = array();
     foreach ($module_list as $key => $value) {
         if ($value["ctrl_init"] == "list" && ($value["if_list"] || $value["if_msg"])) {
             $new_mlist[] = $value;
             $cate_html .= "<option value='" . $value["id"] . ":0'";
             if ($typeid == $value["id"] . ":0") {
                 $cate_html .= " selected";
             }
             $cate_html .= ">" . $value["title"];
             if (!$value["status"]) {
                 $cate_html .= "(已停用)";
             }
             $cate_html .= "</option>";
         }
     }
     $cate_html .= "</optgroup>";
     $cate_html .= "<optgroup label='選擇分類'>";
     foreach ($catelist as $key => $value) {
         $cate_html .= "<option value='" . $value["module_id"] . ":" . $value["id"] . "'";
         if ($typeid == $value["module_id"] . ":" . $value["id"]) {
             $cate_html .= " selected";
         }
         $cate_html .= ">【" . $value["title"] . "】" . $value["space"] . $value["cate_name"];
         if (!$value["status"]) {
             $cate_html .= "(已停用)";
         }
         $cate_html .= "</option>";
     }
     $cate_html .= "</optgroup>";
     $cate_html .= "</select>";
     $this->tpl->assign("cate_html", $cate_html);
     $this->tpl->display("create_html/list.html");
 }
開發者ID:ahmatjan,項目名稱:yida,代碼行數:66,代碼來源:html.php

示例13: fields_del_f

 function fields_del_f()
 {
     $id = $this->trans_lib->int("id");
     if (!$id) {
         exit("error: 操作非法,沒有指定ID");
     }
     sys_popedom($this->module_sign . ":delete", "tpl");
     //刪除模塊操作
     $this->module_m->fields_del($id);
     exit("ok");
 }
開發者ID:norain2050,項目名稱:hkgbf,代碼行數:11,代碼來源:ctrl.php

示例14: ajax_del_f

 function ajax_del_f()
 {
     $id = $this->trans_lib->safe("id");
     if (!$id) {
         exit("error:沒有指定ID");
     }
     $array = sys_id_list($id);
     if (!$array[0]) {
         exit("error:錯誤");
     }
     $rs = $this->list_m->get_one($array[0]);
     $module_id = $rs["module_id"];
     sys_popedom($module_id . ":delete", "ajax");
     $this->list_m->del($id);
     exit("ok");
 }
開發者ID:helloyuanyuan,項目名稱:ReferralBonus,代碼行數:16,代碼來源:list.php

示例15: groupdel_f

 function groupdel_f()
 {
     $id = $this->trans_lib->int("id");
     if (!$id) {
         error("沒有指定組ID", $this->url("datalink"));
     }
     sys_popedom($this->module_sign . ":group", "tpl");
     $this->datalink_m->del_group($id);
     error("組信息刪除成功", $this->url("datalink"));
 }
開發者ID:ahmatjan,項目名稱:yida,代碼行數:10,代碼來源:datalink.php


注:本文中的sys_popedom函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。