Update manage_promotions.php
This commit is contained in:
parent
8408636fa5
commit
62fec4883d
@ -18,14 +18,15 @@
|
|||||||
$codes = array();
|
$codes = array();
|
||||||
$actives = array();
|
$actives = array();
|
||||||
|
|
||||||
foreach($promos as $key => $value){
|
if(is_array($promos)){
|
||||||
$ids[$key] = $value->getId();
|
foreach($promos as $key => $value){
|
||||||
$tittles[$key] = $value->getTittle();
|
$ids[$key] = $value->getId();
|
||||||
$descriptions[$key] = $value->getDescription();
|
$tittles[$key] = $value->getTittle();
|
||||||
$codes[$key] = $value->getCode();
|
$descriptions[$key] = $value->getDescription();
|
||||||
$actives[$key] = $value->getActive();
|
$codes[$key] = $value->getCode();
|
||||||
|
$actives[$key] = $value->getActive();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
echo "<div class='row'>
|
echo "<div class='row'>
|
||||||
<div class='column side'></div>
|
<div class='column side'></div>
|
||||||
@ -42,6 +43,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
";
|
";
|
||||||
|
if(is_array($promos)){
|
||||||
for($i = 0; $i < count($promos); $i++){
|
for($i = 0; $i < count($promos); $i++){
|
||||||
echo '<tr>
|
echo '<tr>
|
||||||
<td>'. $ids[$i] .'</td>
|
<td>'. $ids[$i] .'</td>
|
||||||
@ -72,6 +74,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
';
|
';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
echo'</tbody>
|
echo'</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user