Time of Update: 2018-12-06
using System;using System.Data;using System.Data.SqlClient;using System.Collections.Generic;using System.Web;using System.Web.UI;using System.Web.UI.WebControls; public partial class _Default : System.Web.UI.Page{ protected void Page_Load(object
Time of Update: 2018-12-06
Phpcms後台登陸後的頁面修改Phpcms->modules->admin->templates->main.tpl.php1,安全提示部分<h6><?php echo L('main_safety_tips')?></h6>2授權資訊<h6><?php echo L('main_license')?></h6>3,團隊部分<h6><?php echo
Time of Update: 2018-12-06
方法 11. 雙擊此 .chm 檔案。2. 在“開啟檔案安全警告”對話方塊,單擊以清除“開啟此檔案前始終詢問”複選框。3. 單擊“開啟”。方法 21. 按右鍵該 CHM 檔案,然後單擊“屬性”。2. 單擊“解除封鎖”或者“解除鎖定”。3. 雙擊此 .chm 檔案以開啟此檔案。一.如果不能開啟,可這樣恢複檔案關聯:1、運行--->輸入regsvr32 C:\windows\system32\hhctrl.ocx ;確定,重新關聯檔案。2、執行一下windows目錄裡的hh.exe
Time of Update: 2018-12-06
索引優點:1,一般是作用於where子句所給出的條件相匹配的行一是在關聯操作中與其他資料表所匹配的行。2,對於使用mix() 和max()函數的查詢的列3,經常使用order by 和group
Time of Update: 2018-12-06
window-document -anchors -forms -images -links -location-frames-history-location-navigator-screenwindow對話方塊alert() 顯示帶有一段訊息和一個確認按鈕的警告框。prompt() 顯示可提示使用者輸入的對話方塊。confirm() 顯示帶有一段訊息以及確認按鈕和取消按鈕的對話方塊。document屬性alinkColor
Time of Update: 2018-12-06
讀寫ini檔案的兩個函數WritePrivateProfileString();//寫入WritePrivateProfileString(string section,string key,string val,string filePath);參數解釋section 小結名key 關鍵字val 值filePath 檔案路徑GetPrivateProfileString();//讀取GetPrivateProfileString(string section, string key,
Time of Update: 2018-12-06
HTML <table> 標籤定義和用法<table> 標籤定義 HTML 表格。簡單的 HTML 表格由 table 元素以及一個或多個 tr、th 或 td 元素組成。tr 元素定義表格行,th 元素定義表頭,td 元素定義表格單元。更複雜的 HTML 表格也可能包括 caption、col、colgroup、thead、tfoot 以及 tbody 元素。其實就使用來說table,tr,td。就夠了。正規點加個表頭,就是table, tr,th,td。如果包含標題,
Time of Update: 2018-12-06
定義和用法<head> 標籤用於定義文檔的頭部,它是所有頭部元素的容器。<head> 中的元素可以引用指令碼、指示瀏覽器在哪裡找到樣式表、提供元資訊等等。文檔的頭部描述了文檔的各種屬性和資訊,包括文檔的標題、在 Web 中的位置以及和其他文檔的關係等。絕大多數文檔頭部包含的資料都不會真正作為內容顯示給讀者。下面這些標籤可用在 head 部分:<base /> 標籤" target="_blank"
Time of Update: 2018-12-06
其實這個問題是內容頁面中插入的圖片連結(網域名稱)沒改過來的緣故,有幾個地方需要修改過來1,文章摘要部分(v9_news)執行如下sql語句(mysql資料庫)update v9_news set description = replace(description,'xxx.org','yyy.cn') 欄位名稱 欄位名稱 要替換的舊資料 要替換成的資料
Time of Update: 2018-12-06
ol 有序列表。 <ol> <li>……</li> <li>……</li> <li>……</li> </ol> 表現為: ……………… 無序列表,表現為li前面是大圓點而不是123 <ul> <li>……</li> <li>……</li> <li>……</li> <li>……</li>
Time of Update: 2018-12-06
我們有時會向伺服器端控制項中添加一些特殊的屬性,這類屬性不需要伺服器端的處理,只需簡單的發送至用戶端即可,我們不妨稱其為用戶端屬性,例如HTML
Time of Update: 2018-12-06
phpcms的評論預設沒有字元控制,但是有時候必須多評論加入字元控制就需要修改如下地方 進入:phpcms/modules/comment/目錄下,開啟index.php檔案修改下面的函數 public function post() 找到下面的部分修改控制字元不少於4個,如果是中文,需要添加相應的函數來判斷中文字元(紅色字型是修改成的內容,藍色字型是語言套件要修改的地方。) $content = isset($_POST['content']) &&
Time of Update: 2018-12-06
一直要實現這個功能,現在看到有人弄出來了轉過來先看看。 無限級分類資料表:SQL代碼:create table t_power( id int not null IDENTITY(1,1) PRIMARY KEY, --許可權ID ParentId int not null default(0), --父級ID Depath int not null default(0), --級數 [
Time of Update: 2018-12-06
使用正則var regString=new RegExp("string");預設正則匹配第一個出現的字串,如果想全域匹配需要加參數“g”var regString=new RegExp("string","g");同時,正則預設是區分大小寫如果想不區分大小寫需要參數“i”var regString=new RegExp("string","gi");也可以使用perl風格的正則如下var regString=/string/gi; 正則的函數和參數 var sm="a bat, a
Time of Update: 2018-12-06
PHPCMS v9後台登陸提示驗證碼錯誤 PHPCMS v9的驗證碼在產生後,會把驗證碼的數字存入Session當中。PHPCMS v9在預設的情況下,Session是存放在資料庫當中的。如果出現登入和評論是報驗證碼錯誤可以修改成如下方式。 可以償試通過修改"/caches/configs/system.php"當中的:'session_storage' => 'mysql', 將其修改為'session_storage' => 'files',
Time of Update: 2018-12-06
Apache Benchmark 簡稱ab,安裝Apache伺服器後在/bin/目錄下有ab.exe程式。 測試使用命令列ab -n 10 http://domain.com/-n 表示執行請求次數,10表示請求10次-c 參數表示並發請求次數-t 表示指定時間內完成請求得到如下資料 This is ApacheBench, Version 2.3 <$Revision: 655654 $>Copyright 1996 Adam Twiss, Zeus Technology Ltd,
Time of Update: 2018-12-06
//設定cookiefunction setCookie(sName,sValue,oExpires,sPath,sDomain,bSecure){var sCookie=sName+"="+encodeURIComponent(sValue);if(oExpires){sCookie+= "; expires=" + oExpires;}if(sPath){sCookie+="; path="+sPath;}if(sDomain){sCookie+=";
Time of Update: 2018-12-06
網站添加英文版,但是語言套件是中文的(語言套件配置修改檔案是:【caches】-》【configs】-》system.php檔案中的{'lang' => 'zh-cn', //網站語言套件}部分) 語言套件的主要檔案是【phpcms】-》【languages】-》【zh-cn】-》system.lang.php修改如下:$LANG['page_item'] = '條';$LANG['previous'] = '上一頁';$LANG['next'] =
Time of Update: 2018-12-06
window.location 自己測試的一個東西:========================================================== <html><body> <script type="text/javascript"> var SelfLocation = window.location.href.split('?'); var feng=SelfLocation[1].split('=')document.write(
Time of Update: 2018-12-06
使用驗證碼後,提交按鈕發生錯位。這個時候其實刪除驗證碼程式碼片段的<div class="bk10"></div>部分即可這個是是清除浮動的。去除之後回和提交將在一行上顯示1,具體位置是phpcms\templates\default\comment\ 目錄下的show_list.html 模板頁中這段{if $setting[code]} <label>驗證碼:<input type="text" name="code" class="input-