Browse code

added README.md CHANGELOG.txt appinfo/info.xml appinfo/signature.json css/style.css js/sendfax.js templates/navigation/index.php lib/Controller/AuthorApiController.php lib/Controller/PaxfaxController.php

DoubleBastionAdmin authored on 03/09/2022 21:02:20
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,116 @@
1
+<?php
2
+/**
3
+ * @copyright 2021 Double Bastion LLC <www.doublebastion.com>
4
+ *
5
+ * @author Double Bastion LLC
6
+ *
7
+ * @license GNU AGPL version 3 or any later version
8
+ *
9
+ * This program is free software; you can redistribute it and/or
10
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
11
+ * License as published by the Free Software Foundation; either
12
+ * version 3 of the License, or any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
18
+ *
19
+ * You should have received a copy of the GNU Affero General Public
20
+ * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
+ *
22
+ */
23
+
24
+declare(strict_types=1);
25
+
26
+script('pax_fax', 'sendfax');
27
+style('pax_fax', 'style');
28
+
29
+?>
30
+
31
+<div id="pax_fax_vbar">
32
+
33
+    <div id="currentbaldiv"><a class="providername" href="https://console.phaxio.com/sf_guard_users/sign_in" target="_blank" rel="noreferrer noopener">Phaxio</a> balance:
34
+            <div id="currentbalance"></div>
35
+            <button id="checkbalance" title="Refresh to see the current balance."></button>
36
+    </div>
37
+
38
+    <div id="faxnumbersdiv" class="cllridcls">
39
+            <div id="pickid">Set ID:</div>
40
+            <select id="currentfaxnmbrs" class="optselectfxnb">
41
+               <option value="" selected="selected" disabled hidden class="optselectfxnb">click refresh button</option>
42
+            </select>
43
+            <button id="selectcalleridbttn" title="Refresh the list of Sender IDs."></button>
44
+            <div class="fortooltipinit">
45
+                 <div id="infosetid">i</div>
46
+                 <span class="calleridtooltip">The Caller ID is the 'From' number that the receiver sees on the fax that you send. You can leave it blank or you can set as
47
+                       Caller ID one of your Phaxio fax numbers (first refresh the list, then select from the drop-down)
48
+                 </span>
49
+            </div>
50
+    </div>
51
+
52
+    <div  class="pfheader">
53
+            Enter the recipient's number as:
54
+    </div>
55
+    <div class="faxnbformat">
56
+            <a id="countryCallCode" href="https://en.wikipedia.org/wiki/List_of_country_calling_codes#Alphabetical_listing_by_country_or_region"
57
+               target="_blank" rel="noreferrer noopener">CountryCallingCode</a><font style="color:#aa2e4b">FaxNumber</font>
58
+    </div>
59
+    <div class="fortooltip">
60
+         <div id="infonumber">i</div>
61
+         <span class="fortooltiptext">
62
+            For example, to send a fax to the German fax number 1212121212, enter 491212121212, where 49 is the country calling code of Germany. (For US the calling
63
+            code is 1, for UK 44, for France 33, etc.) The <a href="https://en.wikipedia.org/wiki/List_of_country_calling_codes#Alphabetical_listing_by_country_or_region"
64
+            target="_blank" rel="noreferrer noopener" style="color:#1b60ba">country calling code</a> must be always included, even if the fax is sent locally. 
65
+            You don't need to add the '+' sign or '00' in front of the number, because the '+' sign will be added automatically. If you want to send the same fax simultaneously 
66
+            to multiple numbers, add them one after the other separated by a comma like this: 497777777777,442222222222 You can send a fax to up to 15 numbers at once.
67
+         </span>
68
+    </div>
69
+
70
+    <div id="faxtodiv">
71
+         <input type="text" id="faxto" name="faxto" />
72
+    </div>
73
+
74
+    <div class="pfheader">Choose the document(s) that you want to send as fax:</div>
75
+    <div class="fortooltipsec">
76
+          <div id="infoformat">i</div>
77
+          <span class="fortooltiptextsec">
78
+              Supported formats are: pdf, odt, jpeg/jpg, png, txt, tiff/tif, html, doc, docx. You can send up to 20 files with a cumulative size of up to 20 MB and up to 200 pages, in one fax call. (docx and doc files can be sent as fax but cannot be previewed in the adjoining preview pane; docx and doc files should be previewed outside Pax Fax before sending them.)
79
+          </span>
80
+    </div>
81
+
82
+    <div id="filestotsize">Total files size:<div id="filessizetext"></div></div>
83
+
84
+    <div id="fileuploadednm" class="fileuploadstl"></div>
85
+    <div class="uploadfiledv">
86
+          <form class="uploadflbt"  enctype="multipart/form-data" >
87
+                <div id="uploadFile">Upload a file</div>
88
+                <input id="uploadfileforfax" class="fileupload" name="uploadedtofax[]" type="file" multiple />
89
+                <label for="uploadfileforfax" class="button icon-upload svg" id="uploadfileforfax" </label>
90
+          </form>
91
+    </div>
92
+
93
+    <div id="pf_upload_msg"></div>
94
+
95
+    <div id="filespickednc" class="filesfromnc"></div>
96
+  
97
+    <div id="pickFromNext">Pick from Nextcloud</div>
98
+
99
+    <button id="choosefilen"></button>
100
+
101
+    <div id="pf_choose_msg"></div>
102
+
103
+    <p class="pickedflnm"></p>
104
+
105
+    <input type="submit" id="submitfax" value="Send Fax" />
106
+
107
+    <div id="pf_submit_msg"></div>
108
+
109
+    <div id="dirbuttons">
110
+       <button id="receivedfaxdir" class="openfaxfolder">Received Faxes</button>
111
+       <button id="sentfaxdir" class="openfaxfolder">Sent Faxes</button>
112
+       <button id="receivedfaileddir" class="openfaxfolder">Failed Received Faxes</button>
113
+       <button id="sentfaileddir" class="openfaxfolder">Failed Sent Faxes</button>
114
+    </div>
115
+
116
+</div>
Browse code

