本文整理汇总了PHP中FormCompany::select_ziptown方法的典型用法代码示例。如果您正苦于以下问题:PHP FormCompany::select_ziptown方法的具体用法?PHP FormCompany::select_ziptown怎么用?PHP FormCompany::select_ziptown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormCompany
的用法示例。
在下文中一共展示了FormCompany::select_ziptown方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
}
// Civility
print '<tr><td>' . $langs->trans('UserTitle') . '</td><td>';
print $formcompany->select_civility(GETPOST('civility_id'), 'civility_id') . '</td></tr>' . "\n";
// Lastname
print '<tr><td>' . $langs->trans("Lastname") . ' <FONT COLOR="red">*</FONT></td><td><input type="text" name="lastname" size="40" value="' . dol_escape_htmltag(GETPOST('lastname')) . '"></td></tr>' . "\n";
// Firstname
print '<tr><td>' . $langs->trans("Firstname") . ' <FONT COLOR="red">*</FONT></td><td><input type="text" name="firstname" size="40" value="' . dol_escape_htmltag(GETPOST('firstname')) . '"></td></tr>' . "\n";
// Company
print '<tr id="trcompany" class="trcompany"><td>' . $langs->trans("Company") . '</td><td><input type="text" name="societe" size="40" value="' . dol_escape_htmltag(GETPOST('societe')) . '"></td></tr>' . "\n";
// Address
print '<tr><td>' . $langs->trans("Address") . '</td><td>' . "\n";
print '<textarea name="address" id="address" wrap="soft" cols="40" rows="' . ROWS_3 . '">' . dol_escape_htmltag(GETPOST('address')) . '</textarea></td></tr>' . "\n";
// Zip / Town
print '<tr><td>' . $langs->trans('Zip') . ' / ' . $langs->trans('Town') . '</td><td>';
print $formcompany->select_ziptown(GETPOST('zipcode'), 'zipcode', array('town', 'selectcountry_id', 'state_id'), 6, 1);
print ' / ';
print $formcompany->select_ziptown(GETPOST('town'), 'town', array('zipcode', 'selectcountry_id', 'state_id'), 0, 1);
print '</td></tr>';
// Country
print '<tr><td width="25%">' . $langs->trans('Country') . '</td><td>';
$country_id = GETPOST('country_id');
if (!$country_id && !empty($conf->global->MEMBER_NEWFORM_FORCECOUNTRYCODE)) {
$country_id = getCountry($conf->global->MEMBER_NEWFORM_FORCECOUNTRYCODE, 2, $db, $langs);
}
if (!$country_id && !empty($conf->geoipmaxmind->enabled)) {
$country_code = dol_user_country();
//print $country_code;
if ($country_code) {
$new_country_id = getCountry($country_code, 3, $db, $langs);
//print 'xxx'.$country_code.' - '.$new_country_id;
示例2: DolEditor
// Ref
print '<tr><td width="25%" class="fieldrequired">' . $langs->trans("Ref") . '</td><td colspan="3"><input name="libelle" size="20" value=""></td></tr>';
print '<tr><td >' . $langs->trans("LocationSummary") . '</td><td colspan="3"><input name="lieu" size="40" value="' . $object->lieu . '"></td></tr>';
// Description
print '<tr><td valign="top">' . $langs->trans("Description") . '</td><td colspan="3">';
// Editeur wysiwyg
require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php';
$doleditor = new DolEditor('desc', $object->description, '', 180, 'dolibarr_notes', 'In', false, true, $conf->fckeditor->enabled, 5, 70);
$doleditor->Create();
print '</td></tr>';
print '<tr><td>' . $langs->trans('Address') . '</td><td colspan="3"><textarea name="address" cols="60" rows="3" wrap="soft">';
print $object->address;
print '</textarea></td></tr>';
// Zip / Town
print '<tr><td>' . $langs->trans('Zip') . '</td><td>';
print $formcompany->select_ziptown($object->zip, 'zipcode', array('town', 'selectcountry_id', 'state_id'), 6);
print '</td><td>' . $langs->trans('Town') . '</td><td>';
print $formcompany->select_ziptown($object->town, 'town', array('zipcode', 'selectcountry_id', 'state_id'));
print '</td></tr>';
// Country
print '<tr><td width="25%">' . $langs->trans('Country') . '</td><td colspan="3">';
print $form->select_country($object->country_id ? $object->country_id : $mysoc->country_code, 'country_id');
if ($user->admin) {
print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1);
}
print '</td></tr>';
print '<tr><td>' . $langs->trans("Status") . '</td><td colspan="3">';
print '<select name="statut" class="flat">';
print '<option value="0">' . $langs->trans("WarehouseClosed") . '</option>';
print '<option value="1" selected="selected">' . $langs->trans("WarehouseOpened") . '</option>';
print '</select>';
示例3: GETPOST
print '<td valign="middle" align="center" rowspan="' . $rowspan . '">';
print '<a href="#" id="copyaddressfromsoc">' . $langs->trans('CopyAddressFromSoc') . '</a>';
print '</td>';
}
print '</tr>';
// Zip / Town
if (($objsoc->typent_code == 'TE_PRIVATE' || !empty($conf->global->CONTACT_USE_COMPANY_ADDRESS)) && dol_strlen(trim($object->zip)) == 0) {
$object->zip = $objsoc->zip;
}
// Predefined with third party
if (($objsoc->typent_code == 'TE_PRIVATE' || !empty($conf->global->CONTACT_USE_COMPANY_ADDRESS)) && dol_strlen(trim($object->town)) == 0) {
$object->town = $objsoc->town;
}
// Predefined with third party
print '<tr><td><label for="zipcode">' . $langs->trans("Zip") . '</label> / <label for="town">' . $langs->trans("Town") . '</label></td><td colspan="' . $colspan . '" class="maxwidthonsmartphone">';
print $formcompany->select_ziptown(GETPOST("zipcode") ? GETPOST("zipcode") : $object->zip, 'zipcode', array('town', 'selectcountry_id', 'state_id'), 6) . ' ';
print $formcompany->select_ziptown(GETPOST("town") ? GETPOST("town") : $object->town, 'town', array('zipcode', 'selectcountry_id', 'state_id'));
print '</td></tr>';
// Country
print '<tr><td><label for="selectcountry_id">' . $langs->trans("Country") . '</label></td><td colspan="' . $colspan . '" class="maxwidthonsmartphone">';
print $form->select_country(GETPOST("country_id", 'alpha') ? GETPOST("country_id", 'alpha') : $object->country_id, 'country_id');
if ($user->admin) {
print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1);
}
print '</td></tr>';
// State
if (empty($conf->global->SOCIETE_DISABLE_STATE)) {
print '<tr><td><label for="state_id">' . $langs->trans('State') . '</label></td><td colspan="' . $colspan . '" class="maxwidthonsmartphone">';
if ($object->country_id) {
print $formcompany->select_state(GETPOST("state_id", 'alpha') ? GETPOST("state_id", 'alpha') : $object->state_id, $object->country_code, 'state_id');
} else {
示例4: GETPOST
print '<td rowspan="' . $nbrows . '" valign="top">' . $langs->trans("Comments") . ' :<br>';
print "<textarea name=\"note_private\" wrap=\"soft\" cols=\"40\" rows=\"15\">" . GETPOST("note_private") . "</textarea></td>";
print "</tr>";
// Amount
print "<tr>" . '<td class="fieldrequired">' . $langs->trans("Amount") . '</td><td><input type="text" name="amount" value="' . $_POST["amount"] . '" size="10"> ' . $langs->trans("Currency" . $conf->currency) . '</td></tr>';
print '<tr><td class="fieldrequired">' . $langs->trans("PublicDonation") . "</td><td>";
print $form->selectyesno("public", isset($_POST["public"]) ? $_POST["public"] : 1, 1);
print "</td></tr>\n";
print "<tr>" . '<td>' . $langs->trans("Company") . '</td><td><input type="text" name="societe" value="' . $_POST["societe"] . '" size="40"></td></tr>';
print "<tr>" . '<td>' . $langs->trans("Firstname") . '</td><td><input type="text" name="firstname" value="' . $_POST["firstname"] . '" size="40"></td></tr>';
print "<tr>" . '<td>' . $langs->trans("Lastname") . '</td><td><input type="text" name="lastname" value="' . $_POST["lastname"] . '" size="40"></td></tr>';
print "<tr>" . '<td>' . $langs->trans("Address") . '</td><td>';
print '<textarea name="address" wrap="soft" cols="40" rows="3">' . $_POST["address"] . '</textarea></td></tr>';
// Zip / Town
print '<tr><td>' . $langs->trans("Zip") . ' / ' . $langs->trans("Town") . '</td><td>';
print $formcompany->select_ziptown(isset($_POST["zipcode"]) ? $_POST["zipcode"] : $don->zip, 'zipcode', array('town', 'selectcountry_id', 'state_id'), 6);
print ' ';
print $formcompany->select_ziptown(isset($_POST["town"]) ? $_POST["town"] : $don->town, 'town', array('zipcode', 'selectcountry_id', 'state_id'));
print '</tr>';
print "<tr>" . '<td>' . $langs->trans("Country") . '</td><td><input type="text" name="country" value="' . $_POST["country"] . '" size="40"></td></tr>';
print "<tr>" . '<td>' . $langs->trans("EMail") . '</td><td><input type="text" name="email" value="' . $_POST["email"] . '" size="40"></td></tr>';
print "<tr><td>" . $langs->trans("PaymentMode") . "</td><td>\n";
$form->select_types_paiements('', 'modepaiement', 'CRDT', 0, 1);
print "</td></tr>\n";
if (!empty($conf->projet->enabled)) {
$formproject = new FormProjets($db);
// Si module projet actif
print "<tr><td>" . $langs->trans("Project") . "</td><td>";
$formproject->select_projects('', $_POST["projectid"], "projectid");
print "</td></tr>\n";
}
示例5:
// Civility
print '<tr><td width="15%">'.$langs->trans("UserTitle").'</td><td colspan="3">';
print $formcompany->select_civilite(isset($_POST["civilite_id"])?$_POST["civilite_id"]:$object->civilite_id);
print '</td></tr>';
print '<tr><td>'.$langs->trans("PostOrFunction").'</td><td colspan="3"><input name="poste" type="text" size="50" maxlength="80" value="'.(isset($_POST["poste"])?$_POST["poste"]:$object->poste).'"></td>';
// Address
if (($objsoc->typent_code == 'TE_PRIVATE' || ! empty($conf->global->CONTACT_USE_COMPANY_ADDRESS)) && dol_strlen(trim($object->address)) == 0) $object->address = $objsoc->address; // Predefined with third party
print '<tr><td>'.$langs->trans("Address").'</td><td colspan="3"><textarea class="flat" name="address" cols="70">'.(isset($_POST["address"])?$_POST["address"]:$object->address).'</textarea></td>';
// Zip / Town
if (($objsoc->typent_code == 'TE_PRIVATE' || ! empty($conf->global->CONTACT_USE_COMPANY_ADDRESS)) && dol_strlen(trim($object->zip)) == 0) $object->zip = $objsoc->zip; // Predefined with third party
if (($objsoc->typent_code == 'TE_PRIVATE' || ! empty($conf->global->CONTACT_USE_COMPANY_ADDRESS)) && dol_strlen(trim($object->town)) == 0) $object->town = $objsoc->town; // Predefined with third party
print '<tr><td>'.$langs->trans("Zip").' / '.$langs->trans("Town").'</td><td colspan="3">';
print $formcompany->select_ziptown((isset($_POST["zipcode"])?$_POST["zipcode"]:$object->zip),'zipcode',array('town','selectpays_id','departement_id'),6).' ';
print $formcompany->select_ziptown((isset($_POST["town"])?$_POST["town"]:$object->town),'town',array('zipcode','selectpays_id','departement_id'));
print '</td></tr>';
// Country
if (dol_strlen(trim($object->fk_pays)) == 0) $object->fk_pays = $objsoc->pays_id; // Predefined with third party
print '<tr><td>'.$langs->trans("Country").'</td><td colspan="3">';
$form->select_pays((isset($_POST["pays_id"])?$_POST["pays_id"]:$object->fk_pays),'pays_id');
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1);
print '</td></tr>';
// State
if (empty($conf->global->SOCIETE_DISABLE_STATE))
{
print '<tr><td>'.$langs->trans('State').'</td><td colspan="3">';
if ($object->fk_pays)
示例6: array
}
// Civility
print '<tr><td>'.$langs->trans("Civility").'</td><td>';
print $formcompany->select_civilite(GETPOST('civilite_id'),'civilite_id').'</td></tr>'."\n";
// Lastname
print '<tr><td>'.$langs->trans("Lastname").' <FONT COLOR="red">*</FONT></td><td><input type="text" name="nom" size="40" value="'.dol_escape_htmltag(GETPOST('nom')).'"></td></tr>'."\n";
// Firstname
print '<tr><td>'.$langs->trans("Firstname").' <FONT COLOR="red">*</FONT></td><td><input type="text" name="prenom" size="40" value="'.dol_escape_htmltag(GETPOST('prenom')).'"></td></tr>'."\n";
// Company
print '<tr id="trcompany" class="trcompany"><td>'.$langs->trans("Company").'</td><td><input type="text" name="societe" size="40" value="'.dol_escape_htmltag(GETPOST('societe')).'"></td></tr>'."\n";
// Address
print '<tr><td>'.$langs->trans("Address").'</td><td>'."\n";
print '<textarea name="address" id="address" wrap="soft" cols="40" rows="'.ROWS_3.'">'.dol_escape_htmltag(GETPOST('address')).'</textarea></td></tr>'."\n";
// Zip / Town
print '<tr><td>'.$langs->trans('Zip').' / '.$langs->trans('Town').'</td><td>';
print $formcompany->select_ziptown(GETPOST('zipcode'), 'zipcode', array('town','selectpays_id','departement_id'), 6, 1);
print ' / ';
print $formcompany->select_ziptown(GETPOST('town'), 'town', array('zipcode','selectpays_id','departement_id'), 0, 1);
print '</td></tr>';
// Country
print '<tr><td width="25%">'.$langs->trans('Country').'</td><td>';
$pays_id=GETPOST('pays_id');
if (! $pays_id && ! empty($conf->global->MEMBER_NEWFORM_FORCECOUNTRYCODE)) $pays_id=getCountry($conf->global->MEMBER_NEWFORM_FORCECOUNTRYCODE,2,$db,$langs);
if (! $pays_id && ! empty($conf->geoipmaxmind->enabled))
{
$pays_code=dol_user_country();
//print $pays_code;
if ($pays_code)
{
$new_pays_id=getCountry($pays_code,3,$db,$langs);
//print 'xxx'.$pays_code.' - '.$new_pays_id;
示例7: fieldLabel
dol_fiche_head();
print '<table class="border" width="100%">';
// Name
print '<tr><td>' . fieldLabel('Name', 'name', 1) . '</td><td><input name="name" id="name" size="32" value="' . GETPOST("name") . '"></td></tr>';
// Address
print '<tr>';
print '<td>' . fieldLabel('Address', 'address', 0) . '</td>';
print '<td>';
print '<input name="address" id="address" size="32" value="' . $object->address . '">';
print '</td>';
print '</tr>';
// Zipcode
print '<tr>';
print '<td>' . fieldLabel('Zip', 'zipcode', 0) . '</td>';
print '<td>';
print $formcompany->select_ziptown(GETPOST('zipcode', 'alpha'), 'zipcode', array('town', 'selectcountry_id'), 6);
print '</td>';
print '</tr>';
// Town
print '<tr>';
print '<td>' . fieldLabel('Town', 'town', 0) . '</td>';
print '<td>';
print $formcompany->select_ziptown(GETPOST('town', 'alpha'), 'town', array('zipcode', 'selectcountry_id'));
print '</td>';
print '</tr>';
// Country
print '<tr>';
print '<td>' . fieldLabel('Country', 'selectcountry_id', 0) . '</td>';
print '<td class="maxwidthonsmartphone">';
print $form->select_country($mysoc->country_id, 'country_id');
if ($user->admin) {
示例8:
// Barcode
if ($conf->global->MAIN_MODULE_BARCODE)
{
print '<tr><td>'.$langs->trans('Gencod').'</td><td colspan="3"><input type="text" name="gencod">';
print $object->gencod;
print '</textarea></td></tr>';
}
// Address
print '<tr><td valign="top">'.$langs->trans('Address').'</td><td colspan="3"><textarea name="adresse" cols="40" rows="3" wrap="soft">';
print $object->address;
print '</textarea></td></tr>';
// Zip / Town
print '<tr><td>'.$langs->trans('Zip').'</td><td>';
print $formcompany->select_ziptown($object->cp,'zipcode',array('town','selectpays_id','departement_id'),6);
print '</td><td>'.$langs->trans('Town').'</td><td>';
print $formcompany->select_ziptown($object->ville,'town',array('zipcode','selectpays_id','departement_id'));
print '</td></tr>';
// Country
print '<tr><td width="25%">'.$langs->trans('Country').'</td><td colspan="3">';
$form->select_pays($object->pays_id,'pays_id');
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1);
print '</td></tr>';
// State
if (empty($conf->global->SOCIETE_DISABLE_STATE))
{
print '<tr><td>'.$langs->trans('State').'</td><td colspan="3">';
if ($object->pays_id) $formcompany->select_departement($object->departement_id,$object->pays_code);
示例9: getRandomPassword
print '</tr>';
// Password
if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED)) {
require_once DOL_DOCUMENT_ROOT . "/core/lib/security2.lib.php";
$generated_password = getRandomPassword('');
print '<tr><td><span class="fieldrequired">' . $langs->trans("Password") . '</span></td><td>';
print '<input size="30" maxsize="32" type="text" name="password" value="' . $generated_password . '">';
print '</td></tr>';
}
// Address
print '<tr><td valign="top">' . $langs->trans("Address") . '</td><td>';
print '<textarea name="address" wrap="soft" cols="40" rows="2">' . (GETPOST('address', 'alpha') ? GETPOST('address', 'alpha') : $object->address) . '</textarea>';
print '</td></tr>';
// Zip / Town
print '<tr><td>' . $langs->trans("Zip") . ' / ' . $langs->trans("Town") . '</td><td>';
print $formcompany->select_ziptown(GETPOST('zipcode', 'alpha') ? GETPOST('zipcode', 'alpha') : $object->zip, 'zipcode', array('town', 'selectcountry_id', 'departement_id'), 6);
print ' ';
print $formcompany->select_ziptown(GETPOST('town', 'alpha') ? GETPOST('town', 'alpha') : $object->town, 'town', array('zipcode', 'selectcountry_id', 'departement_id'));
print '</td></tr>';
// Country
$object->country_id = $object->country_id ? $object->country_id : $mysoc->country_id;
print '<tr><td width="25%">' . $langs->trans('Country') . '</td><td>';
print $form->select_country(GETPOST('country_id', 'alpha') ? GETPOST('country_id', 'alpha') : $object->country_id, 'country_id');
if ($user->admin) {
print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"), 1);
}
print '</td></tr>';
// State
if (empty($conf->global->MEMBER_DISABLE_STATE)) {
print '<tr><td>' . $langs->trans('State') . '</td><td>';
if ($object->country_id) {
示例10:
print '<input type="hidden" name="origin" value="'.$origin.'">';
print '<input type="hidden" name="originid" value="'.$originid.'">';
print '<input type="hidden" name="action" value="add">';
print '<table class="border" width="100%">';
print '<tr><td class="fieldrequired">'.$langs->trans('AddressLabel').'</td><td><input type="text" size="30" name="label" id="label" value="'.($address->label?$address->label:$langs->trans('RequiredField')).'"></td></tr>';
print '<tr><td class="fieldrequired">'.$langs->trans('Name').'</td><td><input type="text" size="30" name="name" id="name" value="'.($address->name?$address->name:$langs->trans('RequiredField')).'"></td></tr>';
print '<tr><td valign="top">'.$langs->trans('Address').'</td><td colspan="3"><textarea name="address" cols="40" rows="3" wrap="soft">';
print $address->address;
print '</textarea></td></tr>';
// Zip
print '<tr><td>'.$langs->trans('Zip').'</td><td>';
print $formcompany->select_ziptown($address->cp,'zipcode',array('town','selectpays_id'),6);
print '</td></tr>';
// Town
print '<tr><td>'.$langs->trans('Town').'</td><td>';
print $formcompany->select_ziptown($address->ville,'town',array('zipcode','selectpays_id'));
print '</td></tr>';
print '<tr><td width="25%">'.$langs->trans('Country').'</td><td colspan="3">';
$form->select_pays($address->pays_id,'pays_id');
print '</td></tr>';
print '<tr><td>'.$langs->trans('Phone').'</td><td><input type="text" name="tel" value="'.$address->tel.'"></td></tr>';
print '<tr><td>'.$langs->trans('Fax').'</td><td><input type="text" name="fax" value="'.$address->fax.'"></td></tr>';