if ($res < 0) { dol_print_error($db); exit; } $head = societe_prepare_head($object); dol_fiche_head($head, 'card', $langs->trans("ThirdParty"),0,'company'); // Confirm delete third party if ($action == 'delete' || $conf->use_javascript_ajax) { $form = new Form($db); $ret=$form->form_confirm($_SERVER["PHP_SELF"]."?socid=".$object->id,$langs->trans("DeleteACompany"),$langs->trans("ConfirmDeleteCompany"),"confirm_delete",'',0,"action-delete"); if ($ret == 'html') print '<br>'; } dol_htmloutput_errors($error,$errors); $showlogo=$object->logo; $showbarcode=(! empty($conf->barcode->enabled) && $user->rights->barcode->lire); print '<table class="border" width="100%">'; // Ref /* print '<tr><td width="25%" valign="top">'.$langs->trans("Ref").'</td>'; print '<td colspan="2">'; print $fuser->id; print '</td>'; print '</tr>'; */
dol_set_focus('#label'); print '<form action="' . $_SERVER['PHP_SELF'] . '?type=' . $type . '" method="POST">'; print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">'; print '<input type="hidden" name="urlfrom" value="' . $urlfrom . '">'; print '<input type="hidden" name="action" value="add">'; print '<input type="hidden" name="addcat" value="addcat">'; print '<input type="hidden" name="id" value="' . GETPOST('origin') . '">'; print '<input type="hidden" name="type" value="' . $type . '">'; if ($origin) { print '<input type="hidden" name="origin" value="' . $origin . '">'; } if ($catorigin) { print '<input type="hidden" name="catorigin" value="' . $catorigin . '">'; } print_fiche_titre($langs->trans("CreateCat")); dol_htmloutput_errors('', $errors); print '<table width="100%" class="border">'; // Ref print '<tr>'; print '<td width="25%" class="fieldrequired">' . $langs->trans("Ref") . '</td><td><input id="label" class="flat" name="label" size="25" value="' . $label . '">'; print '</td></tr>'; // Description print '<tr><td valign="top">' . $langs->trans("Description") . '</td><td>'; require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php'; $doleditor = new DolEditor('description', $description, '', 200, 'dolibarr_notes', '', false, true, $conf->global->FCKEDITOR_ENABLE_PRODUCTDESC, ROWS_6, 50); $doleditor->Create(); print '</td></tr>'; // Parent category print '<tr><td>' . $langs->trans("AddIn") . '</td><td>'; print $form->select_all_categories($type, $catorigin); print '</td></tr>';
llxHeader(); $html = new Form($db); if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paiement') { $facture = new Facture($db); $result = $facture->fetch($facid); if ($result >= 0) { $facture->fetch_thirdparty(); $title = ''; if ($facture->type != 2) { $title .= $langs->trans("EnterPaymentReceivedFromCustomer"); } if ($facture->type == 2) { $title .= $langs->trans("EnterPaymentDueToCustomer"); } print_fiche_titre($title); dol_htmloutput_errors($errmsg); // Bouchon if ($facture->type == 2) { print $langs->trans("FeatureNotYetAvailable"); llxFooter(); exit; } // Initialize data for confirmation (this is used because data can be change during confirmation) if ($action == 'add_paiement') { $i = 0; $formquestion[$i++] = array('type' => 'hidden', 'name' => 'facid', 'value' => $facture->id); $formquestion[$i++] = array('type' => 'hidden', 'name' => 'socid', 'value' => $facture->socid); $formquestion[$i++] = array('type' => 'hidden', 'name' => 'type', 'value' => $facture->type); } // Invoice with Paypal transaction if ($conf->paypalplus->enabled && $conf->global->PAYPAL_ENABLE_TRANSACTION_MANAGEMENT && !empty($facture->ref_int)) {
llxHeader('',$langs->trans("CompanySetup"),$help_url); $linkback='<a href="'.DOL_URL_ROOT.'/admin/modules.php">'.$langs->trans("BackToModuleList").'</a>'; print_fiche_titre($langs->trans("CompanySetup"),$linkback,'setup'); $head = societe_admin_prepare_head(null); dol_fiche_head($head, 'attributes', $langs->trans("ThirdParty"), 0, 'company'); print $langs->trans("DefineHereComplementaryAttributes",$textobject).'<br>'; print '<br>'; dol_htmloutput_errors($mesg); // Load attribute_label try { $extrafields->load("extrafields:".$elementtype); } catch (Exception $e) { $error="Something weird happened: ".$e->getMessage()." (errcode=".$e->getCode().")\n"; dol_syslog("societe::load ".$error, LOG_ERR); print $error; exit; } /* ************************************************************************** */ /* */ /* Creation d'un champ optionnel
} /* * View */ llxHeader('', $langs->trans("Donations"), 'EN:Module_Donations|FR:Module_Dons|ES:Módulo_Donaciones'); $form = new Form($db); $formfile = new FormFile($db); $formcompany = new FormCompany($db); /* ************************************************************************** */ /* */ /* Creation */ /* */ /* ************************************************************************** */ if ($action == 'create') { print_fiche_titre($langs->trans("AddDonation")); dol_htmloutput_errors($mesg, $mesgs); print '<form name="add" action="fiche.php" method="post">'; print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">'; print '<table class="border" width="100%">'; print '<input type="hidden" name="action" value="add">'; $nbrows = 11; if (!empty($conf->projet->enabled)) { $nbrows++; } // Date print '<tr><td class="fieldrequired">' . $langs->trans("Date") . '</td><td>'; $form->select_date($donation_date ? $donation_date : -1, '', '', '', '', "add", 1, 1); print '</td>'; 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>";
$object = $GLOBALS['object']; $statutarray = array('1' => $langs->trans("OnSell"), '0' => $langs->trans("NotOnSell")); ?> <!-- BEGIN PHP TEMPLATE CREATE.TPL --> <?php print load_fiche_titre($langs->trans("Service")); ?> <?php dol_htmloutput_errors($this->control->tpl['error'], $this->control->tpl['errors']); ?> <?php dol_htmloutput_errors($GLOBALS['mesg'], $GLOBALS['mesgs']); ?> <form action="<?php echo $_SERVER["PHP_SELF"]; ?> " method="post"> <input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?> "> <input type="hidden" name="action" value="add"> <input type="hidden" name="type" value="1"> <input type="hidden" name="canvas" value="<?php echo $canvas; ?>
* You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * $Id: contactcard_edit.tpl.php,v 1.7 2011/07/31 23:54:11 eldy Exp $ */ $contact = $GLOBALS['objcanvas']->control->object; ?> <!-- BEGIN PHP TEMPLATE CONTACTCARD_EDIT.TPL.PHP DEFAULT --> <?php print_fiche_titre($this->control->tpl['title']); dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors']); echo $this->control->tpl['ajax_selectcountry']; ?> <br> <form method="post" name="formsoc" action="<?php echo $_SERVER["PHP_SELF"].'?id='.GETPOST("id"); ?>"> <input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>"> <input type="hidden" name="canvas" value="<?php echo $canvas ?>"> <input type="hidden" name="id" value="<?php echo GETPOST("id"); ?>"> <input type="hidden" name="action" value="update"> <input type="hidden" name="contactid" value="<?php echo $this->control->tpl['id']; ?>"> <input type="hidden" name="old_name" value="<?php echo $this->control->tpl['name']; ?>"> <input type="hidden" name="old_firstname" value="<?php echo $this->control->tpl['firstname']; ?>"> <?php if ($this->control->tpl['company_id']) { ?>
{ $include=array($object->user_id,$user->id); }*/ print $form->form_users($_SERVER['PHP_SELF'] . '?rowid=' . $object->id, $object->user_id, 'userid', ''); } else { if ($object->user_id) { print $form->form_users($_SERVER['PHP_SELF'] . '?rowid=' . $object->id, $object->user_id, 'none'); } else { print $langs->trans("NoDolibarrAccess"); } } print '</td></tr>'; print "</table>\n"; print '</form>'; dol_fiche_end(); dol_htmloutput_errors($errmsg, $errmsgs); /* * Barre d'actions */ // Lien nouvelle cotisation si non brouillon et non resilie if ($user->rights->adherent->cotisation->creer) { if ($action != 'addsubscription' && $action != 'create_thirdparty') { print '<div class="tabsAction">'; if ($object->statut > 0) { print '<div class="inline-block divButAction"><a class="butAction" href="' . $_SERVER["PHP_SELF"] . '?rowid=' . $rowid . '&action=addsubscription">' . $langs->trans("AddSubscription") . "</a></div>"; } else { print '<div class="inline-block divButAction"><a class="butActionRefused" href="#" title="' . dol_escape_htmltag($langs->trans("ValidateBefore")) . '">' . $langs->trans("AddSubscription") . '</a></div>'; } print "<br>\n"; print '</div>'; print '<br>';
$label = ''; foreach ($required_fields as $value) { if ($value) { $label .= $value . "=" . $ldapuser[$value] . " "; } } $liste[$key] = $label; } } else { $message = '<div class="error">' . $ldap->error . '</div>'; } } else { $message = '<div class="error">' . $ldap->error . '</div>'; } } dol_htmloutput_errors($message); if ($conf->ldap->enabled && $conf->global->LDAP_SYNCHRO_ACTIVE == 'ldap2dolibarr') { // Si la liste des users est rempli, on affiche la liste deroulante if (is_array($liste)) { print "\n\n<!-- Form liste LDAP debut -->\n"; print '<form name="add_user_ldap" action="' . $_SERVER["PHP_SELF"] . '" method="post">'; print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">'; print '<table width="100%" class="border"><tr>'; print '<td width="160">'; print $langs->trans("LDAPUsers"); print '</td>'; print '<td>'; print '<input type="hidden" name="action" value="adduserldap">'; print $html->selectarray('users', $liste, '', 1); print '</td><td align="center">'; print '<input type="submit" class="button" value="' . $langs->trans('Get') . '">';
// Note that $action and $object may have been modified by hook if (empty($reshook) && !empty($extrafields->attribute_label)) { print $object->showOptionals($extrafields, 'edit'); } print '</table>'; print '<center><br>'; print '<input type="submit" class="button" value="' . $langs->trans("Add") . '">'; print ' '; print '<input type="submit" class="button" name="cancel" value="' . $langs->trans("Cancel") . '">'; print '</center>'; print "</form>"; } // View or edit if ($id > 0) { if ($error) { dol_htmloutput_errors($error); } if ($mesg) { dol_htmloutput_mesg($mesg); } $result = $object->fetch($id); $object->fetch_optionals($id, $extralabels); if ($result < 0) { dol_print_error($db, $object->error); exit; } $societe = new Societe($db); if ($object->societe->id) { $result = $societe->fetch($object->societe->id); } $object->societe = $societe;
} else { if ($action == 'reopen') { $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?id=' . $object->id, $langs->trans('ReOpen'), $langs->trans('ConfirmReOpenProp', $object->ref), 'confirm_reopen', '', 0, 1); } else { if ($action == 'ask_deleteline') { $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?id=' . $object->id . '&lineid=' . $lineid, $langs->trans('DeleteProductLine'), $langs->trans('ConfirmDeleteProductLine'), 'confirm_deleteline', '', 0, 1); } else { if ($action == 'validate') { $error = 0; // on verifie si l'objet est en numerotation provisoire $ref = substr($object->ref, 1, 4); if ($ref == 'PROV') { $numref = $object->getNextNumRef($soc); if (empty($numref)) { $error++; dol_htmloutput_errors($object->error); } } else { $numref = $object->ref; } $text = $langs->trans('ConfirmValidateProp', $numref); if (!empty($conf->notification->enabled)) { require_once DOL_DOCUMENT_ROOT . '/core/class/notify.class.php'; $notify = new Notify($db); $text .= '<br>'; $text .= $notify->confirmMessage('PROPAL_VALIDATE', $object->socid); } if (!$error) { $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?id=' . $object->id, $langs->trans('ValidateProp'), $text, 'confirm_validate', '', 0, 1); } }
if (GETPOST('save', 'alpha')) { $res = dolibarr_set_const($db, "FCKEDITOR_TEST", GETPOST('formtestfield'), 'chaine', 0, '', $conf->entity); if ($res > 0) { setEventMessage($langs->trans("RecordModifiedSuccessfully")); } } /* * View */ llxHeader(); $linkback = '<a href="' . DOL_URL_ROOT . '/admin/modules.php">' . $langs->trans("BackToModuleList") . '</a>'; print_fiche_titre($langs->trans("AdvancedEditor"), $linkback, 'setup'); print '<br>'; $var = true; if (empty($conf->use_javascript_ajax)) { dol_htmloutput_errors('', array($langs->trans("NotAvailable"), $langs->trans("JavascriptDisabled")), 1); } else { print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">'; print '<td colspan="2">' . $langs->trans("ActivateFCKeditor") . '</td>'; print '<td align="center" width="100">' . $langs->trans("Action") . '</td>'; print "</tr>\n"; // Modules foreach ($modules as $const => $desc) { // Si condition non remplie, on ne propose pas l'option if (!$conditions[$const]) { continue; } $var = !$var; print "<tr " . $bc[$var] . ">"; print '<td width="16">' . img_object("", $picto[$const]) . '</td>';
$ref= $_GET['ref']; if ($id > 0 || ! empty($ref)) { $result=$object->fetch($_GET['id'],$_GET['ref']); if ($result > 0) { $id = $object->id; // if $_GET['ref'] $result=$object->fetch_lines(); } if ($result < 0) { dol_print_error($db,$object->error); exit; } dol_htmloutput_errors($mesg,''); $nbofservices=sizeof($object->lines); $author = new User($db); $author->fetch($object->user_author_id); $commercial_signature = new User($db); $commercial_signature->fetch($object->commercial_signature_id); $commercial_suivi = new User($db); $commercial_suivi->fetch($object->commercial_suivi_id); $head = contract_prepare_head($object); $hselected = 0;
* This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ $object=$GLOBALS['object']; ?> <!-- BEGIN PHP TEMPLATE --> <?php echo $langs->trans("Product"); ?> <?php dol_htmloutput_errors($object->error,$object->errors); ?> <table class="border allwidth"> <tr> <td width="15%"><?php echo $langs->trans("Ref"); ?></td> <td colspan="2"><?php echo $object->ref; ?></td> </tr> <tr> <td><?php echo $langs->trans("Label") ?></td> <td><?php echo $object->label; ?></td> <?php if ($object->photos) { ?> <td valign="middle" align="center" width="30%" rowspan="<?php echo $object->nblignes; ?>"> <?php echo $object->photos; ?>