removed README.md CHANGELOG.txt appinfo/info.xml appinfo/signature.json css/style.css js/sendfax.js templates/navigation/index.php lib/Controller/AuthorApiController.php lib/Controller/PaxfaxController.php

DoubleBastionAdmin authored on 03/09/2022 20:58:28
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,117 +0,0 @@
1
-<?php
2
-/**
3
- * @copyright 2021 Double Bastion LLC <www.doublebastion.com>
4
- *
5
- * @author Double Bastion LLC
6
- *
7
- * @license GNU AGPL version 3 or any later version
8
- *
9
- * This program is free software; you can redistribute it and/or
10
- * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
11
- * License as published by the Free Software Foundation; either
12
- * version 3 of the License, or any later version.
13
- *
14
- * This program is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
- * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
18
- *
19
- * You should have received a copy of the GNU Affero General Public
20
- * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
- *
22
- */
23
-
24
-declare(strict_types=1);
25
-
26
-script('pax_fax', 'sendfax');
27
-style('pax_fax', 'style');
28
-
29
-?>
30
-
31
-<div id="pax_fax_vbar">
32
-
33
-       <div id="currentbaldiv"><a class="providername" href="https://console.phaxio.com/sf_guard_users/sign_in" target="_blank" rel="noreferrer noopener">Phaxio</a> balance:
34
-            <span id="currentbalance"></span>
35
-            <button id="checkbalance" title="Refresh to see the current balance."></button>
36
-       </div>
37
-
38
-       <div id="faxnumbersdiv" class="cllridcls">
39
-            <div id="pickid">Set ID:</div>
40
-            <select id="currentfaxnmbrs" class="optselectfxnb">
41
-               <option value="" selected="selected" disabled hidden class="optselectfxnb">click refresh button</option>
42
-            </select>
43
-            <button id="selectcalleridbttn" title="Refresh the list of Sender IDs."></button>
44
-            <div class="fortooltipinit">
45
-                 <div id="infosetid">i</div>
46
-                 <span class="calleridtooltip">The Caller ID is the 'from' number that the receiver sees on the fax that you send. You can leave it blank or you can set as
47
-                       Caller ID one of your Phaxio fax numbers (first refresh the list, then select from the drop-down)
48
-                 </span>
49
-            </div>
50
-       </div>
51
-
52
-       <div  class="pfheader">
53
-            Enter the recipient's number as:
54
-       </div>
55
-       <div class="faxnbformat">
56
-            <a id="countryCallCode" href="https://en.wikipedia.org/wiki/List_of_country_calling_codes#Alphabetical_listing_by_country_or_region"
57
-               target="_blank" rel="noreferrer noopener">country_calling_code</a><font style="color:#aa2e4b">fax_number</font>
58
-       </div>
59
-       <div class="fortooltip">
60
-         <div id="infonumber">i</div>
61
-         <span class="fortooltiptext">
62
-            For example, to send a fax to the German fax number 1212121212 you must enter 491212121212, where 49 is the code of Germany. (For US the calling
63
-            code is 1, for UK 44, for France 33, etc.) The <a href="https://en.wikipedia.org/wiki/List_of_country_calling_codes#Alphabetical_listing_by_country_or_region"
64
-            target="_blank" rel="noreferrer noopener" style="color:#1b60ba">country calling code</a> must be always included, even if the fax is sent locally. 
65
-            The '+' sign will be added automatically, so, no need to add '+' or '00' in front of the number. If you want to send the same fax simultaneously to multiple numbers,
66
-            add them one after the other separated by a comma like this: 497777777777,442222222222 You can send a fax to up to 15 numbers at once.
67
-         </span>
68
-       </div>
69
-
70
-   <div id="faxtodiv">
71
-       <input type="text" id="faxto" name="faxto" />
72
-   </div>
73
-
74
-   <div class="pfheader">Choose the document(s) that you want to send as fax:
75
-   </div>
76
-       <div class="fortooltipsec">
77
-          <div id="infoformat">i</div>
78
-          <span class="fortooltiptextsec">
79
-              Supported formats are: pdf, odt, jpg, png, txt, tif, tiff, html, doc, docx. You can send up to 20 files with a cumulative size of up to 20 MB and up to 200 pages, in one fax call. (docx/doc files can be sent as fax but can't be previewed in the adjoining preview pane; please preview docx/doc files outside this application before sending them as fax).
80
-          </span>
81
-       </div>
82
-
83
-       <div id="filestotsize">Total files size:<span id="filessizetext"></span></div>
84
-
85
-       <div id="fileuploadednm" class="fileuploadstl"></div>
86
-       <div class="uploadfiledv">
87
-            <form class="uploadflbt"  enctype="multipart/form-data" >
88
-                  <span id="uploadFile">Upload a file</span>
89
-                  <input id="uploadfileforfax" class="fileupload" name="uploadedtofax[]" type="file" multiple />
90
-                  <label for="uploadfileforfax" class="button icon-upload svg" id="uploadfileforfax" </label>
91
-            </form>
92
-       </div>
93
-
94
-    <span id="pf_upload_msg"></span>
95
-
96
-    <div id="filespickednc" class="filesfromnc"></div>
97
-  
98
-    <span id="pickFromNext">Pick from Nextcloud</span>
99
-
100
-    <button id="choosefilen"></button>
101
-
102
-    <span id="pf_choose_msg"></span>
103
-
104
-    <p class="pickedflnm"></p>
105
-
106
-    <input type="submit" id="submitfax" value="Send Fax" />
107
-
108
-    <span id="pf_submit_msg"></span>
109
-
110
-    <div id="dirbuttons">
111
-       <button id="receivedfaxdir" class="openfaxfolder">Received Faxes</button>
112
-       <button id="sentfaxdir" class="openfaxfolder">Sent Faxes</button>
113
-       <button id="receivedfaileddir" class="openfaxfolder">Failed Received Faxes</button>
114
-       <button id="sentfaileddir" class="openfaxfolder">Failed Sent Faxes</button>
115
-    </div>
116
-
117
-</div>
Browse code

Created repository.

DoubleBastionAdmin authored on 01/03/2022 23:31:10
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,117 @@
1
+<?php
2
+/**
3
+ * @copyright 2021 Double Bastion LLC <www.doublebastion.com>
4
+ *
5
+ * @author Double Bastion LLC
6
+ *
7
+ * @license GNU AGPL version 3 or any later version
8
+ *
9
+ * This program is free software; you can redistribute it and/or
10
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
11
+ * License as published by the Free Software Foundation; either
12
+ * version 3 of the License, or any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
18
+ *
19
+ * You should have received a copy of the GNU Affero General Public
20
+ * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
+ *
22
+ */
23
+
24
+declare(strict_types=1);
25
+
26
+script('pax_fax', 'sendfax');
27
+style('pax_fax', 'style');
28
+
29
+?>
30
+
31
+<div id="pax_fax_vbar">
32
+
33
+       <div id="currentbaldiv"><a class="providername" href="https://console.phaxio.com/sf_guard_users/sign_in" target="_blank" rel="noreferrer noopener">Phaxio</a> balance:
34
+            <span id="currentbalance"></span>
35
+            <button id="checkbalance" title="Refresh to see the current balance."></button>
36
+       </div>
37
+
38
+       <div id="faxnumbersdiv" class="cllridcls">
39
+            <div id="pickid">Set ID:</div>
40
+            <select id="currentfaxnmbrs" class="optselectfxnb">
41
+               <option value="" selected="selected" disabled hidden class="optselectfxnb">click refresh button</option>
42
+            </select>
43
+            <button id="selectcalleridbttn" title="Refresh the list of Sender IDs."></button>
44
+            <div class="fortooltipinit">
45
+                 <div id="infosetid">i</div>
46
+                 <span class="calleridtooltip">The Caller ID is the 'from' number that the receiver sees on the fax that you send. You can leave it blank or you can set as
47
+                       Caller ID one of your Phaxio fax numbers (first refresh the list, then select from the drop-down)
48
+                 </span>
49
+            </div>
50
+       </div>
51
+
52
+       <div  class="pfheader">
53
+            Enter the recipient's number as:
54
+       </div>
55
+       <div class="faxnbformat">
56
+            <a id="countryCallCode" href="https://en.wikipedia.org/wiki/List_of_country_calling_codes#Alphabetical_listing_by_country_or_region"
57
+               target="_blank" rel="noreferrer noopener">country_calling_code</a><font style="color:#aa2e4b">fax_number</font>
58
+       </div>
59
+       <div class="fortooltip">
60
+         <div id="infonumber">i</div>
61
+         <span class="fortooltiptext">
62
+            For example, to send a fax to the German fax number 1212121212 you must enter 491212121212, where 49 is the code of Germany. (For US the calling
63
+            code is 1, for UK 44, for France 33, etc.) The <a href="https://en.wikipedia.org/wiki/List_of_country_calling_codes#Alphabetical_listing_by_country_or_region"
64
+            target="_blank" rel="noreferrer noopener" style="color:#1b60ba">country calling code</a> must be always included, even if the fax is sent locally. 
65
+            The '+' sign will be added automatically, so, no need to add '+' or '00' in front of the number. If you want to send the same fax simultaneously to multiple numbers,
66
+            add them one after the other separated by a comma like this: 497777777777,442222222222 You can send a fax to up to 15 numbers at once.
67
+         </span>
68
+       </div>
69
+
70
+   <div id="faxtodiv">
71
+       <input type="text" id="faxto" name="faxto" />
72
+   </div>
73
+
74
+   <div class="pfheader">Choose the document(s) that you want to send as fax:
75
+   </div>
76
+       <div class="fortooltipsec">
77
+          <div id="infoformat">i</div>
78
+          <span class="fortooltiptextsec">
79
+              Supported formats are: pdf, odt, jpg, png, txt, tif, tiff, html, doc, docx. You can send up to 20 files with a cumulative size of up to 20 MB and up to 200 pages, in one fax call. (docx/doc files can be sent as fax but can't be previewed in the adjoining preview pane; please preview docx/doc files outside this application before sending them as fax).
80
+          </span>
81
+       </div>
82
+
83
+       <div id="filestotsize">Total files size:<span id="filessizetext"></span></div>
84
+
85
+       <div id="fileuploadednm" class="fileuploadstl"></div>
86
+       <div class="uploadfiledv">
87
+            <form class="uploadflbt"  enctype="multipart/form-data" >
88
+                  <span id="uploadFile">Upload a file</span>
89
+                  <input id="uploadfileforfax" class="fileupload" name="uploadedtofax[]" type="file" multiple />
90
+                  <label for="uploadfileforfax" class="button icon-upload svg" id="uploadfileforfax" </label>
91
+            </form>
92
+       </div>
93
+
94
+    <span id="pf_upload_msg"></span>
95
+
96
+    <div id="filespickednc" class="filesfromnc"></div>
97
+  
98
+    <span id="pickFromNext">Pick from Nextcloud</span>
99
+
100
+    <button id="choosefilen"></button>
101
+
102
+    <span id="pf_choose_msg"></span>
103
+
104
+    <p class="pickedflnm"></p>
105
+
106
+    <input type="submit" id="submitfax" value="Send Fax" />
107
+
108
+    <span id="pf_submit_msg"></span>
109
+
110
+    <div id="dirbuttons">
111
+       <button id="receivedfaxdir" class="openfaxfolder">Received Faxes</button>
112
+       <button id="sentfaxdir" class="openfaxfolder">Sent Faxes</button>
113
+       <button id="receivedfaileddir" class="openfaxfolder">Failed Received Faxes</button>
114
+       <button id="sentfaileddir" class="openfaxfolder">Failed Sent Faxes</button>
115
+    </div>
116
+
117
+</div>