@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | print '<td class="right" width="100">'.$langs->trans("Status").'</td>'; |
| 141 | 141 | print '</tr>'; |
| 142 | 142 | |
| 143 | -print '<tr class="oddeven"><td>' . $langs->trans("UseCaptchaCode").' - Login</td><td class="right" width="100">'; |
|
| 143 | +print '<tr class="oddeven"><td>'.$langs->trans("UseCaptchaCode").' - Login</td><td class="right" width="100">'; |
|
| 144 | 144 | if (!empty($conf->use_javascript_ajax)) { |
| 145 | 145 | print ajax_constantonoff('MAIN_SECURITY_ENABLECAPTCHA', array(), null, 0, 0, 1); |
| 146 | 146 | } else { |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | print '</td></tr>'; |
| 154 | 154 | |
| 155 | 155 | if (isModEnabled('societe')) { |
| 156 | - print '<tr class="oddeven"><td>' . $langs->trans("UseCaptchaCode").' - Thirdparty public contact form</td><td class="right" width="100">'; |
|
| 156 | + print '<tr class="oddeven"><td>'.$langs->trans("UseCaptchaCode").' - Thirdparty public contact form</td><td class="right" width="100">'; |
|
| 157 | 157 | if (!empty($conf->use_javascript_ajax)) { |
| 158 | 158 | print ajax_constantonoff('MAIN_SECURITY_ENABLECAPTCHA_THIRDPARTY', array(), null, 0, 0, 1); |
| 159 | 159 | } else { |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | print '</td></tr>'; |
| 168 | 168 | |
| 169 | 169 | if (isModEnabled('ticket')) { |
| 170 | - print '<tr class="oddeven"><td>' . $langs->trans("UseCaptchaCode").' - Public ticket creation</td><td class="right" width="100">'; |
|
| 170 | + print '<tr class="oddeven"><td>'.$langs->trans("UseCaptchaCode").' - Public ticket creation</td><td class="right" width="100">'; |
|
| 171 | 171 | if (!empty($conf->use_javascript_ajax)) { |
| 172 | 172 | print ajax_constantonoff('MAIN_SECURITY_ENABLECAPTCHA_TICKET', array(), null, 0, 0, 1); |
| 173 | 173 | } else { |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | print '</td></tr>'; |
| 182 | 182 | |
| 183 | 183 | if (isModEnabled('member')) { |
| 184 | - print '<tr class="oddeven"><td>' . $langs->trans("UseCaptchaCode").' - Membership public subscription</td><td class="right" width="100">'; |
|
| 184 | + print '<tr class="oddeven"><td>'.$langs->trans("UseCaptchaCode").' - Membership public subscription</td><td class="right" width="100">'; |
|
| 185 | 185 | if (!empty($conf->use_javascript_ajax)) { |
| 186 | 186 | print ajax_constantonoff('MAIN_SECURITY_ENABLECAPTCHA_MEMBER', array(), null, 0, 0, 1); |
| 187 | 187 | } else { |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | print '</td></tr>'; |
| 196 | 196 | |
| 197 | 197 | if (isModEnabled('don')) { |
| 198 | - print '<tr class="oddeven"><td>' . $langs->trans("UseCaptchaCode").' - Donation public form</td><td class="right" width="100">'; |
|
| 198 | + print '<tr class="oddeven"><td>'.$langs->trans("UseCaptchaCode").' - Donation public form</td><td class="right" width="100">'; |
|
| 199 | 199 | if (!empty($conf->use_javascript_ajax)) { |
| 200 | 200 | print ajax_constantonoff('MAIN_SECURITY_ENABLECAPTCHA_DONATION', array(), null, 0, 0, 1); |
| 201 | 201 | } else { |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | print '</td></tr>'; |
| 210 | 210 | |
| 211 | 211 | if (isModEnabled('recruitment')) { |
| 212 | - print '<tr class="oddeven"><td>' . $langs->trans("UseCaptchaCode").' - Recruitment public form</td><td class="right" width="100">'; |
|
| 212 | + print '<tr class="oddeven"><td>'.$langs->trans("UseCaptchaCode").' - Recruitment public form</td><td class="right" width="100">'; |
|
| 213 | 213 | if (!empty($conf->use_javascript_ajax)) { |
| 214 | 214 | print ajax_constantonoff('MAIN_SECURITY_ENABLECAPTCHA_RECRUITMENT', array(), null, 0, 0, 1); |
| 215 | 215 | } else { |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | 'typent.code' => array('label' => "ThirdPartyType", 'checked' => (string) $checkedtypetiers, 'position' => 55), |
| 209 | 209 | 'c.date_commande' => array('label' => "OrderDateShort", 'checked' => '1', 'position' => 60), |
| 210 | 210 | 'c.delivery_date' => array('label' => "DateDeliveryPlanned", 'checked' => '1', 'enabled' => (string) (int) !getDolGlobalString('ORDER_DISABLE_DELIVERY_DATE'), 'position' => 65), |
| 211 | - 'c.fk_shipping_method' => array('label' => "SendingMethod", 'checked' => '-1', 'position' => 66 , 'enabled' => (string) (int) isModEnabled('shipping')), |
|
| 211 | + 'c.fk_shipping_method' => array('label' => "SendingMethod", 'checked' => '-1', 'position' => 66, 'enabled' => (string) (int) isModEnabled('shipping')), |
|
| 212 | 212 | 'c.fk_cond_reglement' => array('label' => "PaymentConditionsShort", 'checked' => '-1', 'position' => 67), |
| 213 | 213 | 'c.fk_mode_reglement' => array('label' => "PaymentMode", 'checked' => '-1', 'position' => 68), |
| 214 | 214 | 'c.fk_input_reason' => array('label' => "Channel", 'checked' => '-1', 'position' => 69), |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | 'c.date_cloture' => array('label' => "DateClosing", 'checked' => '0', 'position' => 130), |
| 233 | 233 | 'c.note_public' => array('label' => 'NotePublic', 'checked' => '0', 'enabled' => (string) (int) (!getDolGlobalString('MAIN_LIST_ALLOW_PUBLIC_NOTES')), 'position' => 135), |
| 234 | 234 | 'c.note_private' => array('label' => 'NotePrivate', 'checked' => '0', 'enabled' => (string) (int) (!getDolGlobalString('MAIN_LIST_ALLOW_PRIVATE_NOTES')), 'position' => 140), |
| 235 | - 'shippable' => array('label' => "Shippable", 'checked' => '1','enabled' => (string) (int) (isModEnabled('shipping')), 'position' => 990), |
|
| 235 | + 'shippable' => array('label' => "Shippable", 'checked' => '1', 'enabled' => (string) (int) (isModEnabled('shipping')), 'position' => 990), |
|
| 236 | 236 | 'c.facture' => array('label' => "Billed", 'checked' => '1', 'enabled' => (string) (int) (!getDolGlobalString('WORKFLOW_BILL_ON_SHIPMENT')), 'position' => 995), |
| 237 | 237 | 'c.import_key' => array('type' => 'varchar(14)', 'label' => 'ImportId', 'enabled' => '1', 'visible' => -2, 'position' => 999), |
| 238 | 238 | 'c.fk_statut' => array('label' => "Status", 'checked' => '1', 'position' => 1000) |
@@ -464,7 +464,7 @@ discard block |
||
| 464 | 464 | $sql .= natural_search('pr.ref', $search_refProduct); |
| 465 | 465 | } |
| 466 | 466 | if ($search_descProduct) { |
| 467 | - $sql .= natural_search(array('pr.label','cdet.description'), $search_descProduct); |
|
| 467 | + $sql .= natural_search(array('pr.label', 'cdet.description'), $search_descProduct); |
|
| 468 | 468 | } |
| 469 | 469 | if ($search_ref) { |
| 470 | 470 | $sql .= natural_search('c.ref', $search_ref); |
@@ -611,7 +611,7 @@ discard block |
||
| 611 | 611 | if ($searchCategoryCustomerOperator == 0) { |
| 612 | 612 | $searchCategoryCustomerSqlList[] = " EXISTS (SELECT cs.fk_soc FROM ".MAIN_DB_PREFIX."categorie_societe as cs WHERE s.rowid = cs.fk_soc AND cs.fk_categorie = ".((int) $searchCategoryCustomer).")"; |
| 613 | 613 | } else { |
| 614 | - $listofcategoryid .= ($listofcategoryid ? ', ' : '') .((int) $searchCategoryCustomer); |
|
| 614 | + $listofcategoryid .= ($listofcategoryid ? ', ' : '').((int) $searchCategoryCustomer); |
|
| 615 | 615 | } |
| 616 | 616 | } |
| 617 | 617 | } |
@@ -640,7 +640,7 @@ discard block |
||
| 640 | 640 | if ($searchCategoryProductOperator == 0) { |
| 641 | 641 | $searchCategoryProjectSqlList[] = " EXISTS (SELECT cp.fk_product FROM ".MAIN_DB_PREFIX."categorie_product as cp WHERE cdet.fk_product = cp.fk_product AND cp.fk_categorie = ".((int) $searchCategoryProject).")"; |
| 642 | 642 | } else { |
| 643 | - $listofcategoryid .= ($listofcategoryid ? ', ' : '') .((int) $searchCategoryProject); |
|
| 643 | + $listofcategoryid .= ($listofcategoryid ? ', ' : '').((int) $searchCategoryProject); |
|
| 644 | 644 | } |
| 645 | 645 | } |
| 646 | 646 | } |
@@ -680,7 +680,7 @@ discard block |
||
| 680 | 680 | // Count total nb of records |
| 681 | 681 | $nbtotalofrecords = ''; |
| 682 | 682 | if (!getDolGlobalInt('MAIN_DISABLE_FULL_SCANLIST')) { |
| 683 | - $result = $db->query('SELECT COUNT(*) as numrows ' . $sql); |
|
| 683 | + $result = $db->query('SELECT COUNT(*) as numrows '.$sql); |
|
| 684 | 684 | $obj = $db->fetch_object($result); |
| 685 | 685 | if (empty($obj)) { |
| 686 | 686 | $nbtotalofrecords = 0; |
@@ -696,7 +696,7 @@ discard block |
||
| 696 | 696 | |
| 697 | 697 | $sql .= $db->plimit($limit + 1, $offset); |
| 698 | 698 | //print $sql; |
| 699 | -$resql = $db->query($sqlSelect . $sql); |
|
| 699 | +$resql = $db->query($sqlSelect.$sql); |
|
| 700 | 700 | if ($resql) { |
| 701 | 701 | if ($socid > 0) { |
| 702 | 702 | $soc = new Societe($db); |
@@ -918,7 +918,7 @@ discard block |
||
| 918 | 918 | if (!empty($socid)) { |
| 919 | 919 | $url .= '&socid='.$socid; |
| 920 | 920 | } |
| 921 | - $newcardbutton = '';//dolGetButtonTitle($langs->trans('NewOrder'), '', 'fa fa-plus-circle', $url, '', $contextpage == 'orderlistdet' && $permissiontoadd); |
|
| 921 | + $newcardbutton = ''; //dolGetButtonTitle($langs->trans('NewOrder'), '', 'fa fa-plus-circle', $url, '', $contextpage == 'orderlistdet' && $permissiontoadd); |
|
| 922 | 922 | |
| 923 | 923 | // Lines of title fields |
| 924 | 924 | print '<form method="POST" id="searchFormList" action="'.dolBuildUrl($_SERVER["PHP_SELF"]).'">'; |
@@ -2135,10 +2135,10 @@ discard block |
||
| 2135 | 2135 | if (!empty($show_shippable_command) && isModEnabled('stock')) { |
| 2136 | 2136 | $text_icon = ''; |
| 2137 | 2137 | if (($obj->fk_statut > $generic_commande::STATUS_DRAFT) && ($obj->fk_statut < $generic_commande::STATUS_CLOSED)) { |
| 2138 | - $generic_commande->loadExpeditions(); // Load array ->expeditions |
|
| 2138 | + $generic_commande->loadExpeditions(); // Load array ->expeditions |
|
| 2139 | 2139 | |
| 2140 | 2140 | if (isset($generic_commande->expeditions[$obj->rowid])) { |
| 2141 | - $reliquat = $obj->qty - $generic_commande->expeditions[$obj->rowid]; |
|
| 2141 | + $reliquat = $obj->qty - $generic_commande->expeditions[$obj->rowid]; |
|
| 2142 | 2142 | } else { |
| 2143 | 2143 | $reliquat = $obj->qty; |
| 2144 | 2144 | } |
@@ -234,15 +234,15 @@ discard block |
||
| 234 | 234 | // Read the permissions of a user inherited by its groups |
| 235 | 235 | $permsgroupbyentity = array(); |
| 236 | 236 | |
| 237 | -$sql = "SELECT DISTINCT gr.fk_id, gu.entity"; // fk_id are permission id and entity is entity of the group |
|
| 237 | +$sql = "SELECT DISTINCT gr.fk_id, gu.entity"; // fk_id are permission id and entity is entity of the group |
|
| 238 | 238 | $sql .= " FROM ".MAIN_DB_PREFIX."usergroup_rights as gr,"; |
| 239 | -$sql .= " ".MAIN_DB_PREFIX."usergroup_user as gu"; // all groups of a user |
|
| 239 | +$sql .= " ".MAIN_DB_PREFIX."usergroup_user as gu"; // all groups of a user |
|
| 240 | 240 | $sql .= " WHERE gr.entity = ".((int) $entity); // it's very important, don't change please ! |
| 241 | 241 | // The entity on the table gu=usergroup_user should be useless and should never be used because it is already into gr and r. |
| 242 | 242 | // but when using MULTICOMPANY_TRANSVERSE_MODE, we may have inserted record that make rubbish result here due to the duplicate record of |
| 243 | 243 | // other entities, so we are forced to add a filter on gu here |
| 244 | 244 | if (getDolGlobalString("MULTICOMPANY_TRANSVERSE_MODE_FIX_WHEN_GU_CONTAINS_0")) { |
| 245 | - $sql .= " AND gu.entity IN (0,". ((int) $entity).")"; |
|
| 245 | + $sql .= " AND gu.entity IN (0,".((int) $entity).")"; |
|
| 246 | 246 | } else { |
| 247 | 247 | $sql .= " AND gu.entity = ".((int) $entity); |
| 248 | 248 | } |
@@ -494,7 +494,7 @@ discard block |
||
| 494 | 494 | } else { |
| 495 | 495 | $ishidden = 0; |
| 496 | 496 | } |
| 497 | - $isexpanded = ! $ishidden; |
|
| 497 | + $isexpanded = !$ishidden; |
|
| 498 | 498 | //var_dump("isexpanded=".$isexpanded); |
| 499 | 499 | |
| 500 | 500 | $permsgroupbyentitypluszero = array(); |
@@ -518,7 +518,7 @@ discard block |
||
| 518 | 518 | } else { |
| 519 | 519 | $ishidden = 0; |
| 520 | 520 | } |
| 521 | - $isexpanded = ! $ishidden; |
|
| 521 | + $isexpanded = !$ishidden; |
|
| 522 | 522 | //var_dump('$obj->module='.$obj->module.' isexpanded='.$isexpanded); |
| 523 | 523 | |
| 524 | 524 | // Break detected, we get objMod |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | $colorseriesstat = array(); |
| 84 | 84 | if ($user->hasRight('ticket', 'read')) { |
| 85 | 85 | $sql = "SELECT ctt.rowid, ctt.label, ctt.code"; |
| 86 | - $sql .= " FROM " . MAIN_DB_PREFIX . "c_ticket_type as ctt"; |
|
| 86 | + $sql .= " FROM ".MAIN_DB_PREFIX."c_ticket_type as ctt"; |
|
| 87 | 87 | $sql .= " WHERE ctt.entity IN (".getEntity('c_ticket_type').")"; |
| 88 | 88 | $sql .= " AND ctt.active = 1"; |
| 89 | 89 | $sql .= $this->db->order('ctt.rowid', 'ASC'); |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | $dataseries = array(); |
| 117 | 117 | $data = array(); |
| 118 | 118 | $sql = "SELECT t.type_code, COUNT(t.type_code) as nb"; |
| 119 | - $sql .= " FROM " . MAIN_DB_PREFIX . "ticket as t"; |
|
| 119 | + $sql .= " FROM ".MAIN_DB_PREFIX."ticket as t"; |
|
| 120 | 120 | $sql .= " WHERE t.entity IN (".getEntity('ticket').")"; |
| 121 | 121 | $sql .= " AND t.fk_statut <> 8"; |
| 122 | 122 | $sql .= " GROUP BY t.type_code"; |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | } |
| 132 | 132 | foreach ($listofoppcode as $rowid => $code) { |
| 133 | 133 | $dataseries[] = array( |
| 134 | - 'label' => $langs->getLabelFromKey($this->db, 'TicketTypeShort' . $code, 'c_ticket_type', 'code', 'label', $code), |
|
| 134 | + 'label' => $langs->getLabelFromKey($this->db, 'TicketTypeShort'.$code, 'c_ticket_type', 'code', 'label', $code), |
|
| 135 | 135 | 'data' => (empty($data[$code]) ? 0 : $data[$code]) |
| 136 | 136 | ); |
| 137 | 137 | } |
@@ -77,8 +77,8 @@ discard block |
||
| 77 | 77 | $badgeStatus7 = '#baa32b'; |
| 78 | 78 | $badgeStatus8 = '#993013'; |
| 79 | 79 | $badgeStatus9 = '#e7f0f0'; |
| 80 | - if (file_exists(DOL_DOCUMENT_ROOT . '/theme/' . $conf->theme . '/theme_vars.inc.php')) { |
|
| 81 | - include DOL_DOCUMENT_ROOT . '/theme/' . $conf->theme . '/theme_vars.inc.php'; |
|
| 80 | + if (file_exists(DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/theme_vars.inc.php')) { |
|
| 81 | + include DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/theme_vars.inc.php'; |
|
| 82 | 82 | } |
| 83 | 83 | $this->max = $max; |
| 84 | 84 | |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | $colorseriesstat = array(); |
| 96 | 96 | if ($user->hasRight('ticket', 'read')) { |
| 97 | 97 | $sql = "SELECT cts.rowid, cts.label, cts.code"; |
| 98 | - $sql .= " FROM " . MAIN_DB_PREFIX . "c_ticket_severity as cts"; |
|
| 98 | + $sql .= " FROM ".MAIN_DB_PREFIX."c_ticket_severity as cts"; |
|
| 99 | 99 | $sql .= " WHERE cts.entity IN (".getEntity('c_ticket_severity').")"; |
| 100 | 100 | $sql .= " AND cts.active = 1"; |
| 101 | 101 | $sql .= $this->db->order('cts.rowid', 'ASC'); |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | $dataseries = array(); |
| 134 | 134 | $data = array(); |
| 135 | 135 | $sql = "SELECT t.severity_code, COUNT(t.severity_code) as nb"; |
| 136 | - $sql .= " FROM " . MAIN_DB_PREFIX . "ticket as t"; |
|
| 136 | + $sql .= " FROM ".MAIN_DB_PREFIX."ticket as t"; |
|
| 137 | 137 | $sql .= " WHERE t.entity IN (".getEntity('ticket').")"; |
| 138 | 138 | $sql .= " AND t.fk_statut <> 8"; |
| 139 | 139 | $sql .= " GROUP BY t.severity_code"; |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | } |
| 149 | 149 | foreach ($listofoppcode as $rowid => $code) { |
| 150 | 150 | $dataseries[] = array( |
| 151 | - 'label' => $langs->getLabelFromKey($this->db, 'TicketSeverityShort' . $code, 'c_ticket_severity', 'code', 'label', $code), |
|
| 151 | + 'label' => $langs->getLabelFromKey($this->db, 'TicketSeverityShort'.$code, 'c_ticket_severity', 'code', 'label', $code), |
|
| 152 | 152 | 'data' => (empty($data[$code]) ? 0 : $data[$code]) |
| 153 | 153 | ); |
| 154 | 154 | } |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | require_once DOL_DOCUMENT_ROOT.'/core/lib/security.lib.php'; |
| 54 | 54 | require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php'; |
| 55 | 55 | require_once DOL_DOCUMENT_ROOT.'/core/lib/payments.lib.php'; |
| 56 | -require_once DOL_DOCUMENT_ROOT . '/core/lib/public.lib.php'; |
|
| 56 | +require_once DOL_DOCUMENT_ROOT.'/core/lib/public.lib.php'; |
|
| 57 | 57 | require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php'; |
| 58 | 58 | |
| 59 | 59 | |
@@ -64,11 +64,11 @@ discard block |
||
| 64 | 64 | $action = GETPOST('action', 'aZ09'); |
| 65 | 65 | $cancel = GETPOST('cancel', 'alpha'); |
| 66 | 66 | $email = GETPOST('email', 'alpha'); |
| 67 | -$firstname = GETPOST('firstname', 'alpha'); |
|
| 67 | +$firstname = GETPOST('firstname', 'alpha'); |
|
| 68 | 68 | $lastname = GETPOST('lastname', 'alpha'); |
| 69 | 69 | $birthday = GETPOST('birthday', 'alpha'); |
| 70 | -$phone = GETPOST('phone', 'alpha'); |
|
| 71 | -$message = GETPOST('message', 'alpha'); |
|
| 70 | +$phone = GETPOST('phone', 'alpha'); |
|
| 71 | +$message = GETPOST('message', 'alpha'); |
|
| 72 | 72 | $requestedremuneration = GETPOST('requestedremuneration', 'alpha'); |
| 73 | 73 | |
| 74 | 74 | $ref = GETPOST('ref', 'alpha'); |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | $ok = false; |
| 180 | 180 | if (getDolGlobalString('MAIN_SECURITY_ENABLECAPTCHA_RECRUITMENT') && is_object($captchaobj)) { |
| 181 | 181 | if (method_exists($captchaobj, 'validateCodeAfterLoginSubmit')) { |
| 182 | - $ok = $captchaobj->validateCodeAfterLoginSubmit(); // @phan-suppress-current-line PhanUndeclaredMethod |
|
| 182 | + $ok = $captchaobj->validateCodeAfterLoginSubmit(); // @phan-suppress-current-line PhanUndeclaredMethod |
|
| 183 | 183 | } else { |
| 184 | 184 | print 'Error, the captcha handler '.get_class($captchaobj).' does not have any method validateCodeAfterLoginSubmit()'; |
| 185 | 185 | } |
@@ -192,8 +192,8 @@ discard block |
||
| 192 | 192 | } |
| 193 | 193 | if (!$error) { |
| 194 | 194 | $sql = "SELECT rrc.rowid FROM ".MAIN_DB_PREFIX."recruitment_recruitmentcandidature as rrc"; |
| 195 | - $sql .= " WHERE rrc.email = '". $db->escape($email)."'"; |
|
| 196 | - $sql .= " AND rrc.entity IN (". getEntity($object->element, 0).")"; |
|
| 195 | + $sql .= " WHERE rrc.email = '".$db->escape($email)."'"; |
|
| 196 | + $sql .= " AND rrc.entity IN (".getEntity($object->element, 0).")"; |
|
| 197 | 197 | $resql = $db->query($sql); |
| 198 | 198 | if ($resql) { |
| 199 | 199 | $num = $db->num_rows($resql); |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | if (!$error) { |
| 259 | 259 | $db->commit(); |
| 260 | 260 | setEventMessages($langs->trans("RecruitmentCandidatureSaved"), null); |
| 261 | - header("Location: " . $backtopage); |
|
| 261 | + header("Location: ".$backtopage); |
|
| 262 | 262 | exit; |
| 263 | 263 | } else { |
| 264 | 264 | $db->rollback(); |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | |
| 285 | 285 | $head = ''; |
| 286 | 286 | if (getDolGlobalString('MAIN_RECRUITMENT_CSS_URL')) { |
| 287 | - $head = '<link rel="stylesheet" type="text/css" href="' . getDolGlobalString('MAIN_RECRUITMENT_CSS_URL').'?lang='.$langs->defaultlang.'">'."\n"; |
|
| 287 | + $head = '<link rel="stylesheet" type="text/css" href="'.getDolGlobalString('MAIN_RECRUITMENT_CSS_URL').'?lang='.$langs->defaultlang.'">'."\n"; |
|
| 288 | 288 | } |
| 289 | 289 | |
| 290 | 290 | $conf->dol_hide_topmenu = 1; |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | |
| 358 | 358 | if (getDolGlobalString('RECRUITMENT_IMAGE_PUBLIC_INTERFACE')) { |
| 359 | 359 | print '<div class="backimagepublicrecruitment">'; |
| 360 | - print '<img id="idRECRUITMENT_IMAGE_PUBLIC_INTERFACE" src="' . getDolGlobalString('RECRUITMENT_IMAGE_PUBLIC_INTERFACE').'">'; |
|
| 360 | + print '<img id="idRECRUITMENT_IMAGE_PUBLIC_INTERFACE" src="'.getDolGlobalString('RECRUITMENT_IMAGE_PUBLIC_INTERFACE').'">'; |
|
| 361 | 361 | print '</div>'; |
| 362 | 362 | } |
| 363 | 363 | |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | if (preg_match('/^\((.*)\)$/', $conf->global->RECRUITMENT_NEWFORM_TEXT, $reg)) { |
| 372 | 372 | $text .= $langs->trans($reg[1])."<br>\n"; |
| 373 | 373 | } else { |
| 374 | - $text .= getDolGlobalString('RECRUITMENT_NEWFORM_TEXT') . "<br>\n"; |
|
| 374 | + $text .= getDolGlobalString('RECRUITMENT_NEWFORM_TEXT')."<br>\n"; |
|
| 375 | 375 | } |
| 376 | 376 | $text = '<tr><td align="center"><br>'.$text.'<br></td></tr>'."\n"; |
| 377 | 377 | } |
@@ -482,7 +482,7 @@ discard block |
||
| 482 | 482 | |
| 483 | 483 | // Other attributes |
| 484 | 484 | $object = new RecruitmentCandidature($db); |
| 485 | - $parameters['tpl_context'] = 'public'; // define template context to public |
|
| 485 | + $parameters['tpl_context'] = 'public'; // define template context to public |
|
| 486 | 486 | $parameters['tdclass'] = 'left'; |
| 487 | 487 | $extrafields->fetch_name_optionals_label("recruitment_recruitmentcandidature"); |
| 488 | 488 | include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_add.tpl.php'; |
@@ -495,7 +495,7 @@ discard block |
||
| 495 | 495 | if (getDolGlobalString('MAIN_SECURITY_ENABLECAPTCHA_RECRUITMENT') && is_object($captchaobj)) { |
| 496 | 496 | print '<tr><td class="titlefield"><label><span class="fieldrequired">'.$langs->trans($captchaobj->getFieldInputTitle()).'</span></label></td><td><br>'; |
| 497 | 497 | if (method_exists($captchaobj, 'getCaptchaCodeForForm')) { |
| 498 | - print $captchaobj->getCaptchaCodeForForm(''); // @phan-suppress-current-line PhanUndeclaredMethod |
|
| 498 | + print $captchaobj->getCaptchaCodeForForm(''); // @phan-suppress-current-line PhanUndeclaredMethod |
|
| 499 | 499 | } else { |
| 500 | 500 | print 'Error, the captcha handler '.get_class($captchaobj).' does not have any method getCaptchaCodeForForm()'; |
| 501 | 501 | } |