@@ -100,10 +100,10 @@ discard block |
||
| 100 | 100 | if (is_array($this->keyName)) { |
| 101 | 101 | $criteria = new CriteriaCompo(); |
| 102 | 102 | for ($i = 0, $iMax = count($this->keyName); $i < $iMax; ++$i) { |
| 103 | - $criteria->add(new Criteria($this->keyName[$i], (int)$id[$i])); |
|
| 103 | + $criteria->add(new Criteria($this->keyName[$i], (int) $id[$i])); |
|
| 104 | 104 | } |
| 105 | 105 | } else { |
| 106 | - $criteria = new Criteria($this->keyName, (int)$id); |
|
| 106 | + $criteria = new Criteria($this->keyName, (int) $id); |
|
| 107 | 107 | } |
| 108 | 108 | $criteria->setLimit(1); |
| 109 | 109 | $objectArray = $this->getObjects($criteria, false, true); |
@@ -127,11 +127,11 @@ discard block |
||
| 127 | 127 | { |
| 128 | 128 | $ret = array(); |
| 129 | 129 | $limit = $start = 0; |
| 130 | - $sql = 'SELECT * FROM ' . $this->table; |
|
| 130 | + $sql = 'SELECT * FROM '.$this->table; |
|
| 131 | 131 | if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
| 132 | - $sql .= ' ' . $criteria->renderWhere(); |
|
| 132 | + $sql .= ' '.$criteria->renderWhere(); |
|
| 133 | 133 | if ($criteria->getSort() != '') { |
| 134 | - $sql .= ' ORDER BY ' . $criteria->getSort() . ' ' . $criteria->getOrder(); |
|
| 134 | + $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder(); |
|
| 135 | 135 | } |
| 136 | 136 | $limit = $criteria->getLimit(); |
| 137 | 137 | $start = $criteria->getStart(); |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | $ret[] = $obj; |
| 167 | 167 | } else { |
| 168 | 168 | $row = array(); |
| 169 | - $vars =& $obj->getVars(); |
|
| 169 | + $vars = & $obj->getVars(); |
|
| 170 | 170 | foreach (array_keys($vars) as $i) { |
| 171 | 171 | $row[$i] = $obj->getVar($i); |
| 172 | 172 | } |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | $ret[$myrow[$this->keyName]] = $obj; |
| 178 | 178 | } else { |
| 179 | 179 | $row = array(); |
| 180 | - $vars =& $obj->getVars(); |
|
| 180 | + $vars = & $obj->getVars(); |
|
| 181 | 181 | foreach (array_keys($vars) as $i) { |
| 182 | 182 | $row[$i] = $obj->getVar($i); |
| 183 | 183 | } |
@@ -210,15 +210,15 @@ discard block |
||
| 210 | 210 | $criteria->setSort($this->identifierName); |
| 211 | 211 | } |
| 212 | 212 | |
| 213 | - $sql = 'SELECT ' . $this->keyName; |
|
| 213 | + $sql = 'SELECT '.$this->keyName; |
|
| 214 | 214 | if (!empty($this->identifierName)) { |
| 215 | - $sql .= ', ' . $this->identifierName; |
|
| 215 | + $sql .= ', '.$this->identifierName; |
|
| 216 | 216 | } |
| 217 | - $sql .= ' FROM ' . $this->table; |
|
| 217 | + $sql .= ' FROM '.$this->table; |
|
| 218 | 218 | if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
| 219 | - $sql .= ' ' . $criteria->renderWhere(); |
|
| 219 | + $sql .= ' '.$criteria->renderWhere(); |
|
| 220 | 220 | if ($criteria->getSort() != '') { |
| 221 | - $sql .= ' ORDER BY ' . $criteria->getSort() . ' ' . $criteria->getOrder(); |
|
| 221 | + $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder(); |
|
| 222 | 222 | } |
| 223 | 223 | $limit = $criteria->getLimit(); |
| 224 | 224 | $start = $criteria->getStart(); |
@@ -251,12 +251,12 @@ discard block |
||
| 251 | 251 | if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
| 252 | 252 | if ($criteria->groupby != '') { |
| 253 | 253 | $groupby = true; |
| 254 | - $field = $criteria->groupby . ', '; //Not entirely secure unless you KNOW that no criteria's groupby clause is going to be mis-used |
|
| 254 | + $field = $criteria->groupby.', '; //Not entirely secure unless you KNOW that no criteria's groupby clause is going to be mis-used |
|
| 255 | 255 | } |
| 256 | 256 | } |
| 257 | - $sql = 'SELECT ' . $field . 'COUNT(*) FROM ' . $this->table; |
|
| 257 | + $sql = 'SELECT '.$field.'COUNT(*) FROM '.$this->table; |
|
| 258 | 258 | if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
| 259 | - $sql .= ' ' . $criteria->renderWhere(); |
|
| 259 | + $sql .= ' '.$criteria->renderWhere(); |
|
| 260 | 260 | if ($criteria->groupby != '') { |
| 261 | 261 | $sql .= $criteria->getGroupby(); |
| 262 | 262 | } |
@@ -292,13 +292,13 @@ discard block |
||
| 292 | 292 | if (is_array($this->keyName)) { |
| 293 | 293 | $clause = array(); |
| 294 | 294 | for ($i = 0, $iMax = count($this->keyName); $i < $iMax; ++$i) { |
| 295 | - $clause[] = $this->keyName[$i] . ' = ' . $id[$i]; |
|
| 295 | + $clause[] = $this->keyName[$i].' = '.$id[$i]; |
|
| 296 | 296 | } |
| 297 | 297 | $whereclause = implode(' AND ', $clause); |
| 298 | 298 | } else { |
| 299 | - $whereclause = $this->keyName . ' = ' . $id; |
|
| 299 | + $whereclause = $this->keyName.' = '.$id; |
|
| 300 | 300 | } |
| 301 | - $sql = 'DELETE FROM ' . $this->table . ' WHERE ' . $whereclause; |
|
| 301 | + $sql = 'DELETE FROM '.$this->table.' WHERE '.$whereclause; |
|
| 302 | 302 | if (false !== $force) { |
| 303 | 303 | $result = $this->db->queryF($sql); |
| 304 | 304 | } else { |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | } |
| 330 | 330 | |
| 331 | 331 | if (!($obj instanceof $this->className && class_exists($this->className))) { |
| 332 | - $obj->setErrors(get_class($obj) . ' Differs from ' . $this->className); |
|
| 332 | + $obj->setErrors(get_class($obj).' Differs from '.$this->className); |
|
| 333 | 333 | |
| 334 | 334 | return false; |
| 335 | 335 | } |
@@ -340,7 +340,7 @@ discard block |
||
| 340 | 340 | |
| 341 | 341 | foreach ($obj->cleanVars as $k => $v) { |
| 342 | 342 | if ($obj->vars[$k]['data_type'] == XOBJ_DTYPE_INT) { |
| 343 | - $cleanvars[$k] = (int)$v; |
|
| 343 | + $cleanvars[$k] = (int) $v; |
|
| 344 | 344 | } elseif (is_array($v)) { |
| 345 | 345 | $cleanvars[$k] = $this->db->quoteString(implode(',', $v)); |
| 346 | 346 | } else { |
@@ -350,12 +350,12 @@ discard block |
||
| 350 | 350 | if ($obj->isNew()) { |
| 351 | 351 | if (!is_array($this->keyName)) { |
| 352 | 352 | if ($cleanvars[$this->keyName] < 1) { |
| 353 | - $cleanvars[$this->keyName] = $this->db->genId($this->table . '_' . $this->keyName . '_seq'); |
|
| 353 | + $cleanvars[$this->keyName] = $this->db->genId($this->table.'_'.$this->keyName.'_seq'); |
|
| 354 | 354 | } |
| 355 | 355 | } |
| 356 | - $sql = 'INSERT INTO ' . $this->table . ' (' . implode(',', array_keys($cleanvars)) . ') VALUES (' . implode(',', array_values($cleanvars)) . ')'; |
|
| 356 | + $sql = 'INSERT INTO '.$this->table.' ('.implode(',', array_keys($cleanvars)).') VALUES ('.implode(',', array_values($cleanvars)).')'; |
|
| 357 | 357 | } else { |
| 358 | - $sql = 'UPDATE ' . $this->table . ' SET'; |
|
| 358 | + $sql = 'UPDATE '.$this->table.' SET'; |
|
| 359 | 359 | foreach ($cleanvars as $key => $value) { |
| 360 | 360 | if ((!is_array($this->keyName) && $key == $this->keyName) |
| 361 | 361 | || (is_array($this->keyName) |
@@ -366,7 +366,7 @@ discard block |
||
| 366 | 366 | if (isset($notfirst)) { |
| 367 | 367 | $sql .= ','; |
| 368 | 368 | } |
| 369 | - $sql .= ' ' . $key . ' = ' . $value; |
|
| 369 | + $sql .= ' '.$key.' = '.$value; |
|
| 370 | 370 | $notfirst = true; |
| 371 | 371 | } |
| 372 | 372 | if (is_array($this->keyName)) { |
@@ -375,12 +375,12 @@ discard block |
||
| 375 | 375 | if ($i > 0) { |
| 376 | 376 | $whereclause .= ' AND '; |
| 377 | 377 | } |
| 378 | - $whereclause .= $this->keyName[$i] . ' = ' . $obj->getVar($this->keyName[$i]); |
|
| 378 | + $whereclause .= $this->keyName[$i].' = '.$obj->getVar($this->keyName[$i]); |
|
| 379 | 379 | } |
| 380 | 380 | } else { |
| 381 | - $whereclause = $this->keyName . ' = ' . $obj->getVar($this->keyName); |
|
| 381 | + $whereclause = $this->keyName.' = '.$obj->getVar($this->keyName); |
|
| 382 | 382 | } |
| 383 | - $sql .= ' WHERE ' . $whereclause; |
|
| 383 | + $sql .= ' WHERE '.$whereclause; |
|
| 384 | 384 | } |
| 385 | 385 | if (false !== $force) { |
| 386 | 386 | $result = $this->db->queryF($sql); |
@@ -409,7 +409,7 @@ discard block |
||
| 409 | 409 | */ |
| 410 | 410 | public function updateAll($fieldname, $fieldvalue, CriteriaElement $criteria = null, $force = false) |
| 411 | 411 | { |
| 412 | - $setClause = $fieldname . ' = '; |
|
| 412 | + $setClause = $fieldname.' = '; |
|
| 413 | 413 | if (is_numeric($fieldvalue)) { |
| 414 | 414 | $setClause .= $fieldvalue; |
| 415 | 415 | } elseif (is_array($fieldvalue)) { |
@@ -417,9 +417,9 @@ discard block |
||
| 417 | 417 | } else { |
| 418 | 418 | $setClause .= $this->db->quoteString($fieldvalue); |
| 419 | 419 | } |
| 420 | - $sql = 'UPDATE ' . $this->table . ' SET ' . $setClause; |
|
| 420 | + $sql = 'UPDATE '.$this->table.' SET '.$setClause; |
|
| 421 | 421 | if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
| 422 | - $sql .= ' ' . $criteria->renderWhere(); |
|
| 422 | + $sql .= ' '.$criteria->renderWhere(); |
|
| 423 | 423 | } |
| 424 | 424 | if (false !== $force) { |
| 425 | 425 | $result = $this->db->queryF($sql); |
@@ -443,9 +443,9 @@ discard block |
||
| 443 | 443 | */ |
| 444 | 444 | public function updateFieldValue($fieldname, $fieldvalue, $criteria = null, $force = true) |
| 445 | 445 | { |
| 446 | - $sql = 'UPDATE ' . $this->table . ' SET ' . $fieldname . ' = ' . $fieldvalue; |
|
| 446 | + $sql = 'UPDATE '.$this->table.' SET '.$fieldname.' = '.$fieldvalue; |
|
| 447 | 447 | if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
| 448 | - $sql .= ' ' . $criteria->renderWhere(); |
|
| 448 | + $sql .= ' '.$criteria->renderWhere(); |
|
| 449 | 449 | } |
| 450 | 450 | if (false !== $force) { |
| 451 | 451 | $result = $this->db->queryF($sql); |
@@ -472,8 +472,8 @@ discard block |
||
| 472 | 472 | public function deleteAll(CriteriaElement $criteria = null, $force = true, $asObject = false) |
| 473 | 473 | { |
| 474 | 474 | if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
| 475 | - $sql = 'DELETE FROM ' . $this->table; |
|
| 476 | - $sql .= ' ' . $criteria->renderWhere(); |
|
| 475 | + $sql = 'DELETE FROM '.$this->table; |
|
| 476 | + $sql .= ' '.$criteria->renderWhere(); |
|
| 477 | 477 | if (!$this->db->query($sql)) { |
| 478 | 478 | return false; |
| 479 | 479 | } |
@@ -607,8 +607,8 @@ discard block |
||
| 607 | 607 | */ |
| 608 | 608 | public function updateCounter($fieldname, $criteria, $op = '+') |
| 609 | 609 | { |
| 610 | - $sql = 'UPDATE ' . $this->table . ' SET ' . $fieldname . ' = ' . $fieldname . $op . '1'; |
|
| 611 | - $sql .= ' ' . $criteria->renderWhere(); |
|
| 610 | + $sql = 'UPDATE '.$this->table.' SET '.$fieldname.' = '.$fieldname.$op.'1'; |
|
| 611 | + $sql .= ' '.$criteria->renderWhere(); |
|
| 612 | 612 | $result = $this->db->queryF($sql); |
| 613 | 613 | if (!$result) { |
| 614 | 614 | return false; |
@@ -630,12 +630,12 @@ discard block |
||
| 630 | 630 | if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
| 631 | 631 | if ($criteria->groupby != '') { |
| 632 | 632 | $groupby = true; |
| 633 | - $field = $criteria->groupby . ', '; //Not entirely secure unless you KNOW that no criteria's groupby clause is going to be mis-used |
|
| 633 | + $field = $criteria->groupby.', '; //Not entirely secure unless you KNOW that no criteria's groupby clause is going to be mis-used |
|
| 634 | 634 | } |
| 635 | 635 | } |
| 636 | - $sql = 'SELECT ' . $field . "SUM($sum) FROM " . $this->table; |
|
| 636 | + $sql = 'SELECT '.$field."SUM($sum) FROM ".$this->table; |
|
| 637 | 637 | if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
| 638 | - $sql .= ' ' . $criteria->renderWhere(); |
|
| 638 | + $sql .= ' '.$criteria->renderWhere(); |
|
| 639 | 639 | if ($criteria->groupby != '') { |
| 640 | 640 | $sql .= $criteria->getGroupby(); |
| 641 | 641 | } |
@@ -671,12 +671,12 @@ discard block |
||
| 671 | 671 | if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
| 672 | 672 | if ($criteria->groupby != '') { |
| 673 | 673 | $groupby = true; |
| 674 | - $field = $criteria->groupby . ', '; //Not entirely secure unless you KNOW that no criteria's groupby clause is going to be mis-used |
|
| 674 | + $field = $criteria->groupby.', '; //Not entirely secure unless you KNOW that no criteria's groupby clause is going to be mis-used |
|
| 675 | 675 | } |
| 676 | 676 | } |
| 677 | - $sql = 'SELECT ' . $field . "MAX($max) FROM " . $this->table; |
|
| 677 | + $sql = 'SELECT '.$field."MAX($max) FROM ".$this->table; |
|
| 678 | 678 | if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
| 679 | - $sql .= ' ' . $criteria->renderWhere(); |
|
| 679 | + $sql .= ' '.$criteria->renderWhere(); |
|
| 680 | 680 | if ($criteria->groupby != '') { |
| 681 | 681 | $sql .= $criteria->getGroupby(); |
| 682 | 682 | } |
@@ -709,9 +709,9 @@ discard block |
||
| 709 | 709 | { |
| 710 | 710 | $field = ''; |
| 711 | 711 | |
| 712 | - $sql = 'SELECT ' . $field . "AVG($avg) FROM " . $this->table; |
|
| 712 | + $sql = 'SELECT '.$field."AVG($avg) FROM ".$this->table; |
|
| 713 | 713 | if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
| 714 | - $sql .= ' ' . $criteria->renderWhere(); |
|
| 714 | + $sql .= ' '.$criteria->renderWhere(); |
|
| 715 | 715 | } |
| 716 | 716 | $result = $this->db->query($sql); |
| 717 | 717 | if (!$result) { |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
| 21 | 21 | |
| 22 | -require_once __DIR__ . '/ExtcalPersistableObjectHandler.php'; |
|
| 22 | +require_once __DIR__.'/ExtcalPersistableObjectHandler.php'; |
|
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * Class ExtcalEventNotMember. |
@@ -85,12 +85,12 @@ discard block |
||
| 85 | 85 | $eventNotMember = $this->getObjects(new Criteria('event_id', $eventId)); |
| 86 | 86 | $count = count($eventNotMember); |
| 87 | 87 | if ($count > 0) { |
| 88 | - $in = '(' . $eventNotMember[0]->getVar('uid'); |
|
| 88 | + $in = '('.$eventNotMember[0]->getVar('uid'); |
|
| 89 | 89 | array_shift($eventNotMember); |
| 90 | 90 | foreach ($eventNotMember as $member) { |
| 91 | - $in .= ',' . $member->getVar('uid'); |
|
| 91 | + $in .= ','.$member->getVar('uid'); |
|
| 92 | 92 | } |
| 93 | - $in .= ')'; |
|
| 93 | + $in .= ')'; |
|
| 94 | 94 | $criteria = new Criteria('uid', $in, 'IN'); |
| 95 | 95 | } else { |
| 96 | 96 | $criteria = new Criteria('uid', '(0)', 'IN'); |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | * @author XOOPS Development Team, |
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | -require_once __DIR__ . '/../include/constantes.php'; |
|
| 20 | +require_once __DIR__.'/../include/constantes.php'; |
|
| 21 | 21 | |
| 22 | 22 | /******************************************************/ |
| 23 | 23 | /* Ajour JJD - Evenements par categries */ |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | { |
| 32 | 32 | global $xoopsUser, $extcalConfig; |
| 33 | 33 | |
| 34 | - require_once __DIR__ . '/../class/config.php'; |
|
| 34 | + require_once __DIR__.'/../class/config.php'; |
|
| 35 | 35 | |
| 36 | 36 | // Retriving module config |
| 37 | 37 | // $extcalConfig = ExtcalConfig::getHandler(); |
@@ -88,22 +88,22 @@ discard block |
||
| 88 | 88 | |
| 89 | 89 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
| 90 | 90 | |
| 91 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
| 92 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
| 93 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
| 91 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
| 92 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
| 93 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
| 94 | 94 | array_shift($options); |
| 95 | 95 | array_shift($options); |
| 96 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 96 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 97 | 97 | if (array_search(0, $options) === false) { |
| 98 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 98 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 99 | 99 | } else { |
| 100 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 100 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 101 | 101 | } |
| 102 | 102 | foreach ($cats as $cat) { |
| 103 | 103 | if (array_search($cat->getVar('cat_id'), $options) === false) { |
| 104 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
| 104 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
| 105 | 105 | } else { |
| 106 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
| 106 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
| 107 | 107 | } |
| 108 | 108 | } |
| 109 | 109 | $form .= '</select>'; |
@@ -18,9 +18,9 @@ discard block |
||
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | 20 | global $extcalConfig, $xoopsUser; |
| 21 | -require_once __DIR__ . '/../include/constantes.php'; |
|
| 22 | -require_once __DIR__ . '/../class/utility.php'; |
|
| 23 | -require_once __DIR__ . '/../class/tableForm.php'; |
|
| 21 | +require_once __DIR__.'/../include/constantes.php'; |
|
| 22 | +require_once __DIR__.'/../class/utility.php'; |
|
| 23 | +require_once __DIR__.'/../class/tableForm.php'; |
|
| 24 | 24 | //--------------------------------------------------------------------------- |
| 25 | 25 | /** |
| 26 | 26 | * @param $options |
@@ -33,11 +33,11 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | extcal_getDefautminicalOption($options); |
| 35 | 35 | |
| 36 | - require_once __DIR__ . '/../class/config.php'; |
|
| 36 | + require_once __DIR__.'/../class/config.php'; |
|
| 37 | 37 | |
| 38 | - require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Util/Textual.php'; |
|
| 39 | - require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weeks.php'; |
|
| 40 | - require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Day.php'; |
|
| 38 | + require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Util/Textual.php'; |
|
| 39 | + require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weeks.php'; |
|
| 40 | + require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Day.php'; |
|
| 41 | 41 | // require_once CALENDAR_ROOT . 'Month/Weeks.php'; |
| 42 | 42 | // require_once CALENDAR_ROOT . 'Day.php'; |
| 43 | 43 | |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | 'cat' => $tCatSelected, |
| 125 | 125 | 'externalKeys' => 'cat_id', |
| 126 | 126 | ); |
| 127 | - $events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 127 | + $events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 128 | 128 | } else { |
| 129 | 129 | $events = array(); |
| 130 | 130 | } |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | 'number' => $dayCalObj->thisDay(), |
| 188 | 188 | 'isSelected' => $dayCalObj->isSelected(), |
| 189 | 189 | ); |
| 190 | - $day = $dayCalObj->thisDay(); |
|
| 190 | + $day = $dayCalObj->thisDay(); |
|
| 191 | 191 | if (isset($eventsArray[$day]) && !$dayCalObj->isEmpty()) { |
| 192 | 192 | $tableRows[$rowId]['week'][$cellId]['haveEvents'] = true; |
| 193 | 193 | $tableRows[$rowId]['week'][$cellId]['color'] = $eventsArray[$day]['color']; |
@@ -217,15 +217,15 @@ discard block |
||
| 217 | 217 | // Making navig data |
| 218 | 218 | $navig = array( |
| 219 | 219 | 'page' => $extcalConfig['start_page'], |
| 220 | - 'uri' => 'year=' . $monthCalObj->thisYear() . '&month=' . $monthCalObj->thisMonth(), |
|
| 220 | + 'uri' => 'year='.$monthCalObj->thisYear().'&month='.$monthCalObj->thisMonth(), |
|
| 221 | 221 | 'name' => $extcalTimeHandler->getFormatedDate($extcalConfig['nav_date_month'], $monthCalObj->getTimestamp()), |
| 222 | 222 | ); |
| 223 | 223 | |
| 224 | 224 | $horloge = array(); |
| 225 | 225 | $horloge['display'] = (trim($options[11]) != ''); |
| 226 | - $horloge['fullName'] = XOOPS_URL . _EXTCAL_PATH_HORLOGES . $options[11]; |
|
| 227 | - $horloge['width'] = $options[12] . 'px'; |
|
| 228 | - $horloge['height'] = $options[13] . 'px'; |
|
| 226 | + $horloge['fullName'] = XOOPS_URL._EXTCAL_PATH_HORLOGES.$options[11]; |
|
| 227 | + $horloge['width'] = $options[12].'px'; |
|
| 228 | + $horloge['height'] = $options[13].'px'; |
|
| 229 | 229 | |
| 230 | 230 | $ret = array( |
| 231 | 231 | 'imageParam' => $imageParam, |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | */ |
| 252 | 252 | function bExtcalMinicalEdit($options) |
| 253 | 253 | { |
| 254 | - require_once __DIR__ . '/../class/form/spin/formspin.php'; |
|
| 254 | + require_once __DIR__.'/../class/form/spin/formspin.php'; |
|
| 255 | 255 | global $xoopsUser; |
| 256 | 256 | |
| 257 | 257 | // $t = print_r(get_defined_vars(),true); |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | $imageCatHandler = xoops_getHandler('imagecategory'); |
| 273 | 273 | |
| 274 | 274 | //===================================================================== |
| 275 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SLIDE_SHOW . '</div>', 'head'); |
|
| 275 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SLIDE_SHOW.'</div>', 'head'); |
|
| 276 | 276 | |
| 277 | 277 | $k = 0; |
| 278 | 278 | $xfValue[$k] = new XoopsFormRadio(_MB_EXTCAL_DISPLAY_IMG, "options[{$k}]", $options[$k]); |
@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | $xfValue[$k] = new ExtcalFormSpin(_MB_EXTCAL_SS_NB_PHOTOS, "options[{$k}]", $options[$k], 0, 50, 1, 0, 8, _MB_EXTCAL_PX, $imgFolder = ''); |
| 314 | 314 | $form->addElement($xfValue[$k], false); |
| 315 | 315 | //===================================================================== |
| 316 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SHOW . '</div>', 'head'); |
|
| 316 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SHOW.'</div>', 'head'); |
|
| 317 | 317 | |
| 318 | 318 | $t = array( |
| 319 | 319 | -1 => _MB_EXTCAL_PREVIEW, |
@@ -352,9 +352,9 @@ discard block |
||
| 352 | 352 | $form->addElement($xfValue[$k], false); |
| 353 | 353 | |
| 354 | 354 | //===================================================================== |
| 355 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_HORLOGE_OPT . '</div>', 'head'); |
|
| 355 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_HORLOGE_OPT.'</div>', 'head'); |
|
| 356 | 356 | //--------------------------------------------------------------------- |
| 357 | - $t = XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH . _EXTCAL_PATH_HORLOGES); |
|
| 357 | + $t = XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH._EXTCAL_PATH_HORLOGES); |
|
| 358 | 358 | $t = array_merge(array(' ' => _NONE), $t); |
| 359 | 359 | |
| 360 | 360 | $k = 11; |
@@ -437,12 +437,12 @@ discard block |
||
| 437 | 437 | // $src = $doc->createElement('src'); |
| 438 | 438 | $src = clone $tempSrc; |
| 439 | 439 | $src = $photo->appendChild($src); |
| 440 | - $value = $doc->createTextNode(XOOPS_URL . '/uploads/' . $images->getVar('image_name')); |
|
| 440 | + $value = $doc->createTextNode(XOOPS_URL.'/uploads/'.$images->getVar('image_name')); |
|
| 441 | 441 | $src->appendChild($value); |
| 442 | 442 | } |
| 443 | 443 | |
| 444 | 444 | // get completed xml document |
| 445 | - $xml_string = $doc->save(XOOPS_ROOT_PATH . '/cache/extcalSlideShowParam.xml'); |
|
| 445 | + $xml_string = $doc->save(XOOPS_ROOT_PATH.'/cache/extcalSlideShowParam.xml'); |
|
| 446 | 446 | } |
| 447 | 447 | |
| 448 | 448 | /**************************************************************************/ |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | * @author XOOPS Development Team, |
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | -require_once __DIR__ . '/../include/constantes.php'; |
|
| 20 | +require_once __DIR__.'/../include/constantes.php'; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * @param $options |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | function bExtcalRandomShow($options) |
| 28 | 28 | { |
| 29 | - require_once __DIR__ . '/../class/config.php'; |
|
| 29 | + require_once __DIR__.'/../class/config.php'; |
|
| 30 | 30 | |
| 31 | 31 | // Retriving module config |
| 32 | 32 | $extcalConfig = ExtcalConfig::getHandler(); |
@@ -64,22 +64,22 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
| 66 | 66 | |
| 67 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
| 68 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
| 69 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
| 67 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
| 68 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
| 69 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
| 70 | 70 | array_shift($options); |
| 71 | 71 | array_shift($options); |
| 72 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 72 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 73 | 73 | if (array_search(0, $options) === false) { |
| 74 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 74 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 75 | 75 | } else { |
| 76 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 76 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 77 | 77 | } |
| 78 | 78 | foreach ($cats as $cat) { |
| 79 | 79 | if (array_search($cat->getVar('cat_id'), $options) === false) { |
| 80 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
| 80 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
| 81 | 81 | } else { |
| 82 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
| 82 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
| 83 | 83 | } |
| 84 | 84 | } |
| 85 | 85 | $form .= '</select>'; |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | * @author XOOPS Development Team, |
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | -require_once __DIR__ . '/../include/constantes.php'; |
|
| 20 | +require_once __DIR__.'/../include/constantes.php'; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * @param $options |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | function bExtcalUpcomingShow($options) |
| 28 | 28 | { |
| 29 | - require_once __DIR__ . '/../class/config.php'; |
|
| 29 | + require_once __DIR__.'/../class/config.php'; |
|
| 30 | 30 | |
| 31 | 31 | // Retriving module config |
| 32 | 32 | $extcalConfig = ExtcalConfig::getHandler(); |
@@ -51,10 +51,10 @@ discard block |
||
| 51 | 51 | //mb $events = $eventHandler->objectToArray($eventHandler->getUpcommingEvent($nbEvent, $options)); |
| 52 | 52 | |
| 53 | 53 | /* ========================================================================== */ |
| 54 | - $year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y'); |
|
| 55 | - $month = isset($_GET['month']) ? (int)$_GET['month'] : date('n'); |
|
| 56 | - $day = isset($_GET['day']) ? (int)$_GET['day'] : date('j'); |
|
| 57 | - $cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
| 54 | + $year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
| 55 | + $month = isset($_GET['month']) ? (int) $_GET['month'] : date('n'); |
|
| 56 | + $day = isset($_GET['day']) ? (int) $_GET['day'] : date('j'); |
|
| 57 | + $cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
| 58 | 58 | /* ========================================================================== */ |
| 59 | 59 | |
| 60 | 60 | // Validate the date (day, month and year) |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | 'nbEvent' => $nbEvent, |
| 88 | 88 | 'nbDays' => $nbDays, |
| 89 | 89 | ); |
| 90 | - $events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 90 | + $events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 91 | 91 | |
| 92 | 92 | //---------------------------- |
| 93 | 93 | |
@@ -114,27 +114,27 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
| 116 | 116 | |
| 117 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
| 118 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
| 119 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
| 117 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
| 118 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
| 119 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
| 120 | 120 | |
| 121 | - $form .= _MB_EXTCAL_UPCOMING_DAYS . ' : <input name="options[2]" size="5" maxlength="255" value="' . $options[2] . '" type="text"><br>'; |
|
| 121 | + $form .= _MB_EXTCAL_UPCOMING_DAYS.' : <input name="options[2]" size="5" maxlength="255" value="'.$options[2].'" type="text"><br>'; |
|
| 122 | 122 | |
| 123 | 123 | array_shift($options); |
| 124 | 124 | array_shift($options); |
| 125 | 125 | array_shift($options); |
| 126 | 126 | |
| 127 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 127 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 128 | 128 | if (array_search(0, $options) === false) { |
| 129 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 129 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 130 | 130 | } else { |
| 131 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 131 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 132 | 132 | } |
| 133 | 133 | foreach ($cats as $cat) { |
| 134 | 134 | if (array_search($cat->getVar('cat_id'), $options) === false) { |
| 135 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
| 135 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
| 136 | 136 | } else { |
| 137 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
| 137 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
| 138 | 138 | } |
| 139 | 139 | } |
| 140 | 140 | $form .= '</select>'; |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | * @author XOOPS Development Team, |
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | -require_once __DIR__ . '/../include/constantes.php'; |
|
| 20 | +require_once __DIR__.'/../include/constantes.php'; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * @param $options |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | function bExtcalNewShow($options) |
| 28 | 28 | { |
| 29 | - require_once __DIR__ . '/../class/config.php'; |
|
| 29 | + require_once __DIR__.'/../class/config.php'; |
|
| 30 | 30 | |
| 31 | 31 | // Retriving module config |
| 32 | 32 | $extcalConfig = ExtcalConfig::getHandler(); |
@@ -64,22 +64,22 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
| 66 | 66 | |
| 67 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
| 68 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
| 69 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
| 67 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
| 68 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
| 69 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
| 70 | 70 | array_shift($options); |
| 71 | 71 | array_shift($options); |
| 72 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 72 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 73 | 73 | if (array_search(0, $options) === false) { |
| 74 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 74 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 75 | 75 | } else { |
| 76 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 76 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 77 | 77 | } |
| 78 | 78 | foreach ($cats as $cat) { |
| 79 | 79 | if (array_search($cat->getVar('cat_id'), $options) === false) { |
| 80 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
| 80 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
| 81 | 81 | } else { |
| 82 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
| 82 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
| 83 | 83 | } |
| 84 | 84 | } |
| 85 | 85 | $form .= '</select>'; |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | * @author XOOPS Development Team, |
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | -require_once __DIR__ . '/../include/constantes.php'; |
|
| 20 | +require_once __DIR__.'/../include/constantes.php'; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * @param $options |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | function bExtcalDayShow($options) |
| 28 | 28 | { |
| 29 | - require_once __DIR__ . '/../class/config.php'; |
|
| 29 | + require_once __DIR__.'/../class/config.php'; |
|
| 30 | 30 | |
| 31 | 31 | // Retriving module config |
| 32 | 32 | $extcalConfig = ExtcalConfig::getHandler(); |
@@ -64,22 +64,22 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
| 66 | 66 | |
| 67 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
| 68 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
| 69 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
| 67 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
| 68 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
| 69 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
| 70 | 70 | array_shift($options); |
| 71 | 71 | array_shift($options); |
| 72 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 72 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 73 | 73 | if (array_search(0, $options) === false) { |
| 74 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 74 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 75 | 75 | } else { |
| 76 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 76 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 77 | 77 | } |
| 78 | 78 | foreach ($cats as $cat) { |
| 79 | 79 | if (array_search($cat->getVar('cat_id'), $options) === false) { |
| 80 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
| 80 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
| 81 | 81 | } else { |
| 82 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
| 82 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
| 83 | 83 | } |
| 84 | 84 | } |
| 85 | 85 | $form .= '</select>'; |
@@ -1,15 +1,15 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -include __DIR__ . '/../../mainfile.php'; |
|
| 4 | -require_once __DIR__ . '/include/constantes.php'; |
|
| 3 | +include __DIR__.'/../../mainfile.php'; |
|
| 4 | +require_once __DIR__.'/include/constantes.php'; |
|
| 5 | 5 | $params = array('view' => _EXTCAL_NAV_MONTH, 'file' => _EXTCAL_FILE_MONTH); |
| 6 | 6 | $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl"; |
| 7 | -require_once __DIR__ . '/header.php'; |
|
| 7 | +require_once __DIR__.'/header.php'; |
|
| 8 | 8 | |
| 9 | 9 | /* ========================================================================== */ |
| 10 | -$year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y'); |
|
| 11 | -$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n'); |
|
| 12 | -$cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
| 10 | +$year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
| 11 | +$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n'); |
|
| 12 | +$cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
| 13 | 13 | /* ========================================================================== */ |
| 14 | 14 | |
| 15 | 15 | $form = new XoopsSimpleForm('', 'navigSelectBox', $params['file'], 'get'); |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | 'cat' => $cat, |
| 32 | 32 | 'externalKeys' => 'cat_id', |
| 33 | 33 | ); |
| 34 | -$events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 34 | +$events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 35 | 35 | /**********************************************************************/ |
| 36 | 36 | $eventsArray = $events; |
| 37 | 37 | |
@@ -88,21 +88,21 @@ discard block |
||
| 88 | 88 | $nMonthCalObj = $monthCalObj->nextMonth('object'); |
| 89 | 89 | $navig = array( |
| 90 | 90 | 'prev' => array( |
| 91 | - 'uri' => 'year=' . $pMonthCalObj->thisYear() . '&month=' . $pMonthCalObj->thisMonth(), |
|
| 91 | + 'uri' => 'year='.$pMonthCalObj->thisYear().'&month='.$pMonthCalObj->thisMonth(), |
|
| 92 | 92 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $pMonthCalObj->getTimestamp()), |
| 93 | 93 | ), |
| 94 | 94 | 'this' => array( |
| 95 | - 'uri' => 'year=' . $monthCalObj->thisYear() . '&month=' . $monthCalObj->thisMonth(), |
|
| 95 | + 'uri' => 'year='.$monthCalObj->thisYear().'&month='.$monthCalObj->thisMonth(), |
|
| 96 | 96 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $monthCalObj->getTimestamp()), |
| 97 | 97 | ), |
| 98 | 98 | 'next' => array( |
| 99 | - 'uri' => 'year=' . $nMonthCalObj->thisYear() . '&month=' . $nMonthCalObj->thisMonth(), |
|
| 99 | + 'uri' => 'year='.$nMonthCalObj->thisYear().'&month='.$nMonthCalObj->thisMonth(), |
|
| 100 | 100 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $nMonthCalObj->getTimestamp()), |
| 101 | 101 | ), |
| 102 | 102 | ); |
| 103 | 103 | |
| 104 | 104 | // Title of the page |
| 105 | -$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']); |
|
| 105 | +$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']); |
|
| 106 | 106 | |
| 107 | 107 | // Assigning navig data to the template |
| 108 | 108 | $xoopsTpl->assign('navig', $navig); |
@@ -159,4 +159,4 @@ discard block |
||
| 159 | 159 | $xoopsTpl->assign('lang', $lang); |
| 160 | 160 | $xoopsTpl->assign('view', 'month'); |
| 161 | 161 | |
| 162 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
| 162 | +include XOOPS_ROOT_PATH.'/footer.php'; |
|