1
Questions / Re: Special Report Design
Is there anyone to help me about this topic?
This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.
<style>
table , td, th {
border: 1px solid #595959;
border-collapse: collapse;
}
td, th {
padding: 3px;
width: 30px;
height: 25px;
}
th {
background: #f0e6cc;
}
.even {
background: #fbf8f0;
}
.odd {
background: #fefcf9;
}
</style>
<div id="page-report-body" class="table-responsive">
<table style="width:100%">
<tbody>
<tr>
<td colspan="4">1</td>
<td colspan="4" rowspan="12" style="width:50%">42</td>
</tr>
<tr>
<td style="width:15%">2</td>
<td colspan="3" style="width:35%">7</td>
</tr>
<tr>
<td>3</td>
<td colspan="3">8</td>
</tr>
<tr>
<td>4</td>
<td colspan="3">9</td>
</tr>
<tr>
<td>5</td>
<td colspan="3">10</td>
</tr>
<tr>
<td>6</td>
<td colspan="3">11</td>
</tr>
<tr>
<td colspan="4">12</td>
</tr>
<tr>
<td>13</td>
<td colspan="3">17</td>
</tr>
<tr>
<td>14</td>
<td colspan="3">18</td>
</tr>
<tr>
<td>15</td>
<td colspan="3">19</td>
</tr>
<tr>
<td>16</td>
<td colspan="3">20</td>
</tr>
<tr>
<td>21</td>
<td>22</td>
<td>23</td>
<td>24</td>
</tr>
<tr>
<td colspan="8">25</td>
</tr>
<tr>
<td colspan="2" rowspan="3">26</td>
<td>27</td>
<td>30</td>
<td colspan="2" rowspan="3">34</td>
<td>35</td>
<td>38</td>
</tr>
<tr>
<td>28</td>
<td>31</td>
<td>36</td>
<td>39</td>
</tr>
<tr>
<td>29</td>
<td>32</td>
<td>37</td>
<td>40</td>
</tr>
<tr>
<td colspan="4">33</td>
<td colspan="4">41</td>
</tr>
</tbody>
</table>
</div>
There is a new function in PHP 8 with the name str_contains.
here you can see https://php.watch/versions/8.0/str_contains
for this reason, it shows the error, just rename it something "my_str_contains"
If you see error message 'PHP Fatal error: Cannot redeclare function' or similar error message in your script, it means there is a problem with your script code (it tries to declare the same function multiple times).
This error says that your function is already defined. This could mean:
you have the same function defined in two files
you have the same function defined in two places in the same file
the file in which your function is defined is included two times (so, it seems the function is defined two times)
To help with the third point, a solution would be to use include_once instead of include when including your functions.php file -- so it cannot be included more than once.