- 页头: header
- 登录条: login-bar
- 标志: logo
- 侧栏: side-bar
- 广告: banner
- 导航: nav
- 子导航: sub-nav
- 菜单: menu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
'##################### | |
' 数据验证 | |
' author: hiscaler | |
' create date: 2012-5-29 | |
'##################### | |
Class Class_ValidatorHelper | |
Public Function isRequired(ByVal value) | |
If (UtilHelper.checkNull(value)) Then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
' Array Helper | |
Class Class_ArrayHelper | |
'************************************************** | |
'函数名:isNoneArray | |
'作 用:检测是空数组 | |
'************************************************** | |
Public Function isNoneArray(Byval Arr) | |
If NOT IsArray(Arr) Then | |
isNoneArray = True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dim objDoc, objSOAPClient | |
set objDoc = Server.CreateObject("Msxml2.DomDocument.4.0") | |
set objSOAPClient = Server.CreateObject("MSSOAP.SoapClient30") | |
sPath = "http://192.168.0.1/services/webService?wsdl" | |
objSOAPClient.ClientProperty("ServerHTTPRequest") = true | |
objSOAPClient.MSSoapInit(sPath) | |
if err.number <> 0 then | |
Response.Write("<script type=""text/javascript"">alert('Web Services 调用失败。');location.href='?';</script>") | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class GzipBehavior extends CBehavior | |
{ | |
public function events () | |
{ | |
return array ( 'onBeginRequest' => 'beginRequest','onEndRequest' => 'endRequest' ); | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SQLite: sqlite:/path/to/dbfile | |
MySQL: mysql:host=localhost;dbname=testdb | |
PostgreSQL: pgsql:host=localhost;port=5432;dbname=testdb | |
SQL Server: mssql:host=localhost;dbname=testdb | |
Oracle: oci:dbname=//localhost:1521/testdb | |
'emulatePrepare' => true, | |
'username' => 'username', | |
'password' => 'password', | |
'charset' => 'utf8', |
NewerOlder