25 if (!defined(
'NOTOKENRENEWAL')) define(
'NOTOKENRENEWAL', 1);
26 if (!defined(
'NOREQUIREMENU')) define(
'NOREQUIREMENU',
'1');
27 if (!defined(
'NOREQUIREHTML')) define(
'NOREQUIREHTML',
'1');
28 if (!defined(
'NOREQUIREAJAX')) define(
'NOREQUIREAJAX',
'1');
29 if (!defined(
'NOREQUIRESOC')) define(
'NOREQUIRESOC',
'1');
30 if (!defined(
'NOCSRFCHECK')) define(
'NOCSRFCHECK',
'1');
32 require
'../main.inc.php';
34 $country =
GETPOST(
'country',
'alpha');
58 $sql =
"SELECT rowid, code, label, active";
59 $sql .=
" FROM ".MAIN_DB_PREFIX.
"c_country";
60 $sql .=
" WHERE active = 1 AND label LIKE '%".$db->escape(utf8_decode($country)).
"%'";
61 $sql .=
" ORDER BY label ASC";
67 while ($country = $db->fetch_object(
$resql))
71 print ($country->code && $langs->trans(
"Country".$country->code) !=
"Country".$country->code ? $langs->trans(
"Country".$country->code) : ($country->label !=
'-' ? $country->label :
' '));
72 print '<span class="informal" style="display:none">'.$country->rowid.
'-idcache</span>';
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
if(!defined('NOREQUIREMENU')) if(!function_exists("llxHeader")) top_httphead($contenttype= 'text/html', $forcenocache=0)
Show HTTP header.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename= '', $restricttologhandler= '', $logcontext=null)
Write log message into outputs.
print $_SERVER["PHP_SELF"]
Edit parameters.
print
Draft customers invoices.
if(!empty($conf->facture->enabled)&&$user->rights->facture->lire) if((!empty($conf->fournisseur->enabled)&&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)||!empty($conf->supplier_invoice->enabled))&&$user->rights->fournisseur->facture->lire) if(!empty($conf->don->enabled)&&$user->rights->don->lire) if(!empty($conf->tax->enabled)&&$user->rights->tax->charges->lire) if(!empty($conf->facture->enabled)&&!empty($conf->commande->enabled)&&$user->rights->commande->lire &&empty($conf->global->WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER)) if(!empty($conf->facture->enabled)&&$user->rights->facture->lire) if((!empty($conf->fournisseur->enabled)&&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)||!empty($conf->supplier_invoice->enabled))&&$user->rights->fournisseur->facture->lire) $resql
Social contributions to pay.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $keepmoretags= '', $escapeonlyhtmltags=0)
Returns text escaped for inclusion in HTML alt or title tags, or into values of HTML input fields...