icon_label
- iltheo
- Topic Author
- Visitor
11 years 11 months ago #1054
by iltheo
icon_label was created by iltheo
Bonjour, j'ai installé GMapFP et est une composante très. J'ai besoin de ceci: la page de création / gestion des lieux ont transformé la icon_label champ de texte dans une série de chechbox. Mon problème est maintenant de sauver les informations sélectionnées dans la base de données, mais je ne peux pas le faire. Pouvez-vous l'obligeance de m'aider? Merci, iltheo
Please Log in or Create an account to join the conversation.
11 years 11 months ago #1055
by gmapfp
Replied by gmapfp on topic Re: icon_label
Bonjour,
Votre message n'est pas très compréhensible !
Parlez vous anglais ?
Peut être une impression d'écran ou deux ?
Votre message n'est pas très compréhensible !
Parlez vous anglais ?
Peut être une impression d'écran ou deux ?
Please Log in or Create an account to join the conversation.
- iltheo
- Topic Author
- Visitor
11 years 11 months ago - 11 years 11 months ago #1056
by iltheo
Replied by iltheo on topic Re: icon_label
Sorry, I do not speak French and I used a translator. Let's see if I can make myself understood in English (I'm Italian). I need to transform the input text icon_label in some chechbox. This was "simple", but I can not understand how I can save the information in the database. I am attaching a screen that tells you what I need. Thank you, iltheo
[attachment:1]screenshot01.png[/attachment]
[attachment:1]screenshot01.png[/attachment]
Last edit: 11 years 11 months ago by iltheo.
Please Log in or Create an account to join the conversation.
- iltheo
- Topic Author
- Visitor
11 years 11 months ago #1057
by iltheo
Replied by iltheo on topic Re: icon_label
This is the code that I made ...
<?php
$checkbox = $_POST['icon_label'];
for ($i=0; $i<sizeof($checkbox); $i++)
{
$var = explode(',',$_POST['icon_label']);
}
echo $var;
?>
<div style="float : left; text-align:center;" >
<div id="24hr" title="24hr Room service">
<img src="/templates/gantry/images/clickenya/icons/24hour.png" alt="24hr service"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="24hr" <?php echo strpos($var,"24hr") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Beverages in all rooms">
<img src="/templates/gantry/images/clickenya/icons/in_room_teacoffee.png" alt="Beverages in all rooms"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="beverages" <?php echo strpos($var,"beverages") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Bureau de change EUROS">
<img src="/templates/gantry/images/clickenya/icons/fees_euro.png" alt="Bureau de change EUROS"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="feeseuro" <?php echo strpos($var,"feeseuro") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Bureau de change POUNDS">
<img src="/templates/gantry/images/clickenya/icons/fees_pound.png" alt="Bureau de change POUNDS"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="feespound" <?php echo strpos($var,"feespound") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Bureau de change DOLLARS">
<img src="/templates/gantry/images/clickenya/icons/fees.png" alt="Bureau de change DOLLARS"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="feesdollar" <?php echo strpos($var,"feesdollar") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Disabled access">
<img src="/templates/gantry/images/clickenya/icons/disabled_access.png" alt="Disabled access"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="disabled" <?php echo strpos($var,"disabled") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Gymnasium onsite">
<img src="/templates/gantry/images/clickenya/icons/gym.png" alt="Gymnasium onsite"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="gymonsite" <?php echo strpos($var,"gymonsite") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Hairdresser onsite">
<img src="/templates/gantry/images/clickenya/icons/hairdresser.png" alt="Hairdresser onsite"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="hairdresser" <?php echo strpos($var,"hairdresser") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Hair dryer in every room">
<img src="/templates/gantry/images/clickenya/icons/hairdryer.png" alt="Hair dryer in every room"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="haidryer" <?php echo strpos($var,"haidryer") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Minibar in room">
<img src="/templates/gantry/images/clickenya/icons/room_bar.png" alt="Minibar in room"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="minibar" <?php echo strpos($var,"minibar") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Parking available">
<img src="/templates/gantry/images/clickenya/icons/parking.png" alt="Parking available"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="parking" <?php echo strpos($var,"parking") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Restraunt onsite">
<img src="/templates/gantry/images/clickenya/icons/restaurant.png" alt="Restraunt onsite"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="restaurant" <?php echo strpos($var,"restaurant") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Safe available">
<img src="/templates/gantry/images/clickenya/icons/hotel_safe.png" alt="Safe available"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="hotel_safe" <?php echo strpos($var,"hotel_safe") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Showers in every room">
<img src="/templates/gantry/images/clickenya/icons/shower_only.png" alt="Showers in every room"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="shower" <?php echo strpos($var,"shower") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Shuttle service to airport and nightclub district available">
<img src="/templates/gantry/images/clickenya/icons/shuttle_service.png" alt="Shuttle service to airport and nightclub district available"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="shuttle_service" <?php echo strpos($var,"shuttle_service") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Wifi available">
<img src="/templates/gantry/images/clickenya/icons/wifi.png" alt="Wifi available"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="wifi" <?php echo strpos($var,"wifi") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Internet access available">
<img src="/templates/gantry/images/clickenya/icons/internet.png" alt="Internet access available"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="internet" <?php echo strpos($var,"internet") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Air conditioning in all rooms">
<img src="/templates/gantry/images/clickenya/icons/air_conditioning.png" alt="Air conditioning in all rooms"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="air_conditioning" <?php echo strpos($var,"air_conditioning") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="All inclusive">
<img src="/templates/gantry/images/clickenya/icons/allinc.png" alt="All inclusive"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="allinc" <?php echo strpos($var,"allinc") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Baby Friendly">
<img src="/templates/gantry/images/clickenya/icons/baby_friendly.png" alt="Baby Friendly"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="baby_friendly" <?php echo strpos($var,"baby_friendly") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Beach">
<img src="/templates/gantry/images/clickenya/icons/beach.png" alt="Beach"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="beach" <?php echo strpos($var,"beach") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Board Walk">
<img src="/templates/gantry/images/clickenya/icons/board_walk.png" alt="Board Walk"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="board_walk" <?php echo strpos($var,"board_walk") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Canoeing available">
<img src="/templates/gantry/images/clickenya/icons/canoeing.png" alt="Canoeing available"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="canoeing" <?php echo strpos($var,"canoeing") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Fishing available">
<img src="/templates/gantry/images/clickenya/icons/fishing.png" alt="Fishing available"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="fishing" <?php echo strpos($var,"fishing") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Iron in all rooms">
<img src="/templates/gantry/images/clickenya/icons/iron.png" alt="Iron in all rooms"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="iron" <?php echo strpos($var,"iron") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Jacuzzi in all rooms">
<img src="/templates/gantry/images/clickenya/icons/jacuzzi.png" alt="Jacuzzi in all rooms"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="jacuzzi" <?php echo strpos($var,"jacuzzi") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Pool available">
<img src="/templates/gantry/images/clickenya/icons/pool.png" alt="Pool available"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="pool" <?php echo strpos($var,"pool") === false ? '' : 'checked' ?> >
</div>
<div style="float : left; text-align:center;" >
<div id="24hr" title="Telephone in all rooms">
<img src="/templates/gantry/images/clickenya/icons/room_telephone.png" alt="Telephone in all rooms"/>
</div>
<input type="checkbox" name="icon_label[]" id="icon_label" value="room_telephone" <?php echo strpos($var,"room_telephone") == false ? '' : 'checked' ?> >
</div>
<?php
$checkbox = $_POST['icon_label'];
for ($i=0; $i<sizeof($checkbox); $i++)
{
if (isset($_POST['icon_label']))
$tot_value = implode(',',$_POST['icon_label']);
}
$this->gmapfp->icon_label = $tot_value;
?>
Please Log in or Create an account to join the conversation.
Time to create page: 0.075 seconds