print '<tr class="border"><td style="padding: 4px">'; if ($conf->syslog->enabled) { print '<input type="radio" name="choice" value="logfile"'; print $choice && $choice == 'logfile' ? ' checked="checked"' : ''; print '> ' . $langs->trans("PurgeDeleteLogFile", $filelog) . '<br><br>'; } print '<input type="radio" name="choice" value="tempfiles"'; print !$choice || $choice == 'tempfiles' || $choice == 'allfiles' ? ' checked="checked"' : ''; print '> ' . $langs->trans("PurgeDeleteTemporaryFiles") . '<br><br>'; print '<input type="radio" name="choice" value="confirm_allfiles"'; print $choice && $choice == 'confirm_allfiles' ? ' checked="checked"' : ''; print '> ' . $langs->trans("PurgeDeleteAllFilesInDocumentsDir", $dolibarr_main_data_root) . '<br>'; print '</td></tr></table>'; if ($choice != 'confirm_allfiles') { print '<br>'; print '<center><input class="button" type="submit" value="' . $langs->trans("PurgeRunNow") . '"></center>'; } print '</form>'; if ($message) { print '<br>' . $message . '<br>'; print "\n"; } if (preg_match('/^confirm/i', $choice)) { print '<br>'; $formquestion = array(); $ret = $html->form_confirm($_SERVER["PHP_SELF"] . '?choice=allfiles', $langs->trans('Purge'), $langs->trans('ConfirmPurge') . ' ' . img_warning(), 'purge', $formquestion, 'no', 2); if ($ret == 'html') { print '<br>'; } } llxFooter('$Date: 2011/08/03 00:45:43 $ - $Revision: 1.19 $');
$res=$object->load($socid); if ($res < 0) { dol_print_error($db,$object->error); exit; } //$res=$object->fetch_optionals($object->id,$extralabels); 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;
if ( $delivery->id > 0) { $soc = new Societe($db); $soc->fetch($delivery->socid); $head=delivery_prepare_head($delivery); dol_fiche_head($head, 'delivery', $langs->trans("Sending"), 0, 'sending'); /* * Confirmation de la suppression * */ if ($_GET["action"] == 'delete') { $expedition_id = $_GET["expid"]; $ret=$html->form_confirm($_SERVER['PHP_SELF'].'?id='.$delivery->id.'&expid='.$expedition_id,$langs->trans("DeleteDeliveryReceipt"),$langs->trans("DeleteDeliveryReceiptConfirm",$delivery->ref),'confirm_delete','','',1); if ($ret == 'html') print '<br>'; } /* * Confirmation de la validation * */ if ($_GET["action"] == 'valid') { $ret=$html->form_confirm($_SERVER['PHP_SELF'].'?id='.$delivery->id,$langs->trans("ValidateDeliveryReceipt"),$langs->trans("ValidateDeliveryReceiptConfirm",$delivery->ref),'confirm_valid','','',1); if ($ret == 'html') print '<br>'; } /*
$h = 0; $head[$h][0] = $_SERVER['PHP_SELF'] . '?id=' . $id; $head[$h][1] = $langs->trans('Card'); $hselected = $h; $h++; $head[$h][0] = DOL_URL_ROOT . '/fourn/paiement/info.php?id=' . $id; $head[$h][1] = $langs->trans('Info'); $h++; dol_fiche_head($head, $hselected, $langs->trans('SupplierPayment'), 0, 'payment'); $result = $object->fetch($id); if ($result > 0) { /* * Confirmation de la suppression du paiement */ if ($action == 'delete') { $ret = $form->form_confirm($_SERVER['PHP_SELF'] . '?id=' . $object->id, $langs->trans("DeletePayment"), $langs->trans("ConfirmDeletePayment"), 'confirm_delete'); if ($ret == 'html') { print '<br>'; } } /* * Confirmation de la validation du paiement */ if ($action == 'valide') { $ret = $form->form_confirm($_SERVER['PHP_SELF'] . '?id=' . $object->id, $langs->trans("ValidatePayment"), $langs->trans("ConfirmValidatePayment"), 'confirm_valide'); if ($ret == 'html') { print '<br>'; } } print '<table class="border" width="100%">'; print '<tr>';
} elseif ($type == 3) { $title = $langs->trans("MembersCategoryShort"); } elseif ($type == 4) { $title = $langs->trans("ProductsCategoryShort"); } elseif ($type == 5) { $title = $langs->trans("ContactsCategoryShort"); } else { $title = $langs->trans("Category"); } $head = categories_prepare_head($object, $type); dol_fiche_head($head, 'card', $title, 0, 'category'); /* * Confirmation suppression */ if ($action == 'delete') { $ret = $form->form_confirm($_SERVER["PHP_SELF"] . '?id=' . $object->id . '&type=' . $type, $langs->trans('DeleteCategory'), $langs->trans('ConfirmDeleteCategory'), 'confirm_delete'); if ($ret == 'html') { print '<br>'; } } print '<table border="0" width="100%" class="border">'; // Path of category print '<tr><td width="20%" class="notopnoleft">'; $ways = $object->print_all_ways(); print $langs->trans("Ref") . '</td><td>'; print '<a href="' . DOL_URL_ROOT . '/categories/index.php?leftmenu=cat&type=' . $type . '">' . $langs->trans("Root") . '</a> >> '; foreach ($ways as $way) { print $way . "<br>\n"; } print '</td></tr>'; // Description
$object->fetch_origin(); } $soc = new Societe($db); $soc->fetch($object->socid); // delivery link $object->fetchObjectLinked($object->id, $object->element, -1, -1); $head = shipping_prepare_head($object); dol_fiche_head($head, 'shipping', $langs->trans("Sending"), 0, 'sending'); if ($mesg) { print $mesg; } /* * Confirmation de la suppression */ if ($action == 'delete') { $ret = $html->form_confirm($_SERVER['PHP_SELF'] . '?id=' . $object->id, $langs->trans('DeleteSending'), $langs->trans("ConfirmDeleteSending", $object->ref), 'confirm_delete', '', 0, 1); if ($ret == 'html') { print '<br>'; } } /* * Confirmation de la validation */ if ($action == 'valid') { $objectref = substr($object->ref, 1, 4); if ($objectref == 'PROV') { $numref = $object->getNextNumRef($soc); } else { $numref = $object->ref; } $ret = $html->form_confirm($_SERVER['PHP_SELF'] . '?id=' . $object->id, $langs->trans('ValidateSending'), $langs->trans("ConfirmValidateSending", $numref), 'confirm_valid', '', 0, 1);
if ($ret == 'html') { print '<table class="notopnoleftnoright" width="100%"><tr ' . $bc[$var] . ' height="6"><td></td></tr></table>'; } } /* * Confirmation to move service toward another contract */ if ($action == 'move' && !$_REQUEST["cancel"] && $user->rights->contrat->creer && $object->lines[$cursorline - 1]->id == GETPOST('rowid')) { $arraycontractid = array(); foreach ($arrayothercontracts as $contractcursor) { $arraycontractid[$contractcursor->id] = $contractcursor->ref; } //var_dump($arraycontractid); // Cree un tableau formulaire $formquestion = array('text' => $langs->trans("ConfirmMoveToAnotherContractQuestion"), array('type' => 'select', 'name' => 'newcid', 'values' => $arraycontractid)); $form->form_confirm($_SERVER["PHP_SELF"] . "?id=" . $object->id . "&lineid=" . GETPOST('rowid'), $langs->trans("MoveToAnotherContract"), $langs->trans("ConfirmMoveToAnotherContract"), "confirm_move", $formquestion); print '<table class="notopnoleftnoright" width="100%"><tr ' . $bc[$var] . ' height="6"><td></td></tr></table>'; } /* * Confirmation de la validation activation */ if ($action == 'active' && !$_REQUEST["cancel"] && $user->rights->contrat->activer && $object->lines[$cursorline - 1]->id == GETPOST('ligne')) { $dateactstart = dol_mktime(12, 0, 0, GETPOST('remonth'), GETPOST('reday'), GETPOST('reyear')); $dateactend = dol_mktime(12, 0, 0, GETPOST('endmonth'), GETPOST('endday'), GETPOST('endyear')); $comment = GETPOST('comment'); $form->form_confirm($_SERVER["PHP_SELF"] . "?id=" . $object->id . "&ligne=" . GETPOST('ligne') . "&date=" . $dateactstart . "&dateend=" . $dateactend . "&comment=" . urlencode($comment), $langs->trans("ActivateService"), $langs->trans("ConfirmActivateService", dol_print_date($dateactstart, "%A %d %B %Y")), "confirm_active", '', 0, 1); print '<table class="notopnoleftnoright" width="100%"><tr ' . $bc[$var] . ' height="6"><td></td></tr></table>'; } /* * Confirmation de la validation fermeture */
$societe=new Societe($db); $societe->fetch($object->socid); dol_htmloutput_mesg($mesg); $head = fichinter_prepare_head($object); dol_fiche_head($head, 'card', $langs->trans("InterventionCard"), 0, 'intervention'); // Confirmation de la suppression de la fiche d'intervention if ($action == 'delete') { $ret=$html->form_confirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('DeleteIntervention'), $langs->trans('ConfirmDeleteIntervention'), 'confirm_delete','',0,1); if ($ret == 'html') print '<br>'; } // Confirmation validation if ($action == 'validate') { $ret=$html->form_confirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ValidateIntervention'), $langs->trans('ConfirmValidateIntervention'), 'confirm_validate','',0,1); if ($ret == 'html') print '<br>'; } // Confirmation de la validation de la fiche d'intervention if ($action == 'modify') { $ret=$html->form_confirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ModifyIntervention'), $langs->trans('ConfirmModifyIntervention'), 'confirm_modify','',0,1); if ($ret == 'html') print '<br>';
$linkback = ''; if ($_GET["id"]) { $titre .= ' - ' . $langs->trans($tablib[$_GET["id"]]); $linkback = '<a href="' . DOL_URL_ROOT . '/admin/dict.php">' . $langs->trans("BackToDictionnaryList") . '</a>'; } print_fiche_titre($titre, $linkback, 'setup'); if (empty($_GET["id"])) { print $langs->trans("DictionnaryDesc"); print " " . $langs->trans("OnlyActiveElementsAreShown") . "<br>\n"; } print "<br>\n"; /* * Confirmation de la suppression de la ligne */ if ($_GET['action'] == 'delete') { $ret = $html->form_confirm($_SERVER["PHP_SELF"] . '?' . ($page ? 'page=' . $page . '&' : '') . 'sortfield=' . $sortfield . '&sortorder=' . $sortorder . '&rowid=' . $_GET["rowid"] . '&code=' . $_GET["code"] . '&id=' . $_GET["id"], $langs->trans('DeleteLine'), $langs->trans('ConfirmDeleteLine'), 'confirm_delete', '', 0, 1); if ($ret == 'html') { print '<br>'; } } /* * Show a dictionnary */ if ($_GET["id"]) { if ($msg) { print $msg . '<br>'; } // Complete requete recherche valeurs avec critere de tri $sql = $tabsql[$_GET["id"]]; if ($_GET["sortfield"]) { // If sort order is "pays", we use pays_code instead
} } /* * Fiche en mode visu */ else { $head=product_prepare_head($product, $user); $titre=$langs->trans("CardProduct".$product->type); $picto=($product->type==1?'service':'product'); dol_fiche_head($head, 'card', $titre, 0, $picto); // Confirm delete product if ($action == 'delete' || $conf->use_javascript_ajax) { $ret=$html->form_confirm("fiche.php?id=".$product->id,$langs->trans("DeleteProduct"),$langs->trans("ConfirmDeleteProduct"),"confirm_delete",'',0,"action-delete"); if ($ret == 'html') print '<br>'; } if (empty($usecanvas)) { $isphoto=$product->is_photo_available($conf->product->dir_output); // En mode visu print '<table class="border" width="100%"><tr>'; // Ref print '<td width="15%">'.$langs->trans("Ref").'</td><td colspan="'.(2+($isphoto?1:0)).'">'; print $html->showrefnav($product,'ref','',1,'ref'); print '</td>';
} /******************************************************************* * PAGE * * Put here all code to do according to value of "action" parameter ********************************************************************/ llxHeader(); $form = new Form($db); print_fiche_titre($langs->trans("ECMAutoOrg")); //$head = societe_prepare_head($societe); //dol_fiche_head($head, 'document', $societe->nom); /* * Confirmation de la suppression d'une ligne produit */ if ($_GET['action'] == 'delete_file') { $ret = $form->form_confirm($_SERVER["PHP_SELF"] . '?socid=' . $socid . '&urlfile=' . urldecode($_GET["urlfile"]), $langs->trans('DeleteFile'), $langs->trans('ConfirmDeleteFile'), 'confirm_deletefile'); if ($ret == 'html') { print '<br>'; } } // Construit liste des fichiers clearstatcache(); $totalsize = 0; $filearray = array(); $errorlevel = error_reporting(); error_reporting(0); $handle = opendir($upload_dir); error_reporting($errorlevel); if (is_resource($handle)) { $i = 0; while (($file = readdir($handle)) !== false) {
print '</table>'; } else { if (($id || $ref) && $action != 'edit') { $cash = new Cash($db); $cash->fetch($id, $ref); /* * Affichage onglets */ // Onglets $head = cash_prepare_head($cash); dol_fiche_head($head, 'cashname', $langs->trans("Cash"), 0, 'barcode'); /* * Confirmation to delete */ if ($action == 'delete') { $ret = $form->form_confirm($_SERVER["PHP_SELF"] . '?id=' . $cash->id, $langs->trans("DeleteCash"), $langs->trans("ConfirmDeleteCash"), "confirm_delete", '', '', 1); if ($ret == 'html') { print '<br>'; } } print '<table class="border" width="100%">'; // Code print '<tr><td valign="top" width="25%">' . $langs->trans("Code") . '</td>'; print '<td colspan="3">'; print $form->showrefnav($cash, 'ref', '', 1, 'name', 'ref'); print '</td></tr>'; // Name print '<tr><td valign="top">' . $langs->trans("Name") . '</td>'; print '<td colspan="3">' . $cash->name . '</td></tr>'; //Tactil print '<tr><td>';
print_barre_liste($langs->trans("Sessions"), $page, $_SERVER["PHP_SELF"],"",$sortfield,$sortorder,'',$num,0,'setup'); $savehandler=ini_get("session.save_handler"); $savepath=ini_get("session.save_path"); $openbasedir=ini_get("open_basedir"); print '<b>'.$langs->trans("SessionSaveHandler").'</b>: '.$savehandler.'<br>'; print '<b>'.$langs->trans("SessionSavePath").'</b>: '.$savepath.'<br>'; if ($openbasedir) print '<b>'.$langs->trans("OpenBaseDir").'</b>: '.$openbasedir.'<br>'; print '<br>'; if ($_GET["action"] == 'purge') { $formquestion=array(); $ret=$form->form_confirm($_SERVER["PHP_SELF"].'?noparam=noparam', $langs->trans('PurgeSessions'), $langs->trans('ConfirmPurgeSessions'),'confirm_purge',$formquestion,'no',2); if ($ret == 'html') print '<br>'; } if ($_GET["action"] == 'lock') { $formquestion=array(); $ret=$form->form_confirm($_SERVER["PHP_SELF"].'?noparam=noparam', $langs->trans('LockNewSessions'), $langs->trans('ConfirmLockNewSessions',$user->login),'confirm_lock',$formquestion,'no',1); if ($ret == 'html') print '<br>'; } if ($savehandler == 'files') { print '<table class="liste" width="100%">'; print '<tr class="liste_titre">'; print_liste_field_titre($langs->trans("Login"),$_SERVER["PHP_SELF"],"login","","",'align="left"',$sortfield,$sortorder); print_liste_field_titre($langs->trans("SessionId"),$_SERVER["PHP_SELF"],"id","","",'align="left"',$sortfield,$sortorder);
// Show tabs $head = user_prepare_head($fuser); $title = $langs->trans("User"); print '<div class="row">'; print start_box($title, "twelve", "16-User.png", false); dol_fiche_head($head, 'user', $title, 0, 'user'); /* * Confirmation reinitialisation mot de passe */ if ($action == 'password') { $ret = $form->form_confirm($_SERVER["PHP_SELF"] . "?id=$fuser->id", $langs->trans("ReinitPassword"), $langs->trans("ConfirmReinitPassword", $fuser->login), "confirm_password", '', 0, 1); if ($ret == 'html') print '<br>'; } /* * Confirmation envoi mot de passe */ if ($action == 'passwordsend') { $ret = $form->form_confirm($_SERVER["PHP_SELF"] . "?id=$fuser->id", $langs->trans("SendNewPassword"), $langs->trans("ConfirmSendNewPassword", $fuser->login), "confirm_passwordsend", '', 0, 1); if ($ret == 'html') print '<br>'; } /* * Confirmation desactivation
if ($ldap->pwdlastset == 0) { $userChangePassNextLogon = 1; } } } /* * Affichage onglets */ $head = user_prepare_head($fuser); $title = $langs->trans("User"); dol_fiche_head($head, 'user', $title, 0, 'user'); /* * Confirmation reinitialisation mot de passe */ if ($action == 'password') { $ret = $html->form_confirm("fiche.php?id={$fuser->id}", $langs->trans("ReinitPassword"), $langs->trans("ConfirmReinitPassword", $fuser->login), "confirm_password", '', 0, 1); if ($ret == 'html') { print '<br>'; } } /* * Confirmation envoi mot de passe */ if ($action == 'passwordsend') { $ret = $html->form_confirm("fiche.php?id={$fuser->id}", $langs->trans("SendNewPassword"), $langs->trans("ConfirmSendNewPassword", $fuser->login), "confirm_passwordsend", '', 0, 1); if ($ret == 'html') { print '<br>'; } } /* * Confirmation desactivation
} $form = new Form($db); $formfile = new FormFile($db); $userstatic = new User($db); //*********************** // List //*********************** print_fiche_titre($langs->trans("FTPArea")); print $langs->trans("FTPAreaDesc") . "<br>"; if (!function_exists('ftp_connect')) { print $langs->trans("FTPFeatureNotSupportedByYourPHP"); } else { if (!empty($ftp_server)) { // Confirm remove file if ($_GET['action'] == 'delete') { $ret = $form->form_confirm($_SERVER["PHP_SELF"] . '?numero_ftp=' . $numero_ftp . '§ion=' . urlencode($_REQUEST["section"]) . '&file=' . urlencode($_GET["file"]), $langs->trans('DeleteFile'), $langs->trans('ConfirmDeleteFile'), 'confirm_deletefile', '', '', 1); if ($ret == 'html') { print '<br>'; } } // Confirmation de la suppression d'une ligne categorie if ($_GET['action'] == 'delete_section') { $ret = $form->form_confirm($_SERVER["PHP_SELF"] . '?numero_ftp=' . $numero_ftp . '§ion=' . urlencode($_REQUEST["section"]) . '&file=' . urlencode($_GET["file"]), $langs->trans('DeleteSection'), $langs->trans('ConfirmDeleteSection', $ecmdir->label), 'confirm_deletesection', '', '', 1); if ($ret == 'html') { print '<br>'; } } print $langs->trans("Server") . ': <b>' . $ftp_server . '</b><br>'; print $langs->trans("Port") . ': <b>' . $ftp_port . '</b><br>'; print $langs->trans("User") . ': <b>' . $ftp_user . '</b><br>'; print $langs->trans("Directory") . ': ';
print '<td valign="top" colspan="2">'; $doleditor = new DolEditor('note_private', $object->note_private, '', 80, 'dolibarr_notes', 'In', 0, false, true, ROWS_3, 70); print $doleditor->Create(1); print '</td></tr>'; } print '</table>'; dol_fiche_end(); print '<div class="center">'; print '<input type="submit" value="' . $langs->trans("Modify") . '" name="bouton" class="button">'; print ' <input type="button" value="' . $langs->trans("Cancel") . '" class="button" onclick="history.go(-1)" />'; print '</div>'; print '</form>'; } else { dol_fiche_head($head, 'card', $langs->trans("TripCard"), 0, 'trip'); if ($action == 'save') { $ret = $form->form_confirm($_SERVER["PHP_SELF"] . "?id=" . $id, $langs->trans("SaveTrip"), $langs->trans("ConfirmSaveTrip"), "confirm_validate", "", "", 1); if ($ret == 'html') { print '<br>'; } } if ($action == 'save_from_refuse') { $ret = $form->form_confirm($_SERVER["PHP_SELF"] . "?id=" . $id, $langs->trans("SaveTrip"), $langs->trans("ConfirmSaveTrip"), "confirm_save_from_refuse", "", "", 1); if ($ret == 'html') { print '<br>'; } } if ($action == 'delete') { $ret = $form->form_confirm($_SERVER["PHP_SELF"] . "?id=" . $id, $langs->trans("DeleteTrip"), $langs->trans("ConfirmDeleteTrip"), "confirm_delete", "", "", 1); if ($ret == 'html') { print '<br>'; }
// Editeur wysiwyg require_once DOL_DOCUMENT_ROOT . "/core/class/doleditor.class.php"; $doleditor = new DolEditor('body', $_POST['body'], '', 320, 'dolibarr_mailings', '', true, true, $conf->global->FCKEDITOR_ENABLE_MAILING, 20, 70); $doleditor->Create(); print '</td></tr>'; print '</table>'; print '<br><center><input type="submit" class="button" value="' . $langs->trans("CreateMailing") . '"></center>'; print '</form>'; } else { if ($object->id > 0) { $upload_dir = $conf->mailing->dir_output . "/" . get_exdir($object->id, 2, 0, 1); $head = emailing_prepare_head($object); dol_fiche_head($head, 'card', $langs->trans("Mailing"), 0, 'email'); // Confirmation de la validation du mailing if ($action == 'valid') { $ret = $form->form_confirm($_SERVER["PHP_SELF"] . "?id=" . $object->id, $langs->trans("ValidMailing"), $langs->trans("ConfirmValidMailing"), "confirm_valid", '', '', 1); if ($ret == 'html') { print '<br>'; } } else { if ($action == 'reset') { $ret = $form->form_confirm($_SERVER["PHP_SELF"] . "?id=" . $object->id, $langs->trans("ResetMailing"), $langs->trans("ConfirmResetMailing", $object->ref), "confirm_reset", '', '', 2); if ($ret == 'html') { print '<br>'; } } else { if ($action == 'delete') { $ret = $form->form_confirm($_SERVER["PHP_SELF"] . "?id=" . $object->id . (!empty($urlfrom) ? '&urlfrom=' . urlencode($urlfrom) : ''), $langs->trans("DeleteAMailing"), $langs->trans("ConfirmDeleteMailing"), "confirm_delete", '', '', 1); if ($ret == 'html') { print '<br>'; }
} /* * Affichage fiche */ if ($action <> 'edit' && $action <> 're-edit') { $head = stock_prepare_head($object); dol_fiche_head($head, 'card', $langs->trans("Warehouse"), 0, 'stock'); // Confirm delete third party if ($action == 'delete') { $form = new Form($db); $ret=$form->form_confirm($_SERVER["PHP_SELF"]."?id=".$object->id,$langs->trans("DeleteAWarehouse"),$langs->trans("ConfirmDeleteWarehouse",$object->libelle),"confirm_delete",'',0,2); if ($ret == 'html') print '<br>'; } print '<table class="border" width="100%">'; // Ref print '<tr><td width="25%">'.$langs->trans("Ref").'</td><td colspan="3">'; print $form->showrefnav($object,'id','',1,'rowid','libelle'); print '</td>'; print '<tr><td>'.$langs->trans("LocationSummary").'</td><td colspan="3">'.$object->lieu.'</td></tr>'; // Description print '<tr><td valign="top">'.$langs->trans("Description").'</td><td colspan="3">'.nl2br($object->description).'</td></tr>';
print '<input type="submit" class="butAction" value="' . $langs->trans("Save") . '"> '; // print '<input type="submit" name="importadress" class="butAction" value="'.$langs->trans("AgfImportCustomerAdress").'"> '; print '<input type="submit" name="cancel" class="butActionDelete" value="' . $langs->trans("Cancel") . '">'; print '</td></tr>'; print '</table>'; print '</form>'; print '</div>' . "\n"; } else { // Affichage en mode "consultation" // copie object print_barre_liste($langs->trans("Mandat Immobilier"), "", "", "", "", "", '', 0); /* * Confirmation de la suppression */ if ($action == 'delete') { $ret = $form->form_confirm($_SERVER['PHP_SELF'] . "?id=" . $id, $langs->trans("Supression Mandat"), $langs->trans("Voulez vous vraiment supprimer ce biens?"), "confirm_delete", '', '', 1); if ($ret == 'html') { print 'c est fait .....<br>'; } } /* * Confirmation de l'archivage/activation suppression if ($action=='archive' || $action=='active') { if ($action == 'archive') $value=1; if ($action == 'active') $value=0; $ret=$form->form_confirm($_SERVER['PHP_SELF']."?arch=".$value."&id=".$id,$langs->trans("AgfFormationArchiveChange"),$langs->trans("AgfConfirmArchiveChange"),"arch_confirm_delete",'','',1); if ($ret == 'html') print '<br>'; }
exit; } $h = 0; $head[$h][0] = $_SERVER["PHP_SELF"] . '?id=' . $remisecheque->id; $head[$h][1] = $langs->trans("CheckReceipt"); $hselected = $h; $h++; // $head[$h][0] = DOL_URL_ROOT.'/compta/paiement/cheque/info.php?id='.$remisecheque->id; // $head[$h][1] = $langs->trans("Info"); // $h++; dol_fiche_head($head, $hselected, $langs->trans("Cheques"), 0, 'payment'); /* * Confirmation de la suppression du bordereau */ if ($action == 'delete') { $ret = $html->form_confirm($_SERVER["PHP_SELF"] . '?id=' . $remisecheque->id, $langs->trans("DeleteCheckReceipt"), $langs->trans("ConfirmDeleteCheckReceipt"), 'confirm_delete', '', '', 1); if ($ret == 'html') { print '<br>'; } } /* * Confirmation de la validation du bordereau */ if ($action == 'valide') { $facid = $_GET['facid']; $ret = $html->form_confirm($_SERVER["PHP_SELF"] . '?id=' . $remisecheque->id, $langs->trans("ValidateCheckReceipt"), $langs->trans("ConfirmValidateCheckReceipt"), 'confirm_valide', '', '', 1); if ($ret == 'html') { print '<br>'; } } }
} } else { print '<a class="butActionRefused" href="#" title="'.$langs->trans("CannotRemoveDirectoryContainsFiles").'">'.$langs->trans('Delete').'</a>'; } print '</div>'; } if ($mesg) { print '<br>'.$mesg.'<br>'; } // Confirm remove file if ($_GET['action'] == 'delete') { $ret=$form->form_confirm($_SERVER["PHP_SELF"].'?section='.$_REQUEST["section"].'&urlfile='.urlencode($_GET["urlfile"]), $langs->trans('DeleteFile'), $langs->trans('ConfirmDeleteFile'), 'confirm_deletefile'); if ($ret == 'html') print '<br>'; } // Confirm remove file if ($_GET['action'] == 'delete_dir') { $relativepathwithoutslash=preg_replace('/[\/]$/','',$relativepath); $ret=$form->form_confirm($_SERVER["PHP_SELF"].'?section='.$_REQUEST["section"], $langs->trans('DeleteSection'), $langs->trans('ConfirmDeleteSection',$relativepathwithoutslash), 'confirm_deletedir', '', 1, 1); if ($ret == 'html') print '<br>'; } $formfile=new FormFile($db); /* // Affiche formulaire upload
print '<br><center><input type="submit" class="button" value="'.$langs->trans("Save").'"> '; print '<input type="submit" name="cancel" class="button" value="'.$langs->trans("Cancel").'">'; print '</center>'; print '</form>'; print '</div>'; } else { /* * Confirmation de la suppression du deplacement */ if ($_GET["action"] == 'delete') { $ret=$html->form_confirm("fiche.php?id=".$id,$langs->trans("DeleteTrip"),$langs->trans("ConfirmDeleteTrip"),"confirm_delete"); if ($ret == 'html') print '<br>'; } $soc = new Societe($db); if ($deplacement->socid) $soc->fetch($deplacement->socid); print '<table class="border" width="100%">'; // Ref print "<tr>"; print '<td width="20%">'.$langs->trans("Ref").'</td><td>'; print $html->showrefnav($deplacement,'id','',1,'rowid','ref',''); print '</td></tr>'; // Type
print_fiche_titre($langs->trans("ECMSectionOfDocuments")); print '<br>'; /* $ecmdir->ref=$ecmdir->label; print $langs->trans("ECMSection").': '; print img_picto('','object_dir').' '; print '<a href="'.DOL_URL_ROOT.'/ecm/docdir.php">'.$langs->trans("ECMRoot").'</a>'; //print ' -> <b>'.$ecmdir->getNomUrl(1).'</b><br>'; print "<br><br>"; */ // Confirmation de la suppression d'une ligne categorie if ($_GET['action'] == 'delete_section') { $ret=$form->form_confirm($_SERVER["PHP_SELF"].'?section='.$_GET["section"], $langs->trans('DeleteSection'), $langs->trans('ConfirmDeleteSection',$ecmdir->label), 'confirm_deletesection'); if ($ret == 'html') print '<br>'; } if ($mesg) { print $mesg."<br>"; } // Construit fiche rubrique // Actions buttons print '<div class="tabsAction">'; if ($user->rights->ecm->setup) { print '<a class="butAction" href="'.$_SERVER['PHP_SELF'].'?action=delete_section">'.$langs->trans('Delete').'</a>'; }
// print '</td></tr>'; } // Message d'erreur if ($fiche_erreur_message) { print $fiche_erreur_message; } // Form to confirm payment if ($action == 'add_paiement') { $preselectedchoice = $addwarning ? 'no' : 'yes'; print '<br>'; $text = $langs->trans('ConfirmCustomerPayment', $totalpaiement, $langs->trans("Currency" . $conf->monnaie)); if (GETPOST('closepaidinvoices')) { $text .= '<br>' . $langs->trans("AllCompletelyPayedInvoiceWillBeClosed"); print '<input type="hidden" name="closepaidinvoices" value="' . GETPOST('closepaidinvoices') . '">'; } $html->form_confirm($_SERVER['PHP_SELF'] . '?facid=' . $facture->id . '&socid=' . $facture->socid . '&type=' . $facture->type, $langs->trans('ReceivedCustomersPayments'), $text, 'confirm_paiement', $formquestion, $preselectedchoice); } print "</form>\n"; } } /** * Show list of payments */ if (!GETPOST('action')) { if ($page == -1) { $page = 0; } $limit = $conf->liste_limit; $offset = $limit * $page; if (!$sortorder) { $sortorder = 'DESC';
$soc = new Societe($db); $soc->fetch($commande->socid); $author = new User($db); $author->fetch($commande->user_author_id); $head = commande_prepare_head($commande); dol_fiche_head($head, 'shipping', $langs->trans("CustomerOrder"), 0, 'order'); /* * Confirmation de la validation */ if ($_GET["action"] == 'cloture') { $ret=$html->form_confirm($_SERVER['PHP_SELF']."?id=".$_GET["id"],$langs->trans("CloseOrder"),$langs->trans("ConfirmCloseOrder"),"confirm_cloture"); if ($ret == 'html') print '<br>'; } // Onglet commande $nbrow=7; if ($conf->projet->enabled) $nbrow++; print '<table class="border" width="100%">'; // Ref print '<tr><td width="18%">'.$langs->trans('Ref').'</td>'; print '<td colspan="3">'; print $html->showrefnav($commande,'ref','',1,'ref','ref'); print '</td>'; print '</tr>';
} if ($search_ua) { $usefilter++; $sql .= " AND e.user_agent like '%" . $search_ua . "%'"; } $sql .= $db->order($sortfield, $sortorder); $sql .= $db->plimit($conf->liste_limit + 1, $offset); //print $sql; $result = $db->query($sql); if ($result) { $num = $db->num_rows($result); $i = 0; print_barre_liste($langs->trans("ListOfSecurityEvents"), $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, '', $num, 0, 'setup'); if ($_GET["action"] == 'purge') { $formquestion = array(); $ret = $form->form_confirm($_SERVER["PHP_SELF"] . '?noparam=noparam', $langs->trans('PurgeAuditEvents'), $langs->trans('ConfirmPurgeAuditEvents'), 'confirm_purge', $formquestion, 'no', 1); if ($ret == 'html') { print '<br>'; } } print '<table class="liste" width="100%">'; print '<tr class="liste_titre">'; print_liste_field_titre($langs->trans("Date"), $_SERVER["PHP_SELF"], "e.dateevent", "", "", 'align="left"', $sortfield, $sortorder); print_liste_field_titre($langs->trans("Code"), $_SERVER["PHP_SELF"], "e.type", "", "", 'align="left"', $sortfield, $sortorder); print_liste_field_titre($langs->trans("IP"), $_SERVER["PHP_SELF"], "e.ip", "", "", 'align="left"', $sortfield, $sortorder); print_liste_field_titre($langs->trans("User"), $_SERVER["PHP_SELF"], "u.login", "", "", 'align="left"', $sortfield, $sortorder); print_liste_field_titre($langs->trans("Description"), $_SERVER["PHP_SELF"], "e.description", "", "", 'align="left"', $sortfield, $sortorder); print_liste_field_titre('', '', ''); print "</tr>\n"; // Lignes des champs de filtres print '<form method="GET" action="' . $_SERVER["PHP_SELF"] . '">';
print '</table>'; dol_fiche_end(); print '<br>'; } $head=task_prepare_head($object); dol_fiche_head($head, 'task_time', $langs->trans("Task"),0,'projecttask'); dol_htmloutput_mesg($mesg); if ($action == 'deleteline') { $ret=$form->form_confirm($_SERVER["PHP_SELF"]."?id=".$object->id.'&lineid='.$_GET["lineid"].($withproject?'&withproject=1':''),$langs->trans("DeleteATimeSpent"),$langs->trans("ConfirmDeleteATimeSpent"),"confirm_delete",'','',1); if ($ret == 'html') print '<br>'; } print '<table class="border" width="100%">'; $param=($withproject?'&withproject=1':''); $linkback=$withproject?'<a href="'.DOL_URL_ROOT.'/projet/tasks.php?id='.$projectstatic->id.'">'.$langs->trans("BackToList").'</a>':''; // Ref print '<tr><td width="30%">'; print $langs->trans("Ref"); print '</td><td colspan="3">'; if (! GETPOST('withproject') || empty($projectstatic->id)) { $projectsListId = $projectstatic->getProjectsAuthorizedForUser($user,$mine,1);
// Label print '<tr><td valign="top">' . $langs->trans("Label") . '</td>'; print '<td colspan="3">' . $object->label . '</td></tr>'; // Status print '<tr><td valign="top">' . $langs->trans("Status") . '</td>'; print '<td colspan="3">' . $object->getLibStatut(4) . '</td></tr>'; print '<tr><td>' . $langs->trans("NbOfAttachedFiles") . '</td><td colspan="3">' . count($filearray) . '</td></tr>'; print '<tr><td>' . $langs->trans("TotalSizeOfAttachedFiles") . '</td><td colspan="3">' . $totalsize . ' ' . $langs->trans("bytes") . '</td></tr>'; print "</table>\n"; print "</div>\n"; dol_htmloutput_mesg($mesg, $mesgs); /* * Confirmation suppression fichier */ if ($action == 'delete') { $ret = $form->form_confirm($_SERVER["PHP_SELF"] . '?id=' . $object->id . '&urlfile=' . urlencode($_GET["urlfile"]), $langs->trans('DeleteFile'), $langs->trans('ConfirmDeleteFile'), 'confirm_deletefile', '', 0, 1); if ($ret == 'html') { print '<br>'; } } // Affiche formulaire upload $formfile = new FormFile($db); $formfile->form_attach_new_file(DOL_URL_ROOT . '/compta/bank/document.php?id=' . $object->id, '', 0, 0, $user->rights->banque, 50, $object); // List of document $param = '&id=' . $object->id; $formfile->list_of_documents($filearray, $object, 'bank', $param); } else { dol_print_error($db); } } else { Header('Location: index.php');
if ($result) { /* * En mode visu */ $head=product_prepare_head($product, $user); $titre=$langs->trans("CardProduct".$product->type); $picto=($product->type==1?'service':'product'); dol_fiche_head($head, 'photos', $titre, 0, $picto); /* * Confirmation de la suppression de photo */ if ($_GET['action'] == 'delete') { $ret=$html->form_confirm($_SERVER["PHP_SELF"].'?id='.$product->id.'&file='.$_GET["file"], $langs->trans('DeletePicture'), $langs->trans('ConfirmDeletePicture'), 'confirm_delete', '', 0, 1); if ($ret == 'html') print '<br>'; } print($mesg); print '<table class="border" width="100%">'; // Reference print '<tr>'; print '<td width="15%">'.$langs->trans("Ref").'</td><td colspan="2">'; print $html->showrefnav($product,'ref','',1,'ref'); print '</td>'; print '</tr>'; // Libelle