mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Close Connection when there is no connection value.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13161 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
034a5c0288
commit
f70ce644ce
1410 changed files with 7188 additions and 53541 deletions
|
|
@ -13,7 +13,7 @@ class HTMLDisplayHandler
|
|||
$oTemplate = TemplateHandler::getInstance();
|
||||
|
||||
// compile module tpl
|
||||
// deprecated themes skin
|
||||
// deprecated themes skin
|
||||
|
||||
$template_path = $oModule->getTemplatePath();
|
||||
|
||||
|
|
@ -225,6 +225,7 @@ class HTMLDisplayHandler
|
|||
$oTemplate = TemplateHandler::getInstance();
|
||||
if(Mobile::isFromMobilePhone())
|
||||
{
|
||||
$this->_loadMobileJSCSS();
|
||||
$output = $oTemplate->compile('./common/tpl', 'mobile_layout');
|
||||
}
|
||||
else
|
||||
|
|
@ -260,6 +261,20 @@ class HTMLDisplayHandler
|
|||
{
|
||||
case 'text':
|
||||
case 'hidden':
|
||||
case 'email':
|
||||
case 'search':
|
||||
case 'tel':
|
||||
case 'url':
|
||||
case 'email':
|
||||
case 'datetime':
|
||||
case 'date':
|
||||
case 'month':
|
||||
case 'week':
|
||||
case 'time':
|
||||
case 'datetime-local':
|
||||
case 'number':
|
||||
case 'range':
|
||||
case 'color':
|
||||
$str = preg_replace('@\svalue="[^"]*?"@', ' ', $str) . ' value="' . @htmlspecialchars($INPUT_ERROR[$match[3]]) . '"';
|
||||
break;
|
||||
case 'password':
|
||||
|
|
@ -419,6 +434,25 @@ class HTMLDisplayHandler
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* import basic .js files for mobile
|
||||
*/
|
||||
private function _loadMobileJSCSS()
|
||||
{
|
||||
$oContext = Context::getInstance();
|
||||
$lang_type = Context::getLangType();
|
||||
|
||||
// add common JS/CSS files
|
||||
if(__DEBUG__)
|
||||
{
|
||||
$oContext->loadFile(array('./common/css/mobile.css', '', '', -1000000), true);
|
||||
}
|
||||
else
|
||||
{
|
||||
$oContext->loadFile(array('./common/css/mobile.min.css', '', '', -1000000), true);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
/* End of file HTMLDisplayHandler.class.php */
|
||||
/* Location: ./classes/display/HTMLDisplayHandler.class.php */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue