@@ -63,7 +63,7 @@ |
||
| 63 | 63 | } |
| 64 | 64 | if (!empty($this->columns)) { |
| 65 | 65 | if ($span = $i % $this->columns) { |
| 66 | - $ret .= '<td colspan="'.($this->columns - $span).'"></td></tr>'; |
|
| 66 | + $ret .= '<td colspan="'.($this->columns-$span).'"></td></tr>'; |
|
| 67 | 67 | } |
| 68 | 68 | $ret .= '</table>'; |
| 69 | 69 | } |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | $ret .= $ele->render(); |
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | - $ret .= NWLINE.'</form>'; |
|
| 49 | + $ret .= NWLINE.'</form>'; |
|
| 50 | 50 | |
| 51 | 51 | return $ret; |
| 52 | 52 | } |
@@ -141,7 +141,7 @@ |
||
| 141 | 141 | $namespace = ''; |
| 142 | 142 | if (false !== ($lastNsPos = strripos($className, $this->_namespaceSeparator))) { |
| 143 | 143 | $namespace = substr($className, 0, $lastNsPos); |
| 144 | - $className = substr($className, $lastNsPos + 1); |
|
| 144 | + $className = substr($className, $lastNsPos+1); |
|
| 145 | 145 | $fileName = str_replace($this->_namespaceSeparator, DIRECTORY_SEPARATOR, $namespace).DIRECTORY_SEPARATOR; |
| 146 | 146 | } |
| 147 | 147 | $fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className).$this->_fileExtension; |
@@ -134,7 +134,7 @@ |
||
| 134 | 134 | |
| 135 | 135 | // Write text |
| 136 | 136 | $textColor = imagecolorallocate($imageModule, 0, 0, 0); |
| 137 | - $spaceToBorder = (92 - strlen($moduleDirname) * 7.5) / 2; |
|
| 137 | + $spaceToBorder = (92-strlen($moduleDirname) * 7.5) / 2; |
|
| 138 | 138 | imagefttext($imageModule, 8.5, 0, $spaceToBorder, 45, $textColor, $font, ucfirst($moduleDirname), array()); |
| 139 | 139 | |
| 140 | 140 | imagecopy($imageModule, $imageIcon, 29, 2, 0, 0, 32, 32); |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | $fieldName = $fields[$f]->getVar('field_name'); |
| 96 | 96 | $stuFieldName = $language.strtoupper($fieldName); |
| 97 | 97 | $lang = $this->htmlcode->getSmartyConst($language, $stuFieldName); |
| 98 | - $th .= $this->htmlcode->getHtmlTableHead($lang, 'center').PHP_EOL; |
|
| 98 | + $th .= $this->htmlcode->getHtmlTableHead($lang, 'center').PHP_EOL; |
|
| 99 | 99 | } |
| 100 | 100 | $tr = $this->htmlcode->getHtmlTableRow($th, 'head').PHP_EOL; |
| 101 | 101 | |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | $glyph = $this->htmlcode->getHtmlTag('i', array('class' => 'glyphicon glyphicon-home')); |
| 99 | 99 | $anchor = $this->htmlcode->getHtmlAnchor('<{xoAppUrl index.php}>', $glyph, 'home'); |
| 100 | 100 | $into = $this->htmlcode->getHtmlTag('li', array(), $anchor).PHP_EOL; |
| 101 | - $into .= $this->htmlcode->getSmartyForeach('itm', 'xoBreadcrumbs', $ifelse, 'bcloop'); |
|
| 101 | + $into .= $this->htmlcode->getSmartyForeach('itm', 'xoBreadcrumbs', $ifelse, 'bcloop'); |
|
| 102 | 102 | |
| 103 | 103 | $content = $this->htmlcode->getHtmlTag('ul', array('class' => 'breadcrumb'), $into); |
| 104 | 104 | |
@@ -228,7 +228,7 @@ |
||
| 228 | 228 | |
| 229 | 229 | $incl = $this->htmlcode->getSmartyIncludeFileListForeach($moduleDirname, $tableName, $tableSoleName).PHP_EOL; |
| 230 | 230 | $html = $this->htmlcode->getHtmlEmpty('<br />').PHP_EOL; |
| 231 | - $incl .= $this->htmlcode->getSmartyConditions($tableSoleName.'.count', ' is div by ', '$numb_col', $html).PHP_EOL; |
|
| 231 | + $incl .= $this->htmlcode->getSmartyConditions($tableSoleName.'.count', ' is div by ', '$numb_col', $html).PHP_EOL; |
|
| 232 | 232 | $const = $this->htmlcode->getSmartyConst($language, $stuTableName.'_TITLE'); |
| 233 | 233 | $div = $this->htmlcode->getHtmlDiv($const, 'panel-heading').PHP_EOL; |
| 234 | 234 | $cont = $this->htmlcode->getHtmlDiv($incl, 'panel panel-body').PHP_EOL; |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | $nb_fieldSearch = count($fieldSearch); |
| 96 | 96 | $sql .= '('; |
| 97 | 97 | for ($i = 0; $i < $nb_fieldSearch; ++$i) { |
| 98 | - if ($i != $nb_fieldSearch - 1) { |
|
| 98 | + if ($i != $nb_fieldSearch-1) { |
|
| 99 | 99 | $sql .= ''.$fieldSearch[$i].' LIKE %$queryarray['.$options.']% OR '; |
| 100 | 100 | } else { |
| 101 | 101 | $sql .= ''.$fieldSearch[$i].' LIKE %$queryarray[0]%'; |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | if (strpos($fieldName, '_')) { |
| 100 | 100 | $str = strpos($fieldName, '_'); |
| 101 | 101 | if ($str !== false) { |
| 102 | - $rpFieldName = substr($fieldName, $str + 1, strlen($fieldName)); |
|
| 102 | + $rpFieldName = substr($fieldName, $str+1, strlen($fieldName)); |
|
| 103 | 103 | } |
| 104 | 104 | } |
| 105 | 105 | $lpFieldName = substr($fieldName, 0, strpos($fieldName, '_')); |