PIXNET Logo登入

秋風落葉、萍水相逢 - Matt 程式 旅行 攝

跳到主文

擁有多項宅興趣-鋼普拉、電玩和動漫魂 又愛四處旅遊遊玩的宅爸工程師 本身為網站全端工程師 後端會使用PHP、ASP 前端會jQuery、Extjs等 再加上會管理公司的網站伺服器 所以對CentOS以及Freebsd與網站相關的技術熟悉

部落格全站分類:生活綜合

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 10月 08 週四 201509:26
  • Mysql一次修改整個資料庫的tables(新增欄位等等)

首先先切換到information_schema;
mysql> use information_schema;
(繼續閱讀...)
文章標籤

Matt 發表在 痞客邦 留言(0) 人氣(563)

  • 個人分類:後端WEB技術
▲top
  • 9月 16 週三 201511:19
  • Freebsd以及CentOS下用PHP存取MSSQL的設定

先安裝好PHP包含Extension(MSSQL)
通常這樣還是沒辦法連結到
需要安裝一個ODBC這類型的驅動程式才能連結到
PHP官網上的說明:
(繼續閱讀...)
文章標籤

Matt 發表在 痞客邦 留言(0) 人氣(138)

  • 個人分類:後端WEB技術
▲top
  • 9月 14 週一 201518:08
  • [Extjs] Grid 裡面的欄位改用字型icon

actioncolumn
首先這部分override先引入
Ext.define('AppOverrides.grid.column.Action', {
override: 'Ext.grid.column.Action',

iconTpl: '<tpl for=".">' +
'<tpl if="glyph">' +
'<div class="{cls}" style="font-family:{glyphFamily}; font-size:14px; line-height: 15px;margin-left:5px; float: left;"<tpl if="tooltip"> data-qtip="{tooltip}"</tpl>>&#{glyph};</div>' +
'<tpl else>' +
'<img role="button" alt="{alt}" class="{cls}"<tpl if="tooltip"> data-qtip="{tooltip}"</tpl> />' +
'</tpl>' +
'</tpl>',
defaultRenderer: function(v, meta, record, rowIdx, colIdx, store, view) {
var me = this,
prefix = Ext.baseCSSPrefix,
scope = me.origScope || me,
items = me.items,
altText = me.altText,
disableAction = me.disableAction,
enableAction = me.enableAction,
iconCls = me.iconCls,
len = items.length,
i = 0,
iconTpl = new Ext.XTemplate(me.iconTpl),
datas = [],
item, itemScope, ret, disabled, tooltip, glyph, cls, data;
// Allow a configured renderer to create initial value (And set the other values in the "metadata" argument!)
// Assign a new variable here, since if we modify "v" it will also modify the arguments collection, meaning
// we will pass an incorrect value to getClass/getTip
ret = Ext.isFunction(me.origRenderer) ? me.origRenderer.apply(scope, arguments) || '' : '';
meta.tdCls += ' ' + Ext.baseCSSPrefix + 'action-col-cell';
for (; i < len; i++) {
item = items[i];
itemScope = item.scope || scope;
disabled = item.disabled || (item.isDisabled ? item.isDisabled.call(itemScope, view, rowIdx, colIdx, item, record) : false);
tooltip = disabled ? null : (item.tooltip || (item.getTip ? item.getTip.apply(itemScope, arguments) : null));
glyph = item.glyph || item.getGlyph;
cls = Ext.String.trim(prefix + 'action-col-icon ' + prefix + 'action-col-' + String(i) + ' ' + (disabled ? prefix + 'item-disabled' : ' ') + ' ' + (Ext.isFunction(item.getClass) ? item.getClass.apply(itemScope, arguments) : (item.iconCls || iconCls || '')));
data = {
cls: cls,
tooltip: tooltip
};
// Only process the item action setup once.
if (!item.hasActionConfiguration) {
// Apply our documented default to all items
item.stopSelection = me.stopSelection;
item.disable = Ext.Function.bind(disableAction, me, [i], 0);
item.enable = Ext.Function.bind(enableAction, me, [i], 0);
item.hasActionConfiguration = true;
}


if (glyph) {
if (Ext.isFunction(glyph)) {
glyph = glyph.call(itemScope, view, rowIdx, colIdx, item, record);
}


if (glyph) {
glyph = glyph.split('@');
data.glyph = glyph[0];
data.glyphFamily = glyph[1];
} else {
data = false;
}
} else {
data.alt = item.altText || altText;
data.src = item.icon || Ext.BLANK_IMAGE_URL;
}


data && datas.push(data);
}


len && (ret += iconTpl.apply(datas));
return ret;
}
});
(繼續閱讀...)
文章標籤

Matt 發表在 痞客邦 留言(0) 人氣(122)

  • 個人分類:後端WEB技術
▲top
  • 9月 02 週三 201511:26
  • (Web) Glyphicons - icon改用字型

因為目前公司主要使用的CSS Framework為Bootstrap
本身有內建了一組字型是用來顯示Icon用的
Bootstrap 
不過其實裡面的icon不多
(繼續閱讀...)
文章標籤

Matt 發表在 痞客邦 留言(0) 人氣(53)

  • 個人分類:後端WEB技術
▲top
  • 1月 16 週一 201211:08
  • (codeigniter) 動態變換Base_url()

由於Codeigniter是使用MVC架構,這類型架構的網址變動通常是靠絕對位址
但是也會提供一個設定去變換絕對位址,Codeigniter提供在Config.php裡面
$config['base_url'] = '網址';

(繼續閱讀...)
文章標籤

Matt 發表在 痞客邦 留言(0) 人氣(363)

  • 個人分類:後端WEB技術
▲top
  • 12月 30 週五 201114:30
  • (PHP) Session之我見

只要製作有驗證的系統(例如:會員登入/登出),就應該會聯想到Session應用
以PHP來說:
Server上: Session本身是檔案系統,在Unix like上,通常是被放在/tmp底下, 可以透過php.ini去做修改位置。
Client上: 會建立一筆Cookies紀錄Session_id,讓Server比對來找出該筆Session,解析內容,來做運算。
 基本上是安全的,因為Session內容都在Server上,但是對大型網站來說,一次幾萬筆的Session是很耗資源的。
(繼續閱讀...)
文章標籤

Matt 發表在 痞客邦 留言(0) 人氣(333)

  • 個人分類:後端WEB技術
▲top
1

個人資訊

Matt
暱稱:
Matt
分類:
生活綜合
好友:
累積中
地區:

文章分類

  • 育兒 (1)
  • 國內旅遊生活 (10)
  • 國外旅遊生活 (6)
  • 食記 (9)
  • 3C開箱 (3)
  • 網站架設與管理 (11)
  • 後端WEB技術 (6)
  • 前端WEB技術 (4)
  • PHP (7)
  • 多語系 (1)
  • Jquery (2)
  • SNMP (1)
  • 未分類文章 (1)

最新文章

  • 三井Outlet 鶴橋風月 大阪燒
  • 麥當勞 小麥麥體驗營之小小店經理
  • [食記] 桃園高鐵站 博多一風堂拉麵
  • [食記] Two monkeys Brunch
  • 南投竹山桃太郎村
  • Bootstrap 4 col在桌機 2 col 在平板以下的尺寸會掉行的解法
  • [開箱] Wacom Intuos Draw 塗鴉板
  • Mysql一次修改整個資料庫的tables(新增欄位等等)
  • [食記] 永安 綠色隧道 莫內咖啡
  • [民宿] 台東樂活小築

文章搜尋

誰來我家

熱門文章

  • (2,886)(PHP) Captcha 攻防與我現在使用的套件
  • (279)Rsync Server 安裝與設定
  • (764)[FreeBSD] Pure-FTPd + MySQL 安裝與設定

參觀人氣

  • 本日人氣:
  • 累積人氣:

文章精選