// Display avaible Images
if ($formEdit && $imageCounter) {
echo "<div class='row'>\n";
// Get all Images
$avaibleImages = figures_getImagePath("figures", "thumb", $data['figure_id'], "all");
// Check if there avaible Images
if (is_array($avaibleImages) && count($avaibleImages)) {
foreach ($avaibleImages AS $avaibleImage) {
echo "<div class='col-xs-12 col-sm-2'>\n";
echo form_checkbox("image_toppic", "Set as Cover<br /><img src='".$avaibleImage['image']."' alt='".$avaibleImage['id']."' style='max-width: 150px;' />", ($avaibleImage['toppic'] ? $avaibleImage['id'] : 0), ["type" => "radio", "input_id" => "image_titlepic_".$avaibleImage['id'], "value" => $avaibleImage['id'], "reverse_label" => true]);
echo form_checkbox("delete_image[]", "Delete Image", "", [
"value" => $avaibleImage['id'],
"input_id" => "delete-image-".$avaibleImage['id'],
"reverse_label" => true
]);
echo "</div>\n";
}
}
echo "</div>\n";
}
<div class="row">
<div class="col-xs-12 col-sm-2">
<div id="image_titlepic_2743-field" class=" form-group clearfix ">
<label class="control-label " data-checked="0" for="image_titlepic_2743">
<input id="image_titlepic_2743" style="margin: 0;vertical-align: middle" name="image_toppic" value="2743" type="radio">
Set as Cover<br><img src="../../infusions/figurelib/images/figures/thumbs/diamond_select_alien_covenant_vinyl_bust_bank_01_t1.jpg" alt="2743" style="max-width: 150px;"> </label>
</div>
<div id="delete-image-2743-field" class=" form-group clearfix ">
<label class="control-label " data-checked="0" for="delete-image-2743">
<input id="delete-image-2743" style="margin: 0;vertical-align: middle" name="delete_image[]" value="2743" type="checkbox">
Delete Image </label>
</div>
</div>
<div class="col-xs-12 col-sm-2">
<div id="image_titlepic_2744-field" class=" form-group clearfix ">
<label class="control-label " data-checked="0" for="image_titlepic_2744">
<input id="image_titlepic_2744" style="margin: 0;vertical-align: middle" name="image_toppic" value="2744" type="radio">
Set as Cover<br><img src="../../infusions/figurelib/images/figures/thumbs/diamond_select_alien_covenant_vinyl_bust_bank_02_t1.jpg" alt="2744" style="max-width: 150px;"> </label>
</div>
<div id="delete-image-2744-field" class=" form-group clearfix ">
<label class="control-label " data-checked="0" for="delete-image-2744">
<input id="delete-image-2744" style="margin: 0;vertical-align: middle" name="delete_image[]" value="2744" type="checkbox">
Delete Image </label>
</div>
</div>
<div class="col-xs-12 col-sm-2">
<div id="image_titlepic_2745-field" class=" form-group clearfix ">
<label class="control-label " data-checked="0" for="image_titlepic_2745">
<input id="image_titlepic_2745" style="margin: 0;vertical-align: middle" name="image_toppic" value="2745" type="radio">
Set as Cover<br><img src="../../infusions/figurelib/images/figures/thumbs/diamond_select_alien_covenant_vinyl_bust_bank_03_t1.jpg" alt="2745" style="max-width: 150px;"> </label>
</div>
<div id="delete-image-2745-field" class=" form-group clearfix ">
<label class="control-label " data-checked="0" for="delete-image-2745">
<input id="delete-image-2745" style="margin: 0;vertical-align: middle" name="delete_image[]" value="2745" type="checkbox">
Delete Image </label>
</div>
</div>
</div>
Category Forum
Suspected Bugs and Errors - 9Labels
None yet
Statistics
1 participant
Notifications
You are not receiving notifications from this thread.
Related Questions