@@ -49,7 +49,7 @@ |
||
| 49 | 49 | $xoopsTpl->assign('json_data', $json_data); |
| 50 | 50 | |
| 51 | 51 | $borrow_sql = 'SELECT r.quantity, e.name, e.owner, c.first, c.last FROM ' . $xoopsDB->prefix('equipment_equipment') . ' AS e, ' . $xoopsDB->prefix('equipment_customer') . ' AS c, ' |
| 52 | - . $xoopsDB->prefix('equipment_rentals') . ' AS r WHERE e.id = r.equipmentid AND c.id = r.customerid'; |
|
| 52 | + . $xoopsDB->prefix('equipment_rentals') . ' AS r WHERE e.id = r.equipmentid AND c.id = r.customerid'; |
|
| 53 | 53 | |
| 54 | 54 | $query1 = $xoopsDB->query($borrow_sql); |
| 55 | 55 | |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | if ($xoopsDB->getRowsNum($query1) > 0) { |
| 58 | 58 | while ($row = $xoopsDB->fetchArray($query1)) { |
| 59 | 59 | $row['permission'] = ($row['owner'] == $owner); |
| 60 | - $query_rows1[] = $row; |
|
| 60 | + $query_rows1[] = $row; |
|
| 61 | 61 | } |
| 62 | 62 | } |
| 63 | 63 | |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | include __DIR__ . '/../../../../mainfile.php'; |
| 19 | 19 | global $xoopsDB, $xoopsUser; |
| 20 | 20 | if ($xoopsUser) { |
| 21 | - $borrow_data = array_filter(array_map('intval', $_POST['borrow_number']), function ($val) { |
|
| 21 | + $borrow_data = array_filter(array_map('intval', $_POST['borrow_number']), function($val) { |
|
| 22 | 22 | return $val > 0; |
| 23 | 23 | }); |
| 24 | 24 | |
@@ -223,10 +223,10 @@ |
||
| 223 | 223 | } |
| 224 | 224 | } else { |
| 225 | 225 | xoops_confirm(array( |
| 226 | - 'ok' => 1, |
|
| 227 | - 'id' => Request::getString('id', ''), |
|
| 228 | - 'op' => 'delete' |
|
| 229 | - ), Request::getCmd('REQUEST_URI', '', 'SERVER'), sprintf(AM_EQUIPMENT_FORMSUREDEL, $rentalsObject->getVar('customerid'))); |
|
| 226 | + 'ok' => 1, |
|
| 227 | + 'id' => Request::getString('id', ''), |
|
| 228 | + 'op' => 'delete' |
|
| 229 | + ), Request::getCmd('REQUEST_URI', '', 'SERVER'), sprintf(AM_EQUIPMENT_FORMSUREDEL, $rentalsObject->getVar('customerid'))); |
|
| 230 | 230 | } |
| 231 | 231 | break; |
| 232 | 232 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | $criteria->setStart($start); |
| 58 | 58 | /** @var EquipmentRentalsHandler $rentalsHandler */ |
| 59 | 59 | $rentalsTempRows = $rentalsHandler->getCount(); |
| 60 | - $rentalsTempArray = $rentalsHandler->getAll($criteria);/* |
|
| 60 | + $rentalsTempArray = $rentalsHandler->getAll($criteria); /* |
|
| 61 | 61 | // |
| 62 | 62 | // |
| 63 | 63 | <th class='center width5'>".AM_EQUIPMENT_FORM_ACTION."</th> |
@@ -103,13 +103,13 @@ discard block |
||
| 103 | 103 | |
| 104 | 104 | $selectorcustomerid = EquipmentUtility::selectSorting(AM_EQUIPMENT_RENTALS_CUSTOMERID, 'customerid'); |
| 105 | 105 | $GLOBALS['xoopsTpl']->assign('selectorcustomerid', $selectorcustomerid); |
| 106 | - if(null !==($customerHandler->get($rentalsTempArray[$i]->getVar('customerid')))) { |
|
| 106 | + if (null !== ($customerHandler->get($rentalsTempArray[$i]->getVar('customerid')))) { |
|
| 107 | 107 | $rentalsArray['customerid'] = $customerHandler->get($rentalsTempArray[$i]->getVar('customerid'))->getVar('last'); |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | $selectorequipmentid = EquipmentUtility::selectSorting(AM_EQUIPMENT_RENTALS_EQUIPMENTID, 'equipmentid'); |
| 111 | 111 | $GLOBALS['xoopsTpl']->assign('selectorequipmentid', $selectorequipmentid); |
| 112 | - if(null !==($equipmentHandler->get($rentalsTempArray[$i]->getVar('equipmentid')))) { |
|
| 112 | + if (null !== ($equipmentHandler->get($rentalsTempArray[$i]->getVar('equipmentid')))) { |
|
| 113 | 113 | $rentalsArray['equipmentid'] = $equipmentHandler->get($rentalsTempArray[$i]->getVar('equipmentid'))->getVar('name'); |
| 114 | 114 | } |
| 115 | 115 | |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | $sql .= ')'; |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - $sql .= ' ORDER BY id DESC'; |
|
| 51 | + $sql .= ' ORDER BY id DESC'; |
|
| 52 | 52 | $result = $GLOBALS['xoopsDB']->query($sql, $limit, $offset); |
| 53 | 53 | $ret = array(); |
| 54 | 54 | $i = 0; |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $module = $moduleHandler->getByDirname('equipment'); |
| 42 | 42 | /** @var XoopsConfigHandler $configHandler */ |
| 43 | 43 | $configHandler = xoops_getHandler('config'); |
| 44 | - $config =& $configHandler->getConfigsByCat(0, $module->getVar('mid')); |
|
| 44 | + $config = & $configHandler->getConfigsByCat(0, $module->getVar('mid')); |
|
| 45 | 45 | } else { |
| 46 | 46 | $module = $GLOBALS['xoopsModule']; |
| 47 | 47 | $config = $GLOBALS['xoopsModuleConfig']; |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | // module information |
| 48 | 48 | |
| 49 | -$copyright = "<a href='https://xoops.org' title='XOOPS Project' target='_blank'> |
|
| 49 | +$copyright = "<a href='https://xoops.org' title='XOOPS Project' target='_blank'> |
|
| 50 | 50 | <img src='" . constant($capsDirName . '_AUTHOR_LOGOIMG') . "' alt='XOOPS Project' /></a>"; |
| 51 | 51 | |
| 52 | 52 | //Configurator |
@@ -273,8 +273,8 @@ |
||
| 273 | 273 | ); |
| 274 | 274 | |
| 275 | 275 | // -------------- Get Admin groups -------------- |
| 276 | -$criteria = new CriteriaCompo (); |
|
| 277 | -$criteria->add(new Criteria ('group_type', 'Admin')); |
|
| 276 | +$criteria = new CriteriaCompo(); |
|
| 277 | +$criteria->add(new Criteria('group_type', 'Admin')); |
|
| 278 | 278 | /** @var XoopsMemberHandler $memberHandler */ |
| 279 | 279 | $memberHandler = xoops_getHandler('member'); |
| 280 | 280 | $adminXoopsGroups = $memberHandler->getGroupList($criteria); |