19 if (empty($conf) || !is_object($conf))
21 print "Error, template page can't be called as URL";
27 <!-- START TEMPLATE FILE UPLOAD -->
29 <!-- The file upload form used as target
for the file upload widget -->
30 <form
id=
"fileupload" action=
"<?php echo DOL_URL_ROOT; ?>/core/ajax/fileupload.php" method=
"POST" enctype=
"multipart/form-data">
31 <input
type=
"hidden" name=
"fk_element" value=
"<?php echo $object->id; ?>">
32 <input type=
"hidden" name=
"element" value=
"<?php echo $object->element; ?>">
33 <input type=
"hidden" name=
"redirect" value=
"<?php echo $_SERVER['PHP_SELF'].'?id='.$object->id; ?>">
34 <!-- The fileupload-buttonbar contains buttons to add/
delete files and start/cancel the upload -->
35 <div
class=
"row fileupload-buttonbar">
37 <!-- The fileinput-button span is used to style the file input field as button -->
38 <span
class=
"btn btn-success fileinput-button">
39 <i
class=
"icon-plus icon-white"></i>
40 <span><?php echo $langs->trans(
'AddFiles'); ?></span>
41 <input type=
"file" name=
"files[]" multiple>
43 <button type=
"submit" class=
"btn btn-primary start">
44 <i
class=
"icon-upload icon-white"></i>
45 <span><?php echo $langs->trans(
'StartUpload'); ?></span>
47 <button type=
"reset" class=
"btn btn-warning cancel">
48 <i
class=
"icon-ban-circle icon-white"></i>
49 <span><?php echo $langs->trans(
'CancelUpload'); ?></span>
52 <button type=
"button" class=
"btn btn-danger delete">
53 <i
class=
"icon-trash icon-white"></i>
54 <span><?php echo $langs->trans(
'Delete'); ?></span>
56 <input type=
"checkbox" class=
"toggle">
59 <!-- The global progress information -->
60 <div
class=
"span5 fileupload-progress fade">
61 <!-- The global progress bar -->
63 <div
class=
"progress progress-success progress-striped active" role=
"progressbar" aria-valuemin=
"0" aria-valuemax=
"100">
64 <div
class=
"bar" style=
"width:0%;"></div>
67 <!-- The extended global progress information -->
68 <div
class=
"progress-extended"> </div>
71 <!-- The loading indicator is shown during file processing -->
72 <div
class=
"fileupload-loading"></div>
74 <!-- The table listing the files available
for upload/download -->
75 <table role=
"presentation" class=
"table table-striped"><tbody
class=
"files" data-toggle=
"modal-gallery" data-target=
"#modal-gallery"></tbody></table>
78 <!-- The
template to display files available
for upload -->
79 <!-- Warning
id on script is not W3C compliant and is reported as error by phpcs but it is required by fileupload plugin -->
80 <script
id=
"template-upload" type=
"text/x-tmpl">
81 {%
for (var i=0, file; file=o.files[i]; i++) { %}
82 <tr
class=
"template-upload fade">
83 <td
class=
"preview"><span
class=
"fade"></span></td>
84 <td
class=
"name"><span>{%=file.name%}</span></td>
85 <td
class=
"size"><span>{%=o.formatFileSize(file.size)%}</span></td>
86 {%
if (file.error) { %}
87 <td
class=
"error" colspan=
"2"><span
class=
"label label-important">{%=locale.fileupload.error%}</span> {%=locale.fileupload.errors[file.error] || file.error%}</td>
88 {% }
else if (o.files.valid && !i) { %}
90 <div
class=
"progress progress-success progress-striped active" role=
"progressbar" aria-valuemin=
"0" aria-valuemax=
"100" aria-valuenow=
"0"><div
class=
"bar" style=
"width:0%;"></div></div>
92 <td
class=
"start">{%
if (!o.options.autoUpload) { %}
93 <button
class=
"btn btn-primary">
94 <i
class=
"icon-upload icon-white"></i>
95 <span>{%=locale.fileupload.start%}</span>
101 <td
class=
"cancel">{%
if (!i) { %}
102 <button
class=
"btn btn-warning">
103 <i
class=
"icon-ban-circle icon-white"></i>
104 <span>{%=locale.fileupload.cancel%}</span>
110 <!-- The
template to display files available
for download -->
111 <!-- Warning
id on script is not W3C compliant and is reported as error by phpcs but it is required by jfilepload plugin -->
112 <script
id=
"template-download" type=
"text/x-tmpl">
113 {%
for (var i=0, file; file=o.files[i]; i++) { %}
114 <tr
class=
"template-download fade">
115 {%
if (file.error) { %}
117 <td
class=
"name"><span>{%=file.name%}</span></td>
118 <td
class=
"size"><span>{%=o.formatFileSize(file.size)%}</span></td>
119 <td
class=
"error" colspan=
"2"><span
class=
"label label-important">{%=locale.fileupload.error%}</span> {%=locale.fileupload.errors[file.error] || file.error%}</td>
121 <td
class=
"preview">{%
if (file.thumbnail_url) { %}
122 <a href=
"{%=file.url%}" title=
"{%=file.name%}" rel=
"gallery" download=
"{%=file.name%}"><img src=
"{%=file.thumbnail_url%}"></a>
125 <a href=
"{%=file.url%}" title=
"{%=file.name%}" rel=
"{%=file.thumbnail_url&&'gallery'%}" download=
"{%=file.name%}">{%=file.name%}</a>
127 <td
class=
"size"><span>{%=o.formatFileSize(file.size)%}</span></td>
128 <td colspan=
"2"></td>
131 <button
class=
"btn btn-danger" data-type=
"{%=file.delete_type%}" data-url=
"{%=file.delete_url%}">
132 <i
class=
"icon-trash icon-white"></i>
133 <span>{%=locale.fileupload.destroy%}</span>
135 <input type=
"checkbox" name=
"delete" value=
"1">
141 <!-- END PHP TEMPLATE -->
$conf db name
Only used if Module[ID]Name translation string is not found.
print
Draft customers invoices.
if(preg_match('/crypted:/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